Exemple #1
0
 private static DataLayer.INVAdjustStockCollection GetAdjustStockFromBLLayer(INVAdjustStockCollection adjustStockCollection)
 {
     POS.DataLayer.INVAdjustStockCollection _adjustStockCollection = new DataLayer.INVAdjustStockCollection();
     foreach (INVAdjustStock adjustStock in adjustStockCollection)
     {
         POS.DataLayer.INVAdjustStock _adjustStock = new POS.DataLayer.INVAdjustStock();
         _adjustStock.ProductID      = adjustStock.ProductID;
         _adjustStock.AdjustReasonID = adjustStock.AdjustReasonID;
         _adjustStock.AdjustStockID  = adjustStock.AdjustStockID;
         _adjustStock.BatchID        = adjustStock.BatchID;
         _adjustStock.InventoryID    = adjustStock.InventoryID;
         _adjustStock.StockTypeID    = adjustStock.StockTypeID;
         _adjustStock.Qty            = adjustStock.Qty;
         _adjustStock.UpdateDate     = adjustStock.UpdateDate;
         _adjustStock.UpdatedBy      = adjustStock.UpdatedBy;
         _adjustStock.CredateDate    = adjustStock.CredateDate;
         _adjustStock.CreatedBy      = adjustStock.CreatedBy;
         _adjustStock.ExpiryDate     = adjustStock.ExpiryDate;
         _adjustStock.BatchNumber    = adjustStock.BatchNumber;
         _adjustStockCollection.Add(_adjustStock);
     }
     return(_adjustStockCollection);
 }
        private static DataLayer.INVAdjustStockCollection GetAdjustStockFromBLLayer(INVAdjustStockCollection adjustStockCollection)
        {

            POS.DataLayer.INVAdjustStockCollection _adjustStockCollection = new DataLayer.INVAdjustStockCollection();
            foreach (INVAdjustStock adjustStock in adjustStockCollection)
            {
                POS.DataLayer.INVAdjustStock _adjustStock = new POS.DataLayer.INVAdjustStock();
                _adjustStock.ProductID = adjustStock.ProductID;
                _adjustStock.AdjustReasonID = adjustStock.AdjustReasonID;
                _adjustStock.AdjustStockID = adjustStock.AdjustStockID;
                _adjustStock.BatchID = adjustStock.BatchID;
                _adjustStock.InventoryID = adjustStock.InventoryID;
                _adjustStock.StockTypeID = adjustStock.StockTypeID;
                _adjustStock.Qty = adjustStock.Qty;
                _adjustStock.UpdateDate = adjustStock.UpdateDate;
                _adjustStock.UpdatedBy = adjustStock.UpdatedBy;
                _adjustStock.CredateDate = adjustStock.CredateDate;
                _adjustStock.CreatedBy = adjustStock.CreatedBy;
                _adjustStock.ExpiryDate = adjustStock.ExpiryDate;
                _adjustStock.BatchNumber = adjustStock.BatchNumber;
                _adjustStockCollection.Add(_adjustStock);
            }
            return _adjustStockCollection;
        }