private void btnSearchInvoice_Click(object sender, EventArgs e) { try { invoiceListService = new InvoiceListService(); var utilityData = invoiceListService.GetInvoiceList(txtInvoiceNumber.Text, dtStartDate.Value, dtEndDate.Value); grdInvoiceList.DataSource = utilityData; // this.grdInvoiceList.Columns["SerialNumber"] as InvoiceNumber2; this.grdInvoiceList.Columns["Id"].Visible = false; this.grdInvoiceList.Columns["AccountId"].Visible = false; this.grdInvoiceList.Columns["BankId"].Visible = false; this.grdInvoiceList.Columns["CustomerId"].Visible = false; this.grdInvoiceList.Columns["CreatDate"].Visible = false; this.grdInvoiceList.Columns["CreatBy"].Visible = false; this.grdInvoiceList.Columns["Account"].Visible = false; this.grdInvoiceList.Columns["AccountBankDetail"].Visible = false; this.grdInvoiceList.Columns["InvoiceTransactions"].Visible = false; } catch (Exception ex) { MessageBox.Show(ex.Message, Comman.Product_Name, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public TexInvoiceForm() { InitializeComponent(); invoiceListService = new InvoiceListService(); invoiceTransactionService = new InvoiceTransactionService(); }
public InvoiceForm() { InitializeComponent(); invoiceListService = new InvoiceListService(); }