Ejemplo n.º 1
0
 private void BuildStatus(TB_EquipmentStatusName obj)
 {
     obj.Code           = txtCode.Value.Trim();
     obj.Name           = txtName.Value.Trim();
     obj.IsItInventory  = cbIsInventory.Checked;
     obj.IsItOutstorage = cbIsOutstorage.Checked;
     obj.IsItOverhaul   = cbIsOverhaul.Checked;
     obj.IsItWaiting    = cbIsWaiting.Checked;
     obj.IsItRental     = cbIsRental.Checked;
     obj.IsItTesting    = cbIsTesting.Checked;
     obj.IsItVehicle    = cbIsNormal.Checked;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新设备状态信息
 /// </summary>
 /// <param name="obj"></param>
 protected void Update(TB_EquipmentStatusName obj)
 {
     StatusInstance.Update(f => f.id == obj.id, act => {
         act.Code           = obj.Code;
         act.Name           = obj.Name;
         act.IsItInventory  = obj.IsItInventory;
         act.IsItOutstorage = obj.IsItOutstorage;
         act.IsItOverhaul   = obj.IsItOverhaul;
         act.IsItWaiting    = obj.IsItWaiting;
         act.IsItRental     = obj.IsItRental;
         act.IsItTesting    = obj.IsItTesting;
         act.IsItVehicle    = obj.IsItVehicle;
     });
 }