Exemplo n.º 1
0
 //更新ShipType
 public void UpdateShipType(ShipTypeMaintain shipType)
 {
     ShipType fisObject = new ShipType();
     fisObject.shipType = shipType.shipType;
     fisObject.Description = shipType.Description;
     fisObject.Editor = shipType.Editor;
     fisObject.Udt = DateTime.Now;
     modelRepository.UpdateShipType(fisObject);
 }
Exemplo n.º 2
0
 //更新ShipType
 public void UpdateShipType(ShipTypeMaintain shipType, string oldShipType)
 {
     ShipType fisObject = new ShipType();
     fisObject.shipType = shipType.shipType;
     fisObject.Description = shipType.Description;
     fisObject.Editor = shipType.Editor;
     fisObject.Cdt = DateTime.Now;
     fisObject.Udt = DateTime.Now; 
     UnitOfWork uow = new UnitOfWork();
     modelRepository.DeleteShipTypeByKeyDefered(uow, oldShipType);
     modelRepository.InsertShipTypeDefered(uow, fisObject);
     uow.Commit();
 }
Exemplo n.º 3
0
        private ShipTypeMaintainInfo convertToMaintainInfoFromObj(ShipType temp)
        {
            ShipTypeMaintainInfo shipType = new ShipTypeMaintainInfo();

            shipType.ShipType = temp.shipType;
            shipType.Editor = temp.Editor;
            shipType.Cdt = temp.Cdt;
            shipType.Udt = temp.Udt;
            shipType.Description = temp.Description;

            return shipType;
        }