/// <summary>
 /// Function to fill the grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         SalesInvoiceBll BllSalesInvoice = new SalesInvoiceBll();
         DataTable dtbl = new DataTable();
         DateTime fromDate, toDate;
         fromDate = Convert.ToDateTime(txtFromDate.Text);
         toDate = Convert.ToDateTime(txtToDate.Text);
         string voucherNo = txtVoucherNo.Text.ToString();
         decimal voucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
         decimal groupId = Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString());
         decimal ledgerId = Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString());
         decimal employeeId = Convert.ToDecimal(cmbSalesMan.SelectedValue.ToString());
         string productCode = cmbProductCode.Text.ToString();
         listObj = BllSalesInvoice.FreeSaleReportGridFill(fromDate, toDate, voucherNo, voucherTypeId, groupId, productCode, ledgerId, employeeId);
         dgvFreeSalesReport.DataSource = listObj[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show("FSR :01" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }