Example #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            var items = services.GetRegularParkerDataTable();

            items.TableName = "RegularParker";
            var viewer = new CrystalViewer();

            viewer.DateCovered = DateTime.Now.ToString("MM/dd/");
            viewer.ReportType  = ReportType.RegularParker;
            viewer.DataSource  = items;
            viewer.ShowDialog();
        }
Example #2
0
        private async void btnPrint_Click(object sender, EventArgs e)
        {
            btnPrint.Enabled = false;
            var from = DateTimeConverter.GetDateTime(dtFrom, timeFrom);
            var to   = DateTimeConverter.GetDateTime(dtTo, timeTo);
            var dt   = await services.DetailedTransactionSummaryDatatableAsync(from, to, txtSearch.Text.Trim(), cboTerminal.SelectedValue.ToString());

            dt.TableName = "DetailedReport";
            var viewer = new CrystalViewer();

            viewer.DateCovered = from.ToString() + "-" + to.ToString();
            viewer.ReportType  = ReportType.DetailedTransactionSummaryReport;
            viewer.DataSource  = dt;
            viewer.ShowDialog();
            btnPrint.Enabled = true;
        }
Example #3
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            btnPrint.Enabled = false;
            var from  = DateTimeConverter.GetDateTime(dtFrom, timeFrom);
            var to    = DateTimeConverter.GetDateTime(dtTo, timeTo);
            var items = services.AuditTrailDataTable(from, to, cbTerminal.SelectedValue.ToString(), txtKeyword.Text);

            items.TableName = "AuditTrail";
            var viewer = new CrystalViewer();

            viewer.DateCovered = from.ToString() + "-" + to.ToString();
            viewer.ReportType  = ReportType.AuditTrail;
            viewer.DataSource  = items;
            viewer.ShowDialog();
            btnPrint.Enabled = true;
        }
Example #4
0
        private async void btnPrint_Click(object sender, EventArgs e)
        {
            btnPrint.Enabled = false;
            var from = DateTimeConverter.GetDateTime(dtFrom, timeFrom);
            var to   = DateTimeConverter.GetDateTime(dtTo, timeTo);

            var items = await services.GetHistoryDataTableAsync(from, to, cboTerminal.SelectedValue.ToString(), txtSearch.Text.Trim(), rbExit.Checked);

            //items.Columns.Remove("TransitId");
            //items.AcceptChanges();

            items.TableName = "HistoryReport";
            var viewer = new CrystalViewer();

            viewer.DateCovered = from.ToString() + "-" + to.ToString();
            viewer.ReportType  = ReportType.History;
            viewer.DataSource  = items;
            viewer.ShowDialog();


            btnPrint.Enabled = true;
        }