예제 #1
0
        public static WCFPendingReceiveDetail Make(string itemCode, int poID, int?quantity, double?unitPrice)
        {
            WCFPendingReceiveDetail c = new WCFPendingReceiveDetail();

            c.itemCode  = itemCode;
            c.poID      = poID;
            c.quantity  = quantity;
            c.unitPrice = unitPrice;
            return(c);
        }
예제 #2
0
        public WCFPendingReceiveDetail[] PendingReceiveDetailList(string poID)
        {
            List <WCFPendingReceiveDetail> l = new List <WCFPendingReceiveDetail>();

            foreach (PurchaseOrderDetail g in Data.PendingReceiveDetail(Int32.Parse(poID)))
            {
                WCFPendingReceiveDetail w = WCFPendingReceiveDetail.Make(g.ItemCode, g.POID, g.Quantity, g.UnitPrice);
                l.Add(w);
            }
            return(l.ToArray <WCFPendingReceiveDetail>());
        }