コード例 #1
0
        /// <summary>
        /// This method will get row(s) from the database using the value of the field specified
        /// along with the details of the child table.
        /// </summary>
        ///
        /// <param name="pk" type="SALSalesLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class SALSalesLineBatchCollection</returns>
        public SALSalesLineBatchCollection SelectAllByForeignKeySalesLineID(SALSalesLinePrimaryKey pk)
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllByForeignKeySalesLineID(new POS.DataLayer.SALSalesLinePrimaryKey(pk.SalesLineID)))
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();
                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #2
0
        /// <summary>
        /// This method will get row(s) from the database using the value of the field specified
        /// along with the details of the child table.
        /// </summary>
        ///
        /// <param name="pk" type="SALSalesLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
        /// <param name="pageSize" type="int">Number of records returned.</param>
        /// <param name="skipPages" type="int">The number of missing pages.</param>
        /// <param name="orderByStatement" type="string">The field value to number.</param>
        ///
        /// <returns>object of class SALSalesLineBatchCollection</returns>
        public SALSalesLineBatchCollection SelectAllByForeignKeySalesLineIDPaged(SALSalesLinePrimaryKey pk, int pageSize, int skipPages, string orderByStatement)
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllByForeignKeySalesLineIDPaged(new POS.DataLayer.SALSalesLinePrimaryKey(pk.SalesLineID), pageSize, skipPages, orderByStatement))
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();
                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #3
0
        /// <summary>
        /// This method will return a list of objects representing all records in the table.
        /// </summary>
        ///
        /// <returns>list of objects of class SALSalesLineBatch in the form of object of SALSalesLineBatchCollection </returns>
        public SALSalesLineBatchCollection SelectAll()
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAll())
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();

                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #4
0
        /// <summary>
        /// This method will return a list of objects representing the specified number of entries from the specified record number in the table
        /// using the value of the field specified
        /// </summary>
        ///
        /// <param name="field" type="string">Field of the class SALSalesLineBatch</param>
        /// <param name="fieldValue" type="object">Value for the field specified.</param>
        /// <param name="fieldValue2" type="object">Value for the field specified.</param>
        /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param>
        /// <param name="orderByStatement" type="string">The field value to number.</param>
        /// <param name="pageSize" type="int">Number of records returned.</param>
        /// <param name="skipPages" type="int">The number of missing pages.</param>
        ///
        /// <returns>List of object of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection</returns>
        public SALSalesLineBatchCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement)
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement))
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();

                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #5
0
        /// <summary>
        /// This method will return a list of objects representing the specified number of entries from the specified record number in the table.
        /// </summary>
        ///
        /// <param name="pageSize" type="int">Number of records returned.</param>
        /// <param name="skipPages" type="int">The number of missing pages.</param>
        /// <param name="orderByStatement" type="string">The field value to number.</param>
        ///
        /// <returns>list of objects of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection </returns>
        public SALSalesLineBatchCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement)
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllPaged(pageSize, skipPages, orderByStatement))
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();

                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #6
0
		/// <summary>
		/// This method will return a list of objects representing all records in the table.
		/// </summary>
		///
		/// <returns>list of objects of class SALSalesLineBatch in the form of object of SALSalesLineBatchCollection </returns>
		public SALSalesLineBatchCollection SelectAll()
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAll())
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}
コード例 #7
0
        /// <summary>
        /// This method will get row(s) from the database using the value of the field specified
        /// </summary>
        ///
        /// <param name="field" type="string">Field of the class SALSalesLineBatch</param>
        /// <param name="fieldValue" type="object">Value for the field specified.</param>
        /// <param name="fieldValue2" type="object">Value for the field specified.</param>
        /// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param>
        ///
        /// <returns>List of object of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection</returns>
        public SALSalesLineBatchCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation)
        {
            SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();

            foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectByField(field, fieldValue, fieldValue2, typeOperation))
            {
                _sALSalesLineBatchWCF = new SALSalesLineBatch();

                _sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
                _sALSalesLineBatchWCF.SalesLineID      = _sALSalesLineBatch.SalesLineID;
                _sALSalesLineBatchWCF.BatchID          = _sALSalesLineBatch.BatchID;

                sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
            }
            return(sALSalesLineBatchCollection);
        }
コード例 #8
0
		/// <summary>
		/// Populates the fields for multiple objects from the columns found in an open reader.
		/// </summary>
		///
		/// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param>
		///
		/// <returns>Object of SALSalesLineBatchCollection</returns>
		///
		/// <remarks>
		///
		/// <RevisionHistory>
		/// Author				Date			Description
		/// DLGenerator			3/7/2015 2:37:04 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static SALSalesLineBatchCollection PopulateObjectsFromReaderWithCheckingReader(IDataReader rdr, DatabaseHelper oDatabaseHelper) 
		{

			SALSalesLineBatchCollection list = new SALSalesLineBatchCollection();
			
            if (rdr.Read())
			{
				SALSalesLineBatch obj = new SALSalesLineBatch();
				PopulateObjectFromReader(obj, rdr);
				list.Add(obj);
				while (rdr.Read())
				{
					obj = new SALSalesLineBatch();
					PopulateObjectFromReader(obj, rdr);
					list.Add(obj);
				}
				oDatabaseHelper.Dispose();
				return list;
			}
			else
			{
				oDatabaseHelper.Dispose();
				return null;
			}
			
		}
コード例 #9
0
		/// <summary>
		/// Populates the fields for multiple objects from the columns found in an open reader.
		/// </summary>
		///
		/// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param>
		///
		/// <returns>Object of SALSalesLineBatchCollection</returns>
		///
		/// <remarks>
		///
		/// <RevisionHistory>
		/// Author				Date			Description
		/// DLGenerator			3/7/2015 2:37:04 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static SALSalesLineBatchCollection PopulateObjectsFromReader(IDataReader rdr) 
		{
			SALSalesLineBatchCollection list = new SALSalesLineBatchCollection();
			
			while (rdr.Read())
			{
				SALSalesLineBatch obj = new SALSalesLineBatch();
				PopulateObjectFromReader(obj,rdr);
				list.Add(obj);
			}
			return list;
			
		}
コード例 #10
0
		/// <summary>
		/// This method will return a list of objects representing the specified number of entries from the specified record number in the table 
		/// using the value of the field specified
		/// </summary>
		///
		/// <param name="field" type="string">Field of the class SALSalesLineBatch</param>
		/// <param name="fieldValue" type="object">Value for the field specified.</param>
		/// <param name="fieldValue2" type="object">Value for the field specified.</param>
		/// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param>
		/// <param name="orderByStatement" type="string">The field value to number.</param>
		/// <param name="pageSize" type="int">Number of records returned.</param>
		/// <param name="skipPages" type="int">The number of missing pages.</param>
		///
		/// <returns>List of object of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection</returns>
		public SALSalesLineBatchCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement)
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement))
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}
コード例 #11
0
		/// <summary>
		/// This method will return a list of objects representing the specified number of entries from the specified record number in the table.
		/// </summary>
		///
		/// <param name="pageSize" type="int">Number of records returned.</param>
		/// <param name="skipPages" type="int">The number of missing pages.</param>
		/// <param name="orderByStatement" type="string">The field value to number.</param>
		///
		/// <returns>list of objects of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection </returns>
		public SALSalesLineBatchCollection SelectAllPaged(int? pageSize, int? skipPages, string orderByStatement)
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllPaged(pageSize, skipPages, orderByStatement))
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}
コード例 #12
0
		/// <summary>
		/// This method will get row(s) from the database using the value of the field specified 
		/// along with the details of the child table.
		/// </summary>
		///
		/// <param name="pk" type="SALSalesLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		/// <param name="pageSize" type="int">Number of records returned.</param>
		/// <param name="skipPages" type="int">The number of missing pages.</param>
		/// <param name="orderByStatement" type="string">The field value to number.</param>
		///
		/// <returns>object of class SALSalesLineBatchCollection</returns>
		public SALSalesLineBatchCollection SelectAllByForeignKeySalesLineIDPaged(SALSalesLinePrimaryKey pk, int pageSize, int skipPages, string orderByStatement)
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection=new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllByForeignKeySalesLineIDPaged(new POS.DataLayer.SALSalesLinePrimaryKey(pk.SalesLineID), pageSize, skipPages, orderByStatement))
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}
コード例 #13
0
		/// <summary>
		/// This method will get row(s) from the database using the value of the field specified 
		/// along with the details of the child table.
		/// </summary>
		///
		/// <param name="pk" type="SALSalesLinePrimaryKey">Primary Key information based on which data is to be fetched.</param>
		///
		/// <returns>object of class SALSalesLineBatchCollection</returns>
		public SALSalesLineBatchCollection SelectAllByForeignKeySalesLineID(SALSalesLinePrimaryKey pk)
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection=new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectAllByForeignKeySalesLineID(new POS.DataLayer.SALSalesLinePrimaryKey(pk.SalesLineID)))
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}
コード例 #14
0
		/// <summary>
		/// This method will get row(s) from the database using the value of the field specified
		/// </summary>
		///
		/// <param name="field" type="string">Field of the class SALSalesLineBatch</param>
		/// <param name="fieldValue" type="object">Value for the field specified.</param>
		/// <param name="fieldValue2" type="object">Value for the field specified.</param>
		/// <param name="typeOperation" type="TypeOperation">Operator that is used if fieldValue2=null or fieldValue2="".</param>
		///
		/// <returns>List of object of class SALSalesLineBatch in the form of an object of class SALSalesLineBatchCollection</returns>
		public SALSalesLineBatchCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation)
		{
			SALSalesLineBatchCollection sALSalesLineBatchCollection = new SALSalesLineBatchCollection();
			foreach (POS.DataLayer.SALSalesLineBatch _sALSalesLineBatch in POS.DataLayer.SALSalesLineBatchBase.SelectByField(field, fieldValue, fieldValue2, typeOperation))
			{
				_sALSalesLineBatchWCF = new SALSalesLineBatch();
				
				_sALSalesLineBatchWCF.SalesLineBatchID = _sALSalesLineBatch.SalesLineBatchID;
				_sALSalesLineBatchWCF.SalesLineID = _sALSalesLineBatch.SalesLineID;
				_sALSalesLineBatchWCF.BatchID = _sALSalesLineBatch.BatchID;
				_sALSalesLineBatchWCF.Qty = _sALSalesLineBatch.Qty;
				
				sALSalesLineBatchCollection.Add(_sALSalesLineBatchWCF);
			}
			return sALSalesLineBatchCollection;
		}