Example #1
0
        private void showButton_Click(object sender, EventArgs e)
        {
            DateTime fromdate = fromdateTimePicker.Value;
            DateTime todate   = todateTimePicker.Value;

            todate = todate.AddDays(1);
            // todate = todate.AddSeconds(-1);
            fromdate = fromdate.Date;
            todate   = todate.Date;
            todate   = todate.AddSeconds(-1);
            List <Transaction> aTransactions   = new List <Transaction>();
            TransactionBLL     aTransactionBll = new TransactionBLL();

            aTransactions = aTransactionBll.GetTransactionBetweenDate(fromdate, todate);

            // inventoryTransactionDataGridView.DataSource = aTransactions;
            ShowReport(aTransactions);
        }