Exemplo n.º 1
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>());
        }
Exemplo n.º 2
0
        public static WCFDisbursementDetail Make(string disbursementID, string remarks, string itemCode, string quantityRequested, string quantityCollected, string description, string unitOfMeature)
        {
            WCFDisbursementDetail c = new WCFDisbursementDetail();

            c.DisbursementID    = disbursementID;
            c.Remarks           = remarks;
            c.ItemCode          = itemCode;
            c.QuantityRequested = quantityRequested;
            c.QuantityCollected = quantityCollected;
            c.Description       = description;
            c.unitOfMeature     = unitOfMeature;
            return(c);
        }