From a751c1e02db387e02c1ecf25d2a92b7641dc9dad Mon Sep 17 00:00:00 2001 From: zhouyahui Date: Wed, 8 Aug 2018 13:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/WEB-INF/etc/jbo/jbo_lease.xml | 2 +- .../businessapply/LBAfterBusinessApp.java | 47 +++++++++++++++++++ .../businessapply/LBAfterBusinessWeb.java | 47 +++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessApp.java create mode 100644 src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessWeb.java diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml index 94537b7a9..e417ecbf3 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml @@ -106,7 +106,7 @@ - + diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessApp.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessApp.java new file mode 100644 index 000000000..f2fb91ac4 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessApp.java @@ -0,0 +1,47 @@ +package com.tenwa.lease.flow.project.businessapply; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import jbo.app.tenwa.calc.LC_CALC_CONDITION; +import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP; +import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR; +import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP; + +import com.amarsoft.app.lc.workflow.action.GetFlowAction; +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; +import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; +import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; +import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp; + +public class LBAfterBusinessApp extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowUnid=this.getAttribute("ObjectNo").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + + BizObjectManager lecbom = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, Sqlca); + BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false); + String sMessage=""; + String applytype = null; + if(null!=condition){ + applytype=condition.getAttribute("source_type").toString(); + } + if("app"==applytype){//ߵ2ڵ + sMessage="false"; + }else { + sMessage="true"; + } + + + + return sMessage; + } +} \ No newline at end of file diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessWeb.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessWeb.java new file mode 100644 index 000000000..7cbbd4fe7 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/LBAfterBusinessWeb.java @@ -0,0 +1,47 @@ +package com.tenwa.lease.flow.project.businessapply; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import jbo.app.tenwa.calc.LC_CALC_CONDITION; +import jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP; +import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR; +import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP; + +import com.amarsoft.app.lc.workflow.action.GetFlowAction; +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; +import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; +import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; +import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp; + +public class LBAfterBusinessWeb extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowUnid=this.getAttribute("ObjectNo").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + + BizObjectManager lecbom = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, Sqlca); + BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false); + String sMessage=""; + String applytype = null; + if(null!=condition){ + applytype=condition.getAttribute("source_type").toString(); + } + if("web"==applytype){//ߵ3ڵ + sMessage="false"; + }else { + sMessage="true"; + } + + + + return sMessage; + } +} \ No newline at end of file