Exemplo n.º 1
0
 public ShipmentVM()
 {
     Shipment     = new ShipmentPO();
     ShipmentList = new List <ShipmentPO>();
     LocationList = new List <LocationPO>();
     ProducerList = new List <ProducerPO>();
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }