public ShipmentVM() { Shipment = new ShipmentPO(); ShipmentList = new List <ShipmentPO>(); LocationList = new List <LocationPO>(); ProducerList = new List <ProducerPO>(); }
public static ShipmentPO MapDOtoPO(IShipmentInfoDO iFrom) { ShipmentPO newshipment = new ShipmentPO(); newshipment.ShipmentID = iFrom.ShipmentID; newshipment.LocationID = iFrom.LocationID; newshipment.Product = iFrom.Product; newshipment.ProducerID = iFrom.ProducerID; newshipment.QuantityInBu = iFrom.QuantityInBu; newshipment.PricePerBushel = iFrom.PricePerBushel; return(newshipment); }
public static List <ShipmentPO> MapDOtoPO(List <IShipmentInfoDO> iInfo) { List <ShipmentPO> vMapInfo = new List <ShipmentPO>(); foreach (IShipmentInfoDO info in iInfo) { ShipmentPO map = MapDOtoPO(info); vMapInfo.Add(map); } return(vMapInfo); }