/// <summary> /// 绑定安检报告单 /// </summary> /// <param name="strKey">ID</param> /// <param name="strPath">路径</param> /// <param name="bSingle">是不是单次打印</param> /// <returns>ReportDocument for AJ</returns> public ReportDocument BindAJReportEx(string strKey, string strPath, bool bSingle) { ReportDocument document = new ReportDocument(); document.Load(strPath); RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL(); var vehicleInfo = bll.GetModelList("ID=" + strKey); AJReport ajReport = new AJReport(vehicleInfo[0], bSingle); rpt.DsAJ_BGD ds = new rpt.DsAJ_BGD(); Dictionary <string, Tuple <string, string, string> > dicFialItems; ds = (rpt.DsAJ_BGD)ajReport.BindReportResource_Report(ds, out dicFialItems); document.SetDataSource(ds); return(document); }