Ejemplo n.º 1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="INVTransferLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class INVTransferLine</returns>
        public INVTransferLine SelectOne(INVTransferLinePrimaryKey pk)
        {
            _iNVTransferLineWCF = new INVTransferLine();
            _iNVTransferLine    = POS.DataLayer.INVTransferLineBase.SelectOne(new POS.DataLayer.INVTransferLinePrimaryKey(pk.TransferLineID));

            _iNVTransferLineWCF.TransferLineID   = _iNVTransferLine.TransferLineID;
            _iNVTransferLineWCF.TransferHeaderID = _iNVTransferLine.TransferHeaderID;
            _iNVTransferLineWCF.ProductID        = _iNVTransferLine.ProductID;
            _iNVTransferLineWCF.Qty         = _iNVTransferLine.Qty;
            _iNVTransferLineWCF.CreatedBy   = _iNVTransferLine.CreatedBy;
            _iNVTransferLineWCF.CreateDate  = _iNVTransferLine.CreateDate;
            _iNVTransferLineWCF.UpdatedBy   = _iNVTransferLine.UpdatedBy;
            _iNVTransferLineWCF.UpdateDate  = _iNVTransferLine.UpdateDate;
            _iNVTransferLineWCF.IsDeleted   = _iNVTransferLine.IsDeleted;
            _iNVTransferLineWCF.DeletedBy   = _iNVTransferLine.DeletedBy;
            _iNVTransferLineWCF.DeletedDate = _iNVTransferLine.DeletedDate;

            return(_iNVTransferLineWCF);
        }
Ejemplo n.º 2
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="INVTransferLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(INVTransferLinePrimaryKey pk)
 {
     return(POS.DataLayer.INVTransferLineBase.Delete(new POS.DataLayer.INVTransferLinePrimaryKey(pk.TransferLineID)));
 }