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.
338 lines
19 KiB
Plaintext
338 lines
19 KiB
Plaintext
9 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WmsOutList.aspx.cs" Inherits="DSWeb.SeaiFee.WmsOutList" %>
|
||
|
|
||
|
<!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/dhtmlxgrid.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
|
||
|
<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/TGridCommonWmsOutList.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" src="../js/m97date/wdatepicker.js"></script>
|
||
|
<script src="../js/browser.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
window.dhx_globalImgPath="../images/";
|
||
|
|
||
|
function document.onkeydown(){
|
||
|
if(event.keyCode==116){
|
||
|
event.keyCode = 0;
|
||
|
event.cancelBubble = true;
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
function newGuid(){
|
||
|
var guid = "";
|
||
|
for (var i = 1; i <= 32; i++){
|
||
|
var n = Math.floor(Math.random()*16.0).toString(16);
|
||
|
guid += n;
|
||
|
if((i==8)||(i==12)||(i==16)||(i==20))
|
||
|
guid += "-";
|
||
|
}
|
||
|
return guid.toUpperCase();
|
||
|
}
|
||
|
function setExcel()
|
||
|
{
|
||
|
if(confirm('确定要导出报表吗?'))
|
||
|
{
|
||
|
var loader;
|
||
|
if($("h_curpage").value==null || $("h_curpage").value==""){
|
||
|
$("h_curpage").value="1";
|
||
|
}
|
||
|
if($("h_searchJson").value==null || $("h_searchJson").value==""){
|
||
|
loader = dhtmlxAjax.getSync("WmsRateGridSource.aspx?handle=wmsoutlistexcel&cur_page="+$("h_curpage").value+"&show_page=15&val="+newGuid()+"&opseaibsno="+$("h_bsno").value);
|
||
|
}
|
||
|
else{
|
||
|
loader = dhtmlxAjax.getSync("WmsRateGridSource.aspx?handle=wmsoutlistexcel&cur_page="+$("h_curpage").value+"&show_page=15&val="+newGuid()+"&search="+escape($("h_searchJson").value));
|
||
|
}
|
||
|
$("hdSQL").value = loader.xmlDoc.responseText;
|
||
|
document.getElementById("btExcel1").click();
|
||
|
}
|
||
|
}
|
||
|
</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:80px;
|
||
|
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;
|
||
|
}
|
||
|
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
|
||
|
</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)
|
||
|
}
|
||
|
</script>
|
||
|
<!--下拉菜单 End-->
|
||
|
<script src="../js/WmsOutList.js" type="text/javascript"></script>
|
||
|
</head>
|
||
|
<body onload="getOnload();" style="overflow-x:hidden; overflow-y:auto;">
|
||
|
<div class="btn-content" oncontextmenu="return true" id="dvContainer">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn2" style="width:70px;">
|
||
|
<div class="btncss" style=" width:60px; height:16px; text-decoration: none; text-align:center; font-size:12px; color:Black;">
|
||
|
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')" style="text-decoration: none; font-size:12px; color:Black;">出库管理</a>
|
||
|
</div>
|
||
|
<div id="anylinkmenu2" class="anylinkcss" style=" width:50px;" runat="server">
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="imgAdd" onclick="addApplication();" runat="server">按数量</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="imgAdd2" onclick="addApplication2();" runat="server">按规格</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="xbtn2" style="width:70px;">
|
||
|
<div class="btncss" style=" width:60px; height:16px; text-decoration: none; text-align:center; font-size:12px; color:Black;">
|
||
|
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu3')" style="text-decoration: none; font-size:12px; color:Black;">货权转移</a>
|
||
|
</div>
|
||
|
<div id="anylinkmenu3" class="anylinkcss" style=" width:50px;" runat="server">
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="A1" onclick="changecustomer();" runat="server">按数量</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="A2" onclick="changecustomer2();" runat="server">按规格</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="deleteUnpostApplication()" >
|
||
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除出库单"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" id="divexcel" runat=server onclick="setExcel()" >
|
||
|
<div class="btnimg"><img src="../images/icons/excel.gif" width="16px" height="16px" title="导出" class="cssfont"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn2" style="width:40px;">
|
||
|
<div class="btncss" style=" width:30px; height:16px;text-decoration: none; font-size:12px; color:Black; text-align:center;">
|
||
|
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')" style="text-decoration: none; font-size:12px; color:Black;">打印</a>
|
||
|
</div>
|
||
|
<div id="anylinkmenu1" class="anylinkcss" style=" width:64px;" runat="server">
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btprint" onclick="printInvoice();" runat="server">打印列表</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btprint2" onclick="printInvoice2();" runat="server">打印多票</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="xbtn-img" onclick="refreshList()">
|
||
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn">
|
||
|
<input id="btislock" runat="server" type="button" value="费用入账" onclick="setislock();" style="width:70px; height:20px;" class="btncss"/>
|
||
|
</div>
|
||
|
<div class="xbtn">
|
||
|
<input id="btnotislock" runat="server" type="button" value="取消入账" onclick="setnotlock();" style="width:70px; height:20px;" class="btncss"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td style="width:60px;"><div style="width:60px; text-align:right;">出库日期</div></td>
|
||
|
<td style="width:100px;"><input type="text" id="txt_beginDate" onclick="WdatePicker()" style="width:100px" class="txtTab"/></td>
|
||
|
<td style="width:30px;" align=center><div style="width:30px;">~</div></td>
|
||
|
<td style="width:100px;"><input type="text" id="txt_endDate" onclick="WdatePicker()" style="width:100px" class="txtTab"/></td>
|
||
|
<td style="width:30px;"><div style="width:30px; text-align:right;">货主</div></td>
|
||
|
<td style="width:100px;"><select id="sel_customer" runat="server" style="width:102px;" class="txtTab"></select></td>
|
||
|
<td style="width:50px;"><div style="width:50px; text-align:right;">转移对象</div></td>
|
||
|
<td style="width:100px;"><select id="sel_CLIENTNAMEOLD" runat="server" style="width:102px;" class="txtTab"></select></td>
|
||
|
<td style="width:30px;"><div style="width:30px; text-align:right;">仓库</div></td>
|
||
|
<td style="width:100px;"><select id="sel_STORAGENAME" runat="server" style="width:102px;" class="txtTab"></select></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="width:60px;"><div style="width:60px; text-align:right;">出库类型</div></td>
|
||
|
<td style="width:100px;">
|
||
|
<select id="ddlISCHANGE" runat="server" style="width:102px;" class="txtTab">
|
||
|
<option value="" selected=selected>全部</option>
|
||
|
<option value="0">出库</option>
|
||
|
<option value="1">货转</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
<td style="width:30px; display:none;" id="Pm1" ><div style="width:30px; text-align:right;">品名</div></td>
|
||
|
<td style="width:100px; display:none;" id ="Pm2"><select id="sel_goods" runat="server" style="width:102px;" class="txtTab"></select></td>
|
||
|
<td style="width:30px; display:none;" id="Td1"><div style="width:30px; text-align:right;">规格</div></td>
|
||
|
<td style="width:100px; display:none;" id="Td2"><input type="text" id="txt_goodsstandard" runat="server" class="txtTab" style="width:100px;"/></td>
|
||
|
<td style="width:50px; display:none;" id="Bh1"><div style="width:50px; text-align:right;">编号</div></td>
|
||
|
<td style="width:100px; display:none;" id="Bh2"><input type="text" id="txt_bsno" runat="server" class="txtTab" style="width:100px;"/></td>
|
||
|
<td width=10px></td>
|
||
|
<td>
|
||
|
<input id="Button1" runat="server" type="button" value="查询" onclick="search();" style="width:40px; height:20px;" class="btncss"/>
|
||
|
|
||
|
<input id="Button2" runat="server" type="button" value="清空" onclick="initGrid();" style="width:40px; height:20px;" class="btncss"/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<div class="grid-ie7" id="gridContain" style="overflow:hidden;"><div id="mygrid_container_invoiceapp" style="width:100%; height:450px;" runat="server" oncontextmenu="return true"></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 style="width:99%" id="dvGain">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><div id="div2" runat="server" class="feeTitle" style="width:50px;">【合计】</div></td>
|
||
|
<td><div id="divFeeTH" runat="server" class="feeTitle" style="width:100px;">仓储费应收合计:</div></td>
|
||
|
<td><div id="divFeeVH" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
<td><div id="div7" runat="server" class="feeTitle" style="width:100px;">装卸费应收合计:</div></td>
|
||
|
<td><div id="divFeeVH3" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
<td><div id="divPACKTH" runat="server" class="feeTitle" style="width:100px;">出库件数合计:</div></td>
|
||
|
<td><div id="divPACKVH" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><div id="div10" runat="server" class="feeTitle" style="width:100px;"></div></td>
|
||
|
<td><div id="div3" runat="server" class="feeTitle" style="width:100px;">仓储费应付合计:</div></td>
|
||
|
<td><div id="divFeeVH2" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
<td><div id="div9" runat="server" class="feeTitle" style="width:100px;">装卸费应付合计:</div></td>
|
||
|
<td><div id="divFeeVH4" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
<td><div id="divKGSTH" runat="server" class="feeTitle" style="width:100px;">出库量合计:</div></td>
|
||
|
<td><div id="divKGSVH" runat="server" class="feePayAmount" style="width:70px;"></div></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<form id="form1" runat="server">
|
||
|
<div>
|
||
|
<input id="hdRangeV" type="hidden" runat=server/>
|
||
|
<input id="hdRangeO" type="hidden" runat=server/>
|
||
|
|
||
|
<input type="hidden" id="h_customer" runat="server"/>
|
||
|
<input type="hidden" id="h_CLIENTNAMEOLD" runat="server"/>
|
||
|
<input type="hidden" id="h_STORAGENAME" runat="server"/>
|
||
|
<input type="hidden" id="h_searchJson" runat="server"/>
|
||
|
<input type="hidden" id="h_beginetd" runat="server" />
|
||
|
<input type="hidden" id="h_endetd" runat="server" />
|
||
|
<input type="hidden" id="h_goods" runat="server" />
|
||
|
<input type="hidden" id="h_bsno" runat="server"/>
|
||
|
<input type="hidden" id="h_showPm" runat="server"/>
|
||
|
|
||
|
<input type="hidden" id="h_curpage" runat=server/>
|
||
|
<input type="hidden" id="hdSQL" runat=server/>
|
||
|
<input type="hidden" id="hdUserID" runat=server/>
|
||
|
<input type="hidden" id="hdNAMES" runat="server" />
|
||
|
<asp:Button ID="btExcel1" runat="server" Text="导出excel" Width=60px Height=20px CssClass="btncss" onclick="btExcel1_Click" style="display:none;"/>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
</body>
|
||
|
</html>
|