示例#1
0
        public void viewQuotation(int quotationID)
        {
            proxyQuotation = new ProxyQuotation(quotationID, frmQuotation.SalesID);

            if (proxyQuotation != null)
            {
                frmQuotation.PickerQuoatationDate.Value = proxyQuotation.getQuotationDate();
                frmQuotation.QuoatationStatus.Text      = proxyQuotation.getQstatus();
            }
            else
            {
                //MessageBox.Show("No Customer with ID " + this.selectedCustomerID);
                //this.Close();
            }
        }
示例#2
0
        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();
        }