Exemplo n.º 1
0
        public List <DataTable> ContraVoucherRegisterSearch(DateTime dtdateFrom, DateTime dtdateTo, string strVoucherNo, string strLedgerName, string strType)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                ContraMasterSP spContraMaster = new ContraMasterSP();
                listObj = spContraMaster.ContraVoucherRegisterSearch(dtdateFrom, dtdateTo, strVoucherNo, strLedgerName, strType);
            }
            catch (Exception ex)
            {
                MessageBox.Show("CVBLL:8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 public void Gridfill()
 {
     try
     {
         string strType = string.Empty;
         if (rbtnDeposit.Checked)
         {
             strType = "Deposit";
         }
         else
         {
             strType = "Withdraw";
         }
         ContraMasterSP spContraMaster = new ContraMasterSP();
         DataTable      dtbl           = new DataTable();
         dtbl = spContraMaster.ContraVoucherRegisterSearch(Convert.ToDateTime(dtpFromDate.Value), Convert.ToDateTime(dtpToDate.Value), txtVoucherNo.Text.Trim(), cmbBankOrCash.Text, strType);
         dgvContraRegister.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CR:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }