修改app电子签约
This commit is contained in:
parent
4e9b9182a6
commit
60b71d99ed
@ -206,6 +206,16 @@
|
||||
if("BAIC_MOTOR"==operationType){
|
||||
sParams = sParams+",distributorNo="+getItemValue(0,getRow(),"distributorNo")+",distributorName="+getItemValue(0,getRow(),"distributorName");
|
||||
}
|
||||
//如果是个人,将对应的性别参数参数到流程中
|
||||
if("03"==customerType){
|
||||
var sex = certid.substring(16,17);
|
||||
sex = parseInt(sex);
|
||||
if(sex%2==0){//奇男偶女
|
||||
sParams = sParams+",sex=2";
|
||||
}else{
|
||||
sParams = sParams+",sex=1";
|
||||
}
|
||||
}
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);//定义流程中需要的参数
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
|
||||
{
|
||||
|
||||
@ -30,6 +30,7 @@ import com.base.util.ReturnMapUtil;
|
||||
import com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward;
|
||||
import com.tenwa.app.baseFileTemplate.handle.FileTemplateUtil;
|
||||
import com.tenwa.channelportal.action.ContractSignAction;
|
||||
import com.tenwa.channelportal.action.ContractSignActionTwo;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.makeContract.util.MakeOneCodeAndContractModel;
|
||||
import com.tenwa.officetempalte.action.CreateContractOfficeAction;
|
||||
@ -164,7 +165,17 @@ public class ContractMakeServiceImpl implements ContractMakeService{
|
||||
modc.pdfAndMark(outPdfFile, path, contractId,flowParms.get("leasform"), sqlca);
|
||||
// //判断是否自动盖章sealType signType
|
||||
if(("01".equals(flowParms.get("customertype"))&&"Auto".equals(flowParms.get("sealType")) )||("Auto".equals(flowParms.get("sealType")) && "Hand".equals(flowParms.get("signType")) )){
|
||||
modc.compnySignIng(contractId,flowParms.get("SubjectId"), sqlca);
|
||||
String operationType = flowParms.get("operationType");
|
||||
if("LHZL".equals(operationType) || "SQSYC".equals(operationType)){
|
||||
ContractSignActionTwo csat = new ContractSignActionTwo();
|
||||
csat.setFlowUnid(flowUnid);
|
||||
csat.setProjectId(projectId);
|
||||
csat.setOperationType(operationType);
|
||||
csat.setSubjectId(flowParms.get("SubjectId"));
|
||||
csat.compnySignIng(tx);
|
||||
}else{
|
||||
modc.compnySignIng(contractId,flowParms.get("SubjectId"), sqlca);
|
||||
}
|
||||
}
|
||||
body.put("status", "00");
|
||||
body.put("message", "");
|
||||
@ -254,10 +265,22 @@ public class ContractMakeServiceImpl implements ContractMakeService{
|
||||
body.put("status", "01");
|
||||
body.put("message", checkFile);
|
||||
}else{
|
||||
csa.setCurUserID(userid);
|
||||
csa.setFlowUnid(flowParms.get("FlowUnid"));
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
String signIng = csa.signIng(tx);
|
||||
String signIng = "";
|
||||
String operationType = flowParms.get("operationType");
|
||||
if("LHZL".equals(operationType) || "SQSYC".equals(operationType)){
|
||||
ContractSignActionTwo csat = new ContractSignActionTwo();
|
||||
csat.setFlowUnid(flowUnid);
|
||||
csat.setProjectId(flowParms.get("ProjectId"));
|
||||
csat.setOperationType(operationType);
|
||||
csat.setSubjectId(flowParms.get("SubjectId"));
|
||||
signIng = csat.signIng(tx);
|
||||
}else{
|
||||
csa.setCurUserID(userid);
|
||||
csa.setFlowUnid(flowParms.get("FlowUnid"));
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
signIng = csa.signIng(tx);
|
||||
}
|
||||
|
||||
String[] signStatus = signIng.split("@");
|
||||
if("success".equals(signStatus[0])){
|
||||
body.put("status", "00");
|
||||
@ -314,10 +337,22 @@ public class ContractMakeServiceImpl implements ContractMakeService{
|
||||
body.put("status", "01");
|
||||
body.put("message", checkSign);
|
||||
}else{
|
||||
ContractSignAction csa = new ContractSignAction();
|
||||
csa.setProjectId(flowParms.get("ProjectId"));
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
String sendMessageAgain = csa.sendMessageAgain(tx);
|
||||
String sendMessageAgain = "";
|
||||
String operationType = flowParms.get("operationType");
|
||||
if("LHZL".equals(operationType) || "SQSYC".equals(operationType)){
|
||||
ContractSignActionTwo csat = new ContractSignActionTwo();
|
||||
csat.setFlowUnid(flowUnid);
|
||||
csat.setProjectId(flowParms.get("ProjectId"));
|
||||
csat.setOperationType(operationType);
|
||||
csat.setSubjectId(flowParms.get("SubjectId"));
|
||||
sendMessageAgain = csat.sendMessageAgain(tx);
|
||||
}else{
|
||||
ContractSignAction csa = new ContractSignAction();
|
||||
csa.setProjectId(flowParms.get("ProjectId"));
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
sendMessageAgain = csa.sendMessageAgain(tx);
|
||||
}
|
||||
|
||||
if("success".equals(sendMessageAgain)){
|
||||
body.put("status", "00");
|
||||
body.put("message", "短信发送成功!");
|
||||
@ -351,13 +386,24 @@ public class ContractMakeServiceImpl implements ContractMakeService{
|
||||
body.put("status", "01");
|
||||
body.put("message", checkSign);
|
||||
}else{
|
||||
ContractSignAction csa = new ContractSignAction();
|
||||
csa.setProjectId(flowParms.get("ProjectId"));
|
||||
csa.setCustomerType(flowParms.get("customertype"));
|
||||
csa.setFlowUnid(flowUnid);
|
||||
csa.setCurUserID(userid);
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
String contractSignStatus = csa.contractSignStatus(tx);
|
||||
String contractSignStatus = "";
|
||||
String operationType = flowParms.get("operationType");
|
||||
if("LHZL".equals(operationType) || "SQSYC".equals(operationType)){
|
||||
ContractSignActionTwo csat = new ContractSignActionTwo();
|
||||
csat.setFlowUnid(flowUnid);
|
||||
csat.setProjectId(flowParms.get("ProjectId"));
|
||||
csat.setOperationType(operationType);
|
||||
csat.setSubjectId(flowParms.get("SubjectId"));
|
||||
contractSignStatus = csat.contractSignStatus(tx);
|
||||
}else{
|
||||
ContractSignAction csa = new ContractSignAction();
|
||||
csa.setProjectId(flowParms.get("ProjectId"));
|
||||
csa.setCustomerType(flowParms.get("customertype"));
|
||||
csa.setFlowUnid(flowUnid);
|
||||
csa.setCurUserID(userid);
|
||||
csa.setSubjectId(flowParms.get("SubjectId"));
|
||||
contractSignStatus = csa.contractSignStatus(tx);
|
||||
}
|
||||
if("已经完成电子签约".equals(contractSignStatus)){
|
||||
body.put("status", "00");
|
||||
body.put("message",contractSignStatus);
|
||||
@ -384,8 +430,6 @@ public class ContractMakeServiceImpl implements ContractMakeService{
|
||||
String status = result[0];
|
||||
if("true".equals(result[3])){
|
||||
message = "请先生成pdf版的合同!!!";
|
||||
}else if( status!=null && !status.equals("null") && status.length()>0 && new Integer(status) < 2 ){
|
||||
message = "ÇëÉú³ÉºÏͬ,ÔÚµç×ÓǩԼ";
|
||||
}else if(status!=null && !status.equals("null") && status.length()>0 && new Integer(status) > 4 &&new Integer(status) < 7 ){
|
||||
message = "合同状态为:"+result[1]+"不可以电子签章";
|
||||
}else if (("sendMessageAgain".equals(signType)||"queryAgain".equals(signType)) && new Integer(status) == 2){
|
||||
|
||||
@ -32,6 +32,7 @@ import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.dw.ui.page.body.imp.Integer;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
@ -268,6 +269,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
boCRT.setAttributeValue("MOBILE", this.getAttribute("mobile"));//手机号
|
||||
boCRT.setAttributeValue("NATIVEPLACE", this.getAttribute("nativeplace"));//户籍地址
|
||||
}
|
||||
boCRT.setAttributeValue("SEX", this.getAttribute("sex"));//手机号
|
||||
}
|
||||
bomC.saveObject(boCRT);
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user