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,290 @@
<%@ 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 HTML 4.01 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_apr.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>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("metadataId","xz","i18n_apr.message.metadata_n81i")&&$id("policeValue","","i18n_apr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_apr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_apr.message.policeSymbols_n81i")
&& $id("policeEmergent","xz","i18n_apr.message.policeEmergent_n81i")
&& $id("policeLevel","sz","i18n_apr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_apr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_apr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
//-- 字段类型选择事件绑定
jQuery("#metadataId").change(function(){
$("#policeSymbols").find("option").not($("#che")[0]).remove();
var filedType = $("#metadataId").find("option:selected").attr('id');
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").append("<option value='equals'>equals</option><option value='include' >include</option><option value='exclude' >exclude</option>");
}else{
$("#policeSymbols").append("<option value='>' >&gt;</option><option value='<' >&lt;</option><option value='>=' >&gt;=</option><option value='<=' >&lt;=</option><option value='=' >=</option>");
}
});
})
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${ip}" name="ip"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_apr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.message.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<select name="dataPoliceRelation.metadata.id" id="metadataId" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_apr.text.policeState_n81i
</td>
<td class="color_6" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" checked="checked"/>i18n_apr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" />i18n_apr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_apr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value=""/><font color="red" > i18n_apr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeEmergent_n81i
</td>
<td class="color_3" align="left" colspan="3" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allpoliceEmergent) > 0}">
<c:forEach items="${allpoliceEmergent}" var="policeEmergent">
<option value="${policeEmergent.typeCode}" >
${policeEmergent.typeValue}
</option>
</c:forEach>
</c:if>
<%--<option value="0" >allpoliceEmergent
紧急
</option>
<option value="1" >
非紧急
</option>
--%></select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" style="display: none;">
i18n_apr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd" style="display: none;">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value=""/>
<font id="pl" color="red">*i18n_apr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_apr.message.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value=""/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_apr.message.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value=""/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="" id="che">
i18n_apr.message.metadataDefault_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_apr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo"></textarea>
<div><font color="red" id="Msg">i18n_apr.message.policeShowInfo_n81i</font></div>
</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_apr.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_apr.button.reset_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(${detectionSetInfo.id})" value="i18n_apr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,312 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 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_prl.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>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_prl.message.success_n81i");
}else if(msg=='2'){
alert("i18n_prl.message.faild_n81i");
}
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/policeSet.do?action=query";
document.form3.submit();
}
function checkZF(id){
if(containSpecial($("#"+id).val())){
alert('i18n_prl.message.hasSpecialChar_n81i');
$("#"+id).val('');
return;
}
}
//添加记录
function add(){
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openAdd";
document.form3.submit();
}
//修改记录
function upd(){
if(!isRigthCheck("ids", "edit")){
alert("i18n_prl.message.select_n81i");
}else{
var detectionSetInfoId = $("input:checked").next().val();
var policeRelationId = $("input:checked").val();
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openUpdate&detectionSetInfoId="+detectionSetInfoId+"&policeRelationId="+policeRelationId;
document.form3.submit();
}
}
function goBack(){
window.location="<%=path%>/detection/detectionSet.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&ip="+'${ip}'+"&ctn="+'${ctn}'+"&pIden="+'${pIden}';
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
if('${setId}'==null||'${setId}'==""){
$("input[type=hidden][name=pIden]").remove();
$("input[type=hidden][name=ctn]").remove();
$("input[type=hidden][name=ip]").remove();
}
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;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;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
$(function(){
var spanObj=$("span[class='STYLE1']");
for(var i=0;i<spanObj.length;i++){
var spanVal=$(spanObj[i]).text().trim();;
console.log(spanVal);
if(spanVal.length>=25){
$(spanObj[i]).text(spanVal.substring(0,25)).append("...");
}else{
$(spanObj[i]).text(spanVal);
}
}
});
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/policeSet.do?action=query'/>" method="post">
<input type="hidden" name="setId" value="${setId }"/>
<input type="hidden" name="pIden" value="${pIden }"/>
<input type="hidden" name="ctn" value="${ctn }"/>
<input type="hidden" name="ip" value="${ip }"/>
<div id="divTop">
<c:if test="${operator eq 'all'}">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_prl.text.checkTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId">
<option value="">
--i18n_prl.message.checkTypeDefault_n81i--
</option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if>
<option value="${checkType.id}"
<c:if test="${ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1}
</option>
</c:forEach>
</c:if>
</select></label>
<label class="divTopText"><font class="selectText">i18n_prl.text.processIdenName_n81i </font>
<input type="text" id="pIden" style="width: 160px"
name="pIden"
title="i18n_prl.message.processIdenName_n81i"
value="${pIden}" size="49" onkeyup="checkZF('pIden');"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle3" onclick="javascript:qry();" />
&nbsp;
</div>
</c:if>
<div class="box_2">
<c:if test="${operator ne 'all'}">
<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_prl.button.add_n81i"/>
&nbsp;
</c:if>
<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="upd()" value="i18n_prl.button.update_n81i"/>
&nbsp;
<c:if test="${operator ne 'all'}">
<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_prl.button.back_n81i"/>
</c:if>
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="5%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_prl.text.index_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.checkTypeName_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.processIdenName_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.checkGap_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedName_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedComments_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeValue_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeUnit_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeSymbols_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeLevel_n81i
</td>
<td width="8%" class="color_top">
i18n_prl.text.policeEmergent_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.state_n81i
</td>
<td width="20%" class="color_top" nowrap>
i18n_prl.text.policeShowInfo_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(dataPoliceRelationList) > 0}">
<c:forEach items="${dataPoliceRelationList}" var="policeRelation" varStatus="vs">
<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 }">
<input type="checkbox" name="ids" id="ids"
value="${policeRelation.id}" />
<input type="hidden" value="${policeRelation.detectionSetInfo.id}">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkTypeInfo.checkTypeName1}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.processIdenName}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkGap}
</td>
<td class="${color }">
${policeRelation.metadata.filedName}
</td>
<td class="${color }">
${policeRelation.metadata.filedComments}
</td>
<td class="${color }">
${policeRelation.policeValue}
</td>
<td class="${color }">
${policeRelation.policeUnit}
</td>
<td class="${color }">
${policeRelation.policeSymbols}
</td>
<td class="${color }">
${policeRelation.policeLevel}
</td>
<td class="${color }">
<c:if test="${policeRelation.policeEmergent=='0' }">i18n_prl.message.emergent_n81i</c:if>
<c:if test="${policeRelation.policeEmergent=='1' }">i18n_prl.message.nonEmergent_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${policeRelation.policeState=='0' }">i18n_prl.message.active_n81i</c:if>
<c:if test="${policeRelation.policeState=='1' }"><font color="red">i18n_prl.message.invalid_n81i</font></c:if>
</td>
<td class="${color_end }" title="${policeRelation.policeShowInfo }">
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<%-- <c:if test="${fn:length(policeRelation.policeShowInfo) >= 25}">
<c:out value="${fn:substring(policeRelation.policeShowInfo,0,25)}..." default=""/>
</c:if>
<c:if test="${fn:length(policeRelation.policeShowInfo) < 25}">
<c:out value="${policeRelation.policeShowInfo}" default=""/>
</c:if> --%>
${policeRelation.policeShowInfo}
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="13" height="20" class="color_6" align="center">
i18n_prl.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty dataPoliceRelationList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,332 @@
<%@ 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 HTML 4.01 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_upr.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>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function upd(){
if($id("policeValue","","i18n_upr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_upr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_upr.message.policeSymbols_n81i")
&& $id("policeLevel","sz","i18n_upr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_upr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_upr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
var filedType = $("#metadaFType").val();
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").find("option[class='notTxt']").remove();
}else{
$("#policeSymbols").find("option[class='isTxt']").remove();
}
initEmergent();//初始化级别的显示与隐藏
initMarker();//初始化过滤标识及对应字段的显示与隐藏
})
function initEmergent() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function initMarker() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${policeRelationId}" name="policeRelationId"/>
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${detectionSetInfoId}" name="detectionSetInfoId"/>
<input type="hidden" value="${ip}" name="ip"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${dataPoliceRelation.id}" name="dataPoliceRelation.id"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_upr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<c:if test="${metadata.id == dataPoliceRelation.metadata.id }">
<input type="text" name="filedName" readonly="readonly" value="${metadata.filedComments}"/>
<input type="hidden" id="metadaFType" value="${metadata.filedType }" />
</c:if>
</c:forEach>
</c:if>
<input type="hidden" name="dataPoliceRelation.metadata.id" id="metadaId" value="${dataPoliceRelation.metadata.id }" />
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_upr.text.policeState_n81i
</td>
<td class="color_6" width="35%" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" <c:if test="${dataPoliceRelation.policeState == '0' }">checked="checked"</c:if>/>i18n_upr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" <c:if test="${dataPoliceRelation.policeState == '1' }">checked="checked"</c:if>/>i18n_upr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_upr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}"
<c:if test="${dataPoliceRelation.markerFiledId == metadata.id}">selected="selected"</c:if> >
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_upr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value="${dataPoliceRelation.marker}"/><font color="red" >i18n_upr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.text.policeEmergent_n81i
</td>
<td class="color_3" align="left" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="0" <c:if test="${dataPoliceRelation.policeEmergent == 0}">selected="selected"</c:if> >
i18n_upr.message.emergent_n81i
</option>
<option value="1" <c:if test="${dataPoliceRelation.policeEmergent == 1}">selected="selected"</c:if>>
i18n_upr.message.nonEmergent_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" >
i18n_upr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value="${dataPoliceRelation.policeLevel}"/>
<font id="pl" color="red">*i18n_upr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_upr.text.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value="${dataPoliceRelation.policeValue}"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_upr.text.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value="${dataPoliceRelation.policeUnit}"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="">
i18n_upr.message.markerFiledDefault_n81i
</option>
<option value=">" <c:if test="${dataPoliceRelation.policeSymbols == '>' }">selected="selected"</c:if> class="notTxt">
&gt;
</option>
<option value="<" <c:if test="${dataPoliceRelation.policeSymbols == '<' }"> selected="selected" </c:if> class="notTxt">
&lt;
</option>
<option value=">=" <c:if test="${dataPoliceRelation.policeSymbols == '>=' }">selected="selected"</c:if> class="notTxt">
&gt;=
</option>
<option value="<=" <c:if test="${dataPoliceRelation.policeSymbols == '<=' }">selected="selected"</c:if> class="notTxt">
&lt;=
</option>
<option value="=" <c:if test="${dataPoliceRelation.policeSymbols == '=' }">selected="selected"</c:if> class="notTxt">
=
</option>
<option value="equals" <c:if test="${dataPoliceRelation.policeSymbols == 'equals' }">selected="selected"</c:if> class="isTxt">
equals
</option>
<option value="include" <c:if test="${dataPoliceRelation.policeSymbols == 'include' }">selected="selected"</c:if>class="isTxt">
include
</option>
<option value="exclude" <c:if test="${dataPoliceRelation.policeSymbols == 'exclude' }">selected="selected"</c:if>class="isTxt">
exclude
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_upr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo">${dataPoliceRelation.policeShowInfo}</textarea>
<div><font color="red" id="Msg">i18n_upr.message.policeShowInfo_n81i</font></div>
</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="upd()" value="i18n_upr.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_upr.button.reset_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_upr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>