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.
HENGCHENG/DSWeb/Shipping/SeaExportInfoBusinessIntoGo...

1111 lines
51 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBusinessIntoGoods.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBusinessIntoGoods" %>
<!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 href="../theme/tab.css" type="text/css" rel="stylesheet" />
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<!--自定义下拉框-->
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<script type="text/javascript">
var comboATTN;//ATTN
var comboDOC;//单证
var comboYARD;//场站
var comboCHIEF;//联系人
var comboYARD2;//场站2
var comboCHIEF2;//联系人2
function $(id)
{
return document.getElementById(id);
}
function initComboATTN()//ATTN
{
//生成
comboATTN = dhtmlXComboFromSelect("ddlATTN");
comboATTN.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strTO="+escape($("tbTO").value));
}
function initComboATTN3()//ATTN
{
//生成
if($("hdTOFalse").value != $("tbTO").value)
{
$("hd_comboATTN").value = "";
$("tbATTNTEL").value = "";
$("tbATTNFAX").value = "";
comboATTN.setComboText($("hd_comboATTN").value);
comboATTN.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strTO="+escape($("tbTO").value));
}
}
function initComboATTN2()//ATTN
{
if($("hdEnabled").value == "false")
{
comboATTN.disable(true);
}
//
comboATTN.attachEvent("onBlur", function()
{
$("hd_comboATTN").value = comboATTN.getComboText();
//
$("tbATTNTEL").value = "";
$("tbATTNFAX").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboATTN").value)+"&strTO="+escape($("tbTO").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
$("tbATTNTEL").value = arrtmp[0];
$("tbATTNFAX").value = arrtmp[1];
}
}
//
});
comboATTN.setComboText($("hd_comboATTN").value);
comboATTN.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboATTN").value;
if("" != comboATTN.getComboText())
{
while("undefined" != typeof comboATTN.getOptionByIndex(filterCount))
{
var comboValue = comboATTN.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboATTN.getComboText().toUpperCase();
$("hd_comboATTN").value = comboATTN.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboATTN.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
}
},10);}});
comboATTN.attachEvent("onSelectionChange", function()
{
$("hd_comboATTN").value = comboATTN.getComboText();
//
$("tbATTNTEL").value = "";
$("tbATTNFAX").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboATTN").value)+"&strTO="+escape($("tbTO").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
$("tbATTNTEL").value = arrtmp[0];
$("tbATTNFAX").value = arrtmp[1];
}
}
//
});
}
function initComboDOC()//单证
{
//生成
var strUserID=document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboDOC = dhtmlXComboFromSelect("ddlDOC");
comboDOC.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isDocument&userID="+strUserID);
}
function initComboDOC2()//单证
{
if($("hdEnabled").value == "false")
{
comboDOC.disable(true);
}
//
comboDOC.attachEvent("onBlur", function()
{
$("hd_comboDOC").value = comboDOC.getComboText();
var s1 = comboDOC.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
else
{
$("hd_comboDOC").value=s1;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboDOC.setComboText(s3);
$("hd_comboDOC").value=s3;
}
else
{
$("hd_comboDOC").value=s1;
comboDOC.setComboText($("hd_comboDOC").value);
}
//
$("tbDOCTEL").value = "";
$("tbDOCFAX").value = "";
$("tbDOCEMAIL").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/UserAdapter.aspx?SHOWNAME="+escape($("hd_comboDOC").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
$("tbDOCTEL").value = arrtmp[0];
$("tbDOCFAX").value = arrtmp[1];
$("tbDOCEMAIL").value = arrtmp[2];
}
}
//
});
comboDOC.setComboText($("hd_comboDOC").value);
comboDOC.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboDOC").value;
if("" != comboDOC.getComboText())
{
while("undefined" != typeof comboDOC.getOptionByIndex(filterCount))
{
var comboValue = comboDOC.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboDOC.getComboText().toUpperCase();
$("hd_comboDOC").value = comboDOC.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboDOC.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
}
},10);}});
comboDOC.attachEvent("onSelectionChange", function()
{
$("hd_comboDOC").value = comboDOC.getComboText();
var s1 = comboDOC.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
else
{
$("hd_comboDOC").value=s1;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboDOC.setComboText(s3);
$("hd_comboDOC").value=s3;
}
else
{
$("hd_comboDOC").value=s1;
comboDOC.setComboText($("hd_comboDOC").value);
}
//
$("tbDOCTEL").value = "";
$("tbDOCFAX").value = "";
$("tbDOCEMAIL").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/UserAdapter.aspx?SHOWNAME="+escape($("hd_comboDOC").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
$("tbDOCTEL").value = arrtmp[0];
$("tbDOCFAX").value = arrtmp[1];
$("tbDOCEMAIL").value = arrtmp[2];
}
}
//
});
}
function initComboYARD1()//场站
{
comboYARD = dhtmlXComboFromSelect("ddlYARD");
comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
}
function initComboYARD3()//场站
{
if($("hdEnabled").value == "false")
{
comboYARD.disable(true);
}
//
comboYARD.attachEvent("onBlur", function()
{
$("hd_comboYARD").value = comboYARD.getComboText();
//
var s1 = comboYARD.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboYARD.setComboText(s3);
$("hd_comboYARD").value=s3;
}
else
{
comboYARD.setComboText($("hd_comboYARD").value);
}
//
$("tbAddress").value = "";
var saddr = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strADDR=addr&strYARD="+escape($("hd_comboYARD").value)+"&val="+newGuid());
var at = saddr.xmlDoc.responseText;
if(at=="")
{
$("tbAddress").value = "";
//$("tbTel").value = "";
}
else
{
var iat = at.indexOf("&1&");
if(iat>=0)
{
$("tbAddress").value = "";
$("tbTel").value = at.replace("&1&","");
}
else
{
iat = at.indexOf("&2&");
if(iat>=0)
{
$("tbAddress").value = at.substr(0,iat);
$("tbTel").value = at.substr(iat+3);
}
else
{
$("tbAddress").value = "";
//$("tbTel").value = "";
}
}
}
//
initComboCHIEF3();
});
comboYARD.attachEvent("onChange", function(){comboYARD.setComboText($("hd_comboYARD").value);});
comboYARD.setComboText($("hd_comboYARD").value);
comboYARD.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function(){
var is = -1;
var ishd = $("hd_comboYARD").value;
var filterCount = 0;
if("" != comboYARD.getComboText()){
while("undefined" != typeof comboYARD.getOptionByIndex(filterCount)){
var comboValue = comboYARD.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboYARD.getComboText().toUpperCase();
$("hd_comboYARD").value = comboYARD.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
comboYARD.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboYARD").value = ishd;
alert("无此内容,请重新选择!");
}
}},10);}})
comboYARD.attachEvent("onSelectionChange", function()
{
$("hd_comboYARD").value = comboYARD.getComboText();
//
var s1 = comboYARD.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboYARD.setComboText(s3);
$("hd_comboYARD").value=s3;
}
else
{
comboYARD.setComboText($("hd_comboYARD").value);
}
//
$("tbAddress").value = "";
var saddr = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strADDR=addr&strYARD="+escape($("hd_comboYARD").value)+"&val="+newGuid());
var at = saddr.xmlDoc.responseText;
if(at=="")
{
$("tbAddress").value = "";
//$("tbTel").value = "";
}
else
{
var iat = at.indexOf("&1&");
if(iat>=0)
{
$("tbAddress").value = "";
$("tbTel").value = at.replace("&1&","");
}
else
{
iat = at.indexOf("&2&");
if(iat>=0)
{
$("tbAddress").value = at.substr(0,iat);
$("tbTel").value = at.substr(iat+3);
}
else
{
$("tbAddress").value = "";
//$("tbTel").value = "";
}
}
}
//
initComboCHIEF3();
});
}
function initComboCHIEF()//CHIEF
{
//生成
comboCHIEF = dhtmlXComboFromSelect("ddlCHIEF");
comboCHIEF.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strYARD="+escape($("hd_comboYARD").value));
}
function initComboCHIEF3()//CHIEF
{
//$("tbTel").value = "";
$("hd_comboCHIEF").value = "";
comboCHIEF.setComboText($("hd_comboCHIEF").value);
comboCHIEF.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strYARD="+escape($("hd_comboYARD").value));
}
function initComboCHIEF2()//CHIEF
{
if($("hdEnabled").value == "false")
{
comboCHIEF.disable(true);
}
//
comboCHIEF.attachEvent("onBlur", function()
{
$("hd_comboCHIEF").value = comboCHIEF.getComboText();
if($("hd_comboCHIEF").value!="")
{
//
//$("tbTel").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboCHIEF").value)+"&strYARD="+escape($("hd_comboYARD").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
if(arrtmp[0]!="")
{
$("tbTel").value = arrtmp[0];
}
}
}
}
//
});
comboCHIEF.setComboText($("hd_comboCHIEF").value);
comboCHIEF.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboCHIEF").value;
if("" != comboCHIEF.getComboText())
{
while("undefined" != typeof comboCHIEF.getOptionByIndex(filterCount))
{
var comboValue = comboCHIEF.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboCHIEF.getComboText().toUpperCase();
$("hd_comboCHIEF").value = comboCHIEF.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboCHIEF.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
}
},10);}});
comboCHIEF.attachEvent("onSelectionChange", function()
{
$("hd_comboCHIEF").value = comboCHIEF.getComboText();
if($("hd_comboCHIEF").value!="")
{
//
//$("tbTel").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboCHIEF").value)+"&strYARD="+escape($("hd_comboYARD").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
if(arrtmp[0]!="")
{
$("tbTel").value = arrtmp[0];
}
}
}
}
//
});
}
function initComboYARD2()//场站
{
comboYARD2 = dhtmlXComboFromSelect("ddlYARD2");
comboYARD2.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
}
function initComboYARD4()//场站
{
if($("hdEnabled").value == "false")
{
comboYARD2.disable(true);
}
//
comboYARD2.attachEvent("onBlur", function()
{
$("hd_comboYARD2").value = comboYARD2.getComboText();
//
var s1 = comboYARD2.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboYARD2.setComboText(s3);
$("hd_comboYARD2").value=s3;
}
else
{
comboYARD2.setComboText($("hd_comboYARD2").value);
}
//
$("tbAddress2").value = "";
var saddr = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strADDR=addr&strYARD="+escape($("hd_comboYARD2").value)+"&val="+newGuid());
var at = saddr.xmlDoc.responseText;
if(at=="")
{
$("tbAddress2").value = "";
//$("tbTel2").value = "";
}
else
{
var iat = at.indexOf("&1&");
if(iat>=0)
{
$("tbAddress2").value = "";
$("tbTel2").value = at.replace("&1&","");
}
else
{
iat = at.indexOf("&2&");
if(iat>=0)
{
$("tbAddress2").value = at.substr(0,iat);
$("tbTel2").value = at.substr(iat+3);
}
else
{
$("tbAddress2").value = "";
//$("tbTel2").value = "";
}
}
}
//
initComboCHIEF23();
});
comboYARD2.attachEvent("onChange", function(){comboYARD2.setComboText($("hd_comboYARD2").value);});
comboYARD2.setComboText($("hd_comboYARD2").value);
comboYARD2.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function(){
var is = -1;
var ishd = $("hd_comboYARD2").value;
var filterCount = 0;
if("" != comboYARD2.getComboText()){
while("undefined" != typeof comboYARD2.getOptionByIndex(filterCount)){
var comboValue = comboYARD2.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboYARD2.getComboText().toUpperCase();
$("hd_comboYARD2").value = comboYARD2.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
comboYARD2.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboYARD2").value = ishd;
alert("无此内容,请重新选择!");
}
}},10);}})
comboYARD2.attachEvent("onSelectionChange", function()
{
$("hd_comboYARD2").value = comboYARD2.getComboText();
//
var s1 = comboYARD2.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboYARD2.setComboText(s3);
$("hd_comboYARD2").value=s3;
}
else
{
comboYARD2.setComboText($("hd_comboYARD2").value);
}
//
$("tbAddress2").value = "";
var saddr = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strADDR=addr&strYARD="+escape($("hd_comboYARD2").value)+"&val="+newGuid());
var at = saddr.xmlDoc.responseText;
if(at=="")
{
$("tbAddress2").value = "";
//$("tbTel2").value = "";
}
else
{
var iat = at.indexOf("&1&");
if(iat>=0)
{
$("tbAddress2").value = "";
$("tbTel2").value = at.replace("&1&","");
}
else
{
iat = at.indexOf("&2&");
if(iat>=0)
{
$("tbAddress2").value = at.substr(0,iat);
$("tbTel2").value = at.substr(iat+3);
}
else
{
$("tbAddress2").value = "";
//$("tbTel2").value = "";
}
}
}
//
initComboCHIEF23();
});
}
function initComboCHIEF21()//CHIEF2
{
//生成
comboCHIEF2 = dhtmlXComboFromSelect("ddlCHIEF2");
comboCHIEF2.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strYARD="+escape($("hd_comboYARD2").value));
}
function initComboCHIEF23()//CHIEF2
{
//$("tbTel2").value = "";
$("hd_comboCHIEF2").value = "";
comboCHIEF2.setComboText($("hd_comboCHIEF2").value);
comboCHIEF2.loadXML("../FeeCodes/ATTNAdapter.aspx?mask=0&pos=0&strYARD="+escape($("hd_comboYARD2").value));
}
function initComboCHIEF22()//CHIEF2
{
if($("hdEnabled").value == "false")
{
comboCHIEF2.disable(true);
}
//
comboCHIEF2.attachEvent("onBlur", function()
{
$("hd_comboCHIEF2").value = comboCHIEF2.getComboText();
if($("hd_comboCHIEF2").value!="")
{
//
//$("tbTel2").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboCHIEF2").value)+"&strYARD="+escape($("hd_comboYARD2").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
if(arrtmp[0]!="")
{
$("tbTel2").value = arrtmp[0];
}
}
}
}
//
});
comboCHIEF2.setComboText($("hd_comboCHIEF2").value);
comboCHIEF2.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboCHIEF2").value;
if("" != comboCHIEF2.getComboText())
{
while("undefined" != typeof comboCHIEF2.getOptionByIndex(filterCount))
{
var comboValue = comboCHIEF2.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboCHIEF2.getComboText().toUpperCase();
$("hd_comboCHIEF2").value = comboCHIEF2.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboCHIEF2.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
}
},10);}});
comboCHIEF2.attachEvent("onSelectionChange", function()
{
$("hd_comboCHIEF2").value = comboCHIEF2.getComboText();
if($("hd_comboCHIEF2").value!="")
{
//
//$("tbTel2").value = "";
var loader = dhtmlxAjax.getSync("../FeeCodes/ATTNAdapter.aspx?strSHOWNAME="+escape($("hd_comboCHIEF2").value)+"&strYARD="+escape($("hd_comboYARD2").value)+"&val="+newGuid());
loader = loader.xmlDoc.responseText;
if(loader!="")
{
var arrtmp=loader.split("&&");//将各参数分离形成参数数组
if(arrtmp.length>0)
{
if(arrtmp[0]!="")
{
$("tbTel2").value = arrtmp[0];
}
}
}
}
//
});
}
</script>
<style type="text/css">
.style1
{
width: 100px;
font-size:12px;
}
</style>
<!--按钮条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
</style>
<script type="text/javascript" language=javascript>
var isChangeds;
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 isChanged()
{
/*
var qs = new QueryString();//调用:
var handle = qs.handle;
*/
isChangeds = 1;
}
window.onbeforeunload = function unloadConfirm()
{
if((event.clientX>document.body.clientWidth&&event.clientY<0)||event.altKey)
{
//alert("关闭触发");
//if(isChangeds == 1)
//{
if(confirm('是否需要保存数据?'))
{
document.getElementById("ibEnter").click();
window.close();
}
else
{
window.close();
}
//}
}
}
function printAction()
{
var strBSNO = "";
strBSNO = $("hdGid").value;
// var openSet = "height=680, width=1050, toolbar=no, menubar=no,scrollbars=no, resizable=1,location=no, status=no,Top= " +(screen.height-710)/2 + ",Left= "+(screen.width-800)/2
// var openType = "_blank";
// var openUrl = "../Reports/SeaExportReport.aspx?bsno="+strBsno;
// window.open (openUrl,openType,openSet);
var printUrl = "";
var companyID = "";
var typeName = "SEAEBUSINESSINTOGOODS";
var dbSourceID = "";
var userID = "";
var url = "../Reports/ReportService.aspx?handle=printseaebusinessintogoods&bsno="+strBSNO+"&val="+newGuid();
var loader = dhtmlxAjax.getSync(url);
var reportVal = loader.xmlDoc.responseText;
var reportObj = null;
if(reportVal != ""){
reportObj = eval('(' + reportVal + ')');
if(reportObj.reports.length > 0){
if(reportObj.reports[0].compid != ""){
companyID = reportObj.reports[0].compid;
}
if(reportObj.reports[0].sourceid != ""){
dbSourceID = reportObj.reports[0].sourceid;
}
if(reportObj.reports[0].compid != ""){
userID = reportObj.reports[0].userid;
}
printUrl = "print://?comp="+companyID+"&type="+typeName+"&dbid="+dbSourceID+"&uid="+userID;//alert(printUrl);
window.location.href = window.location.href;
location.href = printUrl;
}
}else{
alert("没有要打印的报表");
return;
}
}
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 setEnter()
{
$("hdEnter").value = "1";
var strCLOSINGDATE=dhtmlxAjax.getSync("../FeeCodes/CLOSINGDATEAdapter.aspx?hdBSNO="+$("hdBSNO").value+"&val="+newGuid());
strCLOSINGDATE = strCLOSINGDATE.xmlDoc.responseText;
if(strCLOSINGDATE!="" && strCLOSINGDATE!=$("tbCLOSINGDATE").value)
{
if(confirm('此委托已有截港日期,是否需要覆盖原有数据?'))
{
$("hdISCLOSINGDATE").value ="1";
}
else
{
$("hdISCLOSINGDATE").value ="0";
}
}
else
{
$("hdISCLOSINGDATE").value ="0";
}
//document.getElementById("ibEnter").click();
postEnterTopCtn();
}
//post数据
function postEnterTopCtn()
{
var myForm = document.getElementById("form1");
myForm.submit();
}
//
function onfocusTO()
{
$("hdTOFalse").value = $("tbTO").value;
}
</script>
<script type="text/javascript">
function reloadParent(strBSNO,strLEID)
{
/*
alert("成功提交!");
window.opener.location.reload();
history.back();
$("hdGid").value = strLEID;
$("hdEnter").value = "0";
postEnterTopCtn();
*/
//alert("strBSNO="+strBSNO);
var parentObj = window.parent.location;
var oldUrl = parentObj.href;
var idIndex = oldUrl.indexOf("&leid=&");//alert("1."+oldUrl+","+idIndex);
//
var newUrl = "";
if(idIndex <= 0)
{
newUrl = oldUrl.substring(0,idIndex+4);//alert("2."+oldUrl.substring(0,idIndex));
window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl+strBSNO;
}
else
{
var handleIndex = oldUrl.indexOf("handle=");
newUrl = oldUrl.substring(0,handleIndex);//alert("3."+handleIndex+","+newUrl);
window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl+"handle=edit&leid="+strLEID+"&id="+strBSNO;
}
//
alert("成功提交!");
}
</script>
</head>
<body onload="initComboATTN2();initComboDOC2();initComboYARD3();initComboCHIEF2();initComboYARD4();initComboCHIEF22();" style="background-color: #ECF2FF;">
<form id="form1" runat="server" style="background-color: #ECF2FF;">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<div class="btnimg"><img id=imgEnter runat=server src="../images/icons/save.gif" style="width:16px;" title="保存" onclick="setEnter();"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id=imgPrint runat=server src="../images/icons/print.gif" style="width:16px;" title="报表打印" onclick="printAction()"/></div>
</div>
</div>
<div style="float:left;" style="background-color: #ECF2FF;">
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 内容开始 -->
<div class="TabContent" style="background-color: #ECF2FF;">
<div>
<table width="700">
<tr>
<td class="style1">TO</td>
<td colspan=5>
<asp:TextBox ID="tbTO" runat="server" CssClass="txtTab" MaxLength="60" onfocus="onfocusTO();" onblur="initComboATTN3();"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">ATTN</td>
<td>
<select id="ddlATTN" runat="server" class="txtTab" style="width:112px"></select>
</td>
<td width=100px align=right>ATTN电话</td>
<td align=left>
<asp:TextBox ID="tbATTNTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="200"></asp:TextBox>
</td>
<td width=100px align=right>ATTN传真</td>
<td>
<asp:TextBox ID="tbATTNFAX" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">FM</td>
<td>
<asp:TextBox ID="tbFM" runat="server" CssClass="txtTab2" MaxLength="20"></asp:TextBox>
</td>
<td width=100px align=right>FM电话</td>
<td align=left>
<asp:TextBox ID="tbFMTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="200"></asp:TextBox>
</td>
<td width=100px align=right>FM传真</td>
<td>
<asp:TextBox ID="tbFMFAX" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">FM_EMAIL</td>
<td colspan=5>
<asp:TextBox ID="tbFMEMAIL" runat="server" CssClass="txtTab2" MaxLength="100" Width=620px></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">单证</td>
<td>
<select id="ddlDOC" runat="server" CssClass="txtTab2" style="width:112px"></select>
</td>
<td width=100px align=right>单证电话</td>
<td align=left>
<asp:TextBox ID="tbDOCTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="200"></asp:TextBox>
</td>
<td width=100px align=right>单证传真</td>
<td>
<asp:TextBox ID="tbDOCFAX" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">单证EMAIL</td>
<td colspan=5>
<asp:TextBox ID="tbDOCEMAIL" runat="server" CssClass="txtTab2" MaxLength="100" Width=620px></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">主提单号</td>
<td colspan=5>
<asp:TextBox ID="tbMBLNO" runat="server" CssClass="txtTab" MaxLength="30"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">卸货港</td>
<td colspan=5>
<asp:TextBox ID="tbPORTDISCHARGE" runat="server" CssClass="txtTab" MaxLength="30"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">船名/航次</td>
<td colspan=5>
<asp:TextBox ID="tbVESSELVOYNO" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">开船日期</td>
<td colspan=5>
<asp:TextBox ID="tbETD" runat="server" CssClass="txtTab" onclick="WdatePicker()"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="格式错误(yyyy-MM-dd)" ControlToValidate="tbETD" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style1">件重尺</td>
<td colspan=5>
<asp:TextBox ID="tbPKC" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">箱型箱量</td>
<td colspan=5>
<asp:TextBox ID="tbCNTR" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">货物描述</td>
<td colspan=5>
<asp:TextBox ID="tbDESCRIPTION" runat="server" CssClass="txtTab"
TextMode="MultiLine" Height=70px style="overflow-y:auto;height:70px;" MaxLength="2000"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=7 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td class="style1">提箱场站</td>
<td width="112px">
<select id="ddlYARD" runat="server" class="txtTab" style="width:112px"></select>
</td>
<td width=100px align=right>联系人</td>
<td>
<select id="ddlCHIEF" runat="server" class="txtTab" style="width:150px"></select>
</td>
<td width=100px align=right>电话</td>
<td>
<asp:TextBox ID="tbTel" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">地址</td>
<td colspan=5>
<asp:TextBox ID="tbAddress" runat="server" CssClass="txtTab" MaxLength="200" Width=620px></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">入货场站</td>
<td>
<select id="ddlYARD2" runat="server" class="txtTab" style="width:112px"></select>
</td>
<td width=100px align=right>联系人</td>
<td>
<select id="ddlCHIEF2" runat="server" class="txtTab" style="width:150px"></select>
</td>
<td width=100px align=right>电话</td>
<td>
<asp:TextBox ID="tbTel2" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">地址</td>
<td colspan=5>
<asp:TextBox ID="tbAddress2" runat="server" CssClass="txtTab" MaxLength="200" Width=620px></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">截港日期</td>
<td colspan=6>
<asp:TextBox ID="tbCLOSINGDATE" runat="server" CssClass="txtTab2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="格式错误(yyyy-MM-dd hh:mm)" ControlToValidate="tbCLOSINGDATE" ValidationExpression="\d{4}-\d{2}-\d{2} \d{2}:\d{2}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style1">截单日期</td>
<td colspan=6>
<asp:TextBox ID="tbCLOSEDOCDATE" runat="server" CssClass="txtTab2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="格式错误(yyyy-MM-dd hh:mm)" ControlToValidate="tbCLOSEDOCDATE" ValidationExpression="\d{4}-\d{2}-\d{2} \d{2}:\d{2}"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style1">出口海关</td>
<td width="112px">
<asp:TextBox ID="tbExportCustoms" runat="server" CssClass="txtTab2" MaxLength="100"></asp:TextBox>
</td>
<td width=100px align=right>海关代码</td>
<td>
<asp:TextBox ID="tbCustomsCode" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
<td width=100px align=right>报关代码</td>
<td>
<asp:TextBox ID="tbDeclarationCode" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">备注</td>
<td colspan=5>
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab" TextMode="MultiLine" Height=50px style="overflow-y:auto;height:50px;" MaxLength="600">N/M</asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div>
<input type="hidden" id="hd_comboATTN" runat="server"/>
<input type="hidden" id="hd_comboDOC" runat="server"/>
<input type="hidden" id="hd_comboYARD" runat="server"/>
<input type="hidden" id="hd_comboYARD2" runat="server"/>
<input type="hidden" id="hd_comboCHIEF" runat="server"/>
<input type="hidden" id="hd_comboCHIEF2" runat="server"/>
<input type="hidden" id="hdUserID" runat="server"/>
<input type="hidden" id="hdGid" runat="server"/>
<input type="hidden" id="hdBSNO" runat="server"/>
<input type="hidden" id="hdISCLOSINGDATE" runat="server"/>
<input type="hidden" id="hdEnter" runat="server"/>
<input type="hidden" id="hdEnabled" runat="server"/>
<input type="hidden" id="hdTOFalse" runat="server"/>
</div>
<div style="height:200px"></div>
</form>
</body>
</html>