| | |
| | | //初始化 |
| | | private void AddValveSeriesDlg_Load(object sender, EventArgs e) |
| | | { |
| | | TextEditType.Properties.AddEnum(typeof(HStation.Service.Assets.eValveSeriesType)); |
| | | TextEditType.Properties.AddEnum(typeof(HStation.Assets.eValveSeriesType)); |
| | | } |
| | | |
| | | //数据验证 |
| | |
| | | return; |
| | | var model = new Vmo.ValveSeriesVmo(); |
| | | model.Name = NameTextEdit.Text; |
| | | if (Enum.TryParse(Convert.ToString(TextEditType.EditValue), true, out HStation.Service.Assets.eValveSeriesType valvetype)) |
| | | if (Enum.TryParse(Convert.ToString(TextEditType.EditValue), true, out HStation.Assets.eValveSeriesType valvetype)) |
| | | { |
| | | model.Type = valvetype; |
| | | } |