|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="boxlist.aspx.cs" Inherits="DSWeb.box.boxlist" %>
|
|
|
|
|
|
|
|
|
|
<!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 rel="STYLESHEET" type="text/css" href="../theme/buttons.css"/>
|
|
|
|
|
<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 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/jsGridBox.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/json2.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function $(id) {
|
|
|
|
|
return document.getElementById(id);
|
|
|
|
|
}
|
|
|
|
|
function createGrid() {
|
|
|
|
|
this.mygrid_log.attachEvent("onRowDblClicked", function(rId, cInd) {
|
|
|
|
|
var selectedId = mygrid_log.getSelectedRowId();
|
|
|
|
|
var qs = new QueryString(); //调用:
|
|
|
|
|
//var URLs = "ExchangesUnitInfo.aspx?handle=edit&id="+selectedId;//+qs.id;
|
|
|
|
|
var URLs = "../box/BoxEdit.aspx?handle=edit&id=" + selectedId; //+qs.id;
|
|
|
|
|
window.open(URLs, "_blank", "height=220, width=800,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<!--GridEnd-->
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
|
function QueryString() {
|
|
|
|
|
var name, value, i; //构造参数对象并初始化
|
|
|
|
|
var str = location.href; //获得浏览器地址栏URL串
|
|
|
|
|
var num = str.indexOf("?")
|
|
|
|
|
str = str.substr(num + 1); //截取“?”后面的参数串
|
|
|
|
|
var arrtmp = str.split("&"); //将各参数分离形成参数数组
|
|
|
|
|
for (i = 0; i < arrtmp.length; i++) {
|
|
|
|
|
num = arrtmp[i].indexOf("=");
|
|
|
|
|
if (num > 0) {
|
|
|
|
|
name = arrtmp[i].substring(0, num); //取得参数名称
|
|
|
|
|
value = arrtmp[i].substr(num + 1); //取得参数值
|
|
|
|
|
this[name] = value; //定义对象属性并初始化
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function ShowDetailAdd() {
|
|
|
|
|
var qs = new QueryString(); //调用:
|
|
|
|
|
var URLs = "../box/BoxEdit.aspx?handle=add";
|
|
|
|
|
ret = window.open(URLs, "添加提单", "height=220, width=800,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
|
|
|
|
|
}
|
|
|
|
|
function ShowDetailUpdate() {
|
|
|
|
|
var asid = mygrid_log.getSelectedRowId();
|
|
|
|
|
if (asid == null || asid == "") {
|
|
|
|
|
alert("请先选择要操作的数据!");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
var selectedId = mygrid_log.getSelectedRowId();
|
|
|
|
|
var qs = new QueryString(); //调用:
|
|
|
|
|
var URLs = "../box/BoxEdit.aspx?handle=edit&id=" + selectedId;
|
|
|
|
|
ret = window.open(URLs, "_blank", "height=220, width=800,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
function ShowDetailDel() {
|
|
|
|
|
var checked = mygrid_log.getCheckedRows(0); //所有选中的grid的id编号
|
|
|
|
|
//var asid = mygrid_log.getSelectedRowId();
|
|
|
|
|
//alert(checked);
|
|
|
|
|
//alert(asid);
|
|
|
|
|
if (checked == null || checked == "") {
|
|
|
|
|
alert("请先选择要操作的数据!");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if (confirm('确定删除吗?')) {
|
|
|
|
|
$("hid_id").value = mygrid_log.getCheckedRows(0);
|
|
|
|
|
document.getElementById("btDel").click();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ShowDetailFresh() {
|
|
|
|
|
initLog();
|
|
|
|
|
initMenu();
|
|
|
|
|
//createGrid();
|
|
|
|
|
}
|
|
|
|
|
function imgAddChangePic() {
|
|
|
|
|
var pic1 = document.getElementById("imgAdd");
|
|
|
|
|
var start = pic1.src.lastIndexOf("/");
|
|
|
|
|
var str = pic1.src.substring(start + 1);
|
|
|
|
|
if (str == "order_modify.gif") {
|
|
|
|
|
pic1.src = "../images/order_cancel.gif";
|
|
|
|
|
//pic1.alt="我是B图片";
|
|
|
|
|
}
|
|
|
|
|
else if (str == "order_cancel.gif") {
|
|
|
|
|
pic1.src = "../images/order_modify.gif";
|
|
|
|
|
//pic1.alt="我是A图片";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function imgFreshChangePic() {
|
|
|
|
|
var pic1 = document.getElementById("imgFresh");
|
|
|
|
|
var start = pic1.src.lastIndexOf("/");
|
|
|
|
|
var str = pic1.src.substring(start + 1);
|
|
|
|
|
if (str == "btnFresh.gif") {
|
|
|
|
|
pic1.src = "../images/icons/progress.gif";
|
|
|
|
|
//pic1.alt="我是B图片";
|
|
|
|
|
}
|
|
|
|
|
else if (str == "progress.gif") {
|
|
|
|
|
pic1.src = "../images/icons/btnFresh.gif";
|
|
|
|
|
//pic1.alt="我是A图片";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function imgEditChangePic() {
|
|
|
|
|
var pic1 = document.getElementById("imgEdit");
|
|
|
|
|
var start = pic1.src.lastIndexOf("/");
|
|
|
|
|
var str = pic1.src.substring(start + 1);
|
|
|
|
|
if (str == "audit.gif") {
|
|
|
|
|
pic1.src = "../images/order_delete.gif";
|
|
|
|
|
//pic1.alt="我是B图片";
|
|
|
|
|
}
|
|
|
|
|
else if (str == "order_delete.gif") {
|
|
|
|
|
pic1.src = "../images/audit.gif";
|
|
|
|
|
//pic1.alt="我是A图片";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function imgDelChangePic() {
|
|
|
|
|
var pic1 = document.getElementById("imgDel");
|
|
|
|
|
var start = pic1.src.lastIndexOf("/");
|
|
|
|
|
var str = pic1.src.substring(start + 1);
|
|
|
|
|
if (str == "remove.gif") {
|
|
|
|
|
pic1.src = "../images/delete.gif";
|
|
|
|
|
//pic1.alt="我是B图片";
|
|
|
|
|
}
|
|
|
|
|
else if (str == "delete.gif") {
|
|
|
|
|
pic1.src = "../images/icons/remove.gif";
|
|
|
|
|
//pic1.alt="我是A图片";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body onload="initWinScreen();initLog();initMenu();" style="border:0px; width:100%; height:100%">
|
|
|
|
|
<form id="form1" runat="server">
|
|
|
|
|
<div>
|
|
|
|
|
<table style="border:0; padding:0;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width:10px;" height="20px"></td>
|
|
|
|
|
<td>选择导入Excel:</td>
|
|
|
|
|
<td >
|
|
|
|
|
<asp:FileUpload ID="file" runat="server" Width="293px" />
|
|
|
|
|
</td>
|
|
|
|
|
<td style="width:70px;">
|
|
|
|
|
<div class="xbtn" style="width:106px; height:20px;">
|
|
|
|
|
<asp:Button ID="Button1" runat="server" Text="批量导入" CssClass="btncss"
|
|
|
|
|
onclick="Button1_Click"/>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table style="border:0; padding:0;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width:10px;" height="20px"></td>
|
|
|
|
|
<td>箱号:</td>
|
|
|
|
|
<td><asp:TextBox ID="txt_xh" runat="server" MaxLength="30" Width="120px" CssClass="txtTab"></asp:TextBox></td>
|
|
|
|
|
<td>箱主:</td>
|
|
|
|
|
<td><asp:TextBox ID="txt_xz" runat="server" MaxLength="30" Width="120px" CssClass="txtTab"></asp:TextBox></td>
|
|
|
|
|
<td>箱型:</td>
|
|
|
|
|
<td><asp:TextBox ID="txt_xx" runat="server" MaxLength="30" Width="80px" CssClass="txtTab"></asp:TextBox></td>
|
|
|
|
|
<td rowspan="2" >
|
|
|
|
|
<div class="buttons" onclick="ShowDetailFresh()" style="float:left"><a href="javascript:void(0)" class="regular" ><img src="../images/icons/btnSearch.gif" title="查询"/>查询</a></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div style=" width:100%; height:100%;" oncontextmenu="return true">
|
|
|
|
|
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
|
|
|
|
|
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
|
|
|
|
|
<div class="btn-blank"></div>
|
|
|
|
|
<div class="xbtn-img">
|
|
|
|
|
<img id="imgAdd" src="../images/icons/btnAdd.gif" onclick="ShowDetailAdd();" class="btnimg" alt="添加" onmouseover="imgAddChangePic();" onMouseOut="imgAddChangePic();"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img">
|
|
|
|
|
<img id="imgEdit" src="../images/audit.gif" onclick="ShowDetailUpdate();" class="btnimg" alt="修改" onmouseover="imgEditChangePic();" onMouseOut="imgEditChangePic();"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img">
|
|
|
|
|
<img id="imgDel" src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="删除" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="xbtn-img">
|
|
|
|
|
<img id="imgFresh" src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="width:98%; overflow:auto;"><div id="mygrid_container_log" style="width:1200px; height:440px;" runat="server" class="cssfont"></div></div>
|
|
|
|
|
<div id="pager" style="width: 100%; margin: 0px; padding: 4px; border: 0px solid #999;"></div>
|
|
|
|
|
<div id="info" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px; border: 1px solid #999;display:none;"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<input type="hidden" id="hid_setting" runat="server"/>
|
|
|
|
|
<input type="hidden" id="hid_header" runat="server" />
|
|
|
|
|
<input type="hidden" id="hid_id" runat="server" />
|
|
|
|
|
<asp:Button ID="btDel" runat="server" Text="Button" OnClick="btDel_Click" style="display:none"/>
|
|
|
|
|
<div id="dvSaveState" runat="server"></div>
|
|
|
|
|
<div id="divh" style="display: none;">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div id="tit"></div>
|
|
|
|
|
<div id="bod"></div>
|
|
|
|
|
<div id="bot"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|