Exemple #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="INVTakingInventoryLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class INVTakingInventoryLine</returns>
        public INVTakingInventoryLine SelectOne(INVTakingInventoryLinePrimaryKey pk)
        {
            _iNVTakingInventoryLineWCF = new INVTakingInventoryLine();
            _iNVTakingInventoryLine    = POS.DataLayer.INVTakingInventoryLineBase.SelectOne(new POS.DataLayer.INVTakingInventoryLinePrimaryKey(pk.TakingLineID));

            _iNVTakingInventoryLineWCF.TakingLineID   = _iNVTakingInventoryLine.TakingLineID;
            _iNVTakingInventoryLineWCF.TakingHeaderID = _iNVTakingInventoryLine.TakingHeaderID;
            _iNVTakingInventoryLineWCF.ProductID      = _iNVTakingInventoryLine.ProductID;
            _iNVTakingInventoryLineWCF.ActualQty      = _iNVTakingInventoryLine.ActualQty;
            _iNVTakingInventoryLineWCF.ExpectedQty    = _iNVTakingInventoryLine.ExpectedQty;
            _iNVTakingInventoryLineWCF.CreatedBy      = _iNVTakingInventoryLine.CreatedBy;
            _iNVTakingInventoryLineWCF.CreateDate     = _iNVTakingInventoryLine.CreateDate;
            _iNVTakingInventoryLineWCF.UpdatedBy      = _iNVTakingInventoryLine.UpdatedBy;
            _iNVTakingInventoryLineWCF.UpdateDate     = _iNVTakingInventoryLine.UpdateDate;
            _iNVTakingInventoryLineWCF.IsDeleted      = _iNVTakingInventoryLine.IsDeleted;
            _iNVTakingInventoryLineWCF.DeletedBy      = _iNVTakingInventoryLine.DeletedBy;
            _iNVTakingInventoryLineWCF.DeleteDate     = _iNVTakingInventoryLine.DeleteDate;

            return(_iNVTakingInventoryLineWCF);
        }
Exemple #2
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="INVTakingInventoryLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(INVTakingInventoryLinePrimaryKey pk)
 {
     return(POS.DataLayer.INVTakingInventoryLineBase.Delete(new POS.DataLayer.INVTakingInventoryLinePrimaryKey(pk.TakingLineID)));
 }