| | |
| | | this.dxErrorProvider1.SetError(this.comboBoxCompletePlant, "必填项"); |
| | | isExist = false; |
| | | }*/ |
| | | if (this.textEditWaterModel.EditValue == null) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.textEditWaterModel, "必填项"); |
| | | isExist = false; |
| | | } |
| | | if (this.comboBoxWaterSupply.Text == "请选择") |
| | | { |
| | | this.dxErrorProvider1.SetError(this.comboBoxWaterSupply, "必填项"); |
| | |
| | | return null; |
| | | _facilityVmo.Floor = int.Parse(txtFloor.Text); |
| | | _facilityVmo.Name = txtName.Text; |
| | | _facilityVmo.SupplyMode = HStation.PBS.eSupplyMode.WaterTank; |
| | | if (this.textEditWaterModel.EditValue != null) |
| | | { |
| | | _facilityVmo.SupplyMode = (HStation.PBS.eSupplyMode)this.textEditWaterModel.EditValue; |
| | | } |
| | | _facilityVmo.UseStatus = Yw.Vmo.eUseStatus.Enable; |
| | | _facilityVmo.FloorHeight = double.Parse(txtFloorHeight.Text); |
| | | _facilityVmo.Households = int.Parse(txtFloorHouseHolds.Text); |