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); }
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>()); }