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="SALSalesReturnLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		///
		/// <returns>object of class SALSalesReturnLine</returns>
		public SALSalesReturnLine SelectOne(SALSalesReturnLinePrimaryKey pk)
		{
			_sALSalesReturnLineWCF = new SALSalesReturnLine();
			_sALSalesReturnLine = POS.DataLayer.SALSalesReturnLineBase.SelectOne(new POS.DataLayer.SALSalesReturnLinePrimaryKey(pk.SalesReturnLineID));
			
				_sALSalesReturnLineWCF.SalesReturnLineID = _sALSalesReturnLine.SalesReturnLineID;
				_sALSalesReturnLineWCF.Qty = _sALSalesReturnLine.Qty;
				_sALSalesReturnLineWCF.Reason = _sALSalesReturnLine.Reason;
				_sALSalesReturnLineWCF.OriginalSalesLineID = _sALSalesReturnLine.OriginalSalesLineID;
				_sALSalesReturnLineWCF.BatchID = _sALSalesReturnLine.BatchID;
				_sALSalesReturnLineWCF.BatchNumber = _sALSalesReturnLine.BatchNumber;
				_sALSalesReturnLineWCF.ExpiryDate = _sALSalesReturnLine.ExpiryDate;
				_sALSalesReturnLineWCF.SalesReturnHeaderID = _sALSalesReturnLine.SalesReturnHeaderID;
				
			return _sALSalesReturnLineWCF;
		}
Ejemplo n.º 2
0
		///<summary>
		///This method will Delete the object from the database
		///</summary>
		///<param name="pk" type="SALSalesReturnLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		/// <returns>True if succeeded</returns>
		public bool Delete(SALSalesReturnLinePrimaryKey pk)
		{
			return POS.DataLayer.SALSalesReturnLineBase.Delete(new POS.DataLayer.SALSalesReturnLinePrimaryKey(pk.SalesReturnLineID));
		}