/// <summary>
 /// To fill the tax combobox
 /// </summary>
 public void TaxComboFill()
 {
     try
     {
         List<DataTable> ListObj = new List<DataTable>();
         TaxBll bllTax = new TaxBll();
         ListObj = bllTax.TaxViewAll();
         DataRow dr = ListObj[0].NewRow();
         dr["taxName"] = "All";
         dr["taxId"] = 0;
         ListObj[0].Rows.InsertAt(dr, 0);
         cmbTax.DataSource = ListObj[0];
         cmbTax.DisplayMember = "taxName";
         cmbTax.ValueMember = "taxId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("TR:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to Fill product group or tax according to search by combo box selection in Product Group/Tax combo box 
 /// </summary>
 public void ProductGroupTaxComboFill()
 {
     try
     {
         if (cmbSearchBy.SelectedIndex == 0)
         {
             ProductGroupBll BllProductgroup = new ProductGroupBll();
             List<DataTable> listObjProductGroup = new List<DataTable>();
             listObjProductGroup = BllProductgroup.ProductGroupViewAll();
             cmbProductGroupTax.DataSource = listObjProductGroup[0];
             cmbProductGroupTax.ValueMember = "groupId";
             cmbProductGroupTax.DisplayMember = "groupName";
         }
         else
         {
             TaxBll bllTax = new TaxBll();
             List<DataTable> ListObj = new List<DataTable>();
             ListObj = bllTax.TaxViewAll();
             cmbProductGroupTax.DataSource = ListObj[0];
             cmbProductGroupTax.ValueMember = "taxId";
             cmbProductGroupTax.DisplayMember = "taxName";
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("CPT 5 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to use the TaxComboFill
 /// </summary>
 public void DGVTaxComboFill()
 {
     try
     {
         TaxBll bllTax = new TaxBll();
         List<DataTable> ListObj = new List<DataTable>();
         ListObj = bllTax.TaxViewAll();
         dgvCmbTax.DataSource = ListObj;
         dgvCmbTax.ValueMember = "taxId";
         dgvCmbTax.DisplayMember = "taxName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SR63:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to Fill new tax type combo box
 /// </summary>
 public void NewTaxTypeComboFill()
 {
     try
     {
         TaxBll bllTax = new TaxBll();
         List<DataTable> ListObj = new List<DataTable>();
         ListObj = bllTax.TaxViewAll();
         cmbNewTaxType.DataSource = ListObj[0];
         cmbNewTaxType.ValueMember = "taxId";
         cmbNewTaxType.DisplayMember = "taxName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("CPT 4 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }