Example #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="INVTakingInventoryPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class INVTakingInventory</returns>
        public INVTakingInventory SelectOne(INVTakingInventoryPrimaryKey pk)
        {
            _iNVTakingInventoryWCF = new INVTakingInventory();
            _iNVTakingInventory    = POS.DataLayer.INVTakingInventoryBase.SelectOne(new POS.DataLayer.INVTakingInventoryPrimaryKey(pk.TakingHeaderID));

            _iNVTakingInventoryWCF.TakingHeaderID = _iNVTakingInventory.TakingHeaderID;
            _iNVTakingInventoryWCF.TakingDate     = _iNVTakingInventory.TakingDate;
            _iNVTakingInventoryWCF.TakingName     = _iNVTakingInventory.TakingName;
            _iNVTakingInventoryWCF.CreatedBy      = _iNVTakingInventory.CreatedBy;
            _iNVTakingInventoryWCF.CreatedDate    = _iNVTakingInventory.CreatedDate;
            _iNVTakingInventoryWCF.UpdatedBy      = _iNVTakingInventory.UpdatedBy;
            _iNVTakingInventoryWCF.UpdateDate     = _iNVTakingInventory.UpdateDate;
            _iNVTakingInventoryWCF.IsDeleted      = _iNVTakingInventory.IsDeleted;
            _iNVTakingInventoryWCF.DeletedBy      = _iNVTakingInventory.DeletedBy;
            _iNVTakingInventoryWCF.DeletedDate    = _iNVTakingInventory.DeletedDate;
            _iNVTakingInventoryWCF.Notes          = _iNVTakingInventory.Notes;

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