| | |
| | | using DevExpress.XtraEditors.Controls; |
| | | using DevExpress.XtraEditors.Repository; |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | |
| | | this.textEditCatalog.EditValue = _EquipmentVmo.CatalogID; |
| | | this.textEditName.Text = _EquipmentVmo.Name; |
| | | this.textEditNo.Text = _EquipmentVmo.NO; |
| | | this.textEditEquipmentCount.Text = _EquipmentVmo.EquipmentCount.ToString(); |
| | | this.textEditEquipmentCount.Text = _EquipmentVmo.PumpTotal.ToString(); |
| | | this.textEditDescription.Text = _EquipmentVmo.Description; |
| | | } |
| | | |
| | |
| | | _EquipmentVmo.NO = textEditNo.Text.Trim(); |
| | | if (int.TryParse(this.textEditEquipmentCount.Text, out int equipmentCount)) |
| | | { |
| | | _EquipmentVmo.UseCount = equipmentCount; |
| | | _EquipmentVmo.PumpUseCount = equipmentCount; |
| | | } |
| | | if (long.TryParse(textEditCatalog.EditValue?.ToString() ?? "", out long catalogID)) |
| | | { |