| | |
| | | namespace HStation.WinFrmUI |
| | | using DevExpress.Drawing.Internal.Interop; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class XhsProjectSimulationHydroInfoCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private HStation.Vmo.XhsProjectVmo _project = null;//项目 |
| | | private HStation.Vmo.XhsProjectSiteVmo _projectSite = null;//项目站 |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息 |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public async void SetBindingData(long projectId) |
| | | public async Task SetBindingData |
| | | ( |
| | | HStation.Vmo.XhsProjectVmo project, |
| | | HStation.Vmo.XhsProjectSiteVmo projectSite, |
| | | Yw.Model.HydroModelInfo hydroInfo |
| | | ) |
| | | { |
| | | var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(projectId); |
| | | if (projectSite == null) |
| | | if (project == null) |
| | | { |
| | | return; |
| | | } |
| | | var hydroRelation = await new Yw.BLL.HydroModelRelation().GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | if (hydroRelation == null) |
| | | _project = project; |
| | | _projectSite = projectSite; |
| | | _hydroInfo = hydroInfo; |
| | | if (_projectSite == null) |
| | | { |
| | | return; |
| | | _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID); |
| | | } |
| | | var info = await new Yw.BLL.HydroModelInfo().GetByID(hydroRelation.ModelID); |
| | | this.hydroParterListCtrl1.SetBindingData(info); |
| | | if (_hydroInfo == null) |
| | | { |
| | | var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID); |
| | | } |
| | | this.hydroParterListCtrl1.SetBindingData(_hydroInfo); |
| | | } |
| | | |
| | | public void SetBindingData() |
| | | { |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | xhsProjectSimulationProjectInfoCtrl1 = new XhsProjectSimulationProjectInfoCtrl(); |
| | | xhsProjectSimulationBimfaceInfoCtrl1 = new XhsProjectSimulationBimfaceInfoCtrl(); |
| | | xhsProjectBasicInfoHydroCtrl1 = new XhsProjectBasicInfoHydroCtrl(); |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | svgImg32 = new DevExpress.Utils.SvgImageCollection(components); |
| | | xhsProjectSimulationHydroInfoCtrl1 = new XhsProjectSimulationHydroInfoCtrl(); |
| | | layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | ((ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((ISupportInitialize)Root).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((ISupportInitialize)svgImg32).BeginInit(); |
| | | ((ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // layoutControl1 |
| | | // |
| | | layoutControl1.Controls.Add(xhsProjectSimulationHydroInfoCtrl1); |
| | | layoutControl1.Controls.Add(xhsProjectSimulationProjectInfoCtrl1); |
| | | layoutControl1.Controls.Add(xhsProjectSimulationBimfaceInfoCtrl1); |
| | | layoutControl1.Controls.Add(xhsProjectBasicInfoHydroCtrl1); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Name = "layoutControl1"; |
| | |
| | | xhsProjectSimulationBimfaceInfoCtrl1.Size = new Size(462, 279); |
| | | xhsProjectSimulationBimfaceInfoCtrl1.TabIndex = 9; |
| | | // |
| | | // xhsProjectBasicInfoHydroCtrl1 |
| | | // |
| | | xhsProjectBasicInfoHydroCtrl1.Location = new Point(12, 295); |
| | | xhsProjectBasicInfoHydroCtrl1.Name = "xhsProjectBasicInfoHydroCtrl1"; |
| | | xhsProjectBasicInfoHydroCtrl1.Size = new Size(927, 280); |
| | | xhsProjectBasicInfoHydroCtrl1.TabIndex = 8; |
| | | // |
| | | // Root |
| | | // |
| | | Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
| | | Root.GroupBordersVisible = false; |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem3, layoutControlItem2, layoutControlItem1 }); |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem1, layoutControlItem3 }); |
| | | Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; |
| | | Root.Name = "Root"; |
| | | columnDefinition1.SizeType = SizeType.Percent; |
| | |
| | | Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { rowDefinition1, rowDefinition2 }); |
| | | Root.Size = new Size(951, 587); |
| | | Root.TextVisible = false; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = xhsProjectBasicInfoHydroCtrl1; |
| | | layoutControlItem3.Location = new Point(0, 283); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.OptionsTableLayoutItem.ColumnSpan = 2; |
| | | layoutControlItem3.OptionsTableLayoutItem.RowIndex = 1; |
| | | layoutControlItem3.Size = new Size(931, 284); |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | | // layoutControlItem2 |
| | | // |
| | |
| | | svgImg32.ImageSize = new Size(32, 32); |
| | | svgImg32.Add("functionsinformation", "image://svgimages/spreadsheet/functionsinformation.svg"); |
| | | // |
| | | // xhsProjectSimulationHydroInfoCtrl1 |
| | | // |
| | | xhsProjectSimulationHydroInfoCtrl1.Location = new Point(12, 295); |
| | | xhsProjectSimulationHydroInfoCtrl1.Name = "xhsProjectSimulationHydroInfoCtrl1"; |
| | | xhsProjectSimulationHydroInfoCtrl1.Size = new Size(927, 280); |
| | | xhsProjectSimulationHydroInfoCtrl1.TabIndex = 11; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = xhsProjectSimulationHydroInfoCtrl1; |
| | | layoutControlItem3.Location = new Point(0, 283); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.OptionsTableLayoutItem.ColumnSpan = 2; |
| | | layoutControlItem3.OptionsTableLayoutItem.RowIndex = 1; |
| | | layoutControlItem3.Size = new Size(931, 284); |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | | // XhsProjectSimulationInfoPage |
| | | // |
| | | Appearance.BackColor = SystemColors.Control; |
| | |
| | | ((ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((ISupportInitialize)Root).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((ISupportInitialize)svgImg32).EndInit(); |
| | | ((ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | |
| | | private DevExpress.XtraLayout.LayoutControl layoutControl1; |
| | | private DevExpress.XtraLayout.LayoutControlGroup Root; |
| | | private XhsProjectBasicInfoHydroCtrl xhsProjectBasicInfoHydroCtrl1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | private XhsProjectSimulationProjectInfoCtrl xhsProjectSimulationProjectInfoCtrl1; |
| | | private XhsProjectSimulationBimfaceInfoCtrl xhsProjectSimulationBimfaceInfoCtrl1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; |
| | | private DevExpress.Utils.SvgImageCollection svgImg32; |
| | | private XhsProjectSimulationHydroInfoCtrl xhsProjectSimulationHydroInfoCtrl1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | } |
| | | } |
| | |
| | | |
| | | private XhsProjectVmo _project = null;//项目 |
| | | private XhsProjectSiteVmo _projectSite = null;//项目站 |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息 |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public async Task SetBindingData(XhsProjectVmo project, XhsProjectSiteVmo projectSite) |
| | | public async Task SetBindingData |
| | | ( |
| | | XhsProjectVmo project, |
| | | XhsProjectSiteVmo projectSite, |
| | | Yw.Model.HydroModelInfo hydroInfo |
| | | ) |
| | | { |
| | | if (project == null) |
| | | { |
| | |
| | | } |
| | | _project = project; |
| | | _projectSite = projectSite; |
| | | _hydroInfo = hydroInfo; |
| | | if (_projectSite == null) |
| | | { |
| | | _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID); |
| | | } |
| | | if (_hydroInfo == null) |
| | | { |
| | | var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID); |
| | | } |
| | | } |
| | | |
| | |
| | | this.PageTitle.Caption = $"{_project.Name}\r\n项目概况"; |
| | | this.xhsProjectSimulationProjectInfoCtrl1.SetBindingData(_project); |
| | | await this.xhsProjectSimulationBimfaceInfoCtrl1.SetBindingData(_project, _projectSite); |
| | | await this.xhsProjectSimulationHydroInfoCtrl1.SetBindingData(_project, _projectSite, _hydroInfo); |
| | | } |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public event Action<string> ClickParterEvent; |
| | | |
| | | private long _projectId;//项目id |
| | | private HStation.Vmo.XhsProjectVmo _project = null; |
| | | private HStation.Vmo.XhsProjectSiteVmo _projectSite = null; |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public async void SetBindingData(long projectId) |
| | | public async Task SetBindingData(HStation.Vmo.XhsProjectVmo project, HStation.Vmo.XhsProjectSiteVmo projectSite) |
| | | { |
| | | _projectId = projectId; |
| | | if (project == null) |
| | | { |
| | | return; |
| | | } |
| | | _project = project; |
| | | _projectSite = projectSite; |
| | | if (_projectSite == null) |
| | | { |
| | | _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID); |
| | | } |
| | | await this.bimfaceInterop3dContainer1.InitialContainer(); |
| | | } |
| | | |
| | | //页面加载完成后触发 |
| | | private async void BimfaceInterop3dContainer1_LoadCompletedEvent() |
| | | { |
| | | var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_projectId); |
| | | if (projectSite == null) |
| | | if (_projectSite == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | var relation = await BLLFactory<Yw.BLL.BimfaceFileRelation>.Instance |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose |
| | | (HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | if (relation == null) |
| | | { |
| | | return; |
| | |
| | | this.ClickParterEvent?.Invoke(obj.ObjectId); |
| | | } |
| | | |
| | | public async Task HideComponents(List<string> elementIds) |
| | | { |
| | | await this.bimfaceInterop3dContainer1.HideComponents(elementIds); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 显示构件 |
| | | /// </summary> |
| | | /// <param name="elementIds">构件id列表</param> |
| | | /// <returns></returns> |
| | | public async Task ShowComponents(List<string> elementIds) |
| | | { |
| | | await this.bimfaceInterop3dContainer1.ShowComponents(elementIds); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 隐藏构件 |
| | | /// </summary> |
| | | /// <param name="elementIds">构件id列表</param> |
| | | /// <returns></returns> |
| | | public async Task HideComponents(List<string> elementIds) |
| | | { |
| | | await this.bimfaceInterop3dContainer1.HideComponents(elementIds); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 显示所有构件 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public async Task ShowAllComponents() |
| | | { |
| | | await this.bimfaceInterop3dContainer1.ShowAllComponents(); |
| | |
| | | barBtnPumpMatching.Id = 14; |
| | | barBtnPumpMatching.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnPumpMatching.ImageOptions.SvgImage"); |
| | | barBtnPumpMatching.Name = "barBtnPumpMatching"; |
| | | barBtnPumpMatching.ItemClick += barButtonItem1_ItemClick; |
| | | // |
| | | // barBtnValveMatching |
| | | // |
| | |
| | | private HStation.Vmo.XhsProjectSiteVmo _projectSite = null;//项目站 |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息 |
| | | |
| | | |
| | | private long _projectId; |
| | | private Yw.Model.HydroModelInfo _hydro = null; |
| | | private Yw.Model.HydroParterInfo _parter = null; |
| | | private List<CalcuParter> _allCalcuParterList = null; |
| | | |
| | |
| | | public async Task SetBindingData |
| | | ( |
| | | HStation.Vmo.XhsProjectVmo project, |
| | | HStation.Vmo.XhsProjectSiteVmo projectSite |
| | | HStation.Vmo.XhsProjectSiteVmo projectSite, |
| | | Yw.Model.HydroModelInfo hydroInfo |
| | | ) |
| | | { |
| | | if (project == null) |
| | |
| | | } |
| | | _project = project; |
| | | _projectSite = projectSite; |
| | | _hydroInfo = hydroInfo; |
| | | if (_projectSite == null) |
| | | { |
| | | _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task SetBindingData(long projectId) |
| | | { |
| | | _projectId = projectId; |
| | | var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(projectId); |
| | | if (projectSite == null) |
| | | if (_hydroInfo == null) |
| | | { |
| | | return; |
| | | var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID); |
| | | } |
| | | var hydroRelation = await new Yw.BLL.HydroModelRelation().GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | if (hydroRelation == null) |
| | | { |
| | | return; |
| | | } |
| | | _hydro = await new Yw.BLL.HydroModelInfo().GetByID(hydroRelation.ModelID); |
| | | this.xhsProjectSimulationPropertyCtrl1.SetBindingData(_hydro); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化数据 |
| | | /// </summary> |
| | | public override void InitialDataSource() |
| | | public override async void InitialDataSource() |
| | | { |
| | | base.InitialDataSource(); |
| | | if (_project == null) |
| | | { |
| | | return; |
| | | } |
| | | //this.xhsProjectHydroQ3dCtrl1.SetBindingData(_hydro); |
| | | |
| | | this.PageTitle.Caption = $"{_project.Name}\r\n水力模拟"; |
| | | await this.xhsProjectSimulationBimfaceCtrl1.SetBindingData(_project, _projectSite); |
| | | } |
| | | |
| | | //bimface 构件点击 |
| | | private void XhsProjectHydroQ3dCtrl1_ClickParterEvent(string objectId) |
| | | { |
| | | if (_hydro == null) |
| | | { |
| | | _parter = null; |
| | | return; |
| | | } |
| | | var allParterList = _hydro.GetAllParters(); |
| | | _parter = allParterList.Find(x => x.Code == objectId); |
| | | this.xhsProjectSimulationPropertyCtrl1.SelectParter(_parter, allParterList); |
| | | if (_parter != null) |
| | | { |
| | | if (_allCalcuParterList != null && _allCalcuParterList.Count > 0) |
| | | { |
| | | var calcuParter = _allCalcuParterList.Find(x => x.Id == _parter.Code); |
| | | if (calcuParter != null) |
| | | { |
| | | IHydroCalcuProperty calcuProperty = null; |
| | | if (calcuParter is CalcuNode calcuNode) |
| | | { |
| | | var calcuNodeProperty = new Yw.WinFrmUI.HydroCalcuNodeProperty(); |
| | | calcuNodeProperty.ID = _parter.ID; |
| | | calcuNodeProperty.CalcuPress = calcuNode.Press; |
| | | calcuNodeProperty.CalcuDemand = calcuNode.Demand; |
| | | calcuNodeProperty.CalcuHead = calcuNode.Head; |
| | | calcuProperty = calcuNodeProperty; |
| | | } |
| | | else if (calcuParter is CalcuLink calcuLink) |
| | | { |
| | | var calcuLinkProperty = new Yw.WinFrmUI.HydroCalcuLinkProperty(); |
| | | calcuLinkProperty.ID = _parter.ID; |
| | | calcuLinkProperty.CalcuHeadLoss = calcuLink.Headloss; |
| | | calcuLinkProperty.CalcuFlow = calcuLink.Flow; |
| | | calcuLinkProperty.CalcuVelocity = calcuLink.Velocity; |
| | | calcuProperty = calcuLinkProperty; |
| | | } |
| | | //if (_hydro == null) |
| | | //{ |
| | | // _parter = null; |
| | | // return; |
| | | //} |
| | | //var allParterList = _hydro.GetAllParters(); |
| | | //_parter = allParterList.Find(x => x.Code == objectId); |
| | | //this.xhsProjectSimulationPropertyCtrl1.SelectParter(_parter, allParterList); |
| | | //if (_parter != null) |
| | | //{ |
| | | // if (_allCalcuParterList != null && _allCalcuParterList.Count > 0) |
| | | // { |
| | | // var calcuParter = _allCalcuParterList.Find(x => x.Id == _parter.Code); |
| | | // if (calcuParter != null) |
| | | // { |
| | | // IHydroCalcuProperty calcuProperty = null; |
| | | // if (calcuParter is CalcuNode calcuNode) |
| | | // { |
| | | // var calcuNodeProperty = new Yw.WinFrmUI.HydroCalcuNodeProperty(); |
| | | // calcuNodeProperty.ID = _parter.ID; |
| | | // calcuNodeProperty.CalcuPress = calcuNode.Press; |
| | | // calcuNodeProperty.CalcuDemand = calcuNode.Demand; |
| | | // calcuNodeProperty.CalcuHead = calcuNode.Head; |
| | | // calcuProperty = calcuNodeProperty; |
| | | // } |
| | | // else if (calcuParter is CalcuLink calcuLink) |
| | | // { |
| | | // var calcuLinkProperty = new Yw.WinFrmUI.HydroCalcuLinkProperty(); |
| | | // calcuLinkProperty.ID = _parter.ID; |
| | | // calcuLinkProperty.CalcuHeadLoss = calcuLink.Headloss; |
| | | // calcuLinkProperty.CalcuFlow = calcuLink.Flow; |
| | | // calcuLinkProperty.CalcuVelocity = calcuLink.Velocity; |
| | | // calcuProperty = calcuLinkProperty; |
| | | // } |
| | | |
| | | if (calcuProperty != null) |
| | | { |
| | | this.xhsProjectSimulationPropertyCtrl1.UpdateCalcuProperty(calcuProperty); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // if (calcuProperty != null) |
| | | // { |
| | | // this.xhsProjectSimulationPropertyCtrl1.UpdateCalcuProperty(calcuProperty); |
| | | // } |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | } |
| | | |
| | | private void barBtnCheck_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydro == null) |
| | | { |
| | | return; |
| | | } |
| | | var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | var result = netWork.Check(); |
| | | XtraMessageBox.Show(JsonHelper.Object2FormatJson(result)); |
| | | //if (_hydro == null) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | //var result = netWork.Check(); |
| | | //XtraMessageBox.Show(JsonHelper.Object2FormatJson(result)); |
| | | } |
| | | |
| | | private void barBtnCalcu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydro == null) |
| | | { |
| | | return; |
| | | } |
| | | var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | var result = netWork.Calcu(); |
| | | if (!result.Succeed) |
| | | { |
| | | XtraMessageBox.Show(JsonHelper.Object2FormatJson(result)); |
| | | return; |
| | | } |
| | | _allCalcuParterList = result.GetParterList(); |
| | | TipFormHelper.ShowSucceed("计算成功"); |
| | | if (_parter != null) |
| | | { |
| | | var calcuParter = _allCalcuParterList.Find(x => x.Id == _parter.Code); |
| | | if (calcuParter != null) |
| | | { |
| | | IHydroCalcuProperty calcuProperty = null; |
| | | if (calcuParter is CalcuNode calcuNode) |
| | | { |
| | | var calcuNodeProperty = new Yw.WinFrmUI.HydroCalcuNodeProperty(); |
| | | calcuNodeProperty.ID = _parter.ID; |
| | | calcuNodeProperty.CalcuPress = calcuNode.Press; |
| | | calcuNodeProperty.CalcuDemand = calcuNode.Demand; |
| | | calcuNodeProperty.CalcuHead = calcuNode.Head; |
| | | calcuProperty = calcuNodeProperty; |
| | | } |
| | | else if (calcuParter is CalcuLink calcuLink) |
| | | { |
| | | var calcuLinkProperty = new Yw.WinFrmUI.HydroCalcuLinkProperty(); |
| | | calcuLinkProperty.ID = _parter.ID; |
| | | calcuLinkProperty.CalcuHeadLoss = calcuLink.Headloss; |
| | | calcuLinkProperty.CalcuFlow = calcuLink.Flow; |
| | | calcuLinkProperty.CalcuVelocity = calcuLink.Velocity; |
| | | calcuProperty = calcuLinkProperty; |
| | | } |
| | | //if (_hydro == null) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | //var result = netWork.Calcu(); |
| | | //if (!result.Succeed) |
| | | //{ |
| | | // XtraMessageBox.Show(JsonHelper.Object2FormatJson(result)); |
| | | // return; |
| | | //} |
| | | //_allCalcuParterList = result.GetParterList(); |
| | | //TipFormHelper.ShowSucceed("计算成功"); |
| | | //if (_parter != null) |
| | | //{ |
| | | // var calcuParter = _allCalcuParterList.Find(x => x.Id == _parter.Code); |
| | | // if (calcuParter != null) |
| | | // { |
| | | // IHydroCalcuProperty calcuProperty = null; |
| | | // if (calcuParter is CalcuNode calcuNode) |
| | | // { |
| | | // var calcuNodeProperty = new Yw.WinFrmUI.HydroCalcuNodeProperty(); |
| | | // calcuNodeProperty.ID = _parter.ID; |
| | | // calcuNodeProperty.CalcuPress = calcuNode.Press; |
| | | // calcuNodeProperty.CalcuDemand = calcuNode.Demand; |
| | | // calcuNodeProperty.CalcuHead = calcuNode.Head; |
| | | // calcuProperty = calcuNodeProperty; |
| | | // } |
| | | // else if (calcuParter is CalcuLink calcuLink) |
| | | // { |
| | | // var calcuLinkProperty = new Yw.WinFrmUI.HydroCalcuLinkProperty(); |
| | | // calcuLinkProperty.ID = _parter.ID; |
| | | // calcuLinkProperty.CalcuHeadLoss = calcuLink.Headloss; |
| | | // calcuLinkProperty.CalcuFlow = calcuLink.Flow; |
| | | // calcuLinkProperty.CalcuVelocity = calcuLink.Velocity; |
| | | // calcuProperty = calcuLinkProperty; |
| | | // } |
| | | |
| | | if (calcuProperty != null) |
| | | { |
| | | this.xhsProjectSimulationPropertyCtrl1.UpdateCalcuProperty(calcuProperty); |
| | | } |
| | | } |
| | | } |
| | | // if (calcuProperty != null) |
| | | // { |
| | | // this.xhsProjectSimulationPropertyCtrl1.UpdateCalcuProperty(calcuProperty); |
| | | // } |
| | | // } |
| | | //} |
| | | } |
| | | |
| | | private void barBtnParter_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new HydroParterListDlg(); |
| | | dlg.SetBindingData(_hydro); |
| | | dlg.Show(); |
| | | //var dlg = new HydroParterListDlg(); |
| | | //dlg.SetBindingData(_hydro); |
| | | //dlg.Show(); |
| | | } |
| | | |
| | | private void barBtnInp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var fileName = Yw.WinFrmUI.FileDialogHelper.SaveInp("导出Inp文件"); |
| | | if (string.IsNullOrEmpty(fileName)) |
| | | { |
| | | return; |
| | | } |
| | | var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | var result = netWork.ToInpString(); |
| | | File.WriteAllText(fileName, result); |
| | | TipFormHelper.ShowSucceed("导出成功"); |
| | | //var fileName = Yw.WinFrmUI.FileDialogHelper.SaveInp("导出Inp文件"); |
| | | //if (string.IsNullOrEmpty(fileName)) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //var netWork = Yw.Hydro.ParseHelper.ToNetwork(_hydro); |
| | | //var result = netWork.ToInpString(); |
| | | //File.WriteAllText(fileName, result); |
| | | //TipFormHelper.ShowSucceed("导出成功"); |
| | | } |
| | | |
| | | private async void barBtnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydro == null) |
| | | { |
| | | return; |
| | | } |
| | | var bll = new Yw.BLL.HydroModelInfo(); |
| | | var result = await bll.Save(_hydro); |
| | | if (result > 0) |
| | | { |
| | | Yw.WinFrmUI.TipFormHelper.ShowSucceed("保存成功"); |
| | | } |
| | | //if (_hydro == null) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //var bll = new Yw.BLL.HydroModelInfo(); |
| | | //var result = await bll.Save(_hydro); |
| | | //if (result > 0) |
| | | //{ |
| | | // Yw.WinFrmUI.TipFormHelper.ShowSucceed("保存成功"); |
| | | //} |
| | | } |
| | | |
| | | |
| | | private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | //项目站选择改变事件 |
| | | private void XhsProjectSimulationSchemeMgrCtrl1_ProjectSiteSelectedChangedEvent(XhsProjectSiteVmo obj) |
| | | private async void XhsProjectSimulationSchemeMgrCtrl1_ProjectSiteSelectedChangedEvent(XhsProjectSiteVmo obj) |
| | | { |
| | | _projectSite = obj; |
| | | |
| | | if (_projectSite != null) |
| | | { |
| | | var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID); |
| | | } |
| | | } |
| | | |
| | | //显示项目信息事件 |
| | |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page = new XhsProjectSimulationInfoPage(); |
| | | await page.SetBindingData(_project, _projectSite); |
| | | // page.SetBindingData(_project.ID); |
| | | //page.PageTitle.Caption = e.Element.Text; |
| | | //page.PageTitle.HeaderSvgImage = e.Element.ImageOptions.SvgImage; |
| | | //page.PageTitle.SvgImageSize = svg_image_size; |
| | | await page.SetBindingData(_project, _projectSite, _hydroInfo); |
| | | CreatePage(page, guid); |
| | | } |
| | | |
| | |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page = new XhsProjectSimulationCorePage(); |
| | | await page.SetBindingData(_project, _projectSite); |
| | | //page.SetBindingData(_project.ID); |
| | | //page.PageTitle.Caption = e.Element.Text; |
| | | //page.PageTitle.HeaderSvgImage = e.Element.ImageOptions.SvgImage; |
| | | //page.PageTitle.SvgImageSize = svg_image_size; |
| | | await page.SetBindingData(_project, _projectSite, _hydroInfo); |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | |
| | | this.hydroParterListCtrl1.HydroClickEvent += HydroParterListCtrl1_HydroClickEvent; |
| | | } |
| | | |
| | | private void HydroParterListCtrl1_HydroClickEvent(Model.HydroParterInfo obj) |
| | | { |
| | | this.HydroClickEvent?.Invoke(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 水力点击事件 |
| | | /// </summary> |
| | |
| | | { |
| | | this.hydroParterListCtrl1.SetBindingData(rhs); |
| | | } |
| | | |
| | | //触发水力点击事件 |
| | | private void HydroParterListCtrl1_HydroClickEvent(Model.HydroParterInfo obj) |
| | | { |
| | | this.HydroClickEvent?.Invoke(obj); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colCoefficient, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroHydrantViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroHydrantViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroHydrantViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroHydrantViewModelBindingSource |
| | | // |
| | | hydroHydrantViewModelBindingSource.DataSource = typeof(HydroHydrantViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colCoefficient, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 8; |
| | | // |
| | | // hydroHydrantViewModelBindingSource |
| | | // |
| | | hydroHydrantViewModelBindingSource.DataSource = typeof(HydroHydrantViewModel); |
| | | // |
| | | // HydroHydrantListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroHydrantListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroHydrantViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroThreelinkViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroThreelinkViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroThreelinkViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroThreelinkViewModelBindingSource |
| | | // |
| | | hydroThreelinkViewModelBindingSource.DataSource = typeof(HydroThreelinkViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroThreelinkViewModelBindingSource |
| | | // |
| | | hydroThreelinkViewModelBindingSource.DataSource = typeof(HydroThreelinkViewModel); |
| | | // |
| | | // HydroThreelinkListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroThreelinkListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroThreelinkViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroFourlinkViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroFourlinkViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroFourlinkViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroFourlinkViewModelBindingSource |
| | | // |
| | | hydroFourlinkViewModelBindingSource.DataSource = typeof(HydroFourlinkViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroFourlinkViewModelBindingSource |
| | | // |
| | | hydroFourlinkViewModelBindingSource.DataSource = typeof(HydroFourlinkViewModel); |
| | | // |
| | | // HydroFourlinkListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroFourlinkListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroFourlinkViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroMeterViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroMeterViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroMeterViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroMeterViewModelBindingSource |
| | | // |
| | | hydroMeterViewModelBindingSource.DataSource = typeof(HydroMeterViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroMeterViewModelBindingSource |
| | | // |
| | | hydroMeterViewModelBindingSource.DataSource = typeof(HydroMeterViewModel); |
| | | // |
| | | // HydroMeterListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroMeterListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroMeterViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroFlowmeterViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroFlowmeterViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroFlowmeterViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroFlowmeterViewModelBindingSource |
| | | // |
| | | hydroFlowmeterViewModelBindingSource.DataSource = typeof(HydroFlowmeterViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroFlowmeterViewModelBindingSource |
| | | // |
| | | hydroFlowmeterViewModelBindingSource.DataSource = typeof(HydroFlowmeterViewModel); |
| | | // |
| | | // HydroFlowmeterListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroFlowmeterListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroFlowmeterViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroPressmeterViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroPressmeterViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroPressmeterViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroPressmeterViewModelBindingSource |
| | | // |
| | | hydroPressmeterViewModelBindingSource.DataSource = typeof(HydroPressmeterViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroPressmeterViewModelBindingSource |
| | | // |
| | | hydroPressmeterViewModelBindingSource.DataSource = typeof(HydroPressmeterViewModel); |
| | | // |
| | | // HydroPressmeterListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroPressmeterListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroPressmeterViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroBluntheadViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroBluntheadViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroBluntheadViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroBluntheadViewModelBindingSource |
| | | // |
| | | hydroBluntheadViewModelBindingSource.DataSource = typeof(HydroBluntheadViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // hydroBluntheadViewModelBindingSource |
| | | // |
| | | hydroBluntheadViewModelBindingSource.DataSource = typeof(HydroBluntheadViewModel); |
| | | // |
| | | // HydroBluntheadListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroBluntheadListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroBluntheadViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colQuality = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPoolElev = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHead = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHeadPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroReservoirViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colPoolElev, colHead, colHeadPattern, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colQuality.Visible = true; |
| | | colQuality.VisibleIndex = 3; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // colPoolElev |
| | | // |
| | | colPoolElev.FieldName = "PoolElev"; |
| | |
| | | colHeadPattern.Visible = true; |
| | | colHeadPattern.VisibleIndex = 6; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | // |
| | | // HydroReservoirListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | this.hydroReservoirViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroReservoirViewModelBindingSource.ResetBindings(false); |
| | | this.hydroReservoirViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | //行点击事件 |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroTankViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colQuality = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPoolElev = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroTankViewModelBindingSource = new BindingSource(components); |
| | | colInitLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaxLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDiameter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinVol = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colVolCurve = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroTankViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroTankViewModelBindingSource |
| | | // |
| | | hydroTankViewModelBindingSource.DataSource = typeof(HydroTankViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colPoolElev, colInitLevel, colMinLevel, colMaxLevel, colDiameter, colMinVol, colVolCurve, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colPoolElev.Name = "colPoolElev"; |
| | | colPoolElev.Visible = true; |
| | | colPoolElev.VisibleIndex = 4; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 11; |
| | | // |
| | | // hydroTankViewModelBindingSource |
| | | // |
| | | hydroTankViewModelBindingSource.DataSource = typeof(HydroTankViewModel); |
| | | // |
| | | // colInitLevel |
| | | // |
| | |
| | | colVolCurve.Visible = true; |
| | | colVolCurve.VisibleIndex = 10; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 11; |
| | | // |
| | | // HydroTankListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroTankListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroTankViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroWaterboxViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colMinVol = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colVolCurve = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroWaterboxViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroWaterboxViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroWaterboxViewModelBindingSource |
| | | // |
| | | hydroWaterboxViewModelBindingSource.DataSource = typeof(HydroWaterboxViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colPoolElev, colInitLevel, colMinLevel, colMaxLevel, colDiameter, colMinVol, colVolCurve, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 11; |
| | | // |
| | | // hydroWaterboxViewModelBindingSource |
| | | // |
| | | hydroWaterboxViewModelBindingSource.DataSource = typeof(HydroWaterboxViewModel); |
| | | // |
| | | // HydroWaterboxListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroWaterboxListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroWaterboxViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.Quality = rhs.Quality; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroPipeViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroPipeViewModelBindingSource = new BindingSource(components); |
| | | colStartCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDiameter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLength = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRoughness = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroPipeViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroPipeViewModelBindingSource |
| | | // |
| | | hydroPipeViewModelBindingSource.DataSource = typeof(HydroPipeViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 2; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // hydroPipeViewModelBindingSource |
| | | // |
| | | hydroPipeViewModelBindingSource.DataSource = typeof(HydroPipeViewModel); |
| | | // |
| | | // colStartCode |
| | | // |
| | |
| | | colLength.Visible = true; |
| | | colLength.VisibleIndex = 7; |
| | | // |
| | | // colRoughness |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 9; |
| | | // |
| | | // colRoughness |
| | | // colDescription |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // HydroPipeListCtrl |
| | | // |
| | |
| | | Name = "HydroPipeListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroPipeViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.StartCode = rhs.StartCode; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colStartCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDiameter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLength = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRoughness = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroExchangerViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 2; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // colStartCode |
| | | // |
| | |
| | | colLength.Visible = true; |
| | | colLength.VisibleIndex = 7; |
| | | // |
| | | // colRoughness |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 9; |
| | | // |
| | | // colRoughness |
| | | // colDescription |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // HydroExchangerListCtrl |
| | | // |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.StartCode = rhs.StartCode; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroTranslationViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colRoughness = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroTranslationViewModelBindingSource = new BindingSource(components); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroTranslationViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroTranslationViewModelBindingSource |
| | | // |
| | | hydroTranslationViewModelBindingSource.DataSource = typeof(HydroTranslationViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // hydroTranslationViewModelBindingSource |
| | | // |
| | | hydroTranslationViewModelBindingSource.DataSource = typeof(HydroTranslationViewModel); |
| | | // |
| | | // HydroTranslationListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroTranslationListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroTranslationViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.StartCode = rhs.StartCode; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroPumpViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colStartCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroPumpViewModelBindingSource = new BindingSource(components); |
| | | colRatedPower = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurveQH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSpeedRatio = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSpeedRatioPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedPower = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPrice = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPricePattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurveQE = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroPumpViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroPumpViewModelBindingSource |
| | | // |
| | | hydroPumpViewModelBindingSource.DataSource = typeof(HydroPumpViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colRatedPower, colCurveQH, colSpeedRatio, colSpeedRatioPattern, colPrice, colPricePattern, colCurveQE, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colLinkStatus.Visible = true; |
| | | colLinkStatus.VisibleIndex = 5; |
| | | // |
| | | // colDescription |
| | | // colRatedPower |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 13; |
| | | // |
| | | // hydroPumpViewModelBindingSource |
| | | // |
| | | hydroPumpViewModelBindingSource.DataSource = typeof(HydroPumpViewModel); |
| | | colRatedPower.FieldName = "RatedPower"; |
| | | colRatedPower.Name = "colRatedPower"; |
| | | colRatedPower.Visible = true; |
| | | colRatedPower.VisibleIndex = 6; |
| | | // |
| | | // colCurveQH |
| | | // |
| | |
| | | colSpeedRatioPattern.Visible = true; |
| | | colSpeedRatioPattern.VisibleIndex = 9; |
| | | // |
| | | // colRatedPower |
| | | // |
| | | colRatedPower.FieldName = "RatedPower"; |
| | | colRatedPower.Name = "colRatedPower"; |
| | | colRatedPower.Visible = true; |
| | | colRatedPower.VisibleIndex = 6; |
| | | // |
| | | // colPrice |
| | | // |
| | | colPrice.FieldName = "Price"; |
| | |
| | | colCurveQE.Visible = true; |
| | | colCurveQE.VisibleIndex = 12; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 13; |
| | | // |
| | | // HydroPumpListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroPumpListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroPumpViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.StartCode = rhs.StartCode; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |
| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroValveViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDiameter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | hydroValveViewModelBindingSource = new BindingSource(components); |
| | | colValveType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colValveSetting = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)hydroValveViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // hydroValveViewModelBindingSource |
| | | // |
| | | hydroValveViewModelBindingSource.DataSource = typeof(HydroValveViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colMinorLoss, colValveType, colValveSetting, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colCode |
| | |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 7; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // hydroValveViewModelBindingSource |
| | | // |
| | | hydroValveViewModelBindingSource.DataSource = typeof(HydroValveViewModel); |
| | | // |
| | | // colValveType |
| | | // |
| | | colValveType.FieldName = "ValveType"; |
| | |
| | | colValveSetting.Visible = true; |
| | | colValveSetting.VisibleIndex = 9; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // HydroValveListCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | |
| | | Name = "HydroValveListCtrl"; |
| | | Size = new Size(818, 590); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)hydroValveViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(30); |
| | | this.gridView1.RegistCustomDrawRowIndicator(40); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); |
| | | this.Code = rhs.Code; |
| | | this.Name = rhs.Name; |
| | | this.DbLocked = rhs.DbLocked; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Description = rhs.Description; |
| | | this.StartCode = rhs.StartCode; |
| | |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 锁定 |
| | | /// </summary> |
| | | [DisplayName("锁定")] |
| | | [Display(Name = "锁定")] |
| | | public bool DbLocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | | /// </summary> |
| | | [DisplayName("标签")] |