ningshuxia
2025-03-28 ce9752fd657c6689ea64929eb962146e2730624e
WinFrmUI/PBS.WinFrmUI.Hydro/02-quick-modeling/02-place/info/BuildPlaceInfoCtrl.cs
@@ -7,8 +7,7 @@
            InitializeComponent();
        }
        private PlaceBuildParasInfoVmo _model = null;
        private PlaceBuildParasInfoVmo _model = null;
        public void Set(string info)
        {
@@ -26,8 +25,8 @@
        }
        public bool Verify()
        {
            this.dxErrorProvider1.ClearErrors();
        {
            this.dxErrorProvider1.ClearErrors();
            return true;
        }
@@ -39,8 +38,9 @@
            }
            _model.CompletionTime = txtCompletionTime.Text;
            _model.Developer = txtDeveloper.Text;
            _model.PropertyType = cbPropertyType.SelectedIndex;
            _model.Developer = txtDeveloper.Text;
            if (cbPropertyType.EditValue != null)
                _model.PropertyType = (ePropertyType)cbPropertyType.EditValue;
            if (string.IsNullOrEmpty(this.txtAreaSquare.Text) || !double.TryParse(this.txtAreaSquare.Text, out double areaSquare))
            {
@@ -53,7 +53,7 @@
            if (string.IsNullOrEmpty(this.textGreeningRate.Text) || !double.TryParse(this.textGreeningRate.Text, out double greeningRate))
            {
                _model.GreeningRate =  null;
                _model.GreeningRate = null;
            }
            else
            {
@@ -62,13 +62,12 @@
            if (string.IsNullOrEmpty(this.txtPlotRatio.Text) || !double.TryParse(this.txtPlotRatio.Text, out double plotRatio))
            {
                _model.PlotRatio =  null;
                _model.PlotRatio = null;
            }
            else
            {
                _model.PlotRatio = plotRatio;
            }
            if (string.IsNullOrEmpty(this.txtProperTyYears.Text) || !int.TryParse(this.txtProperTyYears.Text, out int properTyYears))
            {
@@ -90,9 +89,5 @@
            return _model.ToJson();
        }
    }
}