Пример #1
0
        public static WCFReceived Make(int receiveID, DateTime?receivedDate, int?poId, int?storeStaffId)
        {
            WCFReceived c = new WCFReceived();

            c.receiveID    = receiveID;
            c.receivedDate = receivedDate;
            c.poId         = poId;
            c.storeStaffId = storeStaffId;
            return(c);
        }
Пример #2
0
        ///////////////Receive & ReceiveDetail
        public WCFReceived[] ReceivedList()
        {
            List <WCFReceived> l = new List <WCFReceived>();

            foreach (GoodsReceivedRecord g in Data.ReceivedList())
            {
                WCFReceived w = WCFReceived.Make(g.GoodReceiveID, g.ReceivedDate, g.POID, g.StoreStaffID);
                l.Add(w);
            }
            return(l.ToArray <WCFReceived>());
        }