/// <summary> /// Function to get Type of Vouchers for combofill in tax report and vat report /// </summary> /// <returns></returns> public List <DataTable> TypeOfVoucherCombofillForVatAndTaxReport() { List <DataTable> listObj = new List <DataTable>(); try { listObj = spVoucherType.TypeOfVoucherCombofillForVatAndTaxReport(); } catch (Exception ex) { MessageBox.Show("VT12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }
/// <summary> /// Function to fill TypeOfVoucher combobox /// </summary> public void TypeOfVoucherCombofill() { try { DataTable dtbl = new DataTable(); VoucherTypeSP spVoucherType = new VoucherTypeSP(); dtbl = spVoucherType.TypeOfVoucherCombofillForVatAndTaxReport(); DataRow dr = dtbl.NewRow(); dr["typeOfVoucher"] = "All"; dr["voucherTypeId"] = 0; dtbl.Rows.InsertAt(dr, 0); cmbTypeOfVoucher.DataSource = dtbl; cmbTypeOfVoucher.DisplayMember = "typeOfVoucher"; cmbTypeOfVoucher.ValueMember = "voucherTypeId"; } catch (Exception ex) { MessageBox.Show("TR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }