private void FrmSalaryInformation_Load(object sender, EventArgs e) { Reports.SalaryInformation info = new Reports.SalaryInformation(); BAL.Reports repots = new BAL.Reports(); info.SetDataSource(repots.SalaryinfoReport(_empid, _bankid)); crystalReportViewer1.ReportSource = info; crystalReportViewer1.Refresh(); }
private void button1_Click(object sender, EventArgs e) { BAL.Reports report = new BAL.Reports(); int Id = Convert.ToInt32(comboBox1.SelectedValue); DataTable table = report.SelectEmployeesDontNotResiveSalary(Id); Reports.Employeesnot not = new Reports.Employeesnot(); not.SetDataSource(table); crystalReportViewer1.ReportSource = not; }
private void button1_Click(object sender, EventArgs e) { BAL.Reports re = new BAL.Reports(); int id = (int)comboBox1.SelectedValue; DataTable table = re.SelectTaxValue(id); Reports.TaxValueReport report = new Reports.TaxValueReport(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; crystalReportViewer1.Refresh(); }
private void btn2ndSearch_Click(object sender, EventArgs e) { if (emp != null) { BAL.Reports rp = new BAL.Reports(); int empid = Convert.ToInt32(emp.ID); int bankid = Convert.ToInt32(comboBox1.SelectedValue); dataGridView1.DataSource = rp.SalaryinfoReport(empid, bankid); dataGridView2.DataSource = rp.AddSalaryReport(empid, bankid); dataGridView3.DataSource = rp.SubtrackSalary(empid, bankid); } else { MessageBox.Show("Select Employess ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }