/// <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 BDSupplier</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 BDSupplier in the form of an object of class BDSupplierCollection</returns> public BDSupplierCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; bDSupplierCollection.Add(_bDSupplierWCF); } return(bDSupplierCollection); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class BDSupplier in the form of object of BDSupplierCollection </returns> public BDSupplierCollection SelectAll() { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectAll()) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; bDSupplierCollection.Add(_bDSupplierWCF); } return(bDSupplierCollection); }
public BDSupplierCollection SearchByCriteria(string SupplierName, string SupplierCode) { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplier.SearcByCriteria(SupplierName, SupplierCode)) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; bDSupplierCollection.Add(_bDSupplierWCF); } return(bDSupplierCollection); }
/// <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 BDSupplier in the form of an object of class BDSupplierCollection </returns> public BDSupplierCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement) { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; bDSupplierCollection.Add(_bDSupplierWCF); } return(bDSupplierCollection); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class BDSupplier in the form of object of BDSupplierCollection </returns> public BDSupplierCollection SelectAll() { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectAll()) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; _bDSupplierWCF.Debit = _bDSupplier.Debit; _bDSupplierWCF.Credit = _bDSupplier.Credit; bDSupplierCollection.Add(_bDSupplierWCF); } return bDSupplierCollection; }
/// <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 BDSupplier</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 BDSupplier in the form of an object of class BDSupplierCollection</returns> public BDSupplierCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; _bDSupplierWCF.Debit = _bDSupplier.Debit; _bDSupplierWCF.Credit = _bDSupplier.Credit; bDSupplierCollection.Add(_bDSupplierWCF); } return bDSupplierCollection; }
/// <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 BDSupplier in the form of an object of class BDSupplierCollection </returns> public BDSupplierCollection SelectAllPaged(int? pageSize, int? skipPages, string orderByStatement) { BDSupplierCollection bDSupplierCollection = new BDSupplierCollection(); foreach (POS.DataLayer.BDSupplier _bDSupplier in POS.DataLayer.BDSupplierBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _bDSupplierWCF = new BDSupplier(); _bDSupplierWCF.SupplierID = _bDSupplier.SupplierID; _bDSupplierWCF.SupplierCode = _bDSupplier.SupplierCode; _bDSupplierWCF.SupplierName = _bDSupplier.SupplierName; _bDSupplierWCF.Address = _bDSupplier.Address; _bDSupplierWCF.Phone1 = _bDSupplier.Phone1; _bDSupplierWCF.phone2 = _bDSupplier.Phone2; _bDSupplierWCF.Mobile1 = _bDSupplier.Mobile1; _bDSupplierWCF.Mobile2 = _bDSupplier.Mobile2; _bDSupplierWCF.Email = _bDSupplier.Email; _bDSupplierWCF.IsActive = _bDSupplier.IsActive; _bDSupplierWCF.Debit = _bDSupplier.Debit; _bDSupplierWCF.Credit = _bDSupplier.Credit; bDSupplierCollection.Add(_bDSupplierWCF); } return bDSupplierCollection; }
/// <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 BDSupplierCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 3/7/2015 2:37:05 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static BDSupplierCollection PopulateObjectsFromReaderWithCheckingReader(IDataReader rdr, DatabaseHelper oDatabaseHelper) { BDSupplierCollection list = new BDSupplierCollection(); if (rdr.Read()) { BDSupplier obj = new BDSupplier(); PopulateObjectFromReader(obj, rdr); list.Add(obj); while (rdr.Read()) { obj = new BDSupplier(); PopulateObjectFromReader(obj, rdr); list.Add(obj); } oDatabaseHelper.Dispose(); return list; } else { oDatabaseHelper.Dispose(); return null; } }
/// <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 BDSupplierCollection</returns> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 3/7/2015 2:37:05 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static BDSupplierCollection PopulateObjectsFromReader(IDataReader rdr) { BDSupplierCollection list = new BDSupplierCollection(); while (rdr.Read()) { BDSupplier obj = new BDSupplier(); PopulateObjectFromReader(obj,rdr); list.Add(obj); } return list; }