/// <summary> /// Function to fill Tax combobox /// </summary> public void TaxComboFill() { try { DataTable dtbl = new DataTable(); TaxSP spTax = new TaxSP(); dtbl = spTax.TaxViewAllForProduct(); DataRow dr = dtbl.NewRow(); dr["taxname"] = "All"; dr["taxId"] = 0; dtbl.Rows.InsertAt(dr, 0); cmbTax.DataSource = dtbl; cmbTax.DisplayMember = "taxName"; cmbTax.ValueMember = "taxId"; } catch (Exception ex) { formMDI.infoError.ErrorString = "SE:4" + ex.Message; } }
/// <summary> /// Function to fill Tax combobox /// </summary> public void TaxComboFill() { try { DataTable dtbl = new DataTable(); TaxSP spTax = new TaxSP(); dtbl = spTax.TaxViewAllForProduct(); DataRow dr = dtbl.NewRow(); dr["taxname"] = "All"; dr["taxId"] = 0; dtbl.Rows.InsertAt(dr, 0); cmbTax.DataSource = dtbl; cmbTax.DisplayMember = "taxName"; cmbTax.ValueMember = "taxId"; } catch (Exception ex) { MessageBox.Show("SE:4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Tax combobox /// </summary> public void TaxComboFill() { try { DataTable dtbl = new DataTable(); TaxSP spTax = new TaxSP(); dtbl = spTax.TaxViewAllForProduct(); DataRow dr = dtbl.NewRow(); dr["taxname"] = "All"; dr["taxId"] = 0; dtbl.Rows.InsertAt(dr, 0); cmbTax.DataSource = dtbl; cmbTax.DisplayMember = "taxName"; cmbTax.ValueMember = "taxId"; } catch (Exception ex) { MessageBox.Show("ST:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Tax combobox /// </summary> public void TaxComboFill() { try { DataTable dtbl = new DataTable(); TaxSP spTax = new TaxSP(); dtbl = spTax.TaxViewAllForProduct(); cmbTax.DataSource = dtbl; cmbTax.DisplayMember = "taxName"; cmbTax.ValueMember = "taxId"; if (TaxStatus()) { cmbTax.Enabled = true; } else { cmbTax.Enabled = false; } } catch (Exception ex) { MessageBox.Show("MPC2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }