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

204 lines
9.9 KiB
Plaintext

12 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBusinessAdding.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBusinessAdding" %>
<!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 comboAdd;//添加业务函电
function $(id)
{
return document.getElementById(id);
}
function initComboAdd()//添加业务函电
{
comboAdd = dhtmlXComboFromSelect("ddlAdd");
comboAdd.loadXML("../FeeCodes/SeaExportInfoBusinessAddingAdapter.aspx?mask=0&pos=0");
//
var comIndex = comboAdd.getIndexByValue($("hd_comboAdd").value);
comboAdd.selectOption(comIndex,true,true);
}
function initComboAdd2()//添加业务函电
{
comboAdd.attachEvent("onChange", function()
{
comboAdd.setComboText($("hd_comboAdd").value);
});
/*
comboAdd.attachEvent("onBlur", function(){
var s1 = comboAdd.getComboText();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
var s4 = s1.substring(0,s2-2);
if(s2>0)
{
comboAdd.setComboText(s3);
$("hd_comboAdd").value=s4;
}
else
{
comboAdd.setComboText($("hd_comboAdd").value);
}
}); */
comboAdd.setComboText($("hd_comboAdd").value);
//
//var comIndex = comboAdd.getIndexByValue($("hd_comboAdd").value);
//comboAdd.selectOption(comIndex,true,true);
//
/*
comboAdd.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboAdd").value;
if("" != comboAdd.getComboText())
{
while("undefined" != typeof comboAdd.getOptionByIndex(filterCount))
{
var comboValue = comboAdd.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboAdd.getComboText().toUpperCase();
$("hd_comboAdd").value = comboAdd.getComboText().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboAdd.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboAdd").value = ishd;
alert("无此内容,请重新选择!");
}
}
},10);
}
}); */
comboAdd.attachEvent("onSelectionChange", function()
{
$("hd_comboAdd").value = comboAdd.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()
{
if($("hd_comboAdd").value=="入货通知")
{
var qs = new QueryString();//调用:
var URLs = "SeaExportInfoBusinessIntoGoods.aspx?handle=add&leid=&id="+qs.id;
var feature = "height=660, width=700,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no,Top= " +(screen.height/2-330) + ",Left= "+(screen.width/2-400);
//window.open (URLs, "入货通知", "height=650, width=850,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no,Top= " +(screen.height/2-330) + ",Left= "+(screen.width/2-400));
window.opener.window.ShowDetailAddInfo(URLs,feature);
window.close();
}
else if($("hd_comboAdd").value=="更改通知")
{
var qs = new QueryString();//调用:
var URLs = "SeaExportInfoBusinessChange.aspx?handle=add&leid=&id="+qs.id;
var feature = "height=530, width=500,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no,Top= " +(screen.height/2-300) + ",Left= "+(screen.width/2-350);
//window.open(URLs,"更改通知","height=600, width=700,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no,Top= " +(screen.height/2-300) + ",Left= "+(screen.width/2-350));
window.opener.window.ShowDetailAddInfo(URLs,feature);
window.close();
}
else if($("hd_comboAdd").value=="电放保函")
{
var qs = new QueryString();//调用:
var URLs = "SeaExportInfoBusinessSur.aspx?handle=add&leid=&id="+qs.id;
var feature = "height=550, width=700,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no,Top= " +(screen.height/2-250) + ",Left= "+(screen.width/2-350);
//window.open(URLs,"电放保函", "height=550, width=700,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no,Top= " +(screen.height/2-250) + ",Left= "+(screen.width/2-350));
window.opener.window.ShowDetailAddInfo(URLs,feature);
window.close();
}
else if($("hd_comboAdd").value=="派车通知")
{
var qs = new QueryString();//调用:
var URLs = "SeaExportInfoBusinessTruck.aspx?handle=add&leid=&id="+qs.id;
var feature = "height=600, width=800,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no,Top= " +(screen.height/2-300) + ",Left= "+(screen.width/2-400);
//window.open(URLs,"派车通知", "height=600, width=800,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no,Top= " +(screen.height/2-300) + ",Left= "+(screen.width/2-400));
window.opener.window.ShowDetailAddInfo(URLs,feature);
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="initComboAdd2();" style="background-color: #ECF2FF;">
<form id="form1" runat="server" style="background-color: #ECF2FF;">
<div style="background-color: #ECF2FF;">
<table>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="函电名称:" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlAdd" runat=server style="width:100px" class="txtTab"></select>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<asp:Button ID="btnEnter" runat="server" Text="确定" OnClientClick="ShowDetail();" onclick="btnEnter_Click" CssClass="btncss"/>
</td>
</tr>
</table>
</div>
<div style="background-color: #ECF2FF;">
<input type="hidden" id="hd_comboAdd" runat="server"/>
</div>
</form>
</body>
</html>