From 1aa55162b7d4f83c4cd000a06dc400676342498f Mon Sep 17 00:00:00 2001 From: ap007 Date: Mon, 30 Jan 2023 16:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E8=AF=81=E9=87=91=E6=94=B6=E5=8F=96?= =?UTF-8?q?=E5=92=8C=E9=80=80=E5=9B=9E=E6=B5=81=E7=A8=8B=E8=B5=84=E6=96=99?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E9=A3=8E=E9=99=A9=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commcheck/IcmsDocListCheckByFlowunid.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commcheck/IcmsDocListCheckByFlowunid.java diff --git a/src_tenwa/com/tenwa/lease/flow/project/commcheck/IcmsDocListCheckByFlowunid.java b/src_tenwa/com/tenwa/lease/flow/project/commcheck/IcmsDocListCheckByFlowunid.java new file mode 100644 index 000000000..c2312e90d --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commcheck/IcmsDocListCheckByFlowunid.java @@ -0,0 +1,43 @@ +package com.tenwa.lease.flow.project.commcheck; + +import com.amarsoft.app.alarm.AlarmBiz; +import com.amarsoft.awe.util.Transaction; +import com.ample.icms.check.ImageCheck; +import com.ample.icms.util.GetInfoUtil; + +/** + * 资料清单检查 + * @author 20170524 + * + */ +public class IcmsDocListCheckByFlowunid extends AlarmBiz { + @Override + public Object run(Transaction Sqlca) throws Exception { + String flowUnid = this.getAttribute("ObjectNo").toString(); + String flowNo = this.getAttribute("FlowNo").toString(); + GetInfoUtil gif = new GetInfoUtil(); + String busiNo = flowUnid; + String app = gif.getAppInfoByFlowNo(flowNo,Sqlca); + String [] appInfo = app.split("@"); + String appCode = appInfo[0]; + String appName = appInfo[1]; + if("0000".equals(appCode)){ + setPass(false); + putMsg(appName); + return null; + } + ImageCheck ic= new ImageCheck(); + ic.setAppCode(appCode); + ic.setAppName(appName); + ic.setBusiNo(busiNo); + String result =ic.resultAnalysis(ic.getResult()); + String[] resultInfo = result.split("@"); + if("true".equals(resultInfo[0])){ + setPass(true); + }else{ + setPass(false); + } + putMsg(resultInfo[1]); + return null; + } +}