You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
906 lines
40 KiB
Plaintext
906 lines
40 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CodeCtnSet.aspx.cs" Inherits="DSWeb.ParameterSet.CodeCtnSet" %>
|
|
|
|
<!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 id="Head2" runat="server">
|
|
<title>集装箱信息维护</title>
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
|
<!--按钮条-->
|
|
<style type="text/css">
|
|
.btn-content0{
|
|
width:100%;
|
|
height:30px;
|
|
background:url("../images/content-header.gif");
|
|
cursor:default;
|
|
}
|
|
</style>
|
|
<!--Grid-->
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
|
<script>_css_prefix="styles/"; _js_prefix="js/"; </script>
|
|
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
|
|
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
|
|
<script src="../js/jsGridCodeCtnSet.js" type="text/javascript"></script>
|
|
<script src="../js/json2.js" type="text/javascript"></script>
|
|
<style type="text/css">
|
|
#divh { position:absolute; z-index:1001; left:40%; top:30%; width:300px; margin-left:-200px; border:solid 6px #ddd; }
|
|
.box { border:solid 1px #999; font-size:14px; }
|
|
#tit { border-bottom:solid 1px #999;background-color:#cccccc; padding:6px; font-weight:bold;}
|
|
#bod { background-color:#ffffff; padding:20px; }
|
|
#bot { border-top:solid 1px #999;background-color:#cccccc; text-align:right;}
|
|
.menu { position:absolute; z-index:101; width:150px; border:solid 1px #999; padding:2px; background-color:#ffffff;}
|
|
.menu a {padding:5px 6px; font-size:12px; color:#000000; cursor:default; text-decoration:none; padding-top:1px; width:90px;}
|
|
.menu a:hover { background-color:#507cd1; color:#ffffff;}
|
|
|
|
.regular{text-decoration:none;cursor:default; margin-right:20px;}
|
|
.imgLeftButton{
|
|
background-image:url(../images/icons/edit_right.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
|
|
}
|
|
.imgLeftHoverButton{
|
|
background-image:url(../images/icons/edit_righthover.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
|
|
}
|
|
|
|
.imgRightButton{
|
|
background-image:url(../images/icons/edit_left.gif);height:19px;width:19px; margin-left:22px;
|
|
}
|
|
.imgRightHoverButton{
|
|
background-image:url(../images/icons/edit_lefthover.gif);height:19px;width:19px; margin-left:22px;
|
|
}
|
|
|
|
.imgUpButton{
|
|
background-image:url(../images/icons/edit_up.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
|
|
}
|
|
.imgUpHoverButton{
|
|
background-image:url(../images/icons/edit_uphover.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
|
|
}
|
|
|
|
.imgDownButton{
|
|
background-image:url(../images/icons/edit_down.gif);height:19px;width:19px; margin-left:22px;
|
|
}
|
|
.imgDownHoverButton{
|
|
background-image:url(../images/icons/edit_downhover.gif);height:19px;width:19px; margin-left:22px;
|
|
}
|
|
.enterButton{
|
|
display:block;
|
|
float:left;
|
|
margin:0 7px 0 0;
|
|
background-color:#d5d5d5;
|
|
border:1px solid #dedede;
|
|
border-top:1px solid #eee;
|
|
border-left:1px solid #eee;
|
|
|
|
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
|
font-size:12px;
|
|
line-height:130%;
|
|
text-decoration:none;
|
|
font-weight:bold;
|
|
color:#565656;
|
|
cursor:default;
|
|
padding:5px 10px 6px 7px; /* Links */
|
|
width:60px;
|
|
text-align:center;
|
|
margin-top:8px;
|
|
margin-left:20px;
|
|
|
|
}
|
|
|
|
.enterButton:hover{
|
|
background-color:#dff4ff;
|
|
border:1px solid #c2e1ef;
|
|
color:#336699;
|
|
}
|
|
.enterButton:active{
|
|
background-color:#6299c5;
|
|
border:1px solid #6299c5;
|
|
color:#fff;
|
|
}
|
|
.dvMenu{
|
|
display:block;
|
|
background-color:#ffffff;
|
|
border:1px solid #dedede;
|
|
border-top:1px solid #eee;
|
|
border-left:1px solid #eee;
|
|
|
|
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
|
font-size:12px;
|
|
line-height:130%;
|
|
text-decoration:none;
|
|
font-weight:bold;
|
|
color:#565656;
|
|
cursor:default;
|
|
padding:8px 0px 6px 7px; /* Links */
|
|
width:95%;
|
|
text-align:center;
|
|
|
|
}
|
|
.dvMenu:hover{
|
|
background-color:#dff4ff;
|
|
border:1px solid #c2e1ef;
|
|
color:#336699;
|
|
}
|
|
.dvMenu:active{
|
|
background-color:#6299c5;
|
|
border:1px solid #6299c5;
|
|
color:#fff;
|
|
}
|
|
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
|
|
</style>
|
|
<!--按钮条-->
|
|
<script type="text/javascript">
|
|
function $(id)
|
|
{
|
|
return document.getElementById(id);
|
|
}
|
|
function divdadd()
|
|
{
|
|
document.getElementById('divadd').style.display = "";
|
|
document.getElementById('divsave').style.display = "";
|
|
document.getElementById('divrefresh').style.display = "";
|
|
document.getElementById('divdel').style.display = "none";
|
|
document.getElementById('divrollback').style.display = "none";
|
|
}
|
|
function divdisplay()
|
|
{
|
|
document.getElementById('divadd').style.display = "";
|
|
document.getElementById('divsave').style.display = "";
|
|
document.getElementById('divrefresh').style.display = "";
|
|
document.getElementById('divdel').style.display = "";
|
|
document.getElementById('divrollback').style.display = "";
|
|
}
|
|
</script>
|
|
<!--自定义下拉框-->
|
|
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
|
|
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
|
|
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
|
|
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
|
|
<script type="text/javascript">
|
|
window.dhx_globalImgPath="../images/";
|
|
</script>
|
|
<script type="text/javascript">
|
|
//var comboCTNCODE;//箱型
|
|
var comboCTN1;//箱型
|
|
var comboCTN2;//箱型
|
|
var comboCTN3;//箱型
|
|
var comboCTN4;//箱型
|
|
var comboCTN5;//箱型
|
|
var comboCTN3;//箱型
|
|
var comboCTN7;//箱型
|
|
var comboCTN8;//箱型
|
|
var comboCTN9;//箱型
|
|
var comboCTN10;//箱型
|
|
|
|
function initcomboCTN1()//箱型1
|
|
{
|
|
//生成
|
|
comboCTN1 = dhtmlXComboFromSelect("ddlCTN1");
|
|
comboCTN1.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN12()//箱型1
|
|
{
|
|
comboCTN1.attachEvent("onChange", function()
|
|
{
|
|
comboCTN1.setComboText($("hd_comboCTN1").value);
|
|
});
|
|
comboCTN1.setComboText($("hd_comboCTN1").value);
|
|
comboCTN1.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN1").value.trim();
|
|
if("" != comboCTN1.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN1.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN1.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN1.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN1").value = comboCTN1.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN1.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN1").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN1.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN1").value = comboCTN1.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN2()//箱型2
|
|
{
|
|
//生成
|
|
comboCTN2 = dhtmlXComboFromSelect("ddlCTN2");
|
|
comboCTN2.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN22()//箱型2
|
|
{
|
|
comboCTN2.attachEvent("onChange", function()
|
|
{
|
|
comboCTN2.setComboText($("hd_comboCTN2").value);
|
|
});
|
|
comboCTN2.setComboText($("hd_comboCTN2").value);
|
|
comboCTN2.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN2").value.trim();
|
|
if("" != comboCTN2.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN2.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN2.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN2.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN2").value = comboCTN2.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN2.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN2").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN2.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN2").value = comboCTN2.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN3()//箱型3
|
|
{
|
|
//生成
|
|
comboCTN3 = dhtmlXComboFromSelect("ddlCTN3");
|
|
comboCTN3.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN32()//箱型3
|
|
{
|
|
comboCTN3.attachEvent("onChange", function()
|
|
{
|
|
comboCTN3.setComboText($("hd_comboCTN3").value);
|
|
});
|
|
comboCTN3.setComboText($("hd_comboCTN3").value);
|
|
comboCTN3.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN3").value.trim();
|
|
if("" != comboCTN3.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN3.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN3.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN3.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN3").value = comboCTN3.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN3.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN3").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN3.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN3").value = comboCTN3.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN4()//箱型4
|
|
{
|
|
//生成
|
|
comboCTN4 = dhtmlXComboFromSelect("ddlCTN4");
|
|
comboCTN4.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN42()//箱型4
|
|
{
|
|
comboCTN4.attachEvent("onChange", function()
|
|
{
|
|
comboCTN4.setComboText($("hd_comboCTN4").value);
|
|
});
|
|
comboCTN4.setComboText($("hd_comboCTN4").value);
|
|
comboCTN4.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN4").value.trim();
|
|
if("" != comboCTN4.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN4.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN4.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN4.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN4").value = comboCTN4.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN4.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN4").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN4.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN4").value = comboCTN4.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN5()//箱型5
|
|
{
|
|
//生成
|
|
comboCTN5 = dhtmlXComboFromSelect("ddlCTN5");
|
|
comboCTN5.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN52()//箱型5
|
|
{
|
|
comboCTN5.attachEvent("onChange", function()
|
|
{
|
|
comboCTN5.setComboText($("hd_comboCTN5").value);
|
|
});
|
|
comboCTN5.setComboText($("hd_comboCTN5").value);
|
|
comboCTN5.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN5").value.trim();
|
|
if("" != comboCTN5.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN5.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN5.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN5.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN5").value = comboCTN5.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN5.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN5").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN5.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN5").value = comboCTN5.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN6()//箱型6
|
|
{
|
|
//生成
|
|
comboCTN6 = dhtmlXComboFromSelect("ddlCTN6");
|
|
comboCTN6.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN62()//箱型6
|
|
{
|
|
comboCTN6.attachEvent("onChange", function()
|
|
{
|
|
comboCTN6.setComboText($("hd_comboCTN6").value);
|
|
});
|
|
comboCTN6.setComboText($("hd_comboCTN6").value);
|
|
comboCTN6.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN6").value.trim();
|
|
if("" != comboCTN6.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN6.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN6.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN6.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN6").value = comboCTN6.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN6.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN6").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN6.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN6").value = comboCTN6.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN7()//箱型7
|
|
{
|
|
//生成
|
|
comboCTN7 = dhtmlXComboFromSelect("ddlCTN7");
|
|
comboCTN7.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN72()//箱型7
|
|
{
|
|
comboCTN7.attachEvent("onChange", function()
|
|
{
|
|
comboCTN7.setComboText($("hd_comboCTN7").value);
|
|
});
|
|
comboCTN7.setComboText($("hd_comboCTN7").value);
|
|
comboCTN7.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN7").value.trim();
|
|
if("" != comboCTN7.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN7.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN7.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN7.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN7").value = comboCTN7.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN7.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN7").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN7.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN7").value = comboCTN7.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN8()//箱型8
|
|
{
|
|
//生成
|
|
comboCTN8 = dhtmlXComboFromSelect("ddlCTN8");
|
|
comboCTN8.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN82()//箱型8
|
|
{
|
|
comboCTN8.attachEvent("onChange", function()
|
|
{
|
|
comboCTN8.setComboText($("hd_comboCTN8").value);
|
|
});
|
|
comboCTN8.setComboText($("hd_comboCTN8").value);
|
|
comboCTN8.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN8").value.trim();
|
|
if("" != comboCTN8.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN8.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN8.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN8.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN8").value = comboCTN8.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN8.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN8").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN8.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN8").value = comboCTN8.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN9()//箱型9
|
|
{
|
|
//生成
|
|
comboCTN9 = dhtmlXComboFromSelect("ddlCTN9");
|
|
comboCTN9.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN92()//箱型9
|
|
{
|
|
comboCTN9.attachEvent("onChange", function()
|
|
{
|
|
comboCTN9.setComboText($("hd_comboCTN9").value);
|
|
});
|
|
comboCTN9.setComboText($("hd_comboCTN9").value);
|
|
comboCTN9.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN9").value.trim();
|
|
if("" != comboCTN9.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN9.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN9.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN9.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN9").value = comboCTN9.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN9.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN9").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN9.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN9").value = comboCTN9.getComboText().trim();
|
|
});
|
|
}
|
|
function initcomboCTN10()//箱型10
|
|
{
|
|
//生成
|
|
comboCTN10 = dhtmlXComboFromSelect("ddlCTN10");
|
|
comboCTN10.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function initcomboCTN102()//箱型10
|
|
{
|
|
comboCTN10.attachEvent("onChange", function()
|
|
{
|
|
comboCTN10.setComboText($("hd_comboCTN10").value);
|
|
});
|
|
comboCTN10.setComboText($("hd_comboCTN10").value);
|
|
comboCTN10.attachEvent("onKeyPressed", function(keyCode)
|
|
{
|
|
if(keyCode!="8")
|
|
{
|
|
var arrayArg = new Array();
|
|
setTimeout(function()
|
|
{
|
|
var filterCount = 0;
|
|
var is = -1;
|
|
var ishd = $("hd_comboCTN10").value.trim();
|
|
if("" != comboCTN10.getComboText().trim())
|
|
{
|
|
while("undefined" != typeof comboCTN10.getOptionByIndex(filterCount))
|
|
{
|
|
var comboValue = comboCTN10.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
|
var enterValue = comboCTN10.getComboText().trim().toUpperCase();
|
|
$("hd_comboCTN10").value = comboCTN10.getComboText().trim().toUpperCase();
|
|
if(comboValue.indexOf(enterValue) == 0)
|
|
{
|
|
comboCTN10.selectOption(filterCount,true,true);
|
|
is=filterCount;
|
|
break;
|
|
}
|
|
++filterCount;
|
|
}
|
|
if(is==-1)
|
|
{
|
|
$("hd_comboCTN10").value = ishd;
|
|
alert("无此内容,请重新选择!");
|
|
}
|
|
}
|
|
},10);
|
|
}
|
|
});
|
|
comboCTN10.attachEvent("onSelectionChange", function()
|
|
{
|
|
$("hd_comboCTN10").value = comboCTN10.getComboText().trim();
|
|
});
|
|
}
|
|
|
|
function freshCTN1()//箱型刷新
|
|
{
|
|
initcomboCTN1();
|
|
initcomboCTN2();
|
|
initcomboCTN3();
|
|
initcomboCTN4();
|
|
initcomboCTN5();
|
|
initcomboCTN6();
|
|
initcomboCTN7();
|
|
initcomboCTN8();
|
|
initcomboCTN9();
|
|
initcomboCTN10();
|
|
}
|
|
function freshCTN2()//箱型刷新
|
|
{
|
|
initcomboCTN12();
|
|
initcomboCTN22();
|
|
initcomboCTN32();
|
|
initcomboCTN42();
|
|
initcomboCTN52();
|
|
initcomboCTN62();
|
|
initcomboCTN72();
|
|
initcomboCTN82();
|
|
initcomboCTN92();
|
|
initcomboCTN102();
|
|
}
|
|
function freshCTN3()//箱型刷新
|
|
{
|
|
comboCTN1.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN2.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN3.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN4.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN5.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN6.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN7.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN8.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN9.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
comboCTN10.loadXML("../FeeCodes/TopCtnAdapter.aspx?mask=0&pos=0&ddl=ddl");
|
|
}
|
|
function saveCTN()//业务箱型保存
|
|
{
|
|
$("hdCTN").value = "1";
|
|
msgBox();
|
|
setTimeout(postEnterOpStatusList,200);
|
|
}
|
|
//post数据
|
|
function postEnterOpStatusList()
|
|
{
|
|
var myForm = document.getElementById("form1");
|
|
myForm.submit() ;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="initWinScreen();initGrid();freshCTN2();" style="border:0px; width:100%; height:100%;background-color: #ECF2FF;">
|
|
<form id="form1" runat="server">
|
|
<div style="width:100%;vertical-align:text-bottom;">
|
|
<table width=100% style="border-collapse: collapse">
|
|
<tr style="width:560px;vertical-align:text-bottom; font-size:12px;" class="btn-content0">
|
|
<td align=center valign=middle><asp:Label ID="Label1" runat="server" Text="集装箱代码维护"></asp:Label></td>
|
|
<td align=center valign=middle><asp:Label ID="Label2" runat="server" Text="业务箱型表现形式"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign=top width=560px>
|
|
<div style="width:560px;vertical-align:text-bottom;" class="btn-content0">
|
|
<div class="btn-blank"></div>
|
|
<div id="divadd" runat=server class="xbtn-img" onclick="divdisplay();addRecvRow()" style="display:block">
|
|
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加"/></div>
|
|
</div>
|
|
<div id="divsave" runat=server class="xbtn-img" onclick="divdisplay();saveRecvChange()">
|
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
|
</div>
|
|
<div id="divdel" runat=server class="xbtn-img" onclick="divdisplay();deleteRecvRow()">
|
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除"/></div>
|
|
</div>
|
|
<div id="divrollback" runat=server class="xbtn-img" onclick="divdisplay();recoverRecvChange()">
|
|
<div class="btnimg"><img src="../images/icons/rollback.gif" width="16px" title="放弃修改"/></div>
|
|
</div>
|
|
<div id="divrefresh" runat=server class="xbtn-img" onclick="divdisplay();refreshRecv()">
|
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新"/></div>
|
|
</div>
|
|
</div>
|
|
<div style=" width:560px; height:100%;" oncontextmenu="return false">
|
|
<div style="width:100%; overflow-x:scroll; position:relative;"><div id="mygrid_container_recv" style="width:400; height:350px;" runat="server" class="cssfont"></div></div>
|
|
<input type="hidden" id="payContainer" runat="server" />
|
|
<input type="hidden" id="recvContainer" runat="server" />
|
|
<input type="hidden" id="gainContainer" runat="server" />
|
|
<input type="hidden" id="addCache" />
|
|
<div id="allDoc"></div>
|
|
</div>
|
|
</td>
|
|
<td valign=top>
|
|
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
|
|
<div class="btn-blank"></div>
|
|
<div id="div2" runat=server class="xbtn-img" onclick="saveCTN();">
|
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
|
</div>
|
|
<div id="div5" runat=server class="xbtn-img" onclick="freshCTN3()">
|
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新"/></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<table style="width:100%;border-collapse:collapse;">
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label4" runat="server" Text="箱型1" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN1" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label5" runat="server" Text="箱型2" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN2" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label6" runat="server" Text="箱型3" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN3" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label7" runat="server" Text="箱型4" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN4" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label8" runat="server" Text="箱型5" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN5" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label9" runat="server" Text="箱型6" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN6" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label10" runat="server" Text="箱型7" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN7" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label11" runat="server" Text="箱型8" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN8" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label12" runat="server" Text="箱型9" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN9" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=5px></td>
|
|
<td width=50px><asp:Label ID="Label13" runat="server" Text="箱型10" Font-Size=12px></asp:Label></td>
|
|
<td width=100px>
|
|
<select id="ddlCTN10" runat="server" CssClass="txtTab12" style="width:100px"></select>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
<input id="hdRangeV" type="hidden" runat=server/>
|
|
<input id="hdRangeO" type="hidden" runat=server/>
|
|
|
|
<input type="hidden" id="hdCTN" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN1" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN2" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN3" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN4" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN5" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN6" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN7" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN8" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN9" runat="server"/>
|
|
<input type="hidden" id="hd_comboCTN10" runat="server"/>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |