Esempio n. 1
0
        public static WCFAdjustmentVoucherItem Make(int adjVItemID, int adjVID, int qty, string itemID, string record)
        {
            WCFAdjustmentVoucherItem adjItem = new WCFAdjustmentVoucherItem();

            adjItem.adjVItemID = adjVItemID;
            adjItem.adjVID     = adjVID;
            adjItem.qty        = qty;
            adjItem.itemID     = itemID;
            adjItem.record     = record;
            return(adjItem);
        }
        public List <WCFAdjustmentVoucherItem> findAdjItemListByAdjID(string adjID)
        {
            List <WCFAdjustmentVoucherItem> targetAdjList = new List <WCFAdjustmentVoucherItem>();
            List <AdjustmentVoucherItem>    adjList       = adjItemDAO.getAdjustmentVoucherItemListByADJVID(Convert.ToInt32(adjID));

            foreach (AdjustmentVoucherItem ai in adjList)
            {
                WCFAdjustmentVoucherItem wcfAi = WCFAdjustmentVoucherItem.Make(ai.adjVItemID, ai.adjVID, ai.quantity, ai.itemID, ai.record);
                targetAdjList.Add(wcfAi);
            }
            return(targetAdjList);
        }
 public void addAdjVoucherItem(WCFAdjustmentVoucherItem wcfAdjItem)
 {
     adjItemDAO.addAdjustmentVoucherItem(wcfAdjItem.AdjItemVID, wcfAdjItem.ItemID, wcfAdjItem.Qty, wcfAdjItem.Record);
 }