private static bool UpdateTransaction(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection, POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader) { _pURPurchaseReturnHeader.IsVoid = false; _pURPurchaseReturnHeader.CreatedBy = GlobalVariables.CurrentUser.UserID; _pURPurchaseReturnHeader.CreateDate = DateTime.Now; _pURPurchaseReturnHeader.UpdatedBy = GlobalVariables.CurrentUser.UserID; _pURPurchaseReturnHeader.UpdateDate = DateTime.Now; _pURPurchaseReturnHeader.IsDeleted = false; _pURPurchaseReturnHeader.DeletedBy = null; _pURPurchaseReturnHeader.DeleteDate = null; _pURPurchaseReturnHeader.OriginalHeaderID = pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeader.ReturnDate = pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeader.PurchaseReturnID = pURPurchaseReturnHeader.PurchaseReturnID; POS.DataLayer.PURPurchaseReturnLineCollection _pURPurchaseReturnLineCollection = new DataLayer.PURPurchaseReturnLineCollection(); foreach (PURPurchaseReturnLine pURPurchaseReturnLine in pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnLine _pURPurchaseReturnLine = new POS.DataLayer.PURPurchaseReturnLine(); _pURPurchaseReturnLine.Qty = pURPurchaseReturnLine.Qty; _pURPurchaseReturnLine.BatchNumber = pURPurchaseReturnLine.BatchNumber; _pURPurchaseReturnLine.ExpiryDate = pURPurchaseReturnLine.ExpiryDate; _pURPurchaseReturnLine.OriginalpurchaseLineID = pURPurchaseReturnLine.OriginalpurchaseLineID; _pURPurchaseReturnLine.Reason = pURPurchaseReturnLine.Reason; _pURPurchaseReturnLineCollection.Add(_pURPurchaseReturnLine); } POS.DataLayer.PURPurchaseReturnLine pURPurchaseReturnLineObj = new DataLayer.PURPurchaseReturnLine(); return pURPurchaseReturnLineObj.UpdateTransaction(_pURPurchaseReturnHeader, _pURPurchaseReturnLineCollection); }
private void FillScreenWithDataForEdit(int salesReturnHeaderID) { pURPurchaseReturnHeader = GetPurchaseReturnHeader(salesReturnHeaderID); pURPurchaseReturnLineCollection = GetPurchaseReturnLines(salesReturnHeaderID); vPURPurchaseOrderCollection = GetPurchaseOriginalPurchaseOrderData((int)pURPurchaseReturnHeader.OriginalHeaderID); FillScreenData(); }
/// <summary> /// This method will return a list of objects representing all records in the table. /// </summary> /// /// <returns>list of objects of class PURPurchaseReturnHeader in the form of object of PURPurchaseReturnHeaderCollection </returns> public PURPurchaseReturnHeaderCollection SelectAll() { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectAll()) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; _pURPurchaseReturnHeaderWCF.IsClosed = _pURPurchaseReturnHeader.IsClosed; _pURPurchaseReturnHeaderWCF.IsVoid = _pURPurchaseReturnHeader.IsVoid; _pURPurchaseReturnHeaderWCF.ReturnMoney = _pURPurchaseReturnHeader.ReturnMoney; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
/// <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 PURPurchaseReturnHeader</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 PURPurchaseReturnHeader in the form of an object of class PURPurchaseReturnHeaderCollection</returns> public PURPurchaseReturnHeaderCollection SelectByFieldPaged(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation, int pageSize, int skipPages, string orderByStatement) { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectByFieldPaged(field, fieldValue, fieldValue2, typeOperation, pageSize, skipPages, orderByStatement)) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; _pURPurchaseReturnHeaderWCF.IsClosed = _pURPurchaseReturnHeader.IsClosed; _pURPurchaseReturnHeaderWCF.IsVoid = _pURPurchaseReturnHeader.IsVoid; _pURPurchaseReturnHeaderWCF.ReturnMoney = _pURPurchaseReturnHeader.ReturnMoney; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
/// <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 PURPurchaseReturnHeader in the form of an object of class PURPurchaseReturnHeaderCollection </returns> public PURPurchaseReturnHeaderCollection SelectAllPaged(int?pageSize, int?skipPages, string orderByStatement) { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectAllPaged(pageSize, skipPages, orderByStatement)) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; _pURPurchaseReturnHeaderWCF.IsClosed = _pURPurchaseReturnHeader.IsClosed; _pURPurchaseReturnHeaderWCF.IsVoid = _pURPurchaseReturnHeader.IsVoid; _pURPurchaseReturnHeaderWCF.ReturnMoney = _pURPurchaseReturnHeader.ReturnMoney; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
private static bool UpdateTransaction(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection, POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader) { _pURPurchaseReturnHeader.IsVoid = false; _pURPurchaseReturnHeader.CreatedBy = GlobalVariables.CurrentUser.UserID; _pURPurchaseReturnHeader.CreateDate = DateTime.Now; _pURPurchaseReturnHeader.UpdatedBy = GlobalVariables.CurrentUser.UserID; _pURPurchaseReturnHeader.UpdateDate = DateTime.Now; _pURPurchaseReturnHeader.IsDeleted = false; _pURPurchaseReturnHeader.DeletedBy = null; _pURPurchaseReturnHeader.DeleteDate = null; _pURPurchaseReturnHeader.OriginalHeaderID = pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeader.ReturnDate = pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeader.PurchaseReturnID = pURPurchaseReturnHeader.PurchaseReturnID; POS.DataLayer.PURPurchaseReturnLineCollection _pURPurchaseReturnLineCollection = new DataLayer.PURPurchaseReturnLineCollection(); foreach (PURPurchaseReturnLine pURPurchaseReturnLine in pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnLine _pURPurchaseReturnLine = new POS.DataLayer.PURPurchaseReturnLine(); _pURPurchaseReturnLine.Qty = pURPurchaseReturnLine.Qty; _pURPurchaseReturnLine.BatchNumber = pURPurchaseReturnLine.BatchNumber; _pURPurchaseReturnLine.ExpiryDate = pURPurchaseReturnLine.ExpiryDate; _pURPurchaseReturnLine.OriginalpurchaseLineID = pURPurchaseReturnLine.OriginalpurchaseLineID; _pURPurchaseReturnLine.Reason = pURPurchaseReturnLine.Reason; _pURPurchaseReturnLineCollection.Add(_pURPurchaseReturnLine); } POS.DataLayer.PURPurchaseReturnLine pURPurchaseReturnLineObj = new DataLayer.PURPurchaseReturnLine(); return(pURPurchaseReturnLineObj.UpdateTransaction(_pURPurchaseReturnHeader, _pURPurchaseReturnLineCollection)); }
public frmPurchaseReturnOrderAddEdit() { InitializeComponent(); pURPurchaseReturnHeaderWrapper = new PURPurchaseReturnHeaderWrapper(); pURPurchaseReturnLineWrraper = new PURPurchaseReturnLineWrraper(); bDProductWrapper = new BDProductWrapper(); pURPurchaseReturnHeader = new PURPurchaseReturnHeader(); pURPurchaseReturnLineCollection = new PURPurchaseReturnLineCollection(); FillProductCBX(); dgrd_ReturnOrderLines.Enabled = false; }
/// <summary> /// This method will insert one new row into the database using the property Information /// </summary> /// /// <param name="pURPurchaseReturnHeader" type="PURPurchaseReturnHeader">This PURPurchaseReturnHeader will be inserted in the database.</param> /// /// <returns>True if succeeded</returns> public bool Insert(PURPurchaseReturnHeader pURPurchaseReturnHeader) { _pURPurchaseReturnHeader = new POS.DataLayer.PURPurchaseReturnHeader(); _pURPurchaseReturnHeader.PurchaseReturnID = pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeader.ReturnDate = pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeader.OriginalHeaderID = pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeader.CreatedBy = pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeader.CreateDate = pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeader.UpdatedBy = pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeader.UpdateDate = pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeader.IsDeleted = pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeader.DeletedBy = pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeader.DeleteDate = pURPurchaseReturnHeader.DeleteDate; return(_pURPurchaseReturnHeader.Insert()); }
///<summary> /// This method will update one new row into the database using the property Information /// </summary> /// /// <param name="pURPurchaseReturnHeader" type="PURPurchaseReturnHeader">This PURPurchaseReturnHeader will be updated in the database.</param> /// /// <returns>True if succeeded</returns> public bool Update(PURPurchaseReturnHeader pURPurchaseReturnHeader) { _pURPurchaseReturnHeader = POS.DataLayer.PURPurchaseReturnHeader.SelectOne(new POS.DataLayer.PURPurchaseReturnHeaderPrimaryKey(pURPurchaseReturnHeader.PurchaseReturnID)); _pURPurchaseReturnHeader.ReturnDate = pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeader.OriginalHeaderID = pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeader.CreatedBy = pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeader.CreateDate = pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeader.UpdatedBy = pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeader.UpdateDate = pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeader.IsDeleted = pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeader.DeletedBy = pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeader.DeleteDate = pURPurchaseReturnHeader.DeleteDate; return(_pURPurchaseReturnHeader.Update()); }
/// <summary> /// This method will return an object representing the record matching the primary key information specified. /// </summary> /// /// <param name="pk" type="PURPurchaseReturnHeaderPrimaryKey">Primary Key information based on which data is to be fetched.</param> /// /// <returns>object of class PURPurchaseReturnHeader</returns> public PURPurchaseReturnHeader SelectOne(PURPurchaseReturnHeaderPrimaryKey pk) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeader = POS.DataLayer.PURPurchaseReturnHeaderBase.SelectOne(new POS.DataLayer.PURPurchaseReturnHeaderPrimaryKey(pk.PurchaseReturnID)); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; return(_pURPurchaseReturnHeaderWCF); }
/// <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="PURPurchaseHeaderPrimaryKey">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 PURPurchaseReturnHeaderCollection</returns> public PURPurchaseReturnHeaderCollection SelectAllByForeignKeyOriginalHeaderIDPaged(PURPurchaseHeaderPrimaryKey pk, int pageSize, int skipPages, string orderByStatement) { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectAllByForeignKeyOriginalHeaderIDPaged(new POS.DataLayer.PURPurchaseHeaderPrimaryKey(pk.PurcaseHeaderID), pageSize, skipPages, orderByStatement)) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
/// <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="PURPurchaseHeaderPrimaryKey">Primary Key information based on which data is to be fetched.</param> /// /// <returns>object of class PURPurchaseReturnHeaderCollection</returns> public PURPurchaseReturnHeaderCollection SelectAllByForeignKeyOriginalHeaderID(PURPurchaseHeaderPrimaryKey pk) { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectAllByForeignKeyOriginalHeaderID(new POS.DataLayer.PURPurchaseHeaderPrimaryKey(pk.PurcaseHeaderID))) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
/// <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 PURPurchaseReturnHeader</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 PURPurchaseReturnHeader in the form of an object of class PURPurchaseReturnHeaderCollection</returns> public PURPurchaseReturnHeaderCollection SelectByField(string field, object fieldValue, object fieldValue2, TypeOperation typeOperation) { PURPurchaseReturnHeaderCollection pURPurchaseReturnHeaderCollection = new PURPurchaseReturnHeaderCollection(); foreach (POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader in POS.DataLayer.PURPurchaseReturnHeaderBase.SelectByField(field, fieldValue, fieldValue2, typeOperation)) { _pURPurchaseReturnHeaderWCF = new PURPurchaseReturnHeader(); _pURPurchaseReturnHeaderWCF.PurchaseReturnID = _pURPurchaseReturnHeader.PurchaseReturnID; _pURPurchaseReturnHeaderWCF.ReturnDate = _pURPurchaseReturnHeader.ReturnDate; _pURPurchaseReturnHeaderWCF.OriginalHeaderID = _pURPurchaseReturnHeader.OriginalHeaderID; _pURPurchaseReturnHeaderWCF.CreatedBy = _pURPurchaseReturnHeader.CreatedBy; _pURPurchaseReturnHeaderWCF.CreateDate = _pURPurchaseReturnHeader.CreateDate; _pURPurchaseReturnHeaderWCF.UpdatedBy = _pURPurchaseReturnHeader.UpdatedBy; _pURPurchaseReturnHeaderWCF.UpdateDate = _pURPurchaseReturnHeader.UpdateDate; _pURPurchaseReturnHeaderWCF.IsDeleted = _pURPurchaseReturnHeader.IsDeleted; _pURPurchaseReturnHeaderWCF.DeletedBy = _pURPurchaseReturnHeader.DeletedBy; _pURPurchaseReturnHeaderWCF.DeleteDate = _pURPurchaseReturnHeader.DeleteDate; pURPurchaseReturnHeaderCollection.Add(_pURPurchaseReturnHeaderWCF); } return(pURPurchaseReturnHeaderCollection); }
public bool UpdateClosePURPurchaseOrder(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader = new POS.DataLayer.PURPurchaseReturnHeader(); _pURPurchaseReturnHeader.IsClosed = true; return(UpdateTransaction(pURPurchaseReturnHeader, pURPurchaseReturnLineCollection, _pURPurchaseReturnHeader)); }
public int SavePURPurchaseReturnOrder(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader = new POS.DataLayer.PURPurchaseReturnHeader(); _pURPurchaseReturnHeader.IsClosed = false; return(SaveTransaction(pURPurchaseReturnHeader, pURPurchaseReturnLineCollection, _pURPurchaseReturnHeader)); }
public int SavePURPurchaseReturnOrder(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader = new POS.DataLayer.PURPurchaseReturnHeader(); _pURPurchaseReturnHeader.IsClosed = false; return SaveTransaction(pURPurchaseReturnHeader, pURPurchaseReturnLineCollection, _pURPurchaseReturnHeader); }
public bool UpdateClosePURPurchaseOrder(PURPurchaseReturnHeader pURPurchaseReturnHeader, PURPurchaseReturnLineCollection pURPurchaseReturnLineCollection) { POS.DataLayer.PURPurchaseReturnHeader _pURPurchaseReturnHeader = new POS.DataLayer.PURPurchaseReturnHeader(); _pURPurchaseReturnHeader.IsClosed = true; return UpdateTransaction(pURPurchaseReturnHeader, pURPurchaseReturnLineCollection, _pURPurchaseReturnHeader); }