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/Shipping/SeaExportInfoBlissueSur.aspx

454 lines
21 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBlissueSur.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBlissueSur" %>
<!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/button/default/Fee.css"/>
<!--按钮条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
</style>
<!--Grid-->
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/page.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/jsGridSeaExportInfoBlissueSur.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<style type="text/css">
#divh { position:absolute; z-index:1001; left:40%; top:30%; width:300px; margin-left:-200px; border:solid 6px #ddd; }
.box { border:solid 1px #999; font-size:14px; }
#tit { border-bottom:solid 1px #999;background-color:#cccccc; padding:6px; font-weight:bold;}
#bod { background-color:#ffffff; padding:20px; }
#bot { border-top:solid 1px #999;background-color:#cccccc; text-align:right;}
.menu { position:absolute; z-index:101; width:150px; border:solid 1px #999; padding:2px; background-color:#ffffff;}
.menu a {padding:5px 6px; font-size:12px; color:#000000; cursor:default; text-decoration:none; padding-top:1px; width:90px;}
.menu a:hover { background-color:#507cd1; color:#ffffff;}
.regular{text-decoration:none;cursor:default; margin-right:20px;}
.imgLeftButton{
background-image:url(../images/icons/edit_right.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
}
.imgLeftHoverButton{
background-image:url(../images/icons/edit_righthover.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
}
.imgRightButton{
background-image:url(../images/icons/edit_left.gif);height:19px;width:19px; margin-left:22px;
}
.imgRightHoverButton{
background-image:url(../images/icons/edit_lefthover.gif);height:19px;width:19px; margin-left:22px;
}
.imgUpButton{
background-image:url(../images/icons/edit_up.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
}
.imgUpHoverButton{
background-image:url(../images/icons/edit_uphover.gif);height:19px;width:19px; margin-left:22px;margin-bottom:30px;
}
.imgDownButton{
background-image:url(../images/icons/edit_down.gif);height:19px;width:19px; margin-left:22px;
}
.imgDownHoverButton{
background-image:url(../images/icons/edit_downhover.gif);height:19px;width:19px; margin-left:22px;
}
.enterButton{
display:block;
float:left;
margin:0 7px 0 0;
background-color:#d5d5d5;
border:1px solid #dedede;
border-top:1px solid #eee;
border-left:1px solid #eee;
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
font-size:12px;
line-height:130%;
text-decoration:none;
font-weight:bold;
color:#565656;
cursor:default;
padding:5px 10px 6px 7px; /* Links */
width:60px;
text-align:center;
margin-top:8px;
margin-left:20px;
}
.enterButton:hover{
background-color:#dff4ff;
border:1px solid #c2e1ef;
color:#336699;
}
.enterButton:active{
background-color:#6299c5;
border:1px solid #6299c5;
color:#fff;
}
.dvMenu{
display:block;
background-color:#ffffff;
border:1px solid #dedede;
border-top:1px solid #eee;
border-left:1px solid #eee;
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
font-size:12px;
line-height:130%;
text-decoration:none;
font-weight:bold;
color:#565656;
cursor:default;
padding:8px 0px 6px 7px; /* Links */
width:95%;
text-align:center;
}
.dvMenu:hover{
background-color:#dff4ff;
border:1px solid #c2e1ef;
color:#336699;
}
.dvMenu:active{
background-color:#6299c5;
border:1px solid #6299c5;
color:#fff;
}
.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>
<!--GridEnd-->
<script language="javascript" type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function QueryString()
{
var name,value,i;//构造参数对象并初始化
var str=location.href;//获得浏览器地址栏URL串
var num=str.indexOf("?")
str=str.substr(num+1);//截取“?”后面的参数串
var arrtmp=str.split("&");//将各参数分离形成参数数组
for(i=0;i < arrtmp.length;i++)
{
num=arrtmp[i].indexOf("=");
if(num>0)
{
name=arrtmp[i].substring(0,num);//取得参数名称
value=arrtmp[i].substr(num+1);//取得参数值
this[name]=value;//定义对象属性并初始化
}
}
}
function ShowDetailAdd()
{
var qs = new QueryString();//调用:
if(qs.id=="")
{
alert("请先确定委托信息已保存!");
return;
}
// if($("hdFEESTATUS").value!="0")
// {
// alert("委托单位的费用未全部结算完毕,需要做申请电放,经过批准之后方可点击提单电放按钮!");
// return;
// }
var feature = "height=175, width=280, toolbar=no, menubar=no,scrollbars=yes, resizable=1,location=no, status=no,Top= " +(screen.height/2-100) + ",Left= "+(screen.width/2-200);
var URLs = "SeaExportInfoBlissueSurAdding.aspx?&id="+qs.id;//;topseaeusername129481962859531250
window.open(URLs,"生成提单电放", feature);
}
function ShowDetailApply()
{
var qs = new QueryString();//调用:
if(qs.id=="")
{
alert("请先确定委托信息已保存!");
return;
}
if($("hdFEESTATUS").value=="0")
{
if(confirm('该票货费用已全部收回,可以直接电放,是否继续申请电放?'))
{
document.getElementById("btSQDF").click();
}
}
else
{
if(confirm('确定申请电放吗?'))
{
document.getElementById("btSQDF").click();
}
}
}
function ShowDetailFresh()
{
//initLog();initMenu();ShowDisabled();
initWinScreen();
initGrid();
ShowDisabled();
}
function ShowDisabled()
{
if($("hdEnabled").value=="false")
{
document.getElementById('imgPut').setAttribute('disabled','disabled');
document.getElementById('imgApply').setAttribute('disabled','disabled');
document.getElementById('imgAdd').setAttribute('disabled','disabled');
document.getElementById('divadd').setAttribute('disabled','disabled');
document.getElementById('divsave').setAttribute('disabled','disabled');
document.getElementById('divdel').setAttribute('disabled','disabled');
document.getElementById('imgFresh').setAttribute('disabled','disabled');
document.getElementById('mygrid_container_recv').setAttribute('disabled','disabled');
}
else
{
var strTYPE="0";
var strPUT="0";
var ss =$("hdqx").value;
if($("hdqx").value!="0")
{
var loader0 = dhtmlxAjax.getSync("../FeeCodes/OpBlissueAdapter.aspx?BSNO="+$("hid_BSNO").value+"&handle=feestatus&val="+newGuid());
var fs = loader0.xmlDoc.responseText;
if(fs!="")
{
var arrtmp=fs.split(",");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
strTYPE = arrtmp[0];
strPUT = arrtmp[1];
$("hdDisabled").value = arrtmp[2];
$("hdFEESTATUS").value = arrtmp[3];
}
//签单类型判断,正本不允许电放。
if(strTYPE=="0")
{
//document.getElementById('imgApply').disabled = true;
document.getElementById('imgApply').setAttribute('disabled','disabled');
//document.getElementById('imgAdd').disabled = true;
document.getElementById('imgAdd').setAttribute('disabled','disabled');
}
else
{
//提单电放的判断
var idf = $("hdDisabled").value;
if (idf == "1")
{
//document.getElementById('imgApply').disabled = true;
document.getElementById('imgApply').setAttribute('disabled','disabled');
//document.getElementById('imgAdd').disabled = true;
document.getElementById('imgAdd').setAttribute('disabled','disabled');
}
else if (idf == "2")
{
//document.getElementById('imgApply').style.disabled = true;
document.getElementById('imgApply').setAttribute('disabled','disabled');
//
idf = $("hdFEESTATUS").value;
if (idf == "1")
{
//document.getElementById('imgAdd').disabled = true;
document.getElementById('imgAdd').setAttribute('disabled','disabled');
//放单申请批准通过,则无需再做电放申请,可以直接提单电放。
if(strPUT==2)
{
document.getElementById('imgAdd').removeAttribute('disabled');
}
}
else
{
//document.getElementById('imgAdd').disabled = false;
document.getElementById('imgAdd').removeAttribute('disabled');
}
}
else
{
//document.getElementById('imgApply').disabled = false;
document.getElementById('imgApply').removeAttribute('disabled');
//
idf = $("hdFEESTATUS").value;
if (idf == "1")
{
//document.getElementById('imgAdd').disabled = true;
document.getElementById('imgAdd').setAttribute('disabled','disabled');
//放单申请批准通过,则无需再做电放申请,可以直接提单电放。
if(strPUT==2)
{
document.getElementById('imgAdd').removeAttribute('disabled');
}
}
else
{
//document.getElementById('imgAdd').disabled = false;
document.getElementById('imgAdd').removeAttribute('disabled');
}
}
}
}
//--end
}
//
loader0 = dhtmlxAjax.getSync("../FeeCodes/OpBlissueAdapter.aspx?BSNO="+$("hid_BSNO").value+"&handle=put&val="+newGuid());
fs = loader0.xmlDoc.responseText;
if(fs=="")
{
document.getElementById('imgPut').removeAttribute('disabled');
}
else
{
document.getElementById('imgPut').setAttribute('disabled','disabled');
}
}
}
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 imgAddChangePic()
{
var pic1=document.getElementById("imgAdd");
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 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图片";
}
}
function bodyonload()
{
//initWinScreen();initLog();initMenu();
initWinScreen();
initGrid();
ShowDisabled();
}
function divdadd()
{
document.getElementById('divadd').style.display = "";
document.getElementById('divsave').style.display = "";
document.getElementById('divdel').style.display = "none";
//
document.getElementById('imgAdd').setAttribute('disabled','disabled');
document.getElementById('imgApply').setAttribute('disabled','disabled');
}
function divdisplay()
{
document.getElementById('divadd').style.display = "";
document.getElementById('divsave').style.display = "";
document.getElementById('divdel').style.display = "";
//
ShowDisabled();
}
function ShowPutSingle()
{
var URLs = "SeaExportInfoBlissueSurPutSingle.aspx?handle=add&id=&bsno="+$("hid_BSNO").value+"&val="+newGuid();//topseaeusername129481962859531250
if($("hdRangeO").value==4)
{
URLs = "SeaExportInfoBlissueSurPutSingle.aspx?handle=add&id=&bsno="+$("hid_BSNO").value+"&hdenabled=false&val="+newGuid();//
}
window.open(URLs,"添加放单申请", "height=300, width=700, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height/2-100) + ",Left= "+(screen.width/2-100));
}
</script>
</head>
<body onload="bodyonload();" style="border:0px; width:100%; height:100%">
<form id="form1" runat="server">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn">
<input id="imgPut" runat="server" type="button" value="放单申请" onclick="ShowPutSingle();" style="width:70px; height:20px;" class="btncss"/>
</div>
<div class="xbtn">
<input id="imgApply" runat="server" type="button" value="申请电放" onclick="ShowDetailApply();" style="width:70px; height:20px;" class="btncss"/>
</div>
<div class="xbtn">
<input id="imgAdd" runat="server" type="button" value="提单电放" onclick="ShowDetailAdd();" style="width:70px; height:20px;" class="btncss"/>
</div>
<div id="divadd" runat=server class="xbtn-img" onclick="divdadd();addRecvRow()" style="display:block">
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="自由添加状态"/></div>
</div>
<div id="divsave" runat=server class="xbtn-img" onclick="divdisplay();saveRecvChange();">
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改自由添加的状态"/></div>
</div>
<div id="divdel" runat=server class="xbtn-img" onclick="divdisplay();deleteRecvRow();">
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除自由添加的状态"/></div>
</div>
<div class="xbtn-img">
<img id="imgFresh" src="../images/icons/btnFresh.gif" onclick="divdisplay();ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
</div>
</div>
<div style=" width:100%; height:100%;" oncontextmenu="return false">
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_recv" style="width:1100; height:350px;" runat="server" class="cssfont"></div></div>
<input type="hidden" id="dvOrderNumVal" 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="addCache" />
<div id="allDoc"></div>
</div>
<div>
<input id="hdRangeV" type="hidden" runat=server/>
<input id="hdRangeO" type="hidden" runat=server/>
<input id="hdFEESTATUS" type="hidden" runat=server/>
<input id="hdDisabled" type="hidden" runat=server/>
<input id="hid_BSNO" type="hidden" runat=server/>
<input id="hdqx" type="hidden" runat=server/>
<input id="hdEnabled" type="hidden" runat=server/>
<asp:Button ID="btSQDF" runat="server" Text="Button" onclick="btSQDF_Click" style="display:none;"/>
</div>
</form>
</body>
</html>