业务申请

This commit is contained in:
zhouyahui 2018-08-08 13:39:57 +08:00
parent e95df321d1
commit a751c1e02d
3 changed files with 95 additions and 1 deletions

View File

@ -106,7 +106,7 @@
<attribute name="BUSINESSTYPE" label="业务类型" type="STRING" length="64"/>
<attribute name="distributor_id" label="distributor_id" type="STRING" length="32"/>
<attribute name="CONTRACT_NUMBER" label="合同编号" type="STRING" length="100"/>
<attribute name="apply_type" label="申请类型" type="STRING" length="32"/>
<attribute name="source_type" label="申请类型" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -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;
}
}

View File

@ -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;
}
}