合同制作没有进行签约验证,不允许发起合同制作
This commit is contained in:
parent
0abe4fc8a8
commit
8f30235944
@ -8,6 +8,11 @@
|
||||
<%
|
||||
|
||||
String sTempletNo = "LoanSimulationBasicInfo_old";//--Ä£°åºÅ--
|
||||
String applytype=CurPage.getParameter("ApplyType");
|
||||
//如果是汽车的提请结清用汽车的模板
|
||||
if("ContractTerminateApply".equals(applytype)){
|
||||
sTempletNo = "LoanSimulationBasicInfo_old_Car";//--模板号--
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String plannumber=CurPage.getParameter("plannumber");
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
package com.tenwa.lease.flow.contract.check;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
|
||||
public class ContractInfoCheck {
|
||||
|
||||
private String contractid;
|
||||
private String projectid;
|
||||
|
||||
public String getContractid() {
|
||||
return contractid;
|
||||
}
|
||||
public void setContractid(String contractid) {
|
||||
this.contractid = contractid;
|
||||
}
|
||||
public String getProjectid() {
|
||||
return projectid;
|
||||
}
|
||||
public void setProjectid(String projectid) {
|
||||
this.projectid = projectid;
|
||||
}
|
||||
|
||||
//检查该项目是否进行过签约验证
|
||||
public String ProjectSignStatus(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME, tx);
|
||||
String acc_number = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", projectid).getSingleResult(false).getAttribute("acc_number").getString();
|
||||
List<BizObject> cas = caManage.createQuery("acc_number=:accnumber").setParameter("accnumber", acc_number).getResultList(false);
|
||||
String falg = "error";
|
||||
for (BizObject ca : cas) {
|
||||
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
|
||||
return "success";
|
||||
}
|
||||
}
|
||||
return falg;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user