Exemplo n.º 1
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rptMonthlyFeeRem rpt = new rptMonthlyFeeRem();
     rpt.Site = this.Site;
     return rpt;
 }
Exemplo n.º 2
0
       private void btnShow_Click(object sender, EventArgs e)

       {
           if (chkMonthlyFee.Checked == true)
           {
               if (txtAdmNo.Text == "")
               {
                   MessageBox.Show("Enter Admission Number", "Admission Number?", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }

               Fee d = new Fee();
               DataSet ds = d.MonthlyFeeRem(Convert.ToInt32(txtAdmNo.Text));
               if (ds.Tables[0].Rows.Count == 0)
               {
                   MessageBox.Show("Sorry No Report Exists", "No Report", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }
               else
               {
                   rptMonthlyFeeRem rpt = new rptMonthlyFeeRem();
                   rpt.SetDataSource(ds.Tables[0]);
                   this.rptv.ReportSource = rpt;

               }
           }
           else if (chkFeeDefault.Checked == true)
           {
               if (txtAdmNo.Text == "")
               {
                   MessageBox.Show("Enter Admission Number", "Admission Number?", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }

               Fee d = new Fee();
               DataSet ds = d.MonthlyFeeRem(Convert.ToInt32(txtAdmNo.Text));
               if (ds.Tables[0].Rows.Count == 0)
               {
                   MessageBox.Show("Sorry No Report Exists", "No Report", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }
               else
               {
                   rptFeeDefault rpt = new rptFeeDefault();
                   rpt.SetDataSource(ds.Tables[0]);
                   this.rptv.ReportSource = rpt;

               }
           }
           else if (chkOutstandingFee.Checked == true)
           {
               if (txtAdmNo.Text == "")
               {
                   MessageBox.Show("Enter Admission Number", "Admission Number?", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }

               Fee d = new Fee();
               DataSet ds = d.MonthlyFeeRem(Convert.ToInt32(txtAdmNo.Text));
               if (ds.Tables[0].Rows.Count == 0)
               {
                   MessageBox.Show("Sorry No Report Exists", "No Report", MessageBoxButtons.OK, MessageBoxIcon.Information);
               }
               else
               {
                   rptOutstandingFee rpt = new rptOutstandingFee();
                   rpt.SetDataSource(ds.Tables[0]);
                   this.rptv.ReportSource = rpt;

               }
           }
           else
           {
               MessageBox.Show("Select Criteria", "Criteria", MessageBoxButtons.OK, MessageBoxIcon.Stop);
           }
           
       }