| | |
| | | this.textEditWaterModel.Properties.AddEnum(typeof(HStation.PBS.eSupplyMode)); |
| | | this.comboBoxWaterSupply.Properties.AddEnum(typeof(HStation.PBS.eWaterSupply)); |
| | | var allPackages = await new HStation.BLL.AssetsPackageMain().GetAll(); |
| | | var list = await new Yw.BLL.Division().GetAll(); |
| | | this.treeListLookUpEdit1TreeList.DataSource = list; |
| | | } |
| | | |
| | | public void SetData(Vmo.FacilityVmo model) |
| | |
| | | this.comboBoxWaterSupply.EditValue = model.WaterSupply; |
| | | this.txtConstantP.EditValue = model.ConstantPressure; |
| | | this.textEditWaterModel.EditValue = model.SupplyMode; |
| | | this.txtEditRegion.EditValue = model.PlaceID; |
| | | } |
| | | |
| | | //获取文本信息 |
| | |
| | | _facilityVmo.ConstantPressure = double.Parse(txtConstantP.Text); |
| | | _facilityVmo.MaxWaterDemand = Convert.ToDouble(txtMaxWaterDemand.EditValue); |
| | | _facilityVmo.TerminalPressure = Convert.ToDouble(txtWaterPressure.EditValue); |
| | | if (this.txtEditRegion.EditValue != null) |
| | | { |
| | | _facilityVmo.PlaceID = Convert.ToInt64(this.txtEditRegion.EditValue); |
| | | } |
| | | if (comboBoxWaterSupply.EditValue != null) |
| | | { |
| | | _facilityVmo.WaterSupply = (HStation.PBS.eWaterSupply)comboBoxWaterSupply.EditValue; |