Example #1
0
        public static WCFReceivedDetail Make(string itemCode, string description, int?receivedQty, string supplierName)
        {
            WCFReceivedDetail c = new WCFReceivedDetail();

            c.itemCode     = itemCode;
            c.receivedQty  = receivedQty;
            c.description  = description;
            c.supplierName = supplierName;
            return(c);
        }
Example #2
0
        public WCFReceivedDetail[] ListReceivedDetail(string receivedID)
        {
            List <WCFReceivedDetail> l = new List <WCFReceivedDetail>();

            foreach (GoodsReceivedRecordDetail g in Data.ReceivedDetailList(Int32.Parse(receivedID)))
            {
                WCFReceivedDetail w = WCFReceivedDetail.Make(g.ItemCode, g.Catalogue.Description, g.ReceivedQuantity, g.Catalogue.Supplier.SupplierName);
                l.Add(w);
            }
            return(l.ToArray <WCFReceivedDetail>());
        }