/// <summary> /// Function to view tax for Product /// </summary> /// <returns></returns> public List <DataTable> TaxViewAllForProduct() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spTax.TaxViewAllForProduct(); } catch (Exception ex) { MessageBox.Show("TBLL15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// To fill tax combobox /// </summary> public void TaxComboFill() { try { DataTable dtbl = new DataTable(); TaxSP spTax = new TaxSP(); dtbl = spTax.TaxViewAllForProduct(); DataRow drowSelect = dtbl.NewRow(); drowSelect[0] = 0; drowSelect["taxName"] = "All"; dtbl.Rows.InsertAt(drowSelect, 0); cmbTax.DataSource = dtbl; cmbTax.ValueMember = "taxId"; cmbTax.DisplayMember = "taxName"; } catch (Exception ex) { MessageBox.Show("STKR:7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }