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.
646 lines
31 KiB
Plaintext
646 lines
31 KiB
Plaintext
12 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBusinessTruck.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBusinessTruck" %>
|
||
|
|
||
|
<!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 comboTRUCK;//承运车队
|
||
|
var comboYARD;//背箱场站
|
||
|
var comboRETURNYARD;//返箱场站
|
||
|
|
||
|
function $(id) {
|
||
|
return document.getElementById(id);
|
||
|
}
|
||
|
//两端去空格函数
|
||
|
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }
|
||
|
function initComboTRUCK()//承运车队
|
||
|
{
|
||
|
comboTRUCK = dhtmlXComboFromSelect("ddlTRUCK");
|
||
|
comboTRUCK.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISTRUCK");
|
||
|
}
|
||
|
function initComboTRUCK2()//承运车队
|
||
|
{
|
||
|
if($("hdEnabled").value == "false")
|
||
|
{
|
||
|
comboTRUCK.disable(true);
|
||
|
}
|
||
|
//
|
||
|
comboTRUCK.attachEvent("onBlur", function(){
|
||
|
var s1 = comboTRUCK.getComboText();
|
||
|
var s2 = s1.indexOf("|");
|
||
|
if(s1=="")
|
||
|
{
|
||
|
$("hd_comboTRUCK").value="";
|
||
|
comboTRUCK.setComboText($("hd_comboTRUCK").value);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(s2>0)
|
||
|
{
|
||
|
s2=s2+2;
|
||
|
}
|
||
|
var s3 = s1.substring(s2);
|
||
|
if(s2>0)
|
||
|
{
|
||
|
comboTRUCK.setComboText(s3);
|
||
|
$("hd_comboTRUCK").value=s3;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
comboTRUCK.setComboText($("hd_comboTRUCK").value);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
comboTRUCK.setComboText($("hd_comboTRUCK").value);
|
||
|
comboTRUCK.attachEvent("onKeyPressed", function(keyCode)
|
||
|
{
|
||
|
if(keyCode!="8")
|
||
|
{
|
||
|
var arrayArg = new Array();
|
||
|
setTimeout(function(){
|
||
|
var is = -1;
|
||
|
var ishd = $("hd_comboTRUCK").value;
|
||
|
var filterCount = 0;
|
||
|
if("" != comboTRUCK.getComboText()){
|
||
|
while("undefined" != typeof comboTRUCK.getOptionByIndex(filterCount)){
|
||
|
var comboValue = comboTRUCK.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
||
|
var enterValue = comboTRUCK.getComboText().toUpperCase();
|
||
|
$("hd_comboTRUCK").value = comboTRUCK.getComboText().toUpperCase();
|
||
|
if(comboValue.indexOf(enterValue) == 0){
|
||
|
comboTRUCK.selectOption(filterCount,true,true);
|
||
|
is=filterCount;
|
||
|
break;
|
||
|
}
|
||
|
++filterCount;
|
||
|
}
|
||
|
}},10);}})
|
||
|
comboTRUCK.attachEvent("onSelectionChange", function()
|
||
|
{
|
||
|
$("hd_comboTRUCK").value = comboTRUCK.getComboText();
|
||
|
});
|
||
|
}
|
||
|
function initComboYARD()//背箱场站
|
||
|
{
|
||
|
comboYARD = dhtmlXComboFromSelect("ddlYARD");
|
||
|
comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
|
||
|
}
|
||
|
function initComboYARD2()//背箱场站
|
||
|
{
|
||
|
if($("hdEnabled").value == "false")
|
||
|
{
|
||
|
comboYARD.disable(true);
|
||
|
}
|
||
|
//
|
||
|
comboYARD.attachEvent("onChange", function(){comboYARD.setComboText($("hd_comboYARD").value);});
|
||
|
comboYARD.attachEvent("onBlur", function(){
|
||
|
var s1 = comboYARD.getComboText();
|
||
|
var s2 = s1.indexOf("|");
|
||
|
var selVal = "";
|
||
|
if(s1=="")
|
||
|
{
|
||
|
$("hd_comboYARD").value="";
|
||
|
comboYARD.setComboText($("hd_comboYARD").value);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
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);
|
||
|
}
|
||
|
//
|
||
|
selVal = comboYARD.getSelectedValue();
|
||
|
}
|
||
|
/*
|
||
|
var ADDR = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=ADDR&CODENAME="+selVal+"&val="+newGuid());
|
||
|
$("tbAddress").value =ADDR.xmlDoc.responseText;
|
||
|
*/
|
||
|
var CHIEF = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=CHIEF&CODENAME="+selVal+"&val="+newGuid());
|
||
|
var TEL = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=TEL&CODENAME="+selVal+"&val="+newGuid());
|
||
|
if(CHIEF.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbYARDATTN").value =CHIEF.xmlDoc.responseText;
|
||
|
}
|
||
|
if(TEL.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbYARDTEL").value =TEL.xmlDoc.responseText;
|
||
|
}
|
||
|
});
|
||
|
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 selVal = comboYARD.getSelectedValue();
|
||
|
/*
|
||
|
var ADDR = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=ADDR&CODENAME="+selVal);
|
||
|
$("tbAddress").value =ADDR.xmlDoc.responseText;
|
||
|
*/
|
||
|
var CHIEF = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=CHIEF&CODENAME="+selVal+"&val="+newGuid());
|
||
|
var TEL = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=TEL&CODENAME="+selVal+"&val="+newGuid());
|
||
|
if(CHIEF.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbYARDATTN").value =CHIEF.xmlDoc.responseText;
|
||
|
}
|
||
|
if(TEL.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbYARDTEL").value =TEL.xmlDoc.responseText;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
function initcomboRETURNYARD()//返箱场站
|
||
|
{
|
||
|
comboRETURNYARD = dhtmlXComboFromSelect("ddlRETURNYARD");
|
||
|
comboRETURNYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
|
||
|
}
|
||
|
function initcomboRETURNYARD2()//返箱场站
|
||
|
{
|
||
|
if($("hdEnabled").value == "false")
|
||
|
{
|
||
|
comboRETURNYARD.disable(true);
|
||
|
}
|
||
|
//
|
||
|
comboRETURNYARD.attachEvent("onChange", function(){comboRETURNYARD.setComboText($("hd_comboRETURNYARD").value);});
|
||
|
comboRETURNYARD.attachEvent("onBlur", function(){
|
||
|
var s1 = comboRETURNYARD.getComboText();
|
||
|
var s2 = s1.indexOf("|");
|
||
|
var selVal = "";
|
||
|
if(s1=="")
|
||
|
{
|
||
|
$("hd_comboRETURNYARD").value="";
|
||
|
comboRETURNYARD.setComboText($("hd_comboRETURNYARD").value);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(s2>0)
|
||
|
{
|
||
|
s2=s2+2;
|
||
|
}
|
||
|
var s3 = s1.substring(s2);
|
||
|
if(s2>0)
|
||
|
{
|
||
|
comboRETURNYARD.setComboText(s3);
|
||
|
$("hd_comboRETURNYARD").value=s3;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
comboRETURNYARD.setComboText($("hd_comboRETURNYARD").value);
|
||
|
}
|
||
|
//
|
||
|
selVal = comboRETURNYARD.getSelectedValue();
|
||
|
}
|
||
|
/*
|
||
|
var ADDR = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=ADDR&CODENAME="+selVal);
|
||
|
$("tbAddress2").value =ADDR.xmlDoc.responseText;
|
||
|
*/
|
||
|
var CHIEF = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=CHIEF&CODENAME="+selVal+"&val="+newGuid());
|
||
|
var TEL = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=TEL&CODENAME="+selVal+"&val="+newGuid());
|
||
|
if(CHIEF.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbRETURNATTN").value =CHIEF.xmlDoc.responseText;
|
||
|
}
|
||
|
if(TEL.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbRETURNTEL").value =TEL.xmlDoc.responseText;
|
||
|
}
|
||
|
});
|
||
|
comboRETURNYARD.setComboText($("hd_comboRETURNYARD").value);
|
||
|
comboRETURNYARD.attachEvent("onKeyPressed", function(keyCode)
|
||
|
{
|
||
|
if(keyCode!="8")
|
||
|
{
|
||
|
var arrayArg = new Array();
|
||
|
setTimeout(function(){
|
||
|
var is = -1;
|
||
|
var ishd = $("hd_comboRETURNYARD").value;
|
||
|
var filterCount = 0;
|
||
|
if("" != comboRETURNYARD.getComboText()){
|
||
|
while("undefined" != typeof comboRETURNYARD.getOptionByIndex(filterCount)){
|
||
|
var comboValue = comboRETURNYARD.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
||
|
var enterValue = comboRETURNYARD.getComboText().toUpperCase();
|
||
|
$("hd_comboRETURNYARD").value = comboRETURNYARD.getComboText().toUpperCase();
|
||
|
if(comboValue.indexOf(enterValue) == 0){
|
||
|
comboRETURNYARD.selectOption(filterCount,true,true);
|
||
|
is=filterCount;
|
||
|
break;
|
||
|
}
|
||
|
++filterCount;
|
||
|
}
|
||
|
if(is==-1)
|
||
|
{
|
||
|
$("hd_comboRETURNYARD").value = ishd;
|
||
|
alert("无此内容,请重新选择!");
|
||
|
}
|
||
|
}},10);}})
|
||
|
comboRETURNYARD.attachEvent("onSelectionChange", function()
|
||
|
{
|
||
|
$("hd_comboRETURNYARD").value = comboRETURNYARD.getComboText();
|
||
|
//
|
||
|
var selVal = comboRETURNYARD.getSelectedValue();
|
||
|
/*
|
||
|
var ADDR = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=ADDR&CODENAME="+selVal);
|
||
|
$("tbAddress2").value =ADDR.xmlDoc.responseText;
|
||
|
*/
|
||
|
var CHIEF = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=CHIEF&CODENAME="+selVal+"&val="+newGuid());
|
||
|
var TEL = dhtmlxAjax.getSync("../FeeCodes/YARDAddressAdapter.aspx?strIS=ISYARD&strF=TEL&CODENAME="+selVal+"&val="+newGuid());
|
||
|
if(CHIEF.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbRETURNATTN").value =CHIEF.xmlDoc.responseText;
|
||
|
}
|
||
|
if(TEL.xmlDoc.responseText!="")
|
||
|
{
|
||
|
$("tbRETURNTEL").value =TEL.xmlDoc.responseText;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
<style type="text/css">
|
||
|
.style1
|
||
|
{
|
||
|
width: 120px;
|
||
|
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 = "SEAEBUSINESSTRUCK";
var dbSourceID = "";
var userID = "";
|
||
|
var url = "../Reports/ReportService.aspx?handle=printseaebusinesstruck&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 IsNumFormat(val) {
|
||
|
var re = /^[-\+]?\d+(\.\d+)?$/;
|
||
|
if (!re.test(val)) {
|
||
|
return false;
|
||
|
}
|
||
|
else {
|
||
|
if (val.toString().indexOf(".") > 0) {
|
||
|
val.toString().replace("-", "");
|
||
|
val.toString().replace("+", "");
|
||
|
if (val.toString().substr(0, 1) == "0" && val.toString().substr(0, 2) != "0.") {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
var re1 = /^[-\+]+[1-9]+[0-9]*]*$/;
|
||
|
if (!re1.test(val)) {
|
||
|
re1 = /^[1-9]+[0-9]*]*$/;
|
||
|
if (!re1.test(val)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
function getIsNum(x) {
|
||
|
var str = x.value.trim();
|
||
|
if (str == "0") {
|
||
|
return;
|
||
|
}
|
||
|
else if (str == "") {
|
||
|
str = 0;
|
||
|
x.value = 0;
|
||
|
}
|
||
|
else {
|
||
|
var bl = IsNumFormat(str);
|
||
|
if (!bl) {
|
||
|
alert("数值格式错误!");
|
||
|
x.focus();
|
||
|
x.select();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</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="initComboTRUCK2();initComboYARD2();initcomboRETURNYARD2();" style="background-color: #ECF2FF;">
|
||
|
<form id="form1" runat="server">
|
||
|
<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;">
|
||
|
<!-- 选项卡开始 -->
|
||
|
<div class="nTab">
|
||
|
<!-- 内容开始 -->
|
||
|
<div class="TabContent">
|
||
|
<div>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td class="style1">TO</td>
|
||
|
<td>
|
||
|
<select id="ddlTRUCK" runat="server" CssClass="txtTab" style="width:400px"></select>
|
||
|
</td>
|
||
|
<td align=right>FAX</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbATTNFAX" runat="server" CssClass="txtTab" Width=150px MaxLength="100"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1"></td>
|
||
|
<td colspan=5>
|
||
|
<asp:TextBox ID="tbTO" runat="server" CssClass="txtTab" MaxLength="60" Text="承运车队" Visible=false Width=150px></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">ATTN</td>
|
||
|
<td colspan=5>
|
||
|
<asp:TextBox ID="tbATTN" runat="server" CssClass="txtTab" MaxLength="30" Width=686px></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">FM</td>
|
||
|
<td colspan=5>
|
||
|
<asp:TextBox ID="tbFM" runat="server" CssClass="txtTab" MaxLength="20" Width=686px></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">箱型箱量</td>
|
||
|
<td valign=top>
|
||
|
<asp:TextBox ID="tbCTNS" runat="server" CssClass="txtTab" Width=150px MaxLength="60"></asp:TextBox>
|
||
|
陆运费
|
||
|
<asp:TextBox ID="tbTRUCKFEE" runat="server" Width=150px onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" Text="0" MaxLength="21" CssClass="txtTab" onblur="getIsNum(this);"></asp:TextBox>
|
||
|
</td>
|
||
|
<td class="style1" align=right>结算方式</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbPAYTYPE" runat="server" Width=150px MaxLength="20" CssClass="txtTab"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=6 align="center" height="10"><hr color="#96B3DD" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>提箱信息:</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">背箱场站</td>
|
||
|
<td colspan=3>
|
||
|
<select id="ddlYARD" runat="server" CssClass="txtTab" style="width:400px"></select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">场站联系人</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbYARDATTN" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
<td class="style1" align=right>场站联系电话</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbYARDTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=6 align="center" height="10"><hr color="#96B3DD" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>工厂信息:</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">工厂地址</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbFACTRYADDR" runat="server" CssClass="txtTab" Width=150px MaxLength="60"></asp:TextBox>
|
||
|
</td>
|
||
|
<td class="style1" align=right>要求到厂时间</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbFACTRYTIME" runat="server" CssClass="txtTab" Width=150px MaxLength="60"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">工厂联系人</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbFACTRYATTN" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
<td class="style1" align=right>工厂联系电话</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbFACTRYTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=6 align="center" height="10"><hr color="#96B3DD" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>返箱信息:</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">返箱场站</td>
|
||
|
<td colspan=3>
|
||
|
<select id="ddlRETURNYARD" runat="server" CssClass="txtTab" style="width:400px"></select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">联系人</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbRETURNATTN" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
<td class="style1" align=right>联系电话</td>
|
||
|
<td>
|
||
|
<asp:TextBox ID="tbRETURNTEL" runat="server" CssClass="txtTab" Width=150px MaxLength="20"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">截港日期</td>
|
||
|
<td colspan=5>
|
||
|
<asp:TextBox ID="tbCLOSINGDATE" runat="server" CssClass="txtTab" Width=150px 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 colspan=6 align="center" height="10"><hr color="#96B3DD" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="style1">备注</td>
|
||
|
<td colspan=5>
|
||
|
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab" TextMode="MultiLine" Height=100px style="overflow-y:auto;height:100px;" MaxLength="600"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="hidden" id="hd_comboTRUCK" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboYARD" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboRETURNYARD" 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"/>
|
||
|
</div>
|
||
|
<div style="height:200px"></div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|