Beispiel #1
0
 /// <summary>
 /// Function to fill the grid
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         dtbl = spFinancialStatement.CashOrBankBookGridFill(Convert.ToDateTime(txtFromDate.Text), Convert.ToDateTime(txtToDate.Text), "", true);
         dgvCashOrBank.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CBBOOK02 :" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        public List <DataTable> CashOrBankBookGridFill(DateTime fromDate, DateTime toDate, string groupId, bool isShowOpBalance)
        {
            List <DataTable> list = new List <DataTable>();

            try
            {
                list = spFinancialStatement.CashOrBankBookGridFill(fromDate, toDate, groupId, isShowOpBalance);
            }

            catch (Exception ex)
            {
                MessageBox.Show("FS1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(list);
        }