| | |
| | | var flags = await BLLFactory<Yw.BLL.SysFlag>.Instance.GetBySysType(HStation.Assets.DataType.ValveMain); |
| | | this.setFlagsEditCtrl1.SetBindingData(flags?.Select(x => x.Name).ToList(), null); |
| | | this.TextEditType.Properties.AddEnum(typeof(HStation.Assets.eValveType)); |
| | | this.TextEditType.SelectedIndex = 0; |
| | | if (_last != null) |
| | | { |
| | | this.txtName.EditValue = _last.Name; |
| | |
| | | if (string.IsNullOrEmpty(this.txtName.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtName, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtMaterial.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtMaterial, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtCoefficient.Text.Trim())) |