private void displayBB(string cond, string other_cond) { common_file.common_app.get_czsj(); common_bb.displayprogress(progressBar1); string ss = "id>=0 and yydh='" + common_file.common_app.yydh + "' " + cond + other_cond + " order by krxm,jzzt,czzt asc"; ds = B_common.GetList(" select * from BB_sh_wj_gj ", "id>=0 and yydh='" + common_file.common_app.yydh + "' " + cond + other_cond + " order by krxm,jzzt,czzt asc"); if (ds != null && ds.Tables[0].Rows.Count > 0) { p_gl.Visible = false; 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_wj_gj_ls myreport = new BB_wj_gj_ls(); myreport.SetDataSource(ds.Tables[0]); myreport.SetParameterValue("qymc", common_file.common_app.qymc); myreport.SetParameterValue("cssj", dt_date); myreport.SetParameterValue("address", _address_chinese); myreport.SetParameterValue("Tel", _qydh); myreport.SetParameterValue("Fax", _qycz); r.ReportSource = myreport; } else { r.ReportSource = null; common_file.common_app.Message_box_show(common_file.common_app.message_title, "当前时间段内没有分析数据,您可以更改查询条件来获取其它的分析数据!"); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { BB_wj_gj_ls rpt = new BB_wj_gj_ls(); rpt.Site = this.Site; return(rpt); }