initial commit
This commit is contained in:
297
WebRoot/page/show/nodeBox/addBoxInfo.jsp
Normal file
297
WebRoot/page/show/nodeBox/addBoxInfo.jsp
Normal file
@@ -0,0 +1,297 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="/jstl/c" prefix="c"%>
|
||||
<%@ taglib uri="/jstl/fn" prefix="fn"%>
|
||||
<%
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setDateHeader("Expires", 0);
|
||||
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
|
||||
+ request.getServerPort() + path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
|
||||
<!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_abi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/css/suggest.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/j.suggest.js'/>"></script>
|
||||
</head>
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回
|
||||
var doPrevent;
|
||||
// for IE && Firefox
|
||||
var varkey = (e.keyCode) || (e.which) || (e.charCode);
|
||||
if (varkey == 8) {
|
||||
var d = e.srcElement || e.target;
|
||||
if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {
|
||||
doPrevent = d.readOnly || d.disabled;
|
||||
if (d.type.toUpperCase() == 'SUBMIT'
|
||||
|| d.type.toUpperCase() == 'RADIO'
|
||||
|| d.type.toUpperCase() == 'CHECKBOX'
|
||||
|| d.type.toUpperCase() == 'BUTTON') {
|
||||
doPrevent = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
doPrevent = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
doPrevent = false;
|
||||
}
|
||||
if (doPrevent)
|
||||
e.preventDefault();
|
||||
});
|
||||
$(function(){
|
||||
$("#boxUType").change(function(){
|
||||
if(!$id("boxUType","sz","i18n_abi.text.boxUType_n81i")){
|
||||
$("#boxUType").val("");
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
function checkIspn(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/nodePosition/boxSet.do?action=addCheck",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "exist"){
|
||||
$("#ispn").next().html("i18n_abi.message.ispn_n81i");
|
||||
type = false;
|
||||
}else if(data == "exception"){
|
||||
alert("i18n_abi.message.faild_n81i");
|
||||
type = false;
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
var roomIspn ;
|
||||
if($id("ispn","","i18n_abi.text.roomIspn_n81i") && $id("boxUType","sz","i18n_abi.text.boxUType_n81i")){
|
||||
if($("select[name=nodeBox.roomIspn]").val()==undefined){
|
||||
roomIspn = $id("roomIspn","","i18n_abi.text.roomIspn_n81i") ;
|
||||
}else{
|
||||
roomIspn = $id("roomIspn","xz","i18n_abi.text.roomIspn_n81i") ;
|
||||
}
|
||||
if(roomIspn && $id("roomRowPosition","xz","i18n_abi.text.roomRowPosition_n81i")
|
||||
&& $id("roomColPosition","xz","i18n_abi.text.roomColPosition_n81i") && $id("descinfo","","i18n_abi.text.descinfo_n81i")){
|
||||
if(!containSpecial(lrtrim($("#ispn").val()))){
|
||||
if(checkIspn($("#ispn").val())){
|
||||
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doAdd";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
}else{
|
||||
$("#ispn").next().html("i18n_abi.message.ispn1_n81i");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//去除左右两端空格
|
||||
function lrtrim(s){
|
||||
s = s.replace(/(^\s*)|(\s*$)/g,"");
|
||||
return s;
|
||||
}
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
// -----机房及位置相关处理
|
||||
$(function(){
|
||||
//-- 机房 事件绑定 获取可选行号
|
||||
roomIspnChange();
|
||||
//-- i18n_abi.text.roomRowPosition_n81i 事件绑定 由行号决定可选列号
|
||||
$("#roomRowPosition").blur(function(){
|
||||
$("#roomColPosition").empty();
|
||||
$("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
|
||||
|
||||
var roomIspnVal = $("#roomIspn").val();
|
||||
if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){
|
||||
roomIspnVal = $("select[name=nodeBox.roomIspn]").val()
|
||||
}
|
||||
var curVal = $(this).val();
|
||||
if(curVal!=""){
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
|
||||
{"roomIspn":roomIspnVal,"rowNum":curVal},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function roomIspnChange(){
|
||||
var roomIspnVal;
|
||||
roomIspnVal = $("#roomIspn").val();
|
||||
if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){
|
||||
roomIspnVal = $("select[name=nodeBox.roomIspn]").val()
|
||||
}
|
||||
$("#roomRowPosition").empty();
|
||||
$("#roomRowPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
|
||||
$("#roomColPosition").empty();
|
||||
$("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
|
||||
{"roomIspn":roomIspnVal},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
</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_abi.button.back_n81i"/>
|
||||
</div>
|
||||
|
||||
<form action="" name="Mkform" id="Mkform" method="post">
|
||||
<input type="hidden" name="ispnNum" value="${ispnNum }">
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<input type="hidden" name="roomid" value="${roomid }"/>
|
||||
<input type="hidden" name="roomIspn" value="${roomIspn }" >
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_abi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_abi.text.ispn_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="nodeBox.ispn" id="ispn" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_abi.text.U_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="nodeBox.boxUType" id="boxUType"
|
||||
value="42" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_abi.text.roomIspn_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${roomIspn==null||roomIspn==''}">
|
||||
<select name="nodeBox.roomIspn" onchange="roomIspnChange()" id="roomIspn">
|
||||
<option value="">i18n_abi.message.selectDefault_n81i</option>
|
||||
<c:forEach items="${nodeRoomList}" var="item">
|
||||
<option value="${item.roomIspn}">${item.roomIspn}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input disabled="disabled" value="${roomIspn }"/>
|
||||
<input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${roomIspn }"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_abi.text.roomRowPosition_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<select name="nodeBox.roomRowPosition" id="roomRowPosition"
|
||||
style="width: 151px;">
|
||||
<option value="">
|
||||
i18n_abi.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_abi.text.roomColPosition_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<select name="nodeBox.roomColPosition" id="roomColPosition"
|
||||
style="width: 151px;">
|
||||
<option value="">
|
||||
i18n_abi.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_abi.text.des_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<textarea rows="5" cols="60" id="descinfo"
|
||||
name="nodeBox.descinfo" ></textarea>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="2" 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_abi.text.submit_n81i"/>
|
||||
|
||||
<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_abi.text.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
456
WebRoot/page/show/nodeBox/boxInfoList.jsp
Normal file
456
WebRoot/page/show/nodeBox/boxInfoList.jsp
Normal file
@@ -0,0 +1,456 @@
|
||||
<%@ 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_bil.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
|
||||
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.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 language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<style type="text/css">
|
||||
.mydiv {
|
||||
background-color:#fff;
|
||||
border: 1px solid #000;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
z-index:99;
|
||||
width: 220px;
|
||||
height: 80px;
|
||||
left:50%;/*FF IE7*/
|
||||
top: 50%;/*FF IE7*/
|
||||
|
||||
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
|
||||
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
|
||||
|
||||
margin-top:0px;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
.bg {
|
||||
background-color: #ccc;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left:0;
|
||||
top:0;/*FF IE7*/
|
||||
filter:alpha(opacity=50);/*IE*/
|
||||
opacity:0.5;/*FF*/
|
||||
z-index:1;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
/*The END*/
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_bil.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_bil.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addNb(){
|
||||
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updNb(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_bil.message.selectOne_n81i");
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
|
||||
//删除记录
|
||||
function delNb(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_bil.message.selectOne_n81i");
|
||||
}else if(confirm("i18n_bil.message.delete_n81i")){
|
||||
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//返回
|
||||
function goBack(){
|
||||
document.location.href = "<%=path%>/nodePosition/roomManage.do?action=query";
|
||||
}
|
||||
|
||||
var set_Id;
|
||||
var ajaxProperties = "";
|
||||
var ajaxTableName = "";
|
||||
var ajaxType = "";
|
||||
var id = "";
|
||||
var returnDiv = "";
|
||||
var ajaxValue = "";
|
||||
|
||||
function lianxiangkeydown() {
|
||||
clearTimeout(set_Id);
|
||||
}
|
||||
|
||||
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
|
||||
if(parent.document.getElementById("lianxiangStatus").value=="2")
|
||||
{
|
||||
if(jQuery.trim(ajaxValue1)=="") return false;
|
||||
|
||||
ajaxProperties = ajaxProperties1;
|
||||
ajaxTableName = ajaxTableName1;
|
||||
ajaxType = ajaxType1;
|
||||
id = id1;
|
||||
returnDiv = returnDiv1;
|
||||
if(!containSpecial(ajaxValue1)){
|
||||
ajaxValue = ajaxValue1;
|
||||
}else{
|
||||
alert('i18n_bil.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
|
||||
{
|
||||
var lianxiangList = data.split(",");
|
||||
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
|
||||
});
|
||||
}
|
||||
|
||||
function ieBrowser(){
|
||||
if($.browser.msie){
|
||||
if($.browser.version.split('.')[0]<=7){
|
||||
return false;
|
||||
}else{
|
||||
return true;//ie8+
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goGuide(datas) {
|
||||
if(datas!=null && datas!=""){
|
||||
if(datas.resu=='over') {
|
||||
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 程辉 2013-4-27 新增 模板下载
|
||||
function downloadExample() {
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=downloadExample";
|
||||
document.form3.submit();
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
}
|
||||
|
||||
//程辉 2013-4-27 新增 导入节点
|
||||
function importXls() {
|
||||
var myfileVal = document.getElementById("myFile").value;
|
||||
if(myfileVal=="") {
|
||||
alert("i18n_bil.message.selectImportFile_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_bil.message.selectFileType_n81i");
|
||||
}else if(confirm('i18n_bil.message.sureToImport_n81i')){
|
||||
//window.location = "<%=path%>/nodePosition/boxSet.do?action=importXls";
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=importXls";
|
||||
document.form3.submit();
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
}
|
||||
}
|
||||
//程辉 2013-5-8 新增 导出当前页
|
||||
function emportCurrentXls() {
|
||||
document.form3.action = "<c:url value='/'/>//nodePosition/boxSet.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&ispnNum="+$("#ispn").val();
|
||||
document.form3.submit();
|
||||
closeDiv();
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
}
|
||||
//程辉 2013-5-8 新增 导出全部
|
||||
function emportAllXls() {
|
||||
document.form3.action = "<c:url value='/'/>/nodePosition/boxSet.do?action=emportAllXls&ispnNum="+$("#ispn").val();
|
||||
document.form3.submit();
|
||||
closeDiv();
|
||||
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
}
|
||||
function showDiv(){
|
||||
document.getElementById('popDiv').style.display='block';
|
||||
document.getElementById('bg').style.display='block';
|
||||
}
|
||||
|
||||
function closeDiv(){
|
||||
document.getElementById('popDiv').style.display='none';
|
||||
document.getElementById('bg').style.display='none';
|
||||
}
|
||||
|
||||
$(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;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();
|
||||
// $("#maindiv").attr("style","clear:left");
|
||||
if($("#isComplete").val()=='0'){
|
||||
//var content = {
|
||||
// content: '业务系统操作已完成,是否进行下一步操作?',
|
||||
// buttons: { '下一步': 1, '返回':0,'取消': -1 },
|
||||
// buttonsFocus: 0,
|
||||
// submit: function (v, h, f) {
|
||||
// if(v == 1) {//执行下一步--用户组
|
||||
// window.location ="<%=path%>/sysManage/userGroupPerssion.do?action=query";
|
||||
// }
|
||||
// if(v == 0){//返回到设置向导页
|
||||
// window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
// }
|
||||
// if(v == -1){//返回到设置向导页
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
//};
|
||||
|
||||
//$.jBox(content);
|
||||
var submit = function (v, h, f) {
|
||||
if (v == 'yes') {
|
||||
$("input[type=hidden][name=fromWhere]").val('formGuide');
|
||||
return;
|
||||
}
|
||||
if (v == 'no') {
|
||||
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
|
||||
{
|
||||
packNum:4,
|
||||
packName:'jg'
|
||||
},
|
||||
function(datas){
|
||||
goGuide(datas);
|
||||
},"json");
|
||||
|
||||
}
|
||||
};
|
||||
$.jBox.warning("i18n_bil.message.warning_n81i", "i18n_bil.message.hint_n81i", submit,{icon: false});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<body>
|
||||
<div class="middle_list" style="overflow: hidden;">
|
||||
<form name=form3 id="frmArticleType"
|
||||
action="<c:url value='/nodePosition/boxSet.do'/>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<input type="hidden" name="roomid" value="${roomid }"/>
|
||||
<input type="hidden" name="roomIspn" value="${roomIspn }"/>
|
||||
<div id="divTop">
|
||||
<div class="box_1">
|
||||
<label class="divTopText"><font class="selectText">i18n_bil.text.nodeBoxTable_n81i</font>
|
||||
<input type="text" id="ispn"
|
||||
onkeyup="lianxiangkeyup('ispn','NodeBoxTable','String','ispn','suggest1',this.value);"
|
||||
name="ispnNum" title="i18n_bil.message.nodeBoxTable_n81i" value="${ispnNum}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div></label>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle" onclick="javascript:qry();" />
|
||||
</div>
|
||||
<div class="box_2">
|
||||
<!-- 程辉 2013-4-27 新增 begin-->
|
||||
<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:downloadExample();" value="i18n_bil.button.downloadExample_n81i"/>
|
||||
|
||||
|
||||
<input type="button" value="i18n_bil.text.importXls_n81i" title="i18n_bil.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||||
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
|
||||
|
||||
<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:importXls();" value="i18n_bil.button.importXls_n81i"/>
|
||||
|
||||
<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:showDiv();" value="i18n_bil.button.showDiv_n81i"/>
|
||||
|
||||
<!-- 程辉 2013-4-27 新增 end-->
|
||||
<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:addNb();" value="i18n_bil.button.add_n81i" />
|
||||
|
||||
<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:updNb();" value="i18n_bil.button.update_n81i" />
|
||||
|
||||
<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:delNb();" value="i18n_bil.button.delete_n81i" />
|
||||
|
||||
<%--<jsp:include page="/include/include.jsp" />--%>
|
||||
<c:if test="${roomid ne null && roomid ne ''}">
|
||||
<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:goBack();" value="i18n_bil.button.back_n81i" />
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
<div id="maindiv">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
|
||||
<tr>
|
||||
<td width="10%" class="color_top" nowrap>
|
||||
<input type="checkbox"
|
||||
name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_bil.text.index_n81i
|
||||
</td>
|
||||
<td width="20%" class="color_top" nowrap>
|
||||
i18n_bil.text.nodeBoxTable_n81i
|
||||
</td>
|
||||
<td width="30%" class="color_top" nowrap>
|
||||
i18n_bil.text.descinfo_n81i
|
||||
</td>
|
||||
<td width="20%" class="color_top" nowrap>
|
||||
i18n_bil.text.roomIspn_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeBoxList) > 0}">
|
||||
<c:forEach items="${nodeBoxList}" var="nodebox" 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="${nodebox.nodeBoxId}" />
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${nodebox.ispn}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${nodebox.descinfo}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${nodebox.roomIspn}
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="4" height="20" class="color_6" align="center">
|
||||
i18n_bil.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
<c:if test="${!empty nodeBoxList}">
|
||||
<div id="divBoot">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</div>
|
||||
</c:if>
|
||||
</form>
|
||||
</div>
|
||||
<br />
|
||||
<div id="popDiv" class="mydiv" style="display:none;">
|
||||
<input type="hidden" />
|
||||
<input type="button" class=btn3_mouseout style="width:100px;"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportCurrentXls();" value="i18n_bil.button.exportCurrentPage_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout style="width:80px"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportAllXls();" value="i18n_bil.button.exportAllData_n81i"/>
|
||||
<br/>
|
||||
<a href="javascript:closeDiv()">i18n_bil.text.closeWindow_n81i</a></div>
|
||||
|
||||
<div id="bg" class="bg" style="display:none;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
93
WebRoot/page/show/nodeBox/showImportError.jsp
Normal file
93
WebRoot/page/show/nodeBox/showImportError.jsp
Normal file
@@ -0,0 +1,93 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
%>
|
||||
|
||||
<!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_sie.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.form1.action="<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form action="" name="form1" id="form1" method="post">
|
||||
<input type="hidden" name="isComplete" value="${isComplete }" />
|
||||
<input type="hidden" name="ispnNum" value="${ispnNum }" />
|
||||
<table align="center" border="0" cellpadding="0"
|
||||
cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td height="30" class="color_7" colspan="6">
|
||||
<strong>i18n_sie.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1">
|
||||
i18n_sie.text.index_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sie.text.U_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sie.text.roomIspn_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sie.text.roomRowPosition_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sie.text.roomColPosition_n81i
|
||||
</td>
|
||||
<td class="color_7">
|
||||
i18n_sie.text.errorInfo_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:forEach items="${errorList}" var="info">
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${info.ispn }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.boxUType }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.roomIspn }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.roomRowPosition }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.roomColPosition }
|
||||
</td>
|
||||
<td class="color_6">
|
||||
${info.showError }
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
<tr>
|
||||
<td class="color_7" colspan="6">
|
||||
<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_sie.button.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!--中间部分右边结束-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
310
WebRoot/page/show/nodeBox/updateBoxInfo.jsp
Normal file
310
WebRoot/page/show/nodeBox/updateBoxInfo.jsp
Normal file
@@ -0,0 +1,310 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="/jstl/c" prefix="c"%>
|
||||
<%@ taglib uri="/jstl/fn" prefix="fn"%>
|
||||
<%@ taglib uri="/jstl/fmt" prefix="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_ubi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/css/suggest.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/j.suggest.js'/>"></script>
|
||||
</head>
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回
|
||||
var doPrevent;
|
||||
// for IE && Firefox
|
||||
var varkey = (e.keyCode) || (e.which) || (e.charCode);
|
||||
if (varkey == 8) {
|
||||
var d = e.srcElement || e.target;
|
||||
if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {
|
||||
doPrevent = d.readOnly || d.disabled;
|
||||
if (d.type.toUpperCase() == 'SUBMIT'
|
||||
|| d.type.toUpperCase() == 'RADIO'
|
||||
|| d.type.toUpperCase() == 'CHECKBOX'
|
||||
|| d.type.toUpperCase() == 'BUTTON') {
|
||||
doPrevent = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
doPrevent = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
doPrevent = false;
|
||||
}
|
||||
if (doPrevent)
|
||||
e.preventDefault();
|
||||
});
|
||||
$(function(){
|
||||
$("#boxUType").change(function(){
|
||||
if(!$id("boxUType","sz","i18n_ubi.text.boxUType_n81i")){
|
||||
$("#boxUType").val("");
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function updateCheck(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/nodePosition/boxSet.do?action=updateCheck",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "exception"){
|
||||
type = false;
|
||||
alert("i18n_ubi.message.faild_n81i");
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}else{
|
||||
type = false;
|
||||
alert(data);
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
if($id("ispn","","i18n_ubi.text.ispn_n81i") && $id("descinfo","","i18n_ubi.text.descinfo_n81i") && $id("boxUType","sz","i18n_ubi.text.boxUType_n81i")
|
||||
&& $id("roomIspn","","i18n_ubi.text.roomIspn_n81i") && $id("roomRowPosition","xz","i18n_ubi.text.roomRowPosition_n81i")
|
||||
&& $id("roomColPosition","xz","i18n_ubi.text.roomColPosition_n81i")){
|
||||
if(!containSpecial(lrtrim($("#ispn").val()))){
|
||||
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doUpdate";
|
||||
document.Mkform.submit();
|
||||
}else{
|
||||
$("#ispn").next().html("i18n_ubi.message.inputInfo_n81i");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//去除左右两端空格
|
||||
function lrtrim(s){
|
||||
s = s.replace(/(^\s*)|(\s*$)/g,"");
|
||||
return s;
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
|
||||
function resetInit(){
|
||||
$("#roomIspn").val("${nodeBox.roomIspn }");
|
||||
var roomIspn = "${nodeBox.roomIspn }";
|
||||
if(roomIspn!=""){
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
|
||||
{"roomIspn":roomIspn,"boxId":${nodeBox.nodeBoxId}},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
//选中行
|
||||
$("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected");
|
||||
}, "json");
|
||||
}
|
||||
|
||||
var roomRowPosition = "${nodeBox.roomRowPosition}";
|
||||
if(roomRowPosition!=""){
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
|
||||
{"roomIspn":roomIspn,"rowNum":roomRowPosition,"boxId":${nodeBox.nodeBoxId}},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
//选中列
|
||||
$("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected");
|
||||
}, "json");
|
||||
}
|
||||
}
|
||||
|
||||
// -----机房及位置相关处理
|
||||
$(function(){
|
||||
var first = 1;
|
||||
var vstart;
|
||||
//-- 机房 事件绑定 获取可选行号
|
||||
$("#roomRowPosition").empty();
|
||||
$("#roomRowPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
|
||||
$("#roomColPosition").empty();
|
||||
$("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
|
||||
|
||||
var curVal = $("#roomIspn").val();
|
||||
if(curVal!=""){
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
|
||||
{"roomIspn":curVal,"boxId":${nodeBox.nodeBoxId}},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
if(first==1){//第一次加载,选中行
|
||||
$("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected");
|
||||
$("#roomRowPosition").trigger("blur");//获取列
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
//-- 机房行号 事件绑定 由行号决定可选列号
|
||||
$("#roomRowPosition").blur(function(){
|
||||
$("#roomColPosition").empty();
|
||||
$("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
|
||||
|
||||
var roomIspn = $("#roomIspn").val();
|
||||
var curVal = $(this).val();
|
||||
if(curVal!=""){
|
||||
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
|
||||
{"roomIspn":roomIspn,"rowNum":curVal,"boxId":${nodeBox.nodeBoxId}},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
if(first==1){//第一次加载,选中列
|
||||
$("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected");
|
||||
first = 0;
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</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_ubi.button.back_n81i"/>
|
||||
</div>
|
||||
<form action="" name="Mkform" method="post" id="Mkform">
|
||||
<input type="hidden" name="nodeBox.nodeBoxId" value="${nodeBox.nodeBoxId}" />
|
||||
<input type="hidden" name="ispnNum" value="${ispnNum }">
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="roomid" value="${roomid }"/>
|
||||
<input type="hidden" name="roomIspn" value="${roomIspn }"/>
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_ubi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_ubi.text.index_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="nodeBox.ispn" id="ispn" value="${nodeBox.ispn}"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_ubi.text.U_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="nodeBox.boxUType" id="boxUType" value="${nodeBox.boxUType}"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ubi.text.roomIspn_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input value="${nodeBox.roomIspn }" disabled="disabled"/>
|
||||
<input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${nodeBox.roomIspn }" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ubi.text.roomRowPosition_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<select name="nodeBox.roomRowPosition" id="roomRowPosition"
|
||||
style="width: 151px;">
|
||||
<option value="">
|
||||
i18n_ubi.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ubi.text.roomColPosition_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<select name="nodeBox.roomColPosition" id="roomColPosition"
|
||||
style="width: 151px;">
|
||||
<option value="">
|
||||
i18n_ubi.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ubi.text.desc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<textarea rows="5" cols="60" id="descinfo"
|
||||
name="nodeBox.descinfo" >${nodeBox.descinfo}</textarea>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="2" 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_ubi.button.submit_n81i"/>
|
||||
|
||||
<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();resetInit();" value="i18n_ubi.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user