duheng
2025-03-28 e411302bca8857e102443a5250c82b9580ef07a3
WinFrmUI/PBS.WinFrmUI/02-facility/00-core/FacilitiesCtrl.cs
@@ -82,6 +82,7 @@
            var list = await new PBS.BLL.Place().GetAll();
            this.treeListLookUpEdit1TreeList.DataSource = list;
            this.imageComboBoxConnectionType.Properties.AddEnum(typeof(PBS.eConnectionType));
            this.imageComboBoxConnectionType.SelectedIndex = 1;
        }
        public void SetData(Vmo.FacilityVmo model)
@@ -100,6 +101,7 @@
            this.comboBoxPackages.EditValue = model.PackageID;
            this.imageComboBoxConnectionType.EditValue = model.ConnectionType;
            this.textEditConnectionAddress.EditValue = model.ConnectionAddress;
            this.textEditMaxHeight.EditValue = model.MaxHeight;
        }
        //获取文本信息
@@ -136,6 +138,11 @@
                _facilityVmo.ConnectionType = (PBS.eConnectionType)this.imageComboBoxConnectionType.EditValue;
            }
            _facilityVmo.ConnectionAddress = this.textEditConnectionAddress.Text;
            if (this.textEditMaxHeight.EditValue != null)
            {
                double.TryParse(this.textEditMaxHeight.Text, out double maxHeight);
                _facilityVmo.MaxHeight = maxHeight;
            }
            return _facilityVmo;
        }
    }