Пример #1
0
        ///<summary>
        /// This method will update one new row into the database using the property Information
        /// </summary>
        ///
        /// <param name="iNVAdjustStock" type="INVAdjustStock">This INVAdjustStock  will be updated in the database.</param>
        ///
        /// <returns>True if succeeded</returns>
        public bool Update(INVAdjustStock iNVAdjustStock)
        {
            _iNVAdjustStock = POS.DataLayer.INVAdjustStock.SelectOne(new POS.DataLayer.INVAdjustStockPrimaryKey(iNVAdjustStock.AdjustStockID));

            _iNVAdjustStock.ProductID      = iNVAdjustStock.ProductID;
            _iNVAdjustStock.BatchID        = iNVAdjustStock.BatchID;
            _iNVAdjustStock.Qty            = iNVAdjustStock.Qty;
            _iNVAdjustStock.AdjustReasonID = iNVAdjustStock.AdjustReasonID;
            _iNVAdjustStock.CreatedBy      = iNVAdjustStock.CreatedBy;
            _iNVAdjustStock.CredateDate    = iNVAdjustStock.CredateDate;
            _iNVAdjustStock.UpdatedBy      = iNVAdjustStock.UpdatedBy;
            _iNVAdjustStock.UpdateDate     = iNVAdjustStock.UpdateDate;

            return(_iNVAdjustStock.Update());
        }
Пример #2
0
        ///<summary>
        /// This method will update one new row into the database using the property Information
        /// </summary>
        ///
        /// <param name="iNVAdjustStock" type="INVAdjustStock">This INVAdjustStock  will be updated in the database.</param>
        ///
        /// <returns>True if succeeded</returns>
        public bool Update(INVAdjustStock iNVAdjustStock)
        {
            _iNVAdjustStock = POS.DataLayer.INVAdjustStock.SelectOne(new POS.DataLayer.INVAdjustStockPrimaryKey(iNVAdjustStock.AdjustStockID));

            _iNVAdjustStock.ProductID      = iNVAdjustStock.ProductID;
            _iNVAdjustStock.BatchID        = iNVAdjustStock.BatchID;
            _iNVAdjustStock.Qty            = iNVAdjustStock.Qty;
            _iNVAdjustStock.AdjustReasonID = iNVAdjustStock.AdjustReasonID;
            _iNVAdjustStock.CreatedBy      = iNVAdjustStock.CreatedBy;
            _iNVAdjustStock.CredateDate    = iNVAdjustStock.CredateDate;
            _iNVAdjustStock.UpdatedBy      = iNVAdjustStock.UpdatedBy;
            _iNVAdjustStock.UpdateDate     = iNVAdjustStock.UpdateDate;
            _iNVAdjustStock.StockTypeID    = iNVAdjustStock.StockTypeID;
            _iNVAdjustStock.OldStockTypeID = iNVAdjustStock.OldStockTypeID;
            _iNVAdjustStock.InventoryID    = iNVAdjustStock.InventoryID;
            _iNVAdjustStock.ExpiryDate     = iNVAdjustStock.ExpiryDate;
            _iNVAdjustStock.BatchNumber    = iNVAdjustStock.BatchNumber;

            return(_iNVAdjustStock.Update());
        }
Пример #3
0
			///<summary>
		/// This method will update one new row into the database using the property Information
		/// </summary>
		///
		/// <param name="iNVAdjustStock" type="INVAdjustStock">This INVAdjustStock  will be updated in the database.</param>
		///
		/// <returns>True if succeeded</returns>
		public bool Update(INVAdjustStock iNVAdjustStock)
		{
			_iNVAdjustStock=POS.DataLayer.INVAdjustStock.SelectOne(new POS.DataLayer.INVAdjustStockPrimaryKey(iNVAdjustStock.AdjustStockID));
			
			_iNVAdjustStock.ProductID=iNVAdjustStock.ProductID;
			_iNVAdjustStock.BatchID=iNVAdjustStock.BatchID;
			_iNVAdjustStock.Qty=iNVAdjustStock.Qty;
			_iNVAdjustStock.AdjustReasonID=iNVAdjustStock.AdjustReasonID;
			_iNVAdjustStock.CreatedBy=iNVAdjustStock.CreatedBy;
			_iNVAdjustStock.CredateDate=iNVAdjustStock.CredateDate;
			_iNVAdjustStock.UpdatedBy=iNVAdjustStock.UpdatedBy;
			_iNVAdjustStock.UpdateDate=iNVAdjustStock.UpdateDate;
			_iNVAdjustStock.StockTypeID=iNVAdjustStock.StockTypeID;
			_iNVAdjustStock.OldStockTypeID=iNVAdjustStock.OldStockTypeID;
			_iNVAdjustStock.InventoryID=iNVAdjustStock.InventoryID;
			_iNVAdjustStock.ExpiryDate=iNVAdjustStock.ExpiryDate;
			_iNVAdjustStock.BatchNumber=iNVAdjustStock.BatchNumber;
			
			return _iNVAdjustStock.Update();
		}