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/SeaExportInfoBlissueCheckou...

175 lines
7.5 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBlissueCheckoutAdd.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBlissueCheckoutAdd" %>
<!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/page.css"/>
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
<!--自定义下拉框-->
<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 type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<script language="javascript" type="text/javascript">
var comboEXPRESS;//快递公司
function $(id)
{
return document.getElementById(id);
}
function initComboEXPRESS()//快递公司
{
comboEXPRESS = dhtmlXComboFromSelect("ddlEXPRESSCORP");
comboEXPRESS.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISEXPRESS");
}
function initComboEXPRESS2()//快递公司
{
comboEXPRESS.setOptionWidth(200);
comboEXPRESS.attachEvent("onChange", function()
{
comboEXPRESS.setComboText($("hd_comboEXPRESS").value);
});
comboEXPRESS.attachEvent("onBlur", function(){
var s1 = comboEXPRESS.getComboText();
var s2 = s1.indexOf("|");
if(s1=="")
{
$("hd_comboEXPRESS").value="";
comboEXPRESS.setComboText($("hd_comboEXPRESS").value);
}
else
{
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboEXPRESS.setComboText(s3);
$("hd_comboEXPRESS").value=s3;
}
else
{
comboEXPRESS.setComboText($("hd_comboEXPRESS").value);
}
}
});
comboEXPRESS.setComboText($("hd_comboEXPRESS").value);
comboEXPRESS.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboEXPRESS").value;
if("" != comboEXPRESS.getComboText())
{
while("undefined" != typeof comboEXPRESS.getOptionByIndex(filterCount))
{
var comboValue = comboEXPRESS.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboEXPRESS.getComboText().toUpperCase();
$("hd_comboEXPRESS").value = comboEXPRESS.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboEXPRESS.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboEXPRESS").value = ishd;
alert("无此内容,请重新选择!");
}
}
},10);
}
});
comboEXPRESS.attachEvent("onSelectionChange", function()
{
$("hd_comboEXPRESS").value = comboEXPRESS.getComboText();
});
}
</script>
<!--确定-->
<script language="javascript" type="text/javascript">
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 ShowDetail()
{
window.opener.window.ShowDetailAddInfo($("hd_comboEXPRESS").value,$("tbEXPRESSNO").value);
window.close();
}
</script>
<style type="text/css">
.btncss
{
height:20px;
width:60px;
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>
</head>
<body onload="initComboEXPRESS2();" style="border:0; background-color: #ECF2FF;font-size:12px;">
<form id="form1" runat="server">
<table>
<tr>
<td width=80px align=right>
<asp:Label ID="Label1" runat="server" Text="快递公司:" Width=80px CssClass="cssfont"></asp:Label>
</td>
<td width=200px>
<select id="ddlEXPRESSCORP" runat=server style="width:200px" class="txtTab"></select>
</td>
<td width=60px align=right>
<asp:Label ID="Label2" runat="server" Text="快递号:" Width=60px CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbEXPRESSNO" runat="server" MaxLength=50 CssClass="txtTab" style="width:200px;"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=4 align=center class="cssfont">
<input type="hidden" id="hd_comboEXPRESS" runat="server"/>
</td>
</tr>
<tr>
<td colspan=4 align=center class="cssfont">
<asp:Button ID="btnEnter" runat="server" Text="确定" OnClientClick="ShowDetail();" CssClass="btncss" />
</td>
</tr>
</table>
</form>
</body>
</html>