| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | |
| | | private PlaceBuildParasInfoVmo _model = null; |
| | | private PlaceBuildParasInfoVmo _model = null; |
| | | |
| | | public void Set(string info) |
| | | { |
| | |
| | | } |
| | | |
| | | public bool Verify() |
| | | { |
| | | this.dxErrorProvider1.ClearErrors(); |
| | | { |
| | | this.dxErrorProvider1.ClearErrors(); |
| | | return true; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | _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)) |
| | | { |
| | |
| | | |
| | | if (string.IsNullOrEmpty(this.textGreeningRate.Text) || !double.TryParse(this.textGreeningRate.Text, out double greeningRate)) |
| | | { |
| | | _model.GreeningRate = null; |
| | | _model.GreeningRate = null; |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | 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)) |
| | | { |
| | |
| | | |
| | | return _model.ToJson(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |