电子签约判断是否是自然人

This commit is contained in:
tangfutang 2018-06-13 09:36:08 +08:00
parent 4b8ce693aa
commit 3cb56ffd62
5 changed files with 15 additions and 6 deletions

View File

@ -16,7 +16,6 @@
//alert(getHtmlMessage('1'));//ÇëÑ¡ÔñÒ»ÌõÐÅÏ¢£¡
return;
}
debugger;
sReturn = sReturn.split("@");
var id=sReturn[0];
var product_id=sReturn[1];
@ -24,7 +23,7 @@
var project_name = sReturn[3];
var customertype = sReturn[4];
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
sParams =sParams+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.contractapproval.ContractApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;

View File

@ -44,7 +44,8 @@ import com.amarsoft.biz.workflow.FlowTask;
import com.amarsoft.biz.workflow.TaskDataObject;
import com.amarsoft.context.ASUser;
import com.amarsoft.dict.als.manage.NameManager;
import com.base.util.DateUtil;
//import com.base.util.DateUtil;
import com.tenwa.reckon.util.DateUtil;
import com.tenwa.app.manage.constant.PushMessageConstant;
import com.tenwa.app.manage.util.PushMessageUtil;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;

View File

@ -127,7 +127,7 @@ public class SerialNumberUtil {
return SerialNumberUtil.getSerialNumber("P{year}{maxOrderNumber}",7,null, "ÏîÄ¿±àºÅ", null, tx);
}
public static String getContractSerialNaumber(String dept,JBOTransaction tx) throws Exception {
public static String getContractSerialNaumber(String dept,String area_code,JBOTransaction tx) throws Exception {
String currentDateTime = DateAssistant.getToday();
String currentYear = currentDateTime.substring(0,4);
String currentMonth = currentDateTime.substring(5,7);
@ -135,7 +135,7 @@ public class SerialNumberUtil {
int year = Integer.parseInt(currentYear);
int month = Integer.parseInt(currentMonth);
int day = Integer.parseInt(currentDay);
return SerialNumberUtil.getSerialNumberByDay("zlzl"+dept+"{year}{month}{day}{maxOrderNumber}",3,null, "", year,month,day, tx);
return SerialNumberUtil.getSerialNumberByDay("zlzl"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
}
/*public static String getContractSerialNaumber(String sSerialType,JBOTransaction tx) throws Exception {

View File

@ -35,6 +35,7 @@ public class FlowBussionAction extends CommonAction {
private String FlowKey;
private String ProductId;
private String FixedFlowParam;
public String customertype;
public List<BizObject> FlowMutexConfig;
public Map<String, String> FlowParam = new HashMap<String, String>();
@ -213,4 +214,11 @@ public class FlowBussionAction extends CommonAction {
public void setFlowMutexConfig(List<BizObject> flowMutexConfig) {
FlowMutexConfig = flowMutexConfig;
}
public String getCustomertype() {
return customertype;
}
public void setCustomertype(String customertype) {
this.customertype = customertype;
}
}

View File

@ -58,7 +58,8 @@ public class ContractApprovalStartAction extends BaseFlowStartAction{
contractno=SerialNumberUtil.getContractSerialNaumber(dept,area_code, tx);
}
this.FlowParam.put("ContractNo", contractno);
this.FlowParam.put("FlowKey", contractno);
this.FlowParam.put("FlowKey", contractno);
this.FlowParam.put("customertype", customertype);
this.FlowParam.put("IsMakeContract", "yes");
}
}