文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/06-PropManage/PropManageCtrl.cs 修改 |
| | |
| | | 锘縰sing HStation.WinFrmUI.Xhs.Project; |
| | | using Yw.DAL.Basic; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs |
| | | 锘縩amespace HStation.WinFrmUI.Basic |
| | | { |
| | | public partial class PropManageCtrl : DocumentPage |
| | | public partial class SysPropManageMainPanel : DocumentPage |
| | | { |
| | | public PropManageCtrl() |
| | | public SysPropManageMainPanel() |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(); |
| | |
| | | this.propGroupTreeListCtrl1.FocusedChangedEvent += ModuleTreeListCtrl1_FocusedChangedEvent; |
| | | } |
| | | |
| | | private List<PropViewModel> _allBindingList = new List<PropViewModel>(); |
| | | private List<SysPropViewModel> _allBindingList = new List<SysPropViewModel>(); |
| | | |
| | | private Yw.BLL.SysProp _bll = null; |
| | | |
| | |
| | | _allBindingList.Clear(); |
| | | foreach (var item in alllist) |
| | | { |
| | | _allBindingList.Add(new PropViewModel(item)); |
| | | _allBindingList.Add(new SysPropViewModel(item)); |
| | | } |
| | | this.propViewModelBindingSource.DataSource = _allBindingList; |
| | | this.propViewModelBindingSource.ResetBindings(false); |
| | |
| | | //娣诲姞 |
| | | private void BtnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new AddPropDlg(); |
| | | var dlg = new AddSysPropDlg(); |
| | | var groupid = this.propGroupTreeListCtrl1.GetCurrentGroupID(); |
| | | var typeid = this.propGroupTreeListCtrl1.GetCurrentTypeID(); |
| | | if (groupid <= 0) |
| | |
| | | if (id > 0) |
| | | { |
| | | var model = await _bll.GetByID(id); |
| | | _allBindingList.Add(new PropViewModel(model)); |
| | | _allBindingList.Add(new SysPropViewModel(model)); |
| | | this.propViewModelBindingSource.ResetBindings(false); |
| | | return true; |
| | | } |
| | |
| | | //缂栬緫 |
| | | private void barBtnEditPumpCurve_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new EditPropDlg(); |
| | | var dlg = new EditSysPropDlg(); |
| | | var vm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (vm == null) |
| | | { |