예제 #1
0
        /// <summary>
        /// Function to get VoucherTypename for combofill in Tax And vat report
        /// </summary>
        /// <returns></returns>
        public List <DataTable> VoucherTypeCombofillForTaxAndVat(string strVoucherType)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spVoucherType.VoucherTypeCombofillForTaxAndVat(strVoucherType);
            }
            catch (Exception ex)
            {
                MessageBox.Show("VT10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
예제 #2
0
 /// <summary>
 /// To fill the vouchertype combobox
 /// </summary>
 public void VoucherTypeComboFill(string strVoucherName)
 {
     try
     {
         DataTable     dtbl          = new DataTable();
         VoucherTypeSP spVoucherType = new VoucherTypeSP();
         dtbl = spVoucherType.VoucherTypeCombofillForTaxAndVat(strVoucherName);
         DataRow dr = dtbl.NewRow();
         dr["voucherTypeName"] = "All";
         dr["voucherTypeId"]   = 0;
         dtbl.Rows.InsertAt(dr, 0);
         cmbVoucherType.DataSource    = dtbl;
         cmbVoucherType.DisplayMember = "voucherTypeName";
         cmbVoucherType.ValueMember   = "voucherTypeId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("TR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }