initial commit

This commit is contained in:
chenjinsong
2018-09-27 16:21:05 +08:00
commit dc91c4c987
2011 changed files with 408920 additions and 0 deletions

View File

@@ -0,0 +1,142 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ad.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function checkDictionary(){
var type;
$.ajax({
url:"<%=path%>/sysManage/dataDictionary.do?action=checkDictionary",
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "error1"){
alert("i18n_ad.message.dictTypeNameExists_n81i");
$("#typeName").focus();
type = false;
}else if(data == "error2"){
alert("i18n_ad.message.identifierExists_n81i");
$("#typeIdentity").focus();
type = false;
}else if(data == "exception"){
alert("i18n_ad.message.faild_n81i");
type = false;
}else if(data =="success"){
type = true;
}
}
});
return type;
}
function add(){
if($id("sn","sz","i18n_ad.text.sn_n81i")&& $id("typeName","","i18n_ad.text.typeName_n81i")&& $id("typeIdentity","","i18n_ad.text.typeIdentity_n81i")){
if(checkDictionary()){
document.Mkform.action = "<%=path%>/sysManage/dataDictionary.do?action=doAdd";
document.Mkform.submit();
}
}
}
function goBack(){
window.location="<%=path%>/sysManage/dataDictionary.do?action=query";
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack();" value="i18n_ad.button.back_n81i"/>
</div>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ad.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ad.text.sn_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.showNum" id="sn"/>
<font color="red">*</font>
</td>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ad.text.typeName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.typeName"
id="typeName"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ad.text.typeIdentity_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.typeIdentity"
id="typeIdentity"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ad.text.typeDesc_n81i
</td>
<td class="color_3" align="left">
<textarea rows="3" cols="50" name="typeTable.typeDesc" id="typeDesc"></textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add();"
value="i18n_ad.button.add_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset();"
value="i18n_ad.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,159 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ads.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("typeCode","","i18n_ads.text.typeCode_n81i")&& $id("typeValue","","i18n_ads.text.typeValue_n81i")&&$id("showNum","sz","i18n_ads.text.showNum_n81i")&& (checkNumber("delayTime")||$id("delayTime","sz","i18n_ads.text.delayTime_n81i") )){
if(ajaxCheck()){
document.Mkform.action = "<%=path%>/sysManage/dataDictionary.do?action=doAddSource&did="+'${did}';
document.Mkform.submit();
}
}
}
function ajaxCheck(){
var type;
$.ajax({
url:"<%=path%>/sysManage/dataDictionary.do?action=checkAjax",
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "error"){
alert("i18n_ads.text.MkformError_n81i");
type = false;
}else if(data == "exception"){
alert("i18n_ads.text.MkformException_n81i");
type = false;
}else if(data =="success"){
type = true;
}
}
});
return type;
}
function checkNumber(id) {
if($("#"+id+"").val()==-1){
$("#"+id+"").next().html("");
return true;
}else{
return false;
}
}
function goBack(){
var iid = $("#tid").val();
window.location="<%=path%>/sysManage/dataDictionary.do?action=querySouce&ddid="+iid+"&did="+'${did}';
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ads.button.back_n81i"/>
</div>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="ddid" value="${typeTable.typeIdentity}" id="tid"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ads.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ads.text.typeCode_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="optionTable.typeCode" id="typeCode"/>
<font id="oidFont" color="red">*</font>
</td>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ads.text.typeValue_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="optionTable.typeValue"
id="typeValue"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<c:choose>
<c:when test="${typeTable.id ne 81}">
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ads.text.showNum_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="text" name="optionTable.showNum"
id="showNum"/>
<font color="red">*</font>
</td>
</c:when>
<c:when test="${typeTable.typeIdentity eq 'emergent'}">
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ads.text.showNum_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="optionTable.showNum"
id="showNum"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ads.text.delayTime1_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="optionTable.delayTime"
id="delayTime"/>
<font color="red">*</font>
</td>
</c:when>
</c:choose>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_ads.button.add_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_ads.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_ddcsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript">
function updateRecord(id){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=toUpdateDetectConditionSet&setId="+id;
document.form1.submit();
}
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/sysManage/dataDictionary.do?action=queryDetectConditionSet'/>" method="post" >
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top" width="4%">
i18n_ddcsl.text.index_n81i
</td>
<td class="color_top" width="8%">
i18n_ddcsl.text.menuName_n81i
</td>
<td class="color_top" width="8%">
i18n_ddcsl.text.policeEmergent_n81i
</td>
<td class="color_top" width="12%">
i18n_ddcsl.text.policeLevel_n81i
</td>
<td class="color_8" width="8%">
i18n_ddcsl.text.opration_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(setDetDataConList) > 0}">
<c:forEach items="${setDetDataConList}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${aui.menuName}
</td>
<td class="${color }">
${aui.policeEmergentFowShow}
</td>
<td class="${color }">
${aui.policeLevelForShow}
</td>
<td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_ddcsl.text.editInfo_n81i</a>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="6" height="35" class="color_6" align="center">
i18n_ddcsl.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty typeTableList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,164 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_dict.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript">
function addRecord(){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=openAdd";
document.form1.submit();
}
function updateRecord(id){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=openUpdate&ddid="+id;
document.form1.submit();
}
//配置元数据
function showRecord(did,ddid){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=querySouce&did="+did+"&ddid="+ddid;
document.form1.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;display: inline;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;display: inline;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/sysManage/dataDictionary.do?action=query'/>" method="post" >
<!--中间部分右边开始-->
<div id="divTop">
<div class="box_1">
&nbsp;
</div>
<div class="box_2">&nbsp;<jsp:include page="/include/include.jsp" /></div>
</div>
<br />
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top" width="4%">
i18n_dict.text.index_n81i
</td>
<td class="color_top" width="8%">
i18n_dict.text.typeName_n81i
</td>
<td class="color_top" width="8%">
i18n_dict.text.typeDesc_n81i
</td>
<td class="color_top" width="8%">
i18n_dict.text.showNum_n81i
</td>
<td class="color_top" width="12%">
i18n_dict.text.typeState_n81i
</td>
<td class="color_8" width="12%">
i18n_dict.text.opration_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(typeTableList) > 0}">
<c:forEach items="${typeTableList}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<a href="javascript:showRecord('${aui.id}','${aui.typeIdentity}')">${aui.typeName}</a>
</td>
<td class="${color }">
${aui.typeDesc}
</td>
<td class="${color }">
${aui.showNum}
</td>
<td class="${color }">
<c:choose>
<c:when test="${aui.typeState==0}">
i18n_dict.message.typeState0_n81i
</c:when>
<c:otherwise>
<font color="red">i18n_dict.message.typeState1_n81i</font>
</c:otherwise>
</c:choose>
</td>
<td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_dict.text.update_n81i</a>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="6" height="35" class="color_6" align="center">
i18n_dict.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty typeTableList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,178 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_dsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript">
function addRecord(){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=openAddSource";
document.form1.submit();
}
function updateRecord(id){
document.form1.action = "<%=path%>/sysManage/dataDictionary.do?action=openUpdateSource&optionId="+id;
document.form1.submit();
}
function goBack(){
document.form1.action="<%=path%>/sysManage/dataDictionary.do?action=query";
document.form1.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;display: inline;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;display: inline;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/sysManage/dataDictionary.do?action=querySouce'/>" method="post" >
<input type="hidden" value="${typeTable.id }" name="did"/>
<!--中间部分右边开始-->
<div id="divTop" style="height: 10px">
<div class="box_1">
&nbsp;
</div>
<div class="box_2">
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="addRecord()" value="i18n_dsl.button.add_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dsl.button.back_n81i"/>
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top" width="4%">
i18n_dsl.text.index_n81i
</td>
<td class="color_top" width="8%">
i18n_dsl.text.typeCode_n81i
</td>
<td class="color_top" width="8%">
i18n_dsl.text.typeValue_n81i
</td>
<td class="color_top" width="8%">
i18n_dsl.text.showNum_n81i
</td>
<td class="color_top" width="12%">
i18n_dsl.text.typeState_n81i
</td>
<td class="color_8" width="12%">
i18n_dsl.text.opration_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(optionTableist) > 0}">
<c:forEach items="${optionTableist}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${aui.typeCode}
</td>
<td class="${color }">
${aui.typeValue}
</td>
<td class="${color }">
${aui.showNum}
</td>
<td class="${color }">
<c:choose>
<c:when test="${aui.typeState==0}">
i18n_dsl.message.typeState0_n81i
</c:when>
<c:otherwise>
<font color="red">i18n_dsl.message.typeState1_n81i</font>
</c:otherwise>
</c:choose>
</td>
<td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_dsl.text.update_n81i</a>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="6" height="35" class="color_6" align="center">
i18n_dsl.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty optionTableist}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,152 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uddc.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function sub(){
document.Mkform.action = "<%=path%>/sysManage/dataDictionary.do?action=updateDetectConditionSet";
document.Mkform.submit();
}
function goBack(){
window.location="<%=path%>/sysManage/dataDictionary.do?action=queryDetectConditionSet";
}
$(function() {
//选中非紧急,显示级别选择
var emergentVal = jQuery('#policeEmergent1').attr('checked');
if(emergentVal) {
jQuery('#nonEmergentTr').show();
}
});
function nonEmergentChange(){
var emergentVal = jQuery('#policeEmergent1').attr('checked');
if(emergentVal) {
jQuery('#nonEmergentTr').show();
}else {
jQuery('#nonEmergentTr').hide();
}
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uddc.button.back_n81i"/>
</div>
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="detDataConSet.id" value="${detDataConSet.id }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_uddc.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uddc.text.menuName_n81i
</td>
<td class="color_3" width="30%" align="left" colspan="3">
${detDataConSet.menuName }
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uddc.text.policeEmergent_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="checkbox" name="detDataConSet.policeEmergent" id="policeEmergent0" value="0"
<c:if test="${fn:contains(detDataConSet.policeEmergent,',0,')}">checked="checked"</c:if> />i18n_uddc.message.emergent_n81i
<input type="checkbox" name="detDataConSet.policeEmergent" id="policeEmergent1" value="1" onclick="nonEmergentChange();"
<c:if test="${fn:contains(detDataConSet.policeEmergent,',1,')}">checked="checked"</c:if> />i18n_uddc.message.nonEmergent_n81i
</td>
</tr>
<tr id="nonEmergentTr" style="display: none;">
<td class="color_1" align="right" v align="top" nowrap="nowrap">
i18n_uddc.text.policeLevel_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="checkbox" name="detDataConSet.policeLevel" id="policeLevel1" value="1"
<c:if test="${fn:contains(detDataConSet.policeLevel,',1,')}">checked="checked"</c:if> />i18n_uddc.message.policeLevel1_n81i
<input type="checkbox" name="detDataConSet.policeLevel" id="policeLevel2" value="2"
<c:if test="${fn:contains(detDataConSet.policeLevel,',2,')}">checked="checked"</c:if> />i18n_uddc.message.policeLevel2_n81i
<input type="checkbox" name="detDataConSet.policeLevel" id="policeLevel3" value="3"
<c:if test="${fn:contains(detDataConSet.policeLevel,',3,')}">checked="checked"</c:if> />i18n_uddc.message.policeLevel3_n81i
<input type="checkbox" name="detDataConSet.policeLevel" id="policeLevel4" value="4"
<c:if test="${fn:contains(detDataConSet.policeLevel,',4,')}">checked="checked"</c:if> />i18n_uddc.message.policeLevel4_n81i
<input type="checkbox" name="detDataConSet.policeLevel" id="policeLevel5" value="5"
<c:if test="${fn:contains(detDataConSet.policeLevel,',5,')}">checked="checked"</c:if> />i18n_uddc.message.policeLevel5_n81i
</td>
</tr>
<tr >
<td class="color_1" align="right" v align="top" nowrap="nowrap">
i18n_uddc.text.remark_n81i
</td>
<td class="color_3" align="left" colspan="3">
i18n_uddc.text.selectNull_n81i
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_uddc.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uddc.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,155 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ud.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function checkDictionary(){
var type;
$.ajax({
url:"<%=path%>/sysManage/dataDictionary.do?action=updateCheck",
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "error"){
alert("i18n_ud.message.MkformError_n81i");
$("#typeName").focus();
type = false;
}else if(data == "exception"){
alert("i18n_ud.message.MkformException_n81i");
type = false;
}else if(data =="success"){
type = true;
}
}
});
return type;
}
function sub(){
if($id("showNum","sz","i18n_ud.text.showNum_n81i")&& $id("typeName","","i18n_ud.text.typeName_n81i")&& $id("typeIdentity","","i18n_ud.text.typeIdentity_n81i")){
if(checkDictionary()){
document.Mkform.action = "<%=path%>/sysManage/dataDictionary.do?action=doUpdate";
document.Mkform.submit();
}
}
}
function goBack(){
window.location="<%=path%>/sysManage/dataDictionary.do?action=query";
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ud.buttone.back_n81i"/>
</div>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="typeTable.id" value="${typeTable.id }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ud.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ud.text.showNum_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.showNum" id="showNum" value="${typeTable.showNum }"/>
<font id="oidFont" color="red">*</font>
</td>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_ud.text.typeName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.typeName" id="typeName" value="${typeTable.typeName }"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ud.text.typeState_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="radio" name="typeTable.typeState" id="typeState" value="0"
<c:if test="${typeTable.typeState == '0' }">checked="checked"</c:if> />i18n_ud.message.enable_n81i
<input type="radio" name="typeTable.typeState" id="typeState" value="1"
<c:if test="${typeTable.typeState == '1' }">checked="checked"</c:if> />i18n_ud.message.disable_n81i
</td>
<%--<td class="color_1" width="20%" align="right" nowrap="nowrap">
字典标识
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="typeTable.typeIdentity" value="${typeTable.typeIdentity }"
id="typeIdentity"/>
<font color="red">*</font>
</td>
--%></tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ud.text.typeDesc_n81i
</td>
<td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" name="typeTable.typeDesc" id="typeDesc">${typeTable.typeDesc }</textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_ud.buttone.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_ud.buttone.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,167 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uds.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function updateSourceCheck(){
var type;
$.ajax({
url:"<%=path%>/sysManage/dataDictionary.do?action=updateSourceCheck",
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "error"){
alert("i18n_uds.message.MkformError_n81i");
type = false;
}else if(data == "exception"){
alert("i18n_uds.message.MkformException_n81i");
type = false;
}else if(data =="success"){
type = true;
}
}
});
return type;
}
function sub(){
if($id("typeCode","","i18n_uds.text.typeCode_n81i")&& $id("typeValue","","i18n_uds.text.typeValue_n81i")&& $id("showNum","sz","i18n_uds.text.showNum_n81i")&& (checkNumber("delayTime")||$id("delayTime","sz","i18n_uds.text.delayTime_n81i") )){
if(updateSourceCheck()){
document.Mkform.action = "<%=path%>/sysManage/dataDictionary.do?action=doUpdateSource&did="+'${did}';
document.Mkform.submit();
}
}
}
function checkNumber(id) {
if($("#"+id+"").val()==-1){
$("#"+id+"").next().html("");
return true;
}else{
return false;
}
}
function goBack(){
window.location="<%=path%>/sysManage/dataDictionary.do?action=querySouce&ddid="+$('#tid').val()+"&did="+'${did}';
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uds.buttone.back_n81i"/>
</div>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="ddid" value="${typeTable.typeIdentity }" id="tid"/>
<input type="hidden" name="optionTable.id" value="${optionTable.id }"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_uds.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uds.text.typeCode_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="optionTable.typeCode" id="typeCode" value="${optionTable.typeCode }"/>
<font id="oidFont" color="red">*</font>
</td>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uds.text.typeValue_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="optionTable.typeValue" value="${optionTable.typeValue }"
id="typeValue"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uds.text.showNum_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="optionTable.showNum" value="${optionTable.showNum }"
id="showNum"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uds.text.typeState_n81i
</td>
<td class="color_3" align="left">
<input type="radio" name="optionTable.typeState" id="typeState" value="0"
<c:if test="${optionTable.typeState == '0' }">checked="checked"</c:if> />i18n_uds.message.enable_n81i
<input type="radio" name="optionTable.typeState" id="typeState" value="1"
<c:if test="${optionTable.typeState == '1' }">checked="checked"</c:if> />i18n_uds.message.disable_n81i
</td>
</tr>
<c:if test="${typeTable.typeIdentity eq 'emergent'}">
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uds.text.delayTime1_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="text" name="optionTable.delayTime" value="${optionTable.delayTime }"
id="delayTime"/>
</td>
</tr>
</c:if>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_uds.buttone.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uds.buttone.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>