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();
        }
Example #2
0
 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);
     }
 }