duheng
2025-03-31 be65218617cab71a90a9a05cf488fbb6e206b5c5
WinFrmUI/PBS.WinFrmUI.Hydro/02-quick-modeling/03-facility/QuickModelingFacilityWizardPage.cs
@@ -48,6 +48,7 @@
            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;
@@ -97,7 +98,11 @@
                    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, "必填项");
@@ -118,6 +123,11 @@
                    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;
            });
        }