Пример #1
0
        private void btnsearch_Click(object sender, EventArgs e)
        {
            BAL.Reports rep   = new BAL.Reports();
            int         i     = Convert.ToInt32(comboBox1.SelectedValue);
            DataTable   table = rep.SelectInsuranceReport(i);

            Reports.InsuranceReport report = new Reports.InsuranceReport();
            report.SetDataSource(table);
            crystalReportViewer1.ReportSource = report;
            crystalReportViewer1.Refresh();
        }
Пример #2
0
        private void btnSelectReport_Click(object sender, EventArgs e)
        {
            BAL.Reports b     = new BAL.Reports();
            DataTable   table = (DataTable)b.SelectDepartmentThroughBankID(Convert.ToInt32(comboBox1.SelectedValue));

            using (DepartmentSalaryReport report = new DepartmentSalaryReport())
            {
                report.SetDataSource(table);
                crystalReportViewer1.ReportSource = report;
                crystalReportViewer1.Refresh();
            }
        }
Пример #3
0
        private void btnsearch_Click(object sender, EventArgs e)
        {
            BAL.Reports report = new BAL.Reports();
            DataTable   table  = report.SelectDepartmentEmployees(Convert.ToInt32(comboAccountName.SelectedValue), Convert.ToInt32(comboDepartment.SelectedValue));

            using (Reports.EmployeesDepartmentReport rep = new Reports.EmployeesDepartmentReport())
            {
                rep.SetDataSource(table);
                crystalReportViewer1.ReportSource = rep;
                crystalReportViewer1.Refresh();
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     BAL.Reports s = new BAL.Reports();
     using (DataTable table = s.SelectDepartmentThroughBankID(Convert.ToInt32(comboBox1.SelectedValue)))
     {
         using (Reports.DepartmentSalaryChart chart = new Reports.DepartmentSalaryChart())
         {
             chart.SetDataSource(table);
             crystalReportViewer1.ReportSource = chart;
             crystalReportViewer1.Refresh();
         }
     }
 }
Пример #5
0
        private void EmpDetials_Load(object sender, EventArgs e)
        {
            using (BAL.Reports n = new BAL.Reports())
            {
                Reports.EmpDetialsReport report = new Reports.EmpDetialsReport();


                DataTable table = n.SelectEmployeeID(_id);
                report.SetDataSource(table);
                crystalReportViewer1.ReportSource = report;
                crystalReportViewer1.Refresh();
                crystalReportViewer1.ReportRefresh += CrystalReportViewer1_ReportRefresh;
                Reports.CachedEmpDetialsReport cached = new Reports.CachedEmpDetialsReport();
                cached.Dispose();
            }
        }