Example #1
0
        private void btnAddBill_Click(object sender, EventArgs e)
        {
            DealerBillForm billForm = new DealerBillForm();

            billForm.DealerId = selectedePerson.Id;
            billForm.BILL_ID  = 0;
            ShowFormAsFixedDialog(this, billForm);
        }
Example #2
0
        private void dgvBillList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1 || e.ColumnIndex == -1)
            {
                return;
            }

            selectedBillId = ((Bill)dgvBillList.Rows[e.RowIndex].DataBoundItem).Id;

            if (GetSelectedCellText(dgvBillList, e) == "Details")
            {
                DealerBillForm billForm = new DealerBillForm();
                billForm.DealerId = selectedePerson.Id;
                billForm.BILL_ID  = selectedBillId;
                ShowFormAsFixedDialog(this, billForm);
            }
            else if (GetSelectedCellText(dgvBillList, e) == "Add Breakups")
            {
                DealerBillBreakupListForm billBreakupForm = new DealerBillBreakupListForm();
                billBreakupForm.DEALER_BILL_ID = selectedBillId;
                ShowFormResizableAsDialog(this, billBreakupForm);
            }
        }
Example #3
0
        private void OpenDealerBillForm(int billId)
        {
            DealerBillForm billForm = new DealerBillForm(_personId, billId);

            ShowFormAsFixedDialog(this, billForm);
        }