404 lines
16 KiB
Plaintext
404 lines
16 KiB
Plaintext
3 years ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BoxEdit.aspx.cs" Inherits="DSWeb.box.BoxEdit" %>
|
||
|
<!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="Head1" runat="server">
|
||
|
<title>集装箱基本信息管理</title>
|
||
|
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
|
||
|
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
||
|
|
||
|
<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/json2.js" type="text/javascript"></script>
|
||
|
<script src="../js/dhtmlxcalendar.js" type="text/javascript"></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/dhtmlxcombo_whp.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
window.dhx_globalImgPath = "../images/";
|
||
|
|
||
|
var comboPort;
|
||
|
function initComboPort()//港口
|
||
|
{
|
||
|
comboPort = dhtmlXComboFromSelect("ddlPORT");
|
||
|
|
||
|
comboPort.loadXML("../FeeCodes/TCodeDisportAdapter2.aspx?mask=0&pos=0");
|
||
|
comboPort.setComboValue(document.getElementById("hd_port").value);
|
||
|
}
|
||
|
|
||
|
function initComboPort2() {
|
||
|
if (document.getElementById("hdEnabled").value == "false") {
|
||
|
comboPort.disable(true);
|
||
|
}
|
||
|
//
|
||
|
//comboPort.setOptionWidth(300);
|
||
|
//comboPort.setOptionWidth(200);
|
||
|
comboPort.attachEvent("onOpen", function() {
|
||
|
if (comboPort.getOptionByIndex(0) == null) {
|
||
|
comboPort.loadXML("../FeeCodes/TCodeDisportAdapter2.aspx?mask=0&pos=0&strSel=");
|
||
|
}
|
||
|
});
|
||
|
comboPort.attachEvent("onChange", function() {
|
||
|
document.getElementById("hd_comboPORT").value = comboPort.getComboText().toUpperCase();
|
||
|
comboPort.setComboText(document.getElementById("hd_comboPORT").value);
|
||
|
});
|
||
|
comboPort.attachEvent("onBlur", function() {
|
||
|
});
|
||
|
comboPort.setComboText(document.getElementById("hd_comboPORT").value);
|
||
|
//检索
|
||
|
//comboDESTINATION.enableFilteringMode(true);
|
||
|
comboPort.attachEvent("onKeyPressed", function(keyCode) {
|
||
|
var arrayArg = new Array();
|
||
|
setTimeout(function() {
|
||
|
var filterCount = 0;
|
||
|
if ("" != comboPort.getComboText()) {
|
||
|
var enterValue = comboPort.getComboText().toUpperCase();
|
||
|
comboPort.loadXML("../FeeCodes/TCodeDisportAdapter2.aspx?mask=0&pos=0&strSel=" + enterValue);
|
||
|
}
|
||
|
}, 10);
|
||
|
});
|
||
|
comboPort.attachEvent("onSelectionChange", function() {
|
||
|
document.getElementById("hd_comboPORT").value = comboPort.getComboText();
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function checkboxno(obj) {
|
||
|
if (obj.value != null) {
|
||
|
var re = /[A-Za-z]{4}[0-9]{7}$/;
|
||
|
if (!re.test(obj.value))
|
||
|
alert("请输入正确的箱子号");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
</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>
|
||
|
|
||
|
<!--页面重新加载-->
|
||
|
<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;
|
||
|
}
|
||
|
.btncss
|
||
|
{
|
||
|
BORDER-RIGHT: #2C59AA 1px solid;
|
||
|
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
|
||
|
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
|
||
|
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
|
||
|
BORDER-BOTTOM: #2C59AA 1px solid;
|
||
|
}
|
||
|
</style>
|
||
|
<style type="text/css">
|
||
|
*{ margin:0; padding:0;}
|
||
|
html,body{ width:100%; height:100%; overflow:hidden;}
|
||
|
.containercss{ position:relative; width:100%; height:100%; overflow-y:scroll; overflow-x:auto;}
|
||
|
.topcss{ width:100%; position:absolute; top:0; left:0;}
|
||
|
.boxcss{ height:610px;}
|
||
|
</style>
|
||
|
<!--排序-->
|
||
|
<style type="text/css">
|
||
|
.headStyle a{text-decoration:none;}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body onload="initComboPort2();" style="background-color: #ECF2FF;" >
|
||
|
<form id="form1" runat="server" style="background-color: #ECF2FF">
|
||
|
<div>
|
||
|
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img">
|
||
|
<div class="btnimg"><asp:ImageButton ID="ibAdd" runat="server" ToolTip="添加"
|
||
|
ImageUrl="~/images/icons/btnAdd.gif" CssClass="cssfont" onclick="ibAdd_Click"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img">
|
||
|
<div class="btnimg"><asp:ImageButton ID="ibsave" runat="server"
|
||
|
ImageUrl="~/images/icons/save.gif" ToolTip="保存" CssClass="cssfont"
|
||
|
onclick="ibsave_Click"/></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 选项卡开始 -->
|
||
|
<div class="TabContent" style="float:left; width:780px;background-color: #ECF2FF">
|
||
|
<table width=700px>
|
||
|
<tr><td height="10px"></td></tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="50px">
|
||
|
<asp:Label ID="Label1" runat="server" Text="箱号" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td width="100px">
|
||
|
<asp:TextBox ID="cntrno" runat="server" style="width:150px" CssClass="txtTab14" MaxLength="100" onBlur="checkboxno(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
<td width="50px">
|
||
|
<asp:Label ID="Label4" runat="server" Text="箱主" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td width="150px">
|
||
|
<asp:DropDownList ID="CntrOwner" runat="server">
|
||
|
</asp:DropDownList>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
<td width="50px">
|
||
|
<asp:Label ID="lbCLIENTNAME" runat="server" Text="箱型" width="50px" CssClass="cssfont" onclick="onclickCLIENTNAME();"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:DropDownList ID="Cntype" runat="server" CssClass="txtTab14" style="width:150px">
|
||
|
</asp:DropDownList>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td width="50px">
|
||
|
<asp:Label ID="Label3" runat="server" Text="箱源" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td width="100px">
|
||
|
<asp:DropDownList ID="CnSource" runat="server">
|
||
|
<asp:ListItem Value="">请选择</asp:ListItem>
|
||
|
<asp:ListItem>自备箱</asp:ListItem>
|
||
|
<asp:ListItem>长租箱</asp:ListItem>
|
||
|
<asp:ListItem>短租箱</asp:ListItem>
|
||
|
<asp:ListItem>租买箱</asp:ListItem>
|
||
|
<asp:ListItem>FreeUse箱</asp:ListItem>
|
||
|
</asp:DropDownList>
|
||
|
</td>
|
||
|
<td width="10px"></td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label7" runat="server" Text="购买时间" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="Buytime" runat="server" CssClass="txtTab14" onclick="WdatePicker();" style="width:150px"></asp:TextBox>
|
||
|
</td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label8" runat="server" Text="租用开始" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="Rent_begintime" runat="server" CssClass="txtTab14" onclick="WdatePicker();" style="width:150px" ></asp:TextBox>
|
||
|
</td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label9" runat="server" Text="租用结束" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="Rent_endtime" runat="server" CssClass="txtTab14" onclick="WdatePicker();" style="width:150px" ></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label10" runat="server" Text="箱子状态" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:DropDownList ID="Status" runat="server">
|
||
|
<asp:ListItem Value="1">可用</asp:ListItem>
|
||
|
<asp:ListItem Value="2">已用</asp:ListItem>
|
||
|
<asp:ListItem Value="3">维修</asp:ListItem>
|
||
|
<asp:ListItem Value="4">停用</asp:ListItem>
|
||
|
<asp:ListItem Value="5">退租</asp:ListItem>
|
||
|
<asp:ListItem Value="6">灭失</asp:ListItem>
|
||
|
<asp:ListItem Value="7">卖出</asp:ListItem>
|
||
|
</asp:DropDownList>
|
||
|
</td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label12" runat="server" Text="当前位置" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<select id="ddlPORT" runat=server style="width:150px" CssClass="txtTab14"></select>
|
||
|
|
||
|
</td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td Width="100px">
|
||
|
</td>
|
||
|
<td Width="50px">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"> </td>
|
||
|
<td>
|
||
|
<asp:Label ID="Label2" runat="server" Text="备注" width="50px" CssClass="cssfont"></asp:Label>
|
||
|
</td>
|
||
|
<td colspan=7>
|
||
|
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab" Width="612px" MaxLength=100></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"> </td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
<asp:CheckBox ID="CheckBox1" runat="server" Text="业务更新至新箱号" Visible=false/>
|
||
|
</td>
|
||
|
<td> </td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<asp:HiddenField ID="hfCntrNo" runat="server" />
|
||
|
</td>
|
||
|
<td> </td>
|
||
|
<td>
|
||
|
</td>
|
||
|
<td>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td colspan=8 height="10">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="10px"></td>
|
||
|
<td colspan=8 align=left height="10">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="hidden" id="hd_comboPORT" runat="server"/>
|
||
|
<input type="hidden" id="hd_sel" runat="server"/>
|
||
|
<input type="hidden" id="hdEnabled" runat="server"/>
|
||
|
<input type="hidden" id="hd_port" runat="server" />
|
||
|
</div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|
||
|
|