Ejemplo n.º 1
0
        public void DisplayBB()
        {
            ds = B_common.GetList(" select * from BB_ysk_cy", "id>=0  and   yydh='" + common_file.common_app.yydh + "'   and   czy='" + common_file.common_app.czy + "'      order by  krxm,lzbh  asc ");
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                p_gl.Visible = false;
                common_bb.displayprogress(progressBar1);
                common_bb.displayprogress(progressBar1);
                string _qymc = ""; string _qymc_english = ""; string _address_chinese = ""; string _address_english = ""; string _qydh = ""; string _qycz = ""; string _qyyb = ""; string _website = "";
                common_file.common_app.GetPrintInfo(ref _qymc, ref _qymc_english, ref _address_chinese, ref _address_english, ref _qydh, ref _qycz, ref _qyyb, ref _website);

                BB_ysk_cy myreport = new BB_ysk_cy();
                myreport.SetDataSource(ds.Tables[0]);
                myreport.SetParameterValue("qymc", common_file.common_app.qymc);
                myreport.SetParameterValue("address", _address_chinese);
                myreport.SetParameterValue("Tel", _qydh);
                myreport.SetParameterValue("Fax", _qycz);
                crystalReportViewer1.ReportSource = myreport;
            }
            else
            {
                crystalReportViewer1.ReportSource = null;
                common_file.common_app.Message_box_show(common_file.common_app.message_title, "没有查到分析数据,请更改查询条件!");
            }
        }
Ejemplo n.º 2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            BB_ysk_cy rpt = new BB_ysk_cy();

            rpt.Site = this.Site;
            return(rpt);
        }