104 lines
2.9 KiB
Plaintext
104 lines
2.9 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@page import="com.sipai.entity.user.ExtSystem"%>
|
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
|
<% request.setAttribute("RequestMode", ExtSystem.RequestMode); %>
|
|
<% request.setAttribute("SystemType", ExtSystem.SystemType); %>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
|
<script type="text/javascript">
|
|
function dosave(dialog,grid) {
|
|
if ($(".form").form('validate')) {
|
|
$.post(ext.contextPath + "/user/extsystem/save.do", $(".form").serialize(), function(data) {
|
|
if (data.res == 1) {
|
|
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
|
grid.datagrid('reload');
|
|
dialog.dialog('destroy');
|
|
});
|
|
}else if(data.res == 0){
|
|
top.$.messager.alert('提示', "保存失败", 'info');
|
|
}else{
|
|
top.$.messager.alert('提示', data.res, 'info');
|
|
}
|
|
},'json');
|
|
}
|
|
}
|
|
|
|
$(function() {
|
|
$("#workshopid").combobox({
|
|
url : ext.contextPath + '/work/workshop/getlist4Combo.do',
|
|
valueField : 'id',
|
|
textField : 'name',
|
|
method:'get',
|
|
panelHeight:'auto'
|
|
});
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form method="post" class="form">
|
|
<table class="table">
|
|
<tr>
|
|
<th>名称</th>
|
|
<td><input name="name" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>请求链接</th>
|
|
<td ><input name="url" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" style="width:400px;" value="" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>请求方式</th>
|
|
<td >
|
|
<select id="mode" class="easyui-combobox" name="mode" style="width:204px;">
|
|
<c:forEach var="item" items="${RequestMode}" >
|
|
<option value='${item}'>${item}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<th>系统类型</th>
|
|
<td>
|
|
<select id="type" name="type" class="easyui-combobox" style="width:204px;">
|
|
<c:forEach var="item" items="${SystemType}" >
|
|
<option value='${item}'>${item}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>所属车间</th>
|
|
<td><input id="workshopid" name="workshopid" class="easyui-combobox"
|
|
data-options="required:false,validType:'isBlank'" value="" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>命名空间</th>
|
|
<td>
|
|
<input id="namespace" name="namespace" class="easyui-textbox"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>启用状态</th>
|
|
<td>
|
|
<input id="status" name="status" class="easyui-switchbutton" data-options="onText:'启用',offText:'停用'"
|
|
checked />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|