/* get disbursement list*/ public List <WCFDisbursementBL> getDisbursementList(string deptId) { List <DisbursementListBO> l = sbl.detDisbursementList(deptId); List <WCFDisbursementBL> m = new List <WCFDisbursementBL>(); foreach (DisbursementListBO dlbo in l) { m.Add(WCFDisbursementBL.Make4(dlbo.ItemName, dlbo.ItemUOM, dlbo.OrderQuantity, dlbo.OutstandingQuantity, dlbo.DisbursementQuantity)); } return(m); }
public static WCFDisbursementBL Make4(string itemName, string itemUOM, int?orderQuantity, int?outstandingQuantity, int?disbursementQuantity) { WCFDisbursementBL e = new WCFDisbursementBL(); e.itemName = itemName; e.itemUOM = itemUOM; e.orderQuantity = orderQuantity; e.outstandingQuantity = outstandingQuantity; e.disbursementQuantity = disbursementQuantity; return(e); }