first commit
This commit is contained in:
114
bin/WebRoot/jsp/user/extSystemEdit.jsp
Normal file
114
bin/WebRoot/jsp/user/extSystemEdit.jsp
Normal file
@ -0,0 +1,114 @@
|
||||
<!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 doupdate(dialog,grid) {
|
||||
if ($(".form").form('validate')) {
|
||||
$.post(ext.contextPath + "/user/extsystem/update.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',
|
||||
onLoadSuccess:function(){
|
||||
var value ="${extSystem.workshopid}";
|
||||
if(value!=null && value!=""){
|
||||
$("#workshopid").combobox('setValue',value);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
if(${extSystem.status}){
|
||||
$('#status').switchbutton("check");
|
||||
}else{
|
||||
$('#status').switchbutton("uncheck");
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" class="form">
|
||||
<input name="id" type="hidden" value="${extSystem.id}"/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<td><input name="name" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" value="${extSystem.name}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>请求链接</th>
|
||||
<td ><input name="url" class="easyui-textbox"
|
||||
data-options="required:true,validType:'isBlank'" style="width:400px;" value="${extSystem.url}" />
|
||||
</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}' <c:if test='${item == extSystem.mode}'> selected</c:if> >${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}' <c:if test='${item == extSystem.type}'> selected</c:if> >${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" value="${extSystem.namespace}"/>
|
||||
</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>
|
||||
Reference in New Issue
Block a user