private void Getfxsj(string sql_con) { common_file.common_app.get_czsj(); string sql = " id>=0 and yydh='" + common_file.common_app.yydh + "' "; if (sql_con.Trim() != "") { sql += sql_con; } //ds = common_bb.GetDatahy(dt1.ToShortDateString(), dt2.ToString(), common_bb.xsy_krly_xydw_xsy, tb_value.Text, "false", "", ""); ds = B_common.GetList(" select * From VS_syxfmx_hyxsy ", sql); 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_hykh_mxfx myreport = new BB_hykh_mxfx(); myreport.SetDataSource(ds.Tables[0]); myreport.SetParameterValue("qymc", common_file.common_app.qymc); myreport.SetParameterValue("TimeInfo", TimeInfo); myreport.SetParameterValue("address", _address_chinese); myreport.SetParameterValue("Tel", _qydh); myreport.SetParameterValue("Fax", _qycz); crystalReportViewer1.ReportSource = myreport; Cursor.Current = Cursors.Default; } else { crystalReportViewer1.ReportSource = null; common_file.common_app.Message_box_show(common_file.common_app.message_title, "没有分析数据,请更改查询条件!"); } }