You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.8 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.wdk.WDKConstant"%>
<%@ page import="org.wdk.WDKCore"%>
<%@ page import="org.wdk.WDK"%>
<%@ page import="com.noblelift.imp.platform.module.portal.source.SessionUser"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String WDK_ROOT = WDKCore.WDK_ROOT;
SessionUser su = (SessionUser) WDK.getSessionUser(request, response);
WDK.writeSessionUser(out, su);
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试业务办理类</title>
<base href="<%=basePath%>" target="_self">
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/je/core/js/wdk.js"></script>
<style type="text/css">
</style>
</head>
<body>
<%@ include file="/wdk/pb/wf/participant_module.jsp"%>
</body>
<script type="text/javascript">
//提交流程待办
function push(){
var result = _WF_GET_SUBMIT_BEAN('unitid','yubin','deptuuid');
if(result && result.code == '0'){
alert(result.desc);
return;
}
var bean_submit = result.submit_bean;
console.log(bean_submit);
var _data ={
_SRVNAME : 'service.wdk.wfexecution',
_SRVMETHOD: 'pushProcessInstance',
_DATA: $.json2str({
bean_submit:bean_submit
}),
};
var url = "wdk?action=wdk.pub&method=call_service";
$.cuajax({
url:url+"&ajaxparam="+new Date().getTime(),
method:"post",
timeout:WDK_Timeout,
data:_data,
success:function(result) {
var jres = $.str2json(result);
alert(jres.desc);
},
error:function(result){
alert('网络错误!result='+result);
$.wait_close();
}
});
}
</script>
</html>