Ecology-Dev-chaofa/ShangHaiShuZhi/interface/shsz/ModeTest.jsp

53 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page import="weaver.general.Util" %>
<%@ page import="java.math.BigDecimal" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="bb" class="weaver.general.BaseBean" />
<%
int nodeid = Util.getIntValue(request.getParameter("nodeid"));//流程的节点id
bb.writeLog("========== nodeid ============"+ nodeid);
String sql = "select isstart from workflow_nodebase where id = " + nodeid;
rs.execute(sql);
rs.next();
int isstart = Util.getIntValue(rs.getString("isstart"));//判断是否是流程创建节点 1是 0
%>
<script type="text/javascript">
jQuery(document).ready(function(){
window.checkCustomize = function(){
let flag = '';
let mess = '';
//身份证号
var sfzh_id = ModeForm.convertFieldNameToId("sfzh");
var sfzh = ModeForm.getFieldValue(sfzh_id);
jQuery.ajax({
type:"POST",
url:"/interface/shsz/checkHmdHasData.jsp",
data:{sfzh:sfzh},
async:false,
dataType: "json",
success:function(data) {
flag = data.flag;
mess = data.mess;
},
complete:function(XMLHttpRequest, textStatus) {
},
error:function(e){
alert(e);
}
});
if(flag=='1'){
window.weaJs.alert(mess);
return false;
}else{
return true;
}
}
});
</script>