收车申请改为条件路由
This commit is contained in:
parent
497e0b7b1d
commit
f01f200fe9
37
src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java
Normal file
37
src_tenwa/com/tenwa/apzl/carreclaim/BackReclaim.java
Normal file
@ -0,0 +1,37 @@
|
||||
package com.tenwa.apzl.carreclaim;
|
||||
|
||||
|
||||
import jbo.com.tenwa.lease.comm.CAR_RECLAIM_TEMP;
|
||||
|
||||
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;
|
||||
|
||||
public class BackReclaim 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(CAR_RECLAIM_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false);
|
||||
String sMessage="";
|
||||
String reclaimType = "";
|
||||
if(null!=condition){
|
||||
reclaimType=condition.getAttribute("reclaim_type").toString();
|
||||
}
|
||||
if(reclaimType!=null&&reclaimType.equals("back_reclaim")){//×ßµÚËĸö½Úµã
|
||||
sMessage="true";
|
||||
}else {
|
||||
sMessage="false";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
37
src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java
Normal file
37
src_tenwa/com/tenwa/apzl/carreclaim/OutDateReclaim.java
Normal file
@ -0,0 +1,37 @@
|
||||
package com.tenwa.apzl.carreclaim;
|
||||
|
||||
|
||||
import jbo.com.tenwa.lease.comm.CAR_RECLAIM_TEMP;
|
||||
|
||||
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;
|
||||
|
||||
public class OutDateReclaim 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(CAR_RECLAIM_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false);
|
||||
String sMessage="";
|
||||
String reclaimType = "";
|
||||
if(null!=condition){
|
||||
reclaimType=condition.getAttribute("reclaim_type").toString();
|
||||
}
|
||||
if(reclaimType!=null&&reclaimType.equals("over_reclaim")){//×ßµÚËĸö½Úµã
|
||||
sMessage="true";
|
||||
}else {
|
||||
sMessage="false";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user