文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/01-project/ModelEdit.cs 修改 |
| | |
| | | 锘縰sing HStation.Dto; |
| | | 锘縰sing HStation.WinFrmUI.Xhs.Project; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.Project |
| | | namespace HStation.WinFrmUI.Xhs.PumpProject |
| | | { |
| | | public partial class ModelEdit : DevExpress.XtraEditors.XtraForm |
| | | public partial class XhsModelEdit : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public ModelEdit() |
| | | public XhsModelEdit() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private BLL.XhsProjectItemModel _BllModel = new BLL.XhsProjectItemModel(); |
| | | |
| | | private List<ProjectModelViewModel> _AllBindingList = new List<ProjectModelViewModel>(); |
| | | private List<XhsProjectModelViewModel> _AllBindingList = new List<XhsProjectModelViewModel>(); |
| | | |
| | | /// <summary> |
| | | /// 鏁版嵁缁戝畾 |
| | |
| | | var alllist = await _BllModel.GetByPrjID(Prjid); |
| | | foreach (var item in alllist) |
| | | { |
| | | _AllBindingList.Add(new ProjectModelViewModel(item)); |
| | | _AllBindingList.Add(new XhsProjectModelViewModel(item)); |
| | | } |
| | | this.projectModelViewModelBindingSource.DataSource = _AllBindingList; |
| | | this.projectModelViewModelBindingSource.ResetBindings(false); |