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.

355 lines
18 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaImportList.aspx.cs" Inherits="DSWeb.SeaiInfo.SeaImportList" %>
<!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>
<style type="text/css">
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
.mesWindow{border:#666 1px solid;background:#fff;}
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
.btn
{
width:100px;
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>
<link rel="STYLESHEET" type="text/css" href="../theme/buttons.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/progressbar.css" />
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxcombo.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/TGridCommon.js" type="text/javascript"></script>
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.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" src="../js/browser.js" ></script>
<script type="text/javascript" src="../js/TCombo.js" ></script>
<script src="../js/jsGridSeaImportList.js" type="text/javascript"></script>
<script type="text/javascript">
//回车键控制
document.onkeypress=function()
{
if(event.keyCode==13)
{
search();
}
}
</script>
<!--下拉菜单-->
<style type="text/css">
.anylinkcss
{
position:absolute;
visibility: hidden;
border:1px solid #C0C0C0;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #ECF4FF;
width: 60px;
}
.anylinkcss a
{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid #C0C0C0;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover
{
background-color: #C0C0C0;
color: white;
}
.btncss
{
width:100px;
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>
<script language="javascript">
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
var ie5=document.all
var ns6=document.getElementById && !document.all
function getposOffset(what, offsettype)
{
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null)
{
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden)
{
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge)
{
var edgeoffset=0
if (whichedge=="rightedge")
{
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else
{
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}
function dropdownmenu(obj, e, dropmenuID)
{
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj!="undefined") //hide previous menu
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6)
{
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")-3+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+3+"px"
}
return clickreturnvalue()
}
function clickreturnvalue()
{
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}
function contains_ns6(a, b)
{
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e)
{
if (ie5 && !dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6 && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function delayhidemenu()
{
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}
function clearhidemenu()
{
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
function setGridSort() {
var openSet = "height=500, width=800, toolbar=no, menubar=no,scrollbars=no, resizable=no,location=no, status=no,Top= " + (screen.height - 500) / 2 + ",Left= " + (screen.width - 800) / 2
var openType = "_blank";
var openUrl = "../UserSettings/GridSortSetting.aspx?tablename=op_seai";
window.open(openUrl, openType, openSet);
}
</script>
</head>
<body onload="resizeGrid('mygrid_container_seai','gridContain','dvContainer',210);reInitJs();">
<div style=" width:100%; height:100%; position:relative;" oncontextmenu="return true" id="dvContainer">
<form id="form1" runat="server">
<div>
<table style="border:0; padding:0;">
<tr>
<td style="width:40px;"><div style="width:40px; text-align:right;">编号:</div></td>
<td style="width:100px;">
<asp:TextBox ID="txt_no" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
</td>
<td style="width:70px;"><div style="width:70px;text-align:right;">进口日期:</div></td>
<td style="width:100px;">
<asp:TextBox ID="txt_beginetd" runat="server" onclick="WdatePicker()" Width="100px" ReadOnly=true CssClass="txtTab"></asp:TextBox>
</td>
<td width="10px"><div style="width:40px;text-align:center;" class="cssfont">至</div></td>
<td style="width:100px;">
<asp:TextBox ID="txt_endetd" runat="server" onclick="WdatePicker()" Width="100px" ReadOnly=true CssClass="txtTab"></asp:TextBox>
</td>
<td style="width:40px;"><div style="width:40px; text-align:right;">操作:</div></td>
<td style="width:100px;">
<select id="sel_op" name="sel_op" runat="server" class="txtTab" style="width:102px"></select>
</td>
<td style="width:40px;"><div style="width:40px; text-align:right;">牌号:</div></td>
<td style="width:100px;">
<asp:TextBox ID="tbNUMBERPLATE" runat="server" MaxLength="100" Width="100px" CssClass="txtTab"></asp:TextBox>
</td>
<td style="width:60px;">
<input id="input1" runat="server" type="button" value="查询" onclick="search();" style="width:60px; height:20px;" class="btncss"/>
</td>
</tr>
<tr>
<td><div style="width:40px;text-align:right;" class="cssfont">客户:</div></td>
<td>
<select id="sel_customer" runat=server style="width:102px" class="txtTab"></select>
</td>
<td style="width:70px;"><div style="width:70px;text-align:right;">会计期间:</div></td>
<td style="width:100px;">
<asp:TextBox ID="txt_accdate" runat="server" CssClass="txtTab" Width="100px" ToolTip="例2011-4" onclick="WdatePicker({dateFmt:'yyyy-M'});" MaxLength=7></asp:TextBox>
</td>
<td style="width:40px;"><div style="width:40px;text-align:right;" class="cssfont">船名:</div></td>
<td style="width:100px;">
<select id="sel_vessel" runat="server" class="txtTab" style="width: 102px"></select>
</td>
<td style="width:40px;"><div style="width:40px; text-align:right;" class="cssfont">航次:</div></td>
<td>
<select id="sel_voyno" runat="server" class="txtTab" style="width:102px" ></select>
</td>
<td colspan=2>
<asp:CheckBox ID="cbISMASTERNO" runat="server" Width="70px" Text="包含主单" />
&nbsp;&nbsp;
<input id="Button3" runat="server" type="button" value="综合查询" onclick="searchMultiple();" style="width:60px; height:20px;" class="btncss"/>
</td>
<td style="width:60px;">
<input id="Button2" runat="server" type="button" value="清空" onclick="initSearch();" style="width:60px; height:20px;" class="btncss"/>
</td>
</tr>
</table>
</div>
<div class="btn-content">
<div class="btn-blank"></div>
<div class="xbtn-img" id=divadd runat=server onclick="addOrder()">
<div class="btnimg"><img src="../images/icons/new.gif" width="16px" height="16px" title="添加委托" class="cssfont"/></div>
</div>
<div class="xbtn-img" id=divcopyadd runat=server onclick="addFullOrder()">
<div class="btnimg"><img src="../images/cmd-copy.gif" width="16px" height="16px" title="复制添加委托" class="cssfont"/></div>
</div>
<div class="xbtn-img" id=divaddhblno runat=server onclick="addHblno()">
<div class="btnimg"><img src="../images/icons/expand-all.gif" width="16px" height="16px" title="添加分单" class="cssfont"/></div>
</div>
<div class="xbtn-img" id=divdel runat=server onclick="deleteOrder()">
<div class="btnimg"><img src="../images/icons/delete.gif" width="16px" title="删除委托" class="cssfont"/></div>
</div>
<div class="xbtn-img" id=divfresh runat=server onclick="refreshOrder()">
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表" class="cssfont"/></div>
</div>
<div class="xbtn-img" onclick="editOpseai()">
<div class="btnimg"><img src="../images/icons/example.gif" width="16px" title="编辑海运进口委托信息"/></div>
</div>
<div class="xbtn-img" onclick="editGridSetting()">
<div class="btnimg"><img src="../images/icons/SET.gif" width="16px" title="设置列表信息"/></div>
</div>
<div class="xbtn-img" onclick="setGridSort();">
<div class="btnimg"><img id="img_setSortValue" src="../images/icons/GL.gif" alt="" width="16px" title="设置列表顺序" /></div>
</div>
<div class="xbtn2" style="width:70px; visibility:hidden;">
<div class="btncss" style=" width:60px; height:16px;text-decoration: none; font-size:12px; color:Black; text-align:center;visibility:hidden;">
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')" style="text-decoration: none; font-size:12px; color:Black;">EDI导出</a>
</div>
<div id="anylinkmenu1" class="anylinkcss" style=" width:64px; visibility:hidden;">
<a href="javascript:void(0);" style="text-decoration: none; font-size:12px; color:Black;" id="btNpsesa" onclick="setNpsesa();">东南船代</a>
<a href="javascript:void(0);" style="text-decoration: none; font-size:12px; color:Black;" id="btINTTRA" onclick="setINTTRA();">INTTRA</a>
</div>
</div>
<div class="btn-blank"></div>
<div class="xbtn-img" style="width:70px;">
<input id="btBSSTATUS" type="button" value="业务锁定" style="height:20px; width:70px;" onclick="ShowBSSTATUS(1);" class="btncss"/>
</div>
<div class="btn-blank"></div>
<div class="xbtn-img" style="width:70px;">
<input id="Button1" type="button" value="业务解锁" style="height:20px; width:70px;" onclick="ShowBSSTATUS(0);" class="btncss"/>
</div>
</div>
<div class="grid-ie7" id="gridContain"><div id="mygrid_container_seai" style="width:6200px; height:430px;" runat="server"></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" />
<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>
<input id="h_customer" type="hidden" runat="server" />
<input id="h_vessel" type="hidden" runat="server" />
<input id="h_voyno" type="hidden" runat="server" />
<input id="h_operator" type="hidden" runat="server" />
<input id="h_uid" type="hidden" runat="server" />
<input id="h_searchcache" type="hidden" runat="server"/>
<input id="h_op" type="hidden" runat="server"/>
<input id="hdRangeV" type="hidden" runat="server"/>
<input id="hdRangeO" type="hidden" runat="server"/>
<input id="hdRange" type="hidden" runat="server"/>
<input type="hidden" id="h_openlock" runat="server" />
<input type="hidden" id="h_openunlock" runat="server" />
</div>
</form>
</div>
<div id="progressBar" class="progressBar">数据正在加载中……</div>
</body>
</html>