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/SeaiInfoLCL/WmsOutLCLEdit.aspx

283 lines
17 KiB
Plaintext

3 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WmsOutLCLEdit.aspx.cs" Inherits="DSWeb.SeaiInfoLCL.WmsOutLCLEdit" %>
<!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;}
html,body{font-size:12px;margin:0px;height:100%;}
.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
}
.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;
background:url("../images/content-header.gif");
cursor:default;
}
.checkbox
{
background:url("../images/content-header.gif");
cursor:default;
}
</style>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxmenu.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/progressbar.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/dhtmlxmenu.js" type="text/javascript"></script>
<script src="../js/dhtmlxmenu_ext.js" type="text/javascript"></script>
<script src="../js/dhtmlxcombo_whp.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_excell_link.js" type="text/javascript"></script>
<script src="../js/TGridCommon.js" type="text/javascript"></script>
<script src="../js/TCombo.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></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 src="../js/WmsOutLCLEdit.js" type="text/javascript"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
function $(id){
return document.getElementById(id);
}
function document.onkeydown(){
if(event.keyCode == 8){
if(document.selection){
var range = document.selection.createRange();;
if(range.parentElement().name == null){
return false;
}else{
return true;
}
}
}
}
function initLoading(){
$("progressBar").style.display = "";
}
function finishLoading(){
$("progressBar").style.display = "none";
}
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 = dhtmlxAjax.getSync("WmsRateLCLGridSource.aspx?handle=wmsoutexcel&cur_page=1&show_page=15&val=" + newGuid() + "&opseaibsno="+$("h_bsno").value.trim()+"&wmsoutbsno=" + $("h_outbsno").value);
$("hdSQL").value = loader.xmlDoc.responseText;
document.getElementById("btExcel1").click();
}
}
</script>
</head>
<body onload="initCombos();createOrder();">
<input type="hidden" id="h_oplb" runat="server" />
<input type="hidden" id="h_wmsoutbsno" runat="server" />
<div oncontextmenu="return true" id="dvContainer">
<div id="dvContainerWmsin">
<div class="btn-content">
<div class="btn-blank"></div>
<div class="xbtn" style="width:40px">
<div class="btntxt" onclick="AddWmsOut()" id="Div7">添加</div>
</div>
<div class="xbtn" style="width:40px">
<div class="btntxt" onclick="DeleteWmsOut()" id="Div8">删除</div>
</div>
<div class="xbtn" style="width:40px; " >
<div class="btntxt" onclick="PrintWmsOut()" id="Div9">打印</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" style="width:100px">
<div class="btntxt" onclick="SetRate()" id="btn_IsSetRate">仓储费率设置</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>
<div id="dvtable_outtj" style="display:none">
<table >
<tr>
<td style="width:60px;"><div style="width:60px; text-align:right;">货主名称:</div></td>
<td style="width:102px;"><select style="width:102px;" id="sel_customer" runat="server" class="txtTab"></select></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">提单号:</div></td>
<td style="width:100px;"><input type="text" id="txt_blno" onkeypress="search()" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">仓库名称:</div></td>
<td style="width:102px;"><select style="width:102px;" id="sel_storage" runat="server" class="txtTab"></select></td>
<td style="width:40px; height:100%;"><button class="btncss" onclick="search()" id="Div2">查询</button></td>
<td style="width:40px;height:100%;"><button class="btncss" onclick="initTj()" id="Div3">清空</button></td>
<td style="width:80px;height:100%;"><button class="btncss" onclick="OutStorage()" id="btn_Out" runat="server">生成出库单</button></td>
<td style="width:5px;height:100%;"><input type="checkbox" id="ck_jsfee" runat="server" checked=checked /></td>
<td style="width:90px;height:100%;"><div>是否计算仓储费</div></td>
</tr>
</table>
</div>
<div id="outtable_content">
<table >
<tr>
<td style="width:10px;"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">出库单号:</div></td>
<td style="width:100px;"><input type="text" id="txt_outbsno" runat="server" class="txtTab" style="width:100px;" disabled=1/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">出库日期:</div></td>
<td style="width:100px;"><input type="text" id="txt_outdate" onclick="WdatePicker()" style="width:100px" class="txtTab" runat="server"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">转移对象:</div></td>
<td style="width:102px;"><select id="sel_outcustomer" runat="server" class="txtTab" style="width:102px;"></select></td>
<td style="width:60px;"><div style="width:130px; text-align:right;">上家承担仓储期限:</div></td>
<td style="width:100px;"><input type="text" id="txt_oldcustFeeDate" onclick="WdatePicker()" style="width:100px" class="txtTab" runat="server"/></td>
</tr>
<tr>
<td style="width:10px;"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">品名:</div></td>
<td style="width:102px;"><select style="width:102px;" id="sel_goods" runat="server" class="txtTab"></select></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">重量:</div></td>
<td style="width:100px;"><input type="text" id="txt_goodspfsl" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">件数:</div></td>
<td style="width:100px;"><input type="text" id="txt_packnum" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:130px;"><div style="width:130px; text-align:right;">备案清单号:</div></td>
<td style="width:100px;"><input type="text" id="txt_customno" runat="server" class="txtTab" style="width:100px;" /></td>
</tr>
<tr>
<td style="width:10px;"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">型号:</div></td>
<td style="width:100px;"><input type="text" id="txt_goodsmodel" runat="server" class="txtTab" style="width:100px"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">备注:</div></td>
<td style="width:100px;"><input type="text" id="txt_remark" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">审批单号:</div></td>
<td style="width:100px;"><input type="text" id="txt_inspectionno" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:130px;"><div style="width:130px; text-align:right;">应付客户:</div></td>
<td style="width:100px;"><select id="ddlTRUCKNAME" runat=server class="txtTab" style="width:102px;"></select></td>
</tr>
</table>
</div>
<div id="mygrid_container_wmsin" style="width:100%; height:400px;" class="grid-ie7"></div>
</div>
</div>
<form id="form1" runat="server">
<input type="hidden" id="WoDetailContainer" runat="server" />
<input type="hidden" id="WoContainer" runat="server" />
<input type="hidden" id="h_addmode" runat="server" />
<input type="hidden" id="h_IsSetRate" runat="server" />
<input type="hidden" id="h_newcust" runat="server" />
<input type="hidden" id="h_oldcustFeedays" runat="server" />
<%-- 应收应付费用变量 --%>
<input type="hidden" id="h_Mode" runat="server" />
<input type="hidden" id="h_Ischange" runat="server" />
<input type="hidden" id="h_IsFeeGain" runat="server" />
<input type="hidden" id="payContainer" runat="server" />
<input type="hidden" id="recvContainer" runat="server" />
<input type="hidden" id="gainContainer" runat="server" />
<input type="hidden" id="h_post" 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;"/>
</form>
<div id="dvGain">
<table style="border-width:0 1px 1px 0;padding:2px;">
<tr>
<td width="100px"><div id="dvRMBTotalText" runat="server" class="feeTitle">【当前页合计】</div></td>
<td width="2%"><div id="dvRMBTotalVal" runat="server" class="feeAmount"></div></td>
<td width="70px"><div id="dvGOODSPACKText" runat="server" class="feeTitle">件数:</div></td>
<td width="80px"><div id="dvGOODSPACKVal" runat="server" class="feePayAmount"></div></td>
<td width="40px"><div id="dvProfitTotalText" runat="server" class="feeTitle">数量:</div></td>
<td width="80px"><div id="dvProfitTotalVal" runat="server" class="feePayAmount"></div></td>
<td width="70px"><div id="dvRecTotalvText" runat="server" class="feeTitle">出库应收:</div></td>
<td width="80px"><div id="dvRecvTotalVal" runat="server" class="feePayAmount"></div></td>
<td width="70px"><div id="dvPayTotalText" runat="server" class="feeTitle">出库应付:</div></td>
<td width="80px"><div id="dvPaySumVal" runat="server" class="feePayAmount"></div></td>
<td width="100px"><div id="Div1" runat="server" class="feeTitle">仓储费应收:</div></td>
<td width="80px"><div id="dvRVal" runat="server" class="feePayAmount"></div></td>
<td width="100px"><div id="Div5" runat="server" class="feeTitle">仓储费应付:</div></td>
<td width="80px"><div id="dvPVal" runat="server" class="feePayAmount"></div></td>
</tr>
</table>
</div>
<div>
<input type="hidden" id="h_EditJson" runat="server"/>
<input type="hidden" id="h_customer" runat="server"/>
<input type="hidden" id="h_blno" runat="server"/>
<input type="hidden" id="h_storage" runat="server"/>
<input type="hidden" id="h_searchJson" runat="server"/>
<input type="hidden" id="h_outgid" runat="server" />
<input type="hidden" id="h_bsno" runat="server" />
<input type="hidden" id="h_outbsno" runat="server" />
<input type="hidden" id="h_outdate" runat="server" />
<input type="hidden" id="h_outcustomer" runat="server"/>
<input type="hidden" id="h_goods" runat="server" />
<input type="hidden" id="h_goodsmodel" runat="server" />
<input type="hidden" id="h_goodspfsl" runat="server" />
<input type="hidden" id="h_remark" runat="server" />
<input type="hidden" id="h_outnum" runat="server" />
<input type="hidden" id="h_outfee" runat="server" />
<input type="hidden" id="h_count" runat="server" />
<input type="hidden" id="h_success" runat="server" />
<input type="hidden" id="h_nonum" runat="server" />
<input type="hidden" id="h_truckno" runat="server" />
<input type="hidden" id="h_opseaibsno" runat="server" />
<input type="hidden" id="h_packnum" runat="server" />
</div>
<input type="hidden" id="addCache" />
<input type="hidden" id="h_cachename" runat="server" />
<input type="hidden" id="h_cachetemplate" runat="server" />
<input type="hidden" id="h_importtype" runat="server" />
<input type="hidden" id="h_authority" runat="server" />
<input type="hidden" id="h_enable" runat="server" />
<input type="hidden" id="h_recvauthority" runat="server" />
<input type="hidden" id="h_payauthority" runat="server" />
<input type="hidden" id="h_feecache" runat="server" />
<input type="hidden" id="h_custcache" runat="server" />
<input type="hidden" id="h_cachehistory" runat="server" />
<input type="hidden" id="h_historytype" runat="server" />
<input type="hidden" id="h_historycachename" runat="server" />
<input type="hidden" id="h_historyoptype" runat="server" />
<input id="hd_comboTRUCKNAME" type="hidden" runat="server"/>
<div id="allDoc"></div>
<%--<div id="progressBar" class="progressBar">数据正在加载中……</div>--%>
</body>
</html>