public void display_Asm(string clid) { SYS.Model.ASM asm_data = asmdal.Get_ASM(clid); SYS.Model.CARDETECTED carinf = logininfcontrol.getCarbjbycarID(clid); reportViewer1.LocalReport.ReleaseSandboxAppDomain(); reportViewer1.LocalReport.Dispose(); reportViewer1.Visible = true; //string teststring = DateTime.Now.ToShortDateString(); try { ReportParameter[] rptpara = { new ReportParameter("parameterLsh", carinf.LSH), new ReportParameter("parameterStationName", carinf.JCZMC), new ReportParameter("parameterJcrq", carinf.JCSJ.ToString("G")), new ReportParameter("parameterCzy", carinf.CZY), new ReportParameter("parameterJsy", carinf.JSY), new ReportParameter("parameterClxh", carinf.XH), new ReportParameter("parameterScqy", carinf.SCQY), new ReportParameter("parameterJzzl", carinf.JZZL), new ReportParameter("parameterZzl", carinf.ZZL), new ReportParameter("parameterBsqxs", carinf.BSQXS), new ReportParameter("parameterJqfs", carinf.JQFS), new ReportParameter("parameterFdjxh", carinf.FDJXH), new ReportParameter("parameterGyfs", carinf.GYFS), new ReportParameter("parameterRlzl", carinf.RLZL), new ReportParameter("parameterDws", carinf.DWS), new ReportParameter("parameterXslc", carinf.XSLC + "km"), new ReportParameter("parameterFdjpl", carinf.FDJPL), new ReportParameter("parameterZcrq", carinf.ZCRQ.ToString("D")), new ReportParameter("parameterCllx", carinf.CLLX), new ReportParameter("parameterQdfs", carinf.QDXS), new ReportParameter("parameterChzz", carinf.CHZZ), new ReportParameter("parameterClph", carinf.CLHP), new ReportParameter("parameterCpys", carinf.CPYS), new ReportParameter("parameterClsbm", carinf.CLSBM), new ReportParameter("parameterCz", carinf.CZ), new ReportParameter("parameterSbmc", asm_data.SBZZC), new ReportParameter("parameterCgjxh", asm_data.CGJZZC + ":" + asm_data.CGJXH), new ReportParameter("parameterCgjbh", asm_data.CGJBH), new ReportParameter("parameterFxyxh", asm_data.FXYZZC + ":" + asm_data.FXYXH), new ReportParameter("parameterFxybh", asm_data.FXYBH), new ReportParameter("parameterWd", asm_data.WD + "℃"), new ReportParameter("parameterDqy", asm_data.DQY + "KPa"), new ReportParameter("parameterSd", asm_data.SD + "%"), new ReportParameter("parameterHC25CLZ", asm_data.HC25CLZ), new ReportParameter("parameterCO25CLZ", asm_data.CO25CLZ), new ReportParameter("parameterNOX25CLZ", asm_data.NOX25CLZ), new ReportParameter("parameterHC40CLZ", asm_data.HC40CLZ), new ReportParameter("parameterCO40CLZ", asm_data.CO40CLZ), new ReportParameter("parameterNOX40CLZ", asm_data.NOX40CLZ), new ReportParameter("parameterHC25PD", asm_data.HC25PD), new ReportParameter("parameterCO25PD", asm_data.CO25PD), new ReportParameter("parameterNOX25PD", asm_data.NOX25PD), new ReportParameter("parameterHC40PD", asm_data.HC40PD), new ReportParameter("parameterCO40PD", asm_data.CO40PD), new ReportParameter("parameterNOX40PD", asm_data.NOX40PD), new ReportParameter("parameterHC25XZ", "≤" + asm_data.HC25XZ), new ReportParameter("parameterCO25XZ", "≤" + asm_data.CO25XZ), new ReportParameter("parameterNOX25XZ", "≤" + asm_data.NOX25XZ), new ReportParameter("parameterHC40XZ", "≤" + asm_data.HC40XZ), new ReportParameter("parameterCO40XZ", "≤" + asm_data.CO40XZ), new ReportParameter("parameterNOX40XZ", "≤" + asm_data.NOX40XZ), new ReportParameter("parameterZHPD", (asm_data.ZHPD == "合格")?"通过":"未通过"), new ReportParameter("parameterJDTEL", mainPanel.otherinf.JDDH), new ReportParameter("parameterFWTEL", mainPanel.otherinf.FWDH), new ReportParameter("parameterJczdz", mainPanel.stationinfmodel.STATIONADD), new ReportParameter("parameterBGRQ", DateTime.Now.ToString("D")), new ReportParameter("parameterJCZMC", mainPanel.stationinfmodel.STATIONNAME) }; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.SetParameters(rptpara); } catch { throw; } reportViewer1.RefreshReport(); }
public void display_Asm(string clid) { SYS.Model.ASM asm_data = asmdal.Get_ASM(clid); SYS.Model.CARDETECTED carinf = logininfcontrol.getCarbjbycarID(clid); SYS.Model.CARINF carinfo = logininfcontrol.getCarInfbyPlate(carinf.CLHP); init_wsd(); if (printer.wsdthisTime.isUseWsd) { asm_data.WD = printer.wsdthisTime.wd; asm_data.SD = printer.wsdthisTime.sd; asm_data.DQY = printer.wsdthisTime.dqy; } this.reportViewer1.LocalReport.EnableExternalImages = true; string imageCMA = "file:///" + Application.StartupPath + "\\png\\WHITE.png", rzbh = ""; if (mainPanel.isdisplayCMA) { imageCMA = "file:///" + Application.StartupPath + "\\png\\CMA.jpg"; rzbh = mainPanel.stationinfmodel.STATIONDATE; } reportViewer1.LocalReport.ReleaseSandboxAppDomain(); reportViewer1.LocalReport.Dispose(); reportViewer1.Visible = true; string teststring = DateTime.Now.ToShortDateString(); try { ReportParameter[] rptpara = { new ReportParameter("parameterJCYJ", "GB3847-2005"), new ReportParameter("parameterJCFF", "加载减速法"), new ReportParameter("parameterLsh", carinf.LSH), new ReportParameter("parameterStationName", mainPanel.stationinfmodel.STATIONNAME), new ReportParameter("parameterJcrq", carinf.JCSJ.ToString("yyyy-MM-dd HH:mm:ss")), new ReportParameter("parameterCzy", carinf.CZY), new ReportParameter("parameterJsy", carinf.JSY), new ReportParameter("parameterClxh", carinf.XH), new ReportParameter("parameterScqy", carinf.SCQY), new ReportParameter("parameterJzzl", carinf.JZZL + "kg"), new ReportParameter("parameterZzl", carinf.ZZL + "kg"), new ReportParameter("parameterQdltqy", carinf.QDLTQY), new ReportParameter("parameterBsqxs", carinf.BSQXS), new ReportParameter("parameterJqfs", carinf.JQFS), new ReportParameter("parameterFdjxh", carinf.FDJXH + "/" + carinf.FDJPL + "L"), new ReportParameter("parameterGyfs", carinf.GYFS), new ReportParameter("parameterRlzl", carinf.RLZL + "/" + carinf.RYPH), new ReportParameter("parameterDws", carinf.DWS), new ReportParameter("parameterQGS", carinf.QGS), new ReportParameter("parameterFDJH", carinf.FDJHM), new ReportParameter("parameterXslc", carinf.XSLC + "km"), new ReportParameter("parameterFdjpl", carinf.FDJPL), new ReportParameter("parameterZcrq", carinf.ZCRQ.ToString("yyyy-MM-dd")), new ReportParameter("parameterCllx", carinf.CLLX), new ReportParameter("parameterHpzl", carinf.CPYS), new ReportParameter("parameterEdgl", carinf.EDGL), new ReportParameter("parameterEdzs", carinf.EDZS), new ReportParameter("parameterRylx", carinf.RLZL), new ReportParameter("parameterHbbz", "有"), new ReportParameter("parameterCzdz", ""), new ReportParameter("parameterCzdh", carinf.LXDH), new ReportParameter("parameterQdfs", carinf.QDXS), new ReportParameter("parameterChzz", carinf.JHZZ), new ReportParameter("parameterClph", carinf.CLHP), new ReportParameter("parameterCpys", carinf.CPYS), new ReportParameter("parameterClsbm", carinf.CLSBM), new ReportParameter("parameterCz", carinf.CZ), new ReportParameter("parameterSbmc", asm_data.SBMC), new ReportParameter("parameterSbbh", asm_data.CGJBH + "/" + asm_data.FXYBH), new ReportParameter("parameterSbxh", asm_data.SBXH), new ReportParameter("parameterSbcj", asm_data.SBZZC), new ReportParameter("parameterCgjxh", asm_data.CGJXH), new ReportParameter("parameterCgjbh", asm_data.CGJBH), new ReportParameter("parameterCgjcj", asm_data.CGJZZC), new ReportParameter("parameterFxyxh", asm_data.FXYXH), new ReportParameter("parameterFxybh", asm_data.FXYBH), new ReportParameter("parameterFxycj", asm_data.FXYZZC), new ReportParameter("parameterWd", asm_data.WD), new ReportParameter("parameterDqy", asm_data.DQY), new ReportParameter("parameterSd", asm_data.SD), new ReportParameter("parameterHC25CLZ", asm_data.HC25CLZ), new ReportParameter("parameterCO25CLZ", asm_data.CO25CLZ), new ReportParameter("parameterNOX25CLZ", asm_data.NOX25CLZ), new ReportParameter("parameterHC40CLZ", asm_data.HC40CLZ), new ReportParameter("parameterCO40CLZ", asm_data.CO40CLZ), new ReportParameter("parameterNOX40CLZ", asm_data.NOX40CLZ), new ReportParameter("parameterHC25PD", asm_data.HC25PD), new ReportParameter("parameterCO25PD", asm_data.CO25PD), new ReportParameter("parameterNOX25PD", asm_data.NOX25PD), new ReportParameter("parameterHC40PD", asm_data.HC40PD), new ReportParameter("parameterCO40PD", asm_data.CO40PD), new ReportParameter("parameterNOX40PD", asm_data.NOX40PD), new ReportParameter("parameterHC25XZ", "≤" + asm_data.HC25XZ), new ReportParameter("parameterCO25XZ", "≤" + asm_data.CO25XZ), new ReportParameter("parameterNOX25XZ", "≤" + asm_data.NOX25XZ), new ReportParameter("parameterHC40XZ", "≤" + asm_data.HC40XZ), new ReportParameter("parameterCO40XZ", "≤" + asm_data.CO40XZ), new ReportParameter("parameterNOX40XZ", "≤" + asm_data.NOX40XZ), new ReportParameter("parameterZHPD", (asm_data.ZHPD == "合格")?"通过":"未通过"), new ReportParameter("parameterJCCS", "第" + carinf.JCCS + "次"), new ReportParameter("parameterCo25025", asm_data.CO25025 + "%"), new ReportParameter("parameterO25025", asm_data.O25025 + "%"), new ReportParameter("parameterCo22540", asm_data.CO22540 + "%"), new ReportParameter("parameterO22540", asm_data.O22540 + "%"), new ReportParameter("parameterJDTEL", mainPanel.otherinf.JDDH), new ReportParameter("parameterFWTEL", mainPanel.otherinf.FWDH), new ReportParameter("parameterCMA", imageCMA), new ReportParameter("parameterRZBH", rzbh), new ReportParameter("parameterBGRQ", DateTime.Now.ToString("D")), new ReportParameter("parameterJczdz", mainPanel.stationinfmodel.STATIONADD), new ReportParameter("parameterJczdh", mainPanel.stationinfmodel.STATIONPHONE), new ReportParameter("parameterJCZMC", carinf.JCZMC.Split('_')[1]) }; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.SetParameters(rptpara); } catch { throw; } reportViewer1.RefreshReport(); }
public void display_Asm(string clid) { SYS.Model.ASM asm_data = asmdal.Get_ASM(clid); SYS.Model.CARDETECTED carinf = logininfcontrol.getCarbjbycarID(clid); SYS.Model.CARINF carinfo = logininfcontrol.getCarInfbyPlate(carinf.CLHP); init_wsd(); if (printer.wsdthisTime.isUseWsd) { asm_data.WD = printer.wsdthisTime.wd; asm_data.SD = printer.wsdthisTime.sd; asm_data.DQY = printer.wsdthisTime.dqy; } string jhzz = "—", pqhclzz = "—"; if (carinf.RLZL == "柴油") { pqhclzz = carinf.JHZZ; } else { jhzz = carinf.JHZZ; } reportViewer1.LocalReport.ReleaseSandboxAppDomain(); reportViewer1.LocalReport.Dispose(); reportViewer1.Visible = true; string teststring = DateTime.Now.ToShortDateString(); try { ReportParameter[] rptpara = { new ReportParameter("parameterJCYJ", "GB18285-2005、DB62/T 2575-2015"), new ReportParameter("parameterJCFF", "稳态工况法"), new ReportParameter("parameterLsh", carinf.LSH), new ReportParameter("parameterStationName", mainPanel.stationinfmodel.STATIONNAME), new ReportParameter("parameterJcrq", carinf.JCSJ.ToString("yyyy-MM-dd HH:mm:ss")), new ReportParameter("parameterCzy", carinf.CZY), new ReportParameter("parameterJsy", carinf.JSY), new ReportParameter("parameterBJY", carinf.DLY), new ReportParameter("parameterQdltqy", carinfo.QDLTQY == ""?"—":carinfo.QDLTQY), new ReportParameter("parameterRygg", carinfo.RYPH == ""?"—":carinfo.RYPH), new ReportParameter("parameterClxh", carinf.XH), new ReportParameter("parameterScqy", carinf.SCQY), new ReportParameter("parameterJzzl", carinf.JZZL), new ReportParameter("parameterZzl", carinf.ZZL), new ReportParameter("parameterBsqxs", carinf.BSQXS), new ReportParameter("parameterJqfs", carinf.JQFS), new ReportParameter("parameterFdjxh", carinf.FDJXH), new ReportParameter("parameterGyfs", carinf.GYFS), new ReportParameter("parameterRlzl", carinf.RLZL), new ReportParameter("parameterDws", carinf.DWS), new ReportParameter("parameterQGS", carinf.QGS), new ReportParameter("parameterFDJH", carinf.FDJHM), new ReportParameter("parameterXslc", carinf.XSLC), new ReportParameter("parameterFdjpl", carinf.FDJPL), new ReportParameter("parameterZcrq", carinf.ZCRQ.ToString("yyyy-MM-dd")), new ReportParameter("parameterCllx", carinf.CLLX), new ReportParameter("parameterQdfs", carinf.QDXS), new ReportParameter("parameterChzz", jhzz), new ReportParameter("parameterPqhclzz", pqhclzz), new ReportParameter("parameterClph", carinf.CLHP), new ReportParameter("parameterCpys", carinf.CPYS), new ReportParameter("parameterClsbm", carinf.CLSBM), new ReportParameter("parameterCz", carinf.CZ), new ReportParameter("parameterSbmc", asm_data.SBZZC), new ReportParameter("parameterCgjxh", asm_data.CGJXH), new ReportParameter("parameterCgjbh", asm_data.CGJBH), new ReportParameter("parameterCgjcj", asm_data.CGJZZC), new ReportParameter("parameterFxyxh", asm_data.FXYXH), new ReportParameter("parameterFxybh", asm_data.FXYBH), new ReportParameter("parameterFxycj", asm_data.FXYZZC), new ReportParameter("parameterWd", asm_data.WD), new ReportParameter("parameterDqy", asm_data.DQY), new ReportParameter("parameterSd", asm_data.SD), new ReportParameter("parameterHC25CLZ", asm_data.HC25CLZ), new ReportParameter("parameterCO25CLZ", asm_data.CO25CLZ), new ReportParameter("parameterNOX25CLZ", asm_data.NOX25CLZ), new ReportParameter("parameterHC40CLZ", asm_data.HC40CLZ == ""?"—":asm_data.HC40CLZ), new ReportParameter("parameterCO40CLZ", asm_data.CO40CLZ == ""?"—":asm_data.CO40CLZ), new ReportParameter("parameterNOX40CLZ", asm_data.NOX40CLZ == ""?"—":asm_data.NOX40CLZ), new ReportParameter("parameterHC25PD", asm_data.HC25PD == "合格"?"○" : "×"), new ReportParameter("parameterCO25PD", asm_data.CO25PD == "合格"?"○" : "×"), new ReportParameter("parameterNOX25PD", asm_data.NOX25PD == "合格"?"○" : "×"), new ReportParameter("parameterHC40PD", asm_data.HC40PD == ""?"—":(asm_data.HC40PD == "合格"?"○" : "×")), new ReportParameter("parameterCO40PD", asm_data.CO40PD == ""?"—":(asm_data.CO40PD == "合格"?"○" : "×")), new ReportParameter("parameterNOX40PD", asm_data.NOX40PD == ""?"—":(asm_data.NOX40PD == "合格"?"○" : "×")), new ReportParameter("parameterHC25XZ", "≤" + asm_data.HC25XZ), new ReportParameter("parameterCO25XZ", "≤" + asm_data.CO25XZ), new ReportParameter("parameterNOX25XZ", "≤" + asm_data.NOX25XZ), new ReportParameter("parameterHC40XZ", "≤" + asm_data.HC40XZ), new ReportParameter("parameterCO40XZ", "≤" + asm_data.CO40XZ), new ReportParameter("parameterNOX40XZ", "≤" + asm_data.NOX40XZ), new ReportParameter("parameterHK", "—"), new ReportParameter("parameterNK", "—"), new ReportParameter("parameterEK", "—"), new ReportParameter("parameterJZJSKXZ", "—"), new ReportParameter("parameterHKPD", "—"), new ReportParameter("parameterNKPD", "—"), new ReportParameter("parameterEKPD", "—"), new ReportParameter("parameterLBGL", "—"), new ReportParameter("parameterGLXZ", "—"), new ReportParameter("parameterGLPD", "—"), new ReportParameter("parameterLOWHC", "—"), new ReportParameter("parameterLOWHCXZ", "—"), new ReportParameter("parameterLOWCO", "—"), new ReportParameter("parameterLOWCOXZ", "—"), new ReportParameter("parameterLOWPD", "—"), new ReportParameter("parameterHIGHCO", "—"), new ReportParameter("parameterHIGHCOXZ", "—"), new ReportParameter("parameterHIGHHC", "—"), new ReportParameter("parameterHIGHHCXZ", "—"), new ReportParameter("parameterLAMDA", "—"), new ReportParameter("parameterLAMDAXZ", "—"), new ReportParameter("parameterLAMDAPD", "—"), new ReportParameter("parameterHIGHPD", "—"), new ReportParameter("parameterDSZS", "—"), new ReportParameter("parameterFIRSTDATA", "—"), new ReportParameter("parameterSECONDDATA", "—"), new ReportParameter("parameterTHIRDDATA", "—"), new ReportParameter("parameterBTGXZ", "—"), new ReportParameter("parameterPJZ", "—"), new ReportParameter("parameterBTGPD", "—"), new ReportParameter("parameterZHPD", (asm_data.ZHPD == "合格")?"○" : "×"), new ReportParameter("parameterJDTEL", mainPanel.otherinf.JDDH), new ReportParameter("parameterFWTEL", mainPanel.otherinf.FWDH), new ReportParameter("parameterWGJCY", mainPanel.wgjcy), new ReportParameter("parameterBJY", mainPanel.bjy), new ReportParameter("parameterBGRQ", DateTime.Now.ToString("D")), new ReportParameter("parameterJCZMC", mainPanel.stationinfmodel.STATIONNAME) }; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.SetParameters(rptpara); } catch { throw; } reportViewer1.RefreshReport(); }