Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            BB_zhrbb rpt = new BB_zhrbb();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void GetData(string _dt_start, string _dt_end)
        {
            ds = B_common.GetList(" select * from Bszhrbb", "id>=0  and   yydh='" + common_file.common_app.yydh + "' and  bbrq>='" + _dt_start + "'  and bbrq<='" + _dt_end + "' order by id");
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                p_gl.Visible = false;
                common_bb.displayprogress(progressBar1);
                BB_zhrbb myreport = new BB_zhrbb();
                myreport.SetDataSource(ds.Tables[0]);
                myreport.SetParameterValue("czy", common_file.common_app.czy);
                myreport.SetParameterValue("qymc", common_file.common_app.qymc);

                crystalReportViewer1.ReportSource = myreport;
            }
            else
            {
                crystalReportViewer1.ReportSource = null;
                common_file.common_app.Message_box_show(common_file.common_app.message_title, "没有查到分析数据,请更改查询条件!");
            }
        }