public void updateQuotation() { proxyQuotation.setQDate(frmQuotation.PickerQuoatationDate.Value); proxyQuotation.setQstatus(frmQuotation.QuoatationStatus.Text); if (isQpathChanged) { proxyQuotation.setQuotationData(General.Rules.fileToBytes(quotationPath)); } proxyQuotation.update(isQpathChanged); isQpathChanged = false; }
public void newQuotation() { proxyQuotation = new ProxyQuotation(frmQuotation.SalesID); proxyQuotation.setQDate(frmQuotation.PickerQuoatationDate.Value); proxyQuotation.setQstatus(frmQuotation.QuoatationStatus.Text); proxyQuotation.setSalesID(frmQuotation.SalesID); if (isQpathChanged) { proxyQuotation.setQuotationData(General.Rules.fileToBytes(quotationPath)); isQpathChanged = false; } proxyQuotation.create(); }