예제 #1
0
    public List <WCFDisbursementDetail> getDisbursementDetail(string id)
    {
        List <WCFDisbursementDetail>       wcfDisbDetailList = new List <WCFDisbursementDetail>();
        List <DisbursementDetailListItems> disbDetailList    = disbCon.GvDisbursementDetailPopulate(Convert.ToInt32(id));

        foreach (DisbursementDetailListItems dI in disbDetailList)
        {
            wcfDisbDetailList.Add(WCFDisbursementDetail.Make(dI.ItemCode, dI.ItemCode, dI.Remarks, dI.ReqQty, dI.ActualQty, dI.ActualQty));
        }
        return(wcfDisbDetailList);
    }
예제 #2
0
    /////////////Disbursement
    public WCFDisbursementDetail[] ListDisbursementDetail(string disbursementID)
    {
        List <WCFDisbursementDetail> l = new List <WCFDisbursementDetail>();

        foreach (DisbursementDetail c in Data.GetDisbursementDetails(Convert.ToInt32(disbursementID)))
        {
            WCFDisbursementDetail w = WCFDisbursementDetail.Make(disbursementID, c.Remarks, c.ItemCode, c.QuantityRequested.ToString(), c.QuantityCollected.ToString(), c.Catalogue.Description, c.Catalogue.UnitOfMeasure);
            l.Add(w);
        }

        return(l.ToArray <WCFDisbursementDetail>());
    }