Example #1
0
        private void trigger()
        {
            DialogResult dlg = MessageBox.Show("Do you wish to Proceed for Quotation?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dlg == System.Windows.Forms.DialogResult.Yes)
            {
                Company  = txtBoxCompany.Text;
                Address  = txtBoxAddress.Text;
                NewQuote = true;
                ordervo.Quote_custcode = Custcode;
                ordervo.Quote_customer = Company;
                ordervo.Quote_address  = Address;
                ordervo.NewQuotation();
                this.Close();
            }
        }
Example #2
0
        private void RequoteNew()
        {
            String       custcode = "";
            DialogResult dlg      = MessageBox.Show("Do you wish to Re-Quote this Quotation?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dlg == System.Windows.Forms.DialogResult.Yes)
            {
                ordervo         = new VO.OrderVO();
                ordervo.Company = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
                custcode        = ordervo.askCustomerCode();
                //
                ordervo.Quote_custcode = custcode;
                ordervo.Quote_customer = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
                ordervo.Quote_customer = dataGridView1.SelectedRows[0].Cells[4].Value.ToString();
                ordervo.NewQuotation();
            }
        }