Ejemplo n.º 1
0
 protected void reportShowView_StartReport(object sender, EventArgs e)
 {
     if (Request["reportType"].ToString() == "1")//1为个体检,2为团检
     {
         reportShowView.Report = commonReport.GetReport(Request["order_num"].ToString(), 2);
     }
     else if (Request["reportType"].ToString() == "2")
     {
         if (Request["resultType"].ToString() == "yes")
         {
             reportShowView.Report = commonReport.GetReportByDataset("35", (DataSet)Session["GroupDataSet"], 2);
         }
         else
         {
             reportShowView.Report = commonReport.GetReportByDataset("35", new DataSet(), 2);
         }
     }
     if (reportShowView.Report.FileName != "")
     {
         reportShowView.ReportDone = true;
     }
 }