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/SeaiFee/WmsOutEditCBM.aspx

355 lines
21 KiB
Plaintext

2 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WmsOutEditCBM.aspx.cs" Inherits="DSWeb.SeaiFee.WmsOutEditCBM" %>
<!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>出库信息_CBM</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/WmsOutEditCBM.js" type="text/javascript"></script>
<script src="../js/jsGridWmsRateDetail.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("WmsRateGridSource.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>
<style type="text/css">
*{ margin:0; padding:0;}
html,body{ width:100%; height:100%; overflow:hidden;}
.containercss{ position:relative; width:100%; height:100%; overflow-y:scroll; overflow-x:auto;}
.topcss{ width:100%; position:absolute; top:0; left:0;}
.boxcss{ height:610px;}
</style>
</head>
<body onload="initCombos();createOrder();initGrid2();">
<div oncontextmenu="return true" id="dvContainer">
<p class="topcss">
<div class="btn-content">
<div class="btn-blank"></div>
<div class="xbtn" style="width:40px;">
<div class="btntxt" onclick="AddWmsOut()" id="Div7" runat="server">添加</div>
</div>
<div class="xbtn" style="width:40px;display:none;">
<div class="btntxt" onclick="DeleteWmsOut()" id="Div8" runat="server" style="display:none;">删除</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()" style="display:none;" >
<div class="btnimg" style="display:none;"><img src="../images/icons/excel.gif" width="16px" height="16px" title="导出" class="cssfont" style="display:none;"/></div>
</div>
<div class="xbtn" style="width:100px;display:none;">
<div class="btntxt" onclick="SetRate()" id="btn_IsSetRate" style="display:none;">仓储费率设置</div>
</div>
<div class="xbtn">
<button class="btncss" onclick="OutStorage()" id="btn_Out" runat="server" style="width:70px; height:20px;">生成出库单</button>
</div>
<div class="xbtn" style="width:120px;">
<input type="checkbox" id="ck_jsfee" runat="server" checked=checked />是否计算仓储费
</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>
</p>
<div id=divTier class="containercss" style="float:left; width:100%;height:630px; overflow-y:scroll; overflow-x:hidden;">
<!-- 内容开始 -->
<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_customer2" runat="server" class="txtTab"></select></td>
<td style="width:50px;"><div style="width:50px; text-align:right;">提单号:</div></td>
<td style="width:80px;"><input type="text" id="txt_blno2" runat="server" class="txtTab" style="width:80px;"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">仓库名称:</div></td>
<td style="width:102px;"><select style="width:102px;" id="sel_storage2" runat="server" class="txtTab"></select></td>
<td style="width:40px;"><div style="width:40px; text-align:right;">品牌:</div></td>
<td style="width:80px;"><input type="text" id="txt_goodsmodel2" runat="server" class="txtTab" style="width:80px"/></td>
<td style="width:40px;"><div style="width:40px; text-align:right;">规格:</div></td>
<td style="width:80px;"><input type="text" id="txt_GOODSSTANDARD2" runat="server" class="txtTab" style="width:80px;"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right;">入库单号:</div></td>
<td style="width:80px;"><input type="text" id="txt_wmsno2" runat="server" class="txtTab" style="width:80px;"/></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>
</tr>
<tr>
<td colspan=14 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
</table>
</div>
<div id="outtable_content">
<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>
<input type="text" id="txt_customer" 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_blno" onkeypress="search()" runat="server" class="txtTab" style="width:100px;"/></td>
<td style="width:90px;"><div style="width:90px; text-align:right;">仓库名称:</div></td>
<td style="width:102px;">
<select style="width:102px;" id="sel_storage" runat="server" class="txtTab"></select>
<input type="text" id="txt_storage" 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;"><select id="ddlARCLIENT" runat=server class="txtTab" style="width:102px;"></select></td>
<td style="width:80px;"><div style="width:80px; text-align:right;">应付客户:</div></td>
<td style="width:100px;"><select id="ddlTRUCKNAME" runat=server class="txtTab" style="width:102px;"></select></td>
</tr>
<tr>
<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; color:Red;">出库日期:</div></td>
<td style="width:100px;"><input type="text" id="txt_outdate" onclick="WdatePicker()" onblur="setoldcustFeeDate();" style="width:100px" class="txtTab" runat="server"/></td>
<td style="width:90px;"><div style="width:90px; text-align:right; color:Red;">结束计费日期:</div></td>
<td style="width:100px;"><input type="text" id="txt_oldcustFeeDate" onclick="WdatePicker()" style="width:100px" class="txtTab" runat="server"/></td>
<td style="width:60px;"><div style="width:60px; text-align:right; color:Red;">转移对象:</div></td>
<td style="width:102px;"><select id="sel_outcustomer" runat="server" class="txtTab" style="width:102px;"></select></td>
<td style="width:80px;"><div style="width:80px; 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: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>
<input type="text" id="txt_goods" 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_goodsmodel" runat="server" class="txtTab" style="width:100px"/></td>
<td style="width:80px;"><div style="width:80px; 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:60px;"><div style="width:60px; text-align:right;">重量大写:</div></td>
<td><input type="text" id="txt_totalno" runat="server" class="txtTab" maxlength=100 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" maxlength=1024 style="width:100px;"/></td>
</tr>
</table>
</div>
<div id="mygrid_container_wmsin" style="width:100%; height:350px;overflow-x:hidden; overflow-y:hidden;" class="grid-ie7" runat=server></div>
<div id="dvGain">
<table style="border-width:0 1px 1px 0;padding:2px;">
<tr><td colspan=14><br /></td></tr>
<tr>
<td width="50px"><div id="dvRMBTotalText" runat="server" class="feeTitle">【合计】</div></td>
<td width="2%"><div id="dvRMBTotalVal" runat="server" class="feeAmount"></div></td>
<td width="40px"><div id="dvGOODSPACKText" runat="server" class="feeTitle">件数:</div></td>
<td width="80px"><div id="dvGOODSPACKVal" runat="server" class="feePayAmount"></div></td>
<td width="50px"><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 id="divfee">
<div style="font-size:large; font-weight:bold; color:#96B3DD; width:120px;" >
<br />
仓储费用明细
<hr color="#96B3DD" />
</div>
<div class="btn-content">
<div class="btn-blank"></div>
<div id="divrefresh2" runat=server class="xbtn-img" onclick="refreshRecv2();">
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新"/></div>
</div>
</div>
<div style=" width:100%; height:100%;">
<div id="mygrid_recv_2" style="width:100%; height:300px;" runat="server" class="cssfont"></div>
</div>
</div>
<!-- 内容结束 -->
</div>
</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_oplb" runat="server" />
<input type="hidden" id="h_wmsoutbsno" runat="server" />
<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_totalno" 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" />
<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"/>
<input id="hd_comboARCLIENT" type="hidden" runat="server"/>
<div id="allDoc"></div>
<input type="hidden" id="h_customer2" runat="server"/>
<input type="hidden" id="h_blno2" runat="server"/>
<input type="hidden" id="h_storage2" runat="server"/>
<input type="hidden" id="h_goodsmodel2" runat="server" />
<input type="hidden" id="h_Handle" runat="server" />
<input type="hidden" id="h_isdisabled" runat="server" />
<%--<div id="progressBar" class="progressBar">数据正在加载中……</div>--%>
<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;"/>
<%-- 仓储费用明细列表变量 --%>
<input type="hidden" id="payContainer_2" runat="server" />
<input type="hidden" id="recvContainer_2" runat="server" />
<input type="hidden" id="gainContainer_2" runat="server" />
<input type="hidden" id="addCache_2" />
<div id="allDoc_2"></div>
<%-- END --%>
<input type="hidden" id="h_mblnonew" runat="server" />
</div>
</form>
</body>
</html>