Example #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            DateTime  inicio = dateInicio.Value.Date;
            DataTable data   = new DataTable();

            RelatoriosBLL BLL = new RelatoriosBLL();

            data = BLL.RelatorioChecklist(inicio);

            if (data != null)
            {
                if (data != null)
                {
                    ReportDataSource dsReport = new ReportDataSource("DataSet2", data);  // Dataset1 refere ao dataset dentro do report
                    this.reportCheck.LocalReport.DataSources.Clear();
                    this.reportCheck.LocalReport.DataSources.Add(dsReport);
                    this.reportCheck.LocalReport.Refresh();

                    this.reportCheck.RefreshReport();
                }
                else
                {
                    MessageBox.Show("Não há Vendas no Intervalo Pesquisado");
                }
            }
        }
Example #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            DateTime  inicio = dateInicio.Value.Date;
            DataTable data   = new DataTable();
            //DataTable data2 = new DataTable();

            RelatoriosBLL BLL = new RelatoriosBLL();


            data = BLL.RelatorioChecklist(inicio);

            //data2 = BLL.RelatorioChecklist_Chaves(2);

            if (data != null)
            {
                if (data != null)
                {
                    ReportDataSource dsReport = new ReportDataSource("DataSet1", data);
                    //ReportDataSource dsReport2 = new ReportDataSource("DataSet2", data2); // Dataset1 refere ao dataset dentro do report
                    this.reportCheckCompleto.LocalReport.DataSources.Clear();
                    this.reportCheckCompleto.LocalReport.DataSources.Add(dsReport);
                    this.reportCheckCompleto.LocalReport.Refresh();


                    this.reportCheckCompleto.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SubreportEvento);



                    this.reportCheckCompleto.RefreshReport();
                }
                else
                {
                    MessageBox.Show("Não há Checklist no Intervalo Pesquisado");
                }
            }
        }