public IList<ShipTypeMaintainInfo> GetShipTypeList() { IList<ShipTypeMaintainInfo> shipTypeList = new List<ShipTypeMaintainInfo>(); try { IList<ShipType> tmpShipTypeList = modelRepository.GetShipTypeList(); foreach (ShipType temp in tmpShipTypeList) { ShipTypeMaintainInfo shipType = new ShipTypeMaintainInfo(); shipType = convertToMaintainInfoFromObj(temp); shipTypeList.Add(shipType); } } catch (FisException e) { logger.Error(e.mErrmsg); throw e; } catch (Exception e) { logger.Error(e.Message); throw; } return shipTypeList; }
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; }