コード例 #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
ファイル: Service.svc.cs プロジェクト: cheesiang89/Team10AD
        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>());
        }