예제 #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="INVAdjustStockPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class INVAdjustStock</returns>
        public INVAdjustStock SelectOne(INVAdjustStockPrimaryKey pk)
        {
            _iNVAdjustStockWCF = new INVAdjustStock();
            _iNVAdjustStock    = POS.DataLayer.INVAdjustStockBase.SelectOne(new POS.DataLayer.INVAdjustStockPrimaryKey(pk.AdjustStockID));

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

            return(_iNVAdjustStockWCF);
        }
예제 #2
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="INVAdjustStockPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class INVAdjustStock</returns>
        public INVAdjustStock SelectOne(INVAdjustStockPrimaryKey pk)
        {
            _iNVAdjustStockWCF = new INVAdjustStock();
            _iNVAdjustStock    = POS.DataLayer.INVAdjustStockBase.SelectOne(new POS.DataLayer.INVAdjustStockPrimaryKey(pk.AdjustStockID));

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

            return(_iNVAdjustStockWCF);
        }
예제 #3
0
 private void GetAdjustStockData(int adjustStockID)
 {
     INVAdjustStockPrimaryKey pk = new INVAdjustStockPrimaryKey();
     pk.AdjustStockID = adjustStockID;
     _adjustStock = _adjustStockWrapper.SelectOne(pk);
 }
예제 #4
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="INVAdjustStockPrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(INVAdjustStockPrimaryKey pk)
 {
     return(POS.DataLayer.INVAdjustStockBase.Delete(new POS.DataLayer.INVAdjustStockPrimaryKey(pk.AdjustStockID)));
 }