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.
DS7/DSWeb/WMS_ZX/WmsZXOutList.aspx

235 lines
13 KiB
Plaintext

3 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WmsZXOutList.aspx.cs" Inherits="DSWeb.WMS_ZX.WmsZXOutList" %>
<!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;}
.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;
}
</style>
<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/TGridCommonWmsZXOutList.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 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();
}
}
function imgAddChangePic() {
var pic1 = document.getElementById("btn_Out");
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 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图片";
}
}
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图片";
}
}
document.onkeydown = function () {
if(event.keyCode==116){
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>
<script src="../js/jsGridWmsZXOutList.js" type="text/javascript"></script>
</head>
<body onload="resizeGrid('mygrid_container_invoiceapp','gridContain','dvContainer',230);search();initCombo();" style="overflow-x:hidden;">
<form id="form1" runat="server" style="overflow-x:hidden;">
<div class="btn-content" oncontextmenu="return true" id="dvContainer">
<div class="btn-blank"></div>
<div class="xbtn-img">
<img id="btn_Out" src="../images/icons/btnAdd.gif" onclick="addApplication();" 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" 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="xbtn-img" onclick="refreshList()">
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
</div>
<div class="xbtn" style="width:190px;">
<table>
<tr>
<td width=10px></td>
<td>入账日期:</td>
<td>
<asp:TextBox ID="tbislockdate" runat="server" MaxLength="30" Width="100px" CssClass="txtTab" onclick="WdatePicker()"></asp:TextBox>
</td>
</tr>
</table>
</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 width=100%>
<tr>
<td style="width:40px;"><div style="width:40px; text-align:right;">日期:</div></td>
<td style="width:60px;"><input type="text" id="txt_beginDate" onclick="WdatePicker()" style="width:60px" class="txtTab"/></td>
<td style="width:8px;"><div style="width:8px; text-align:center;">~</div></td>
<td style="width:60px;"><input type="text" id="txt_endDate" onclick="WdatePicker()" style="width:60px" class="txtTab"/></td>
<td style="width:40px;"><div style="width:40px; text-align:right;">编号:</div></td>
<td style="width:60px;"><input type="text" id="txt_bsno" runat="server" class="txtTab" style="width:60px;"/></td>
<td style="width:50px;"><div style="width:50px; text-align:right;">出库人:</div></td>
<td style="width:100px;"><select id="sel_customer" runat="server" style="width:100px;" class="txtTab"></select></td>
<td style="width:40px;" ><div style="width:40px; text-align:right;">品名:</div></td>
<td style="width:100px;"><select id="sel_goods" runat="server" style="width:100px;" class="txtTab"></select></td>
<td style="width:80px;"><input id="cbISLOCK" type="checkbox" />包含已入账</td>
<td style="width:10px;"></td>
<td style="width:40px;">
<input id="Button2" runat="server" type="button" value="查询" onclick="search();" style="width:40px; height:20px;" class="btncss"/>
</td>
<td style="width:40px;">
<input id="Button1" runat="server" type="button" value="清空" onclick="initGrid();" style="width:40px; height:20px;" class="btncss"/>
<td></td>
</tr>
</table>
<div class="grid-ie7" id="gridContain" style="overflow:hidden;"><div id="mygrid_container_invoiceapp" style="width:100%; height:550px;" 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:100%" id="dvGain">
<table style="border-width:0 1px 1px 0;padding:2px;">
<tr>
<td><div id="div1" runat="server" class="feeTitle" style="width:100px;">【当前页合计】</div></td>
<td><div id="divPACKT" runat="server" class="feeTitle" style="width:100px;">出库件数:</div></td>
<td><div id="divPACKV" runat="server" class="feePayAmount" style="width:100px;"></div></td>
<td><div id="divFeeT" runat="server" class="feeTitle" style="width:100px;">出库应收:</div></td>
<td><div id="divFeeV" runat="server" class="feePayAmount" style="width:100px;"></div></td>
<td><div id="divKGST" runat="server" class="feeTitle" style="width:100px;">出库应付:</div></td>
<td><div id="divKGSV" runat="server" class="feePayAmount" style="width:100px;"></div></td>
</tr>
<tr>
<td><div id="div2" runat="server" class="feeTitle" style="width:100px;">【全部页合计】</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:100px;"></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:100px;"></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:100px;"></div></td>
</tr>
</table>
</div>
<div>
<input type="hidden" id="h_customer" 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_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>