This commit is contained in:
hanjian
2024-08-14 15:17:51 +08:00
parent 20a221c1a2
commit b610f94b2e
3483 changed files with 650965 additions and 0 deletions

View File

@@ -0,0 +1,162 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>添加应用</title>
<script type="text/javascript">
function createActUser(values, names) {
$("#appManagerIds").val(values.replace(/USER#/g, ""));
$("#appManagerNames").val(names);
}
function createApp() {
$.ajax({
type : 'POST',
url : '${ctx}/applicationMgr/save.do',
data : $('#myform').serialize(),
success : function (result){
alert(result);
art.dialog.opener.location.reload();
}
});
}
$(function(){
var demo=$("#myform").Validform({
datatype:{"appId": /^\w+$/},
tiptype:function(msg,o,cssctl){
var b = true;
//msg提示信息;
//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素或表单对象type指示提示的状态值为1、2、3、4 1正在检测/提交数据2通过验证3验证失败4提示ignore状态, curform为当前form对象;
//cssctl:内置的提示信息样式控制函数,该函数需传入两个参数:显示提示信息的对象 和 当前提示的状态既形参o中的type;
if(o.type==3){
if(msg.indexOf("statusText")<0){
//排除掉提交完成后返回的状态字符串
alert(msg);
b = false;
return b;
}
}
return b;
},
callback:function(data){
if('操作成功' == data.statusText){
alert("操作成功");
art.dialog.opener.location.reload();
}else{
alert("操作失败");
}
},
ajaxPost:true
});
$("#submitButton").click(function(){
demo.ajaxPost();
return false;
});
//$('#appId').keyup(trimkeyup);
})
</script>
</head>
<body class="white-page">
<form id="myform" action="${ctx}/applicationMgr/save.do">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table border="0" cellspacing="0" cellpadding="0" class="table table-bordered form-table" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<th>系统标识:<font color="red">*</font></th>
<td>
<input type="text" name="appId" id="appId"
datatype="appId" nullmsg="请输入系统标识!" errormsg="系统标识只能输入字母、数字、下划线!"、
onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>
</td>
<th>系统名称:<font color="red">*</font>
</th>
<td>
<input type="text" name="appName" id="appName" class="validate[required,length[0,50]]"
datatype="*1-50" nullmsg="请输入系统名称!" errormsg="系统名称不能超过12个字符"/>
</td>
</tr>
<tr>
<th>系统分类:</th>
<td><select id="appType" name="appType">
<option value="inner">内部应用</option>
<option value="outside">外部应用</option></select></td>
<th>系统状态:<font color="red">*</font>
</th>
<td><select id="appStatus" name="appStatus">
<option value="N">正常</option>
<option value="T">已停用</option></select></td>
</tr>
<tr>
<th>开发厂商:<font color="red">*</font>
</th>
<td>
<input type="text" name="appProvider" id="appProvider" class="input"
datatype="*1-30" nullmsg="请输入开发厂商!" errormsg="开发厂商不能超过30个字符"/>
</td>
<th><u
onclick="showDiaLog('${ctx}/pages/user_org_select.jsp?showTreeType=USER&isMultiSelect=true&roleFlag=false&orgId=0', '添加管理人员', '800px', '500px');"
style="cursor: pointer;">管理员</u><font color="red">*</font></th>
<td><input type="text" name="appManagerNames" id="appManagerNames" class="input"
readonly="readonly" datatype="*1-500" nullmsg="请选择管理员!"/>
<input type="hidden" name="appManagerIds" id="appManagerIds" class="input" /></td>
</tr>
<!--
<tr>
<th>待办URL<font color="red">*</font></th>
<td colspan="3"><input type="text" name="appAccessUrl"
value="${ application.appAccessUrl}" id="appAccessUrl"
datatype="url" nullmsg="请输入待办URL" errormsg="请输入正确的url地址"
class="input" style="width: 99%;"/></td>
</tr> -->
<tr>
<th>联系人:</th>
<td>
<input type="text" name="appLinkman" id="appLinkman" class="input" />
</td>
<th>联系电话:</th>
<td><input type="text" name="appPhone" id="appPhone" class="input" />
</td>
</tr>
<tr>
<th>服务器IP列表</th>
<td colspan="3"><input type="text" name="ipList" id="ipList" class="input" style="width:99%;" /></td>
</tr>
<tr>
<th>系统描述:</th>
<td colspan="3"><input type="text" name="appDesc" id="appDesc" class="input" style="width: 99%;"/></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<!-- <input type="button" class="btn btn-sm btn-primary"
id="submitButton" name="submitButton" onclick="createApp();"
value="保 存" />-->
<button type="button" class="btn btn-sm btn-primary"
id="submitButton" name="submitButton">
保存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,149 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>添加应用</title>
<script type="text/javascript">
function createActUser(values, names) {
$("#appManagerIds").val(values.replace(/USER#/g, ""));
$("#appManagerNames").val(names);
}
function updateApp(){
$.post('${ctx}/applicationMgr/update.do',$('#myform').serialize(),function(result){
alert(result);
art.dialog.opener.location.reload();
});
}
$(function(){
var demo = $("#myform").Validform({
tiptype:function(msg,o,cssctl){
var b = true;
//msg提示信息;
//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素或表单对象type指示提示的状态值为1、2、3、4 1正在检测/提交数据2通过验证3验证失败4提示ignore状态, curform为当前form对象;
//cssctl:内置的提示信息样式控制函数,该函数需传入两个参数:显示提示信息的对象 和 当前提示的状态既形参o中的type;
if(o.type==3){
if(msg.indexOf("statusText")<0){
//排除掉提交完成后返回的状态字符串
alert(msg);
b = false;
return b;
}
}
return b;
},
callback:function(data){
if('操作成功' == data.statusText){
alert("操作成功");
art.dialog.opener.location.reload();
}else{
alert("操作失败");
}
},
ajaxPost:true
});
$("#submitButton").click(function(){
demo.ajaxPost();
return false;
});
})
</script>
</head>
<body class="white-page">
<form action="${ctx}/applicationMgr/update.do" id="myform" name="myform" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table border="0" cellspacing="0" cellpadding="0" class="table table-bordered form-table" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<th>系统标识:<font color="red">*</font></th>
<td><input type="text" name="appId" name="appId"
value="${ application.appId}" readonly="readonly"
datatype="s1-50" nullmsg="请输入系统标识!" errormsg="系统标识不能超过50个字符"/></td>
<th>系统名称:<font color="red">*</font>
</th>
<td><input type="text" name="appName"
value="${ application.appName}" id="appName"
class="validate[required,length[0,50]]"
datatype="*1-50" nullmsg="请输入系统名称!" errormsg="系统名称不能超过12个字符"/></td>
</tr>
<tr>
<th>系统分类:</th>
<td><select id="appType" name="appType"
value="${application.appType }"><option value="inner">内部应用</option>
<option value="outside">外部应用</option></select></td>
<th>系统状态:<font color="red">*</font>
</th>
<td><select id="appStatus" name="appStatus"
value="${application.appStatus }"><option value="N">正常</option>
<option value="T">已停用</option></select></td>
</tr>
<tr>
<th>开发厂商:<font color="red">*</font>
</th>
<td><input type="text" name="appProvider"
value="${application.appProvider }" id="appProvider"
datatype="*1-30" nullmsg="请输入开发厂商!" errormsg="开发厂商不能超过30个字符"
class="input" /></td>
<th><u
onclick="showDiaLog('${ctx}/pages/user_org_select.jsp?showTreeType=USER&isMultiSelect=true&roleFlag=false&orgId=0', '添加管理人员', '800px', '500px');"
style="cursor: pointer;">管理员</u><font color="red">*</font></th>
<td><input type="text" name="appManagerNames" id="appManagerNames" class="input"
readonly="readonly" datatype="*1-500" nullmsg="请选择管理员!"
value="${application.managerNames }" readonly="readonly"/>
<input type="hidden" name="appManagerIds" id="appManagerIds" value="${application.managerIds }" class="input" /></td>
</tr>
<!--
<tr>
<th>待办URL<font color="red">*</font></th>
<td colspan="3"><input type="text" name="appAccessUrl"
value="${ application.appAccessUrl}" id="appAccessUrl"
datatype="*" nullmsg="请输入待办URL" errormsg="请输入正确的url地址"
class="input" style="width: 99%;"/></td>
</tr>
-->
<tr>
<th>联系人:</th>
<td><input type="text" name="appLinkman"
value="${application.appLinkman }" id="appLinkman" class="input" />
</td>
<th>联系电话:</th>
<td><input type="text" name="appPhone"
value="${application.appPhone }" id="appPhone" class="input" />
</td>
</tr>
<tr>
<th>服务器IP列表</th>
<td colspan="3"><input type="text" name="ipList" id="ipList" class="input" style="width:99%;" value="${application.ipList }" /></td>
</tr>
<tr>
<th>系统描述:</th>
<td colspan="3"><input type="text" name="appDesc"
value="${application.appDesc }" id="appDesc" class="input" style="width: 99%;"/></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button type="button" class="btn btn-sm btn-primary"
id="submitButton" >
保存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,139 @@
<%@page import="com.blueland.bpm.engine.core.model.ProcessDefinitionModel"%>
<%@page import="com.blueland.bpm.engine.config.model.ProcessInfoConfig"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>应用列表</title>
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
jQuery.ajax({
type: "get",
url: "https://api.hngytobacco.com/user-center/user/p_longw",
data: {},
headers: {
'Authorization': "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJnTlJqS1paaFdGQ05VbFNMd2RqTEFSR0FBZ3hqa2NrNyIsImV4cCI6MTU4NDAxNjc0NX0.Bv_9tqZvCmN29jDCuVv3QPWTHGnE5PBfg0DgWtiVWShPtXUKZQtdDW9iDAKpfiPa_nvNRxzSowiCs7DekbejEhISkayWAyctQvi24fK-NiP9PVNnZF2AjAGx0mjLPLNblqJwc5nTwJQY83VPn0Fs2cCS5esTncH6U_behFjoDMc"
},
success: function(resp)
{
alert(JSON.stringify(resp));
}
});
});
function createApplication(){
var url="${ctx}/applicationMgr/create.do";
showDiaLog(url,"添加应用",'800px','450px');
}
function onDelete(action, radioName, form){
if (!hasOneChecked(radioName)) {
alert('请选择要操作的对象!');
return;
}
if(window.confirm('确定执行[删除]操作?')){
setMask("main-container");
form.action = action;
form.submit();
}
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/applicationMgr/list.do" method="post"
style="display: inline;">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
<h8>应用列表</h8>
</div>
<div class="panel-body" id="panel-body" style="padding:3px;">
<div class="well well-sm" style="margin-bottom: 2px;">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td>应用名称:</td>
<td><input value="${query.appName}" id="appName"
name="appName" maxlength="50" /></td>
<td><button type="submit" onclick="getReferenceForm(this).action='${ctx}/applicationMgr/list.do'"class="btn btn-xs btn-primary">查询
<i class="ace-icon fa fa-search bigger-110"></i></button>
<button type="button" onclick="createApplication();" class="btn btn-xs btn-success">添加应用
<i class="ace-icon fa fa-plus bigger-110"></i></button>
<button type="button" onclick="onDelete('${ctx}/applicationMgr/delete.do','items',document.forms.queryForm)" class="btn btn-xs btn-success"">删除应用
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<div style="width: 100%;overflow: auto;">
<table style="width: inherit;max-width: 600%;table-layout: fixed;" id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 20px"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width: 120px" sortColumn="appId">应用ID</th>
<th style="width: 120px" sortColumn="appName">应用名称</th>
<th style="width: 120px" sortColumn="appProvider">开发商</th>
<th style="width: 120px" sortColumn="appStatus">应用状态</th>
<th style="width: 120px" sortColumn="appUrl">待办URL</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="radio" name="items" value="appId=${item.appId}"></td>
<td><a href="javascript:void(0);" onclick="showDiaLog('${ctx}/applicationMgr/edit.do?appId=${item.appId }', '修改应用', '800px','450px');">${item.appId}</a>&nbsp;</td>
<td>${item.appName}&nbsp;</td>
<td>${item.appProvider}&nbsp;</td>
<td>${item.statusVal }&nbsp;</td>
<td>${item.appAccessUrl}&nbsp;</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>