Exemplo n.º 1
0
        /// <summary>
        /// 绑定安检人工报告单
        /// </summary>
        /// <param name="strKey"></param>
        /// <param name="strPath"></param>
        /// <param name="bSingle"></param>
        /// <returns></returns>
        public ReportDocument BindAJRGReportEx(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.DsAJRG ds = new rpt.DsAJRG();
            ds = (rpt.DsAJRG)ajReport.BindReportResource_RG(ds);

            document.SetDataSource(ds);
            return(document);
        }