| | |
| | | this.txtHouseholds.EditValue = _vm.Facility.Households; |
| | | this.txtFloorHeight.EditValue = _vm.Facility.FloorHeight; |
| | | this.txtMaxWaterDemand.EditValue = _vm.Facility.MaxWaterDemand; |
| | | this.txtMaxHeight.EditValue = _vm.Facility.MaxHeight; |
| | | this.txtTerminalPressure.EditValue = _vm.Facility.TerminalPressure; |
| | | this.comboBoxWaterSupply.EditValue = _vm.Facility.WaterSupply; |
| | | this.txtConstantPressure.EditValue = _vm.Facility.ConstantPressure; |
| | |
| | | this.dxErrorProvider1.SetError(this.txtConstantPressure, "必填项"); |
| | | isExist = false; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(this.txtMaxHeight.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtMaxHeight, "必填项"); |
| | | isExist = false; |
| | | } |
| | | if (this.textEditSupplyMode.EditValue == null) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.textEditSupplyMode, "必填项"); |
| | |
| | | this.dxErrorProvider1.SetError(this.txtTerminalPressure, "必填项"); |
| | | isExist = false; |
| | | } |
| | | if ((this.comboBoxPackages.EditValue is long id) && id < 1) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.comboBoxPackages, "必选项"); |
| | | isExist = false; |
| | | } |
| | | return isExist; |
| | | }); |
| | | } |