Exemple #1
0
        private void btnOrder_Click(object sender, EventArgs e)
        {
            frmOrders fo = new frmOrders();

            fo.InvoiceType = Invoice.InvoiceType.sell;
            fo.ShowDialog(this);
        }
Exemple #2
0
        private void btnPreInvoice_Click(object sender, EventArgs e)
        {
            frmOrders fo = new frmOrders();

            fo.InvoiceType = Invoice.InvoiceType.proforma;
            fo.OrderMode   = frmOrders.ModeList.New;
            fo.ShowDialog(this);
        }
Exemple #3
0
        private void tsmiProformaEdit_Click(object sender, EventArgs e)
        {
            frmOrders fo        = new frmOrders();
            Int16     InvoiceNo = Convert.ToInt16(dgvPish.CurrentRow.Cells[0].Value);

            fo.InvoiceType         = Invoice.InvoiceType.proforma;
            Invoice.Current.Number = InvoiceNo;
            fo.OrderMode           = frmOrders.ModeList.JustEdit;
            fo.ShowDialog(this);
        }
Exemple #4
0
        private void dgvAllInvoiceList_DoubleClick(object sender, EventArgs e)
        {
            frmOrders fo        = new frmOrders();
            Int16     InvoiceNo = Convert.ToInt16(dgvAllInvoiceList.CurrentRow.Cells[0].Value);

            Invoice.Current.Number = InvoiceNo;
            fo.InvoiceType         = Invoice.InvoiceType.sell;
            fo.InvoiceNo           = InvoiceNo;
            fo.OrderMode           = frmOrders.ModeList.JustEdit;
            fo.ShowDialog(this);
        }