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.

4815 lines
253 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfo.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfo" %>
<%@ Register assembly="DSWebComponent" namespace="DSWebComponent" tagprefix="cc1" %>
<!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 language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<script language="javascript" type="text/javascript" src="../js/date/jsDateFM.js"></script>
<script type="text/javascript" src="../js/browser.js" ></script>
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
//document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
//document.onselectstart=new Function("event.returnValue=false;"); //禁止先择,也就是无法复制
</script>
<!--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/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<script src="../js/jsGridSeaExportInfoCtn.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<!--自定义下拉框-->
<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_whp.js"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<script type="text/javascript">
function $(id) {
return document.getElementById(id);
}
//两端去空格函数
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function selSTLDATE() {
var il = 0;
var strSTLDATEPJ = ""; //票结
var strSTLDATE = ""; //月结
var strSTLFIRSTHALFDATE = ""; //上半月
var strSTLMIDDLEDATE = ""; //下半月
var loader = dhtmlxAjax.getSync("../FeeCodes/STLDATEAdapter.aspx?CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value) + "&val=" + newGuid());
var dates = loader.xmlDoc.responseText;
if (dates != "" && dates != "&&&&&&&&") {
var arrtmp = dates.split("&&"); //将各参数分离形成参数数组
if (arrtmp.length > 0) {
$("ddlSTLNAME").value = arrtmp[3];
$("hdSTLNAME").value = arrtmp[3];
strSTLDATE = arrtmp[0];
strSTLFIRSTHALFDATE = arrtmp[1];
strSTLMIDDLEDATE = arrtmp[2];
strSTLDATEPJ = arrtmp[4];
}
else {
$("ddlSTLNAME").value = "";
$("hdSTLNAME").value = "";
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
return;
}
}
else {
$("ddlSTLNAME").value = "";
$("hdSTLNAME").value = "";
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
return;
}
//
if ($("tbETD").value.trim() == "") {
return;
}
//
//var DropDownList1 = document.getElementById("ddlSTLNAME"); //获取DropDownList控件的引用
//var DropDownList1_Index = DropDownList1.selectedIndex; //获取选择项的索引
//var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value;//获取选择项的值
//var DropDownList1_Text = DropDownList1.options[DropDownList1_Index].text;//获取选择项的文本
var DropDownList1_Text = $("ddlSTLNAME").value.trim(); //获取选择项的文本
if (DropDownList1_Text == "票结") {
if (strSTLDATEPJ != "") {
var myDate = new Date(Date.parse($("tbETD").value.replace("-", "/")));
myDate.setDate(myDate.getDate() + parseInt(strSTLDATEPJ));
$("tbSTLDATE").value = myDate.format("yyyy-MM-dd");
$("hdSTLDATE").value = myDate.format("yyyy-MM-dd");
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else if (DropDownList1_Text == "月结") {
if (strSTLDATE != "") {
var sdate = $("tbETD").value;
var irqI = sdate.indexOf("-");
var irqL = sdate.lastIndexOf("-");
var syear = sdate.substr(0, irqI);
var smonth = sdate.substr(irqI + 1, irqL - irqI - 1);
var sday = sdate.substr(irqL + 1);
smonth = parseInt(smonth, 10) + 1;
il = smonth.toString().trim().length;
if (il < 2) {
smonth = "0" + smonth;
}
il = strSTLDATE.toString().trim().length;
if (il < 2) {
strSTLDATE = "0" + strSTLDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLDATE;
//判断日期是否正确
var bl = verifyDate(sdate);
if (!bl) {
sday = getDaysInMonth(syear, smonth);
il = sday.toString().trim().length;
if (il < 2) {
sday = "0" + sday;
}
sdate = syear + "-" + smonth + "-" + sday;
}
//
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else if (DropDownList1_Text == "半月结") {
var sdate = $("tbETD").value;
var irqI = sdate.indexOf("-");
var irqL = sdate.lastIndexOf("-");
var syear = sdate.substr(0, irqI);
var smonth = sdate.substr(irqI + 1, irqL - irqI - 1);
var sday = sdate.substr(irqL + 1);
//
if (sday > 15)//下半月
{
if (strSTLFIRSTHALFDATE != "") {
smonth = parseInt(smonth, 10) + 1;
var il = smonth.toString().trim().length;
if (il < 2) {
smonth = "0" + smonth;
}
il = strSTLFIRSTHALFDATE.toString().trim().length;
if (il < 2) {
strSTLFIRSTHALFDATE = "0" + strSTLFIRSTHALFDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLFIRSTHALFDATE;
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else//上半月
{
if (strSTLMIDDLEDATE != "") {
il = strSTLMIDDLEDATE.toString().trim().length;
if (il < 2) {
strSTLMIDDLEDATE = "0" + strSTLMIDDLEDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLMIDDLEDATE;
//判断日期是否正确
var bl = verifyDate(sdate);
if (!bl) {
sday = getDaysInMonth(syear, smonth);
il = sday.toString().trim().length;
if (il < 2) {
sday = "0" + sday;
}
sdate = syear + "-" + smonth + "-" + sday;
}
//
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
}
//
$("tbISSUEDATE").value = $("tbETD").value;
}
</script>
<script type="text/javascript">
function selSTLDATEETD(obj) {
try {
if (obj.id == "tbETD") {
var il = 0;
var strSTLDATEPJ = ""; //票结
var strSTLDATE = ""; //月结
var strSTLFIRSTHALFDATE = ""; //上半月
var strSTLMIDDLEDATE = ""; //下半月
var loader = dhtmlxAjax.getSync("../FeeCodes/STLDATEAdapter.aspx?CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value) + "&val=" + newGuid());
var dates = loader.xmlDoc.responseText;
if (dates != "" && dates != "&&&&&&&&") {
var arrtmp = dates.split("&&"); //将各参数分离形成参数数组
if (arrtmp.length > 0) {
$("ddlSTLNAME").value = arrtmp[3];
$("hdSTLNAME").value = arrtmp[3];
strSTLDATE = arrtmp[0];
strSTLFIRSTHALFDATE = arrtmp[1];
strSTLMIDDLEDATE = arrtmp[2];
strSTLDATEPJ = arrtmp[4];
}
else {
$("ddlSTLNAME").value = "";
$("hdSTLNAME").value = "";
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
return;
}
}
else {
$("ddlSTLNAME").value = "";
$("hdSTLNAME").value = "";
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
return;
}
//
if ($("tbETD").value.trim() == "") {
return;
}
//
//var DropDownList1 = document.getElementById("ddlSTLNAME"); //获取DropDownList控件的引用
//var DropDownList1_Index = DropDownList1.selectedIndex; //获取选择项的索引
//var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value;//获取选择项的值
//var DropDownList1_Text = DropDownList1.options[DropDownList1_Index].text;//获取选择项的文本
var DropDownList1_Text = $("ddlSTLNAME").value.trim(); //获取选择项的文本
if (DropDownList1_Text == "票结") {
if (strSTLDATEPJ != "") {
var myDate = new Date(Date.parse($("tbETD").value.replace("-", "/")));
myDate.setDate(myDate.getDate() + parseInt(strSTLDATEPJ));
$("tbSTLDATE").value = myDate.format("yyyy-MM-dd");
$("hdSTLDATE").value = myDate.format("yyyy-MM-dd");
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else if (DropDownList1_Text == "月结") {
if (strSTLDATE != "") {
var sdate = $("tbETD").value;
var irqI = sdate.indexOf("-");
var irqL = sdate.lastIndexOf("-");
var syear = sdate.substr(0, irqI);
var smonth = sdate.substr(irqI + 1, irqL - irqI - 1);
var sday = sdate.substr(irqL + 1);
smonth = parseInt(smonth, 10) + 1;
il = smonth.toString().trim().length;
if (il < 2) {
smonth = "0" + smonth;
}
il = strSTLDATE.toString().trim().length;
if (il < 2) {
strSTLDATE = "0" + strSTLDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLDATE;
//判断日期是否正确
var bl = verifyDate(sdate);
if (!bl) {
sday = getDaysInMonth(syear, smonth);
il = sday.toString().trim().length;
if (il < 2) {
sday = "0" + sday;
}
sdate = syear + "-" + smonth + "-" + sday;
}
//
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else if (DropDownList1_Text == "半月结") {
var sdate = $("tbETD").value;
var irqI = sdate.indexOf("-");
var irqL = sdate.lastIndexOf("-");
var syear = sdate.substr(0, irqI);
var smonth = sdate.substr(irqI + 1, irqL - irqI - 1);
var sday = sdate.substr(irqL + 1);
//
if (sday > 15)//下半月
{
if (strSTLFIRSTHALFDATE != "") {
smonth = parseInt(smonth, 10) + 1;
var il = smonth.toString().trim().length;
if (il < 2) {
smonth = "0" + smonth;
}
il = strSTLFIRSTHALFDATE.toString().trim().length;
if (il < 2) {
strSTLFIRSTHALFDATE = "0" + strSTLFIRSTHALFDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLFIRSTHALFDATE;
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
else//上半月
{
if (strSTLMIDDLEDATE != "") {
il = strSTLMIDDLEDATE.toString().trim().length;
if (il < 2) {
strSTLMIDDLEDATE = "0" + strSTLMIDDLEDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLMIDDLEDATE;
//判断日期是否正确
var bl = verifyDate(sdate);
if (!bl) {
sday = getDaysInMonth(syear, smonth);
il = sday.toString().trim().length;
if (il < 2) {
sday = "0" + sday;
}
sdate = syear + "-" + smonth + "-" + sday;
}
//
$("tbSTLDATE").value = sdate;
$("hdSTLDATE").value = sdate;
}
else {
$("tbSTLDATE").value = "";
$("hdSTLDATE").value = "";
}
}
}
//
$("tbISSUEDATE").value = $("tbETD").value;
}
else if (obj.id == "tbACCDATE") {
var stra = $("tbACCDATE").value;
if (stra != "") {
var ia = stra.lastIndexOf("-");
var stra = stra.substring(0, ia);
$("tbACCDATE").value = stra;
}
}
}
catch (e) { }
}
</script>
<script type="text/javascript">
//var comboCTNCODE;//箱型
var comboOP; //操作人员
var comboSALE; //揽货人
var comboDOC; //单证
var comboCUSTSERVICE; //客服
var comboCUSTOMERNAME; //委托单位
var comboSHIPPERID; //发货人
var comboCONSIGNEEID; //收货人
var comboNOTIFYPARTYID; //通知人
var comboAGENTID; //代理人
var comboKINDPKGS; //包装类型
var comboYARD; //场站
var comboCARRIER; //船公司
var comboFORWARDER; //订舱代理
var comboCUSTOMSER; //报关行
var comboWAREHOUSE; //仓库
var comboTRUCKER; //车队
var comboLANE; //航线
var comboVESSEL; //船名
var comboVOYNO; //航次
var comboPORTLOAD; //启运港
var comboPORTDISCHARGE; //卸货港交货地
var comboDESTINATION; //目的港
var comboPLACEDELIVERY; //交货地
var comboPLA; //收货地
var comboBLFRT; //付费方式
var ComboSERVICE; //运输条款
var ComboBSSOURCE; //市场来源大类
var ComboBSSOURCEDETAIL; //市场来源细类
var comboMIDNUM; //运输中转数
var ComboPACKINGTYPE; //装箱类型
var ComboBLTYPE; //装运方式
var ComboGOODSNAME; //货物描述类型
var comboOPERATOR; //客户的操作人员
var comboFINANCIALSTAFF; //客户的财务人员
var comboSALEDEPT; //所属业务部门
function initComboOP()//操作人员
{
//生成
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboOP = dhtmlXComboFromSelect("ddlOP");
comboOP.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isOperator&userID=" + strUserID);
}
function initComboOP2()//操作人员
{
if ($("hdEnabled").value == "false") {
comboOP.disable(true);
}
//
comboOP.attachEvent("onChange", function () {
comboOP.setComboText($("hd_comboOP").value);
});
comboOP.attachEvent("onBlur", function () {
var s1 = comboOP.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboOP").value = "";
comboOP.setComboText($("hd_comboOP").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboOP.setComboText(s3);
$("hd_comboOP").value = s3;
}
else {
comboOP.setComboText($("hd_comboOP").value);
}
}
});
comboOP.setComboText($("hd_comboOP").value);
comboOP.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboOP").value.trim();
if ("" != comboOP.getComboText().trim()) {
while ("undefined" != typeof comboOP.getOptionByIndex(filterCount)) {
var comboValue = comboOP.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboOP.getComboText().trim().toUpperCase();
$("hd_comboOP").value = comboOP.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboOP.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboOP").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboOP.attachEvent("onSelectionChange", function () {
$("hd_comboOP").value = comboOP.getComboText().trim();
});
}
function initComboSALE()//揽货人
{
//生成
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboSALE = dhtmlXComboFromSelect("ddlSALE");
comboSALE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isSaleMan&userID=" + strUserID);
}
function initComboSALE3()//揽货人
{
//生成
comboSALE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isSaleMan&userID=" + strUserID);
}
function initComboSALE2()//揽货人
{
if ($("hdEnabled").value == "false") {
comboSALE.disable(true);
}
//
comboSALE.attachEvent("onChange", function () {
comboSALE.setComboText($("hd_comboSALE").value);
});
comboSALE.attachEvent("onBlur", function () {
var s1 = comboSALE.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboSALE").value = "";
comboSALE.setComboText($("hd_comboSALE").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboSALE.setComboText(s3);
$("hd_comboSALE").value = s3;
}
else {
comboSALE.setComboText($("hd_comboSALE").value);
}
}
});
comboSALE.setComboText($("hd_comboSALE").value);
comboSALE.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboSALE").value.trim();
if ("" != comboSALE.getComboText().trim()) {
while ("undefined" != typeof comboSALE.getOptionByIndex(filterCount)) {
var comboValue = comboSALE.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboSALE.getComboText().trim().toUpperCase();
$("hd_comboSALE").value = comboSALE.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboSALE.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboSALE").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboSALE.attachEvent("onSelectionChange", function () {
$("hd_comboSALE").value = comboSALE.getComboText().trim();
});
}
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("onChange", function () {
comboDOC.setComboText($("hd_comboDOC").value);
});
comboDOC.attachEvent("onBlur", function () {
var s1 = comboDOC.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboDOC").value = "";
comboDOC.setComboText($("hd_comboDOC").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboDOC.setComboText(s3);
$("hd_comboDOC").value = s3;
}
else {
comboDOC.setComboText($("hd_comboDOC").value);
}
}
});
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.trim();
if ("" != comboDOC.getComboText().trim()) {
while ("undefined" != typeof comboDOC.getOptionByIndex(filterCount)) {
var comboValue = comboDOC.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboDOC.getComboText().trim().toUpperCase();
$("hd_comboDOC").value = comboDOC.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboDOC.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboDOC").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboDOC.attachEvent("onSelectionChange", function () {
$("hd_comboDOC").value = comboDOC.getComboText().trim();
});
}
function initComboCUSTSERVICE()//客服
{
//生成
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboCUSTSERVICE = dhtmlXComboFromSelect("ddlCUSTSERVICE");
comboCUSTSERVICE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isCustomsService&userID=" + strUserID);
}
function initComboCUSTISSTORAGE()//客服
{
if ($("hdEnabled").value == "false") {
comboCUSTSERVICE.disable(true);
}
//
comboCUSTSERVICE.attachEvent("onChange", function () {
comboCUSTSERVICE.setComboText($("hd_comboCUSTSERVICE").value);
});
comboCUSTSERVICE.attachEvent("onBlur", function () {
var s1 = comboCUSTSERVICE.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboCUSTSERVICE").value = "";
comboCUSTSERVICE.setComboText($("hd_comboCUSTSERVICE").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboCUSTSERVICE.setComboText(s3);
$("hd_comboCUSTSERVICE").value = s3;
}
else {
comboCUSTSERVICE.setComboText($("hd_comboCUSTSERVICE").value);
}
}
});
comboCUSTSERVICE.setComboText($("hd_comboCUSTSERVICE").value);
comboCUSTSERVICE.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboCUSTSERVICE").value.trim();
if ("" != comboCUSTSERVICE.getComboText().trim()) {
while ("undefined" != typeof comboCUSTSERVICE.getOptionByIndex(filterCount)) {
var comboValue = comboCUSTSERVICE.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboCUSTSERVICE.getComboText().trim().toUpperCase();
$("hd_comboCUSTSERVICE").value = comboCUSTSERVICE.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboCUSTSERVICE.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboCUSTSERVICE").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboCUSTSERVICE.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTSERVICE").value = comboCUSTSERVICE.getComboText().trim();
});
}
function initComboCUSTOMERNAME()//委托单位
{
comboCUSTOMERNAME = dhtmlXComboFromSelect("ddlCUSTOMERNAME");
comboCUSTOMERNAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCONTROLLER");
}
function initComboCUSTOMERNAME2()//委托单位
{
if ($("hdEnabled").value == "false") {
comboCUSTOMERNAME.disable(true);
}
//
comboCUSTOMERNAME.setOptionWidth(200);
comboCUSTOMERNAME.attachEvent("onChange", function () {
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
});
comboCUSTOMERNAME.attachEvent("onBlur", function () {
var s1 = comboCUSTOMERNAME.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboCUSTOMERNAME").value = "";
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
//
$("hd_comboCUSTOMERCODE").value = "";
//
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboCUSTOMERNAME.setComboText(s3);
$("hd_comboCUSTOMERNAME").value = s3;
}
else {
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
}
//
$("hd_comboCUSTOMERCODE").value = comboCUSTOMERNAME.getSelectedValue();
//
}
selSTLDATE();
initComboSHIPPERID3();
initComboCONSIGNEEID3();
initComboNOTIFYPARTYID3();
initComboAGENTID3();
initComboOPERATOR3();
initComboFINANCIALSTAFF3();
//
if ($("hdHandle").value.trim() == "add" || $("hdHandle").value.trim() == "addfull") {
var loader = dhtmlxAjax.getSync("../FeeCodes/CLIENTCURRENCYIDAdapter.aspx?SALE=SALE&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value) + "&val=" + newGuid());
$("hd_comboSALE").value = loader.xmlDoc.responseText;
comboSALE.setComboText($("hd_comboSALE").value);
}
});
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
comboCUSTOMERNAME.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboCUSTOMERNAME").value.trim();
if ("" != comboCUSTOMERNAME.getComboText().trim()) {
while ("undefined" != typeof comboCUSTOMERNAME.getOptionByIndex(filterCount)) {
var comboValue = comboCUSTOMERNAME.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboCUSTOMERNAME.getComboText().trim().toUpperCase();
$("hd_comboCUSTOMERNAME").value = comboCUSTOMERNAME.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboCUSTOMERNAME.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboCUSTOMERNAME").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboCUSTOMERNAME.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTOMERNAME").value = comboCUSTOMERNAME.getComboText().trim();
});
}
function initComboSHIPPERID()//发货人
{
comboSHIPPERID = dhtmlXComboFromSelect("ddlSHIPPERID");
comboSHIPPERID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=2&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboSHIPPERID3()//发货人
{
comboSHIPPERID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=2&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboSHIPPERID2()//发货人
{
/*
comboSHIPPERID.attachEvent("onChange", function()
{
comboSHIPPERID.setComboText($("hd_comboSHIPPERID").value);
//
var s1 = comboSHIPPERID.getComboText().trim();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboSHIPPERID.setComboText(s3);
$("hd_comboSHIPPERID").value=s3;
}
else
{
comboSHIPPERID.setComboText($("hd_comboSHIPPERID").value);
}
//
var selVal = comboSHIPPERID.getSelectedValue();
var selVal2 = comboSHIPPERID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID="+escape(selVal)+"&SHORTNAME="+escape(selVal2)+"&val="+newGuid());
$("tbSHIPPER").value =loader.xmlDoc.responseText;
});
*/
/*
comboSHIPPERID.attachEvent("onBlur", function()
{
var s1 = comboSHIPPERID.getComboText().trim();
var s2 = s1.indexOf("|");
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboSHIPPERID.setComboText(s3);
$("hd_comboSHIPPERID").value=s3;
}
else
{
comboSHIPPERID.setComboText($("hd_comboSHIPPERID").value);
}
//
var selVal = comboSHIPPERID.getSelectedValue();
var selVal2 = comboSHIPPERID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID="+selVal+"&SHORTNAME="+escape(selVal2)+"&val="+newGuid());
$("tbSHIPPER").value =loader.xmlDoc.responseText;
});
*/
if ($("hdEnabled").value == "false") {
comboSHIPPERID.disable(true);
}
//
comboSHIPPERID.setOptionWidth(200);
comboSHIPPERID.setComboText($("hd_comboSHIPPERID").value);
comboSHIPPERID.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
initComboSHIPPERID3();
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboSHIPPERID").value.trim();
var filterCount = 0;
if ("" != comboSHIPPERID.getComboText().trim()) {
while ("undefined" != typeof comboSHIPPERID.getOptionByIndex(filterCount)) {
var comboValue = comboSHIPPERID.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboSHIPPERID.getComboText().trim().toUpperCase();
$("hd_comboSHIPPERID").value = comboSHIPPERID.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboSHIPPERID.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboSHIPPERID").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboSHIPPERID.attachEvent("onSelectionChange", function () {
$("hd_comboSHIPPERID").value = comboSHIPPERID.getComboText().trim();
/*
var selVal = comboSHIPPERID.getSelectedValue();
var selVal2 = comboSHIPPERID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID="+escape(selVal)+"&SHORTNAME="+escape(selVal2)+"&val="+newGuid());
$("tbSHIPPER").value =loader.xmlDoc.responseText;*/
//
var s1 = comboSHIPPERID.getComboText().trim();
var s2 = s1.indexOf("|");
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboSHIPPERID.setComboText(s3);
$("hd_comboSHIPPERID").value = s3;
}
else {
comboSHIPPERID.setComboText($("hd_comboSHIPPERID").value);
}
//
var selVal = comboSHIPPERID.getSelectedValue();
var selVal2 = comboSHIPPERID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID=" + escape(selVal) + "&SHORTNAME=" + escape(selVal2) + "&val=" + newGuid());
$("tbSHIPPER").value = loader.xmlDoc.responseText;
});
}
function initComboCONSIGNEEID()//收货人
{
comboCONSIGNEEID = dhtmlXComboFromSelect("ddlCONSIGNEEID");
comboCONSIGNEEID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=1&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboCONSIGNEEID3()//收货人
{
comboCONSIGNEEID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=1&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboCONSIGNEEID2()//收货人
{
if ($("hdEnabled").value == "false") {
comboCONSIGNEEID.disable(true);
}
//
comboCONSIGNEEID.setOptionWidth(200);
comboCONSIGNEEID.setComboText($("hd_comboCONSIGNEEID").value);
comboCONSIGNEEID.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboCONSIGNEEID").value.trim();
var filterCount = 0;
if ("" != comboCONSIGNEEID.getComboText().trim()) {
while ("undefined" != typeof comboCONSIGNEEID.getOptionByIndex(filterCount)) {
var comboValue = comboCONSIGNEEID.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboCONSIGNEEID.getComboText().trim().toUpperCase();
$("hd_comboCONSIGNEEID").value = comboCONSIGNEEID.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboCONSIGNEEID.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboCONSIGNEEID").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboCONSIGNEEID.attachEvent("onSelectionChange", function () {
$("hd_comboCONSIGNEEID").value = comboCONSIGNEEID.getComboText().trim();
//
var s1 = comboCONSIGNEEID.getComboText().trim();
var s2 = s1.indexOf("|");
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboCONSIGNEEID.setComboText(s3);
$("hd_comboCONSIGNEEID").value = s3;
}
else {
comboCONSIGNEEID.setComboText($("hd_comboCONSIGNEEID").value);
}
//
var selVal = comboCONSIGNEEID.getSelectedValue();
var selVal2 = comboCONSIGNEEID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID=" + escape(selVal) + "&SHORTNAME=" + escape(selVal2) + "&val=" + newGuid());
$("tbCONSIGNEE").value = loader.xmlDoc.responseText;
});
}
function initComboNOTIFYPARTYID()//通知人
{
comboNOTIFYPARTYID = dhtmlXComboFromSelect("ddlNOTIFYPARTYID");
comboNOTIFYPARTYID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=3&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboNOTIFYPARTYID3()//通知人
{
comboNOTIFYPARTYID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=3&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboNOTIFYPARTYID2()//通知人
{
if ($("hdEnabled").value == "false") {
comboNOTIFYPARTYID.disable(true);
}
//
comboNOTIFYPARTYID.setOptionWidth(200);
comboNOTIFYPARTYID.setComboText($("hd_comboNOTIFYPARTYID").value);
comboNOTIFYPARTYID.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboNOTIFYPARTYID").value.trim();
var filterCount = 0;
if ("" != comboNOTIFYPARTYID.getComboText().trim()) {
while ("undefined" != typeof comboNOTIFYPARTYID.getOptionByIndex(filterCount)) {
var comboValue = comboNOTIFYPARTYID.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboNOTIFYPARTYID.getComboText().trim().toUpperCase();
$("hd_comboNOTIFYPARTYID").value = comboNOTIFYPARTYID.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboNOTIFYPARTYID.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboNOTIFYPARTYID").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboNOTIFYPARTYID.attachEvent("onSelectionChange", function () {
$("hd_comboNOTIFYPARTYID").value = comboNOTIFYPARTYID.getComboText().trim();
//
var s1 = comboNOTIFYPARTYID.getComboText().trim();
var s2 = s1.indexOf("|");
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboNOTIFYPARTYID.setComboText(s3);
$("hd_comboNOTIFYPARTYID").value = s3;
}
else {
comboNOTIFYPARTYID.setComboText($("hd_comboNOTIFYPARTYID").value);
}
//
var selVal = comboNOTIFYPARTYID.getSelectedValue();
var selVal2 = comboNOTIFYPARTYID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID=" + escape(selVal) + "&SHORTNAME=" + escape(selVal2) + "&val=" + newGuid());
$("tbNOTIFYPARTY").value = loader.xmlDoc.responseText;
});
}
function initComboAGENTID()//代理人
{
comboAGENTID = dhtmlXComboFromSelect("ddlAGENTID");
comboAGENTID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=4&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboAGENTID3()//代理人
{
comboAGENTID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=4&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboAGENTID2()//代理人
{
if ($("hdEnabled").value == "false") {
comboAGENTID.disable(true);
}
//
comboAGENTID.setOptionWidth(200);
comboAGENTID.setComboText($("hd_comboAGENTID").value);
comboAGENTID.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboAGENTID").value.trim();
var filterCount = 0;
if ("" != comboAGENTID.getComboText().trim()) {
while ("undefined" != typeof comboAGENTID.getOptionByIndex(filterCount)) {
var comboValue = comboAGENTID.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboAGENTID.getComboText().trim().toUpperCase();
$("hd_comboAGENTID").value = comboAGENTID.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboAGENTID.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboAGENTID").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboAGENTID.attachEvent("onSelectionChange", function () {
$("hd_comboAGENTID").value = comboAGENTID.getComboText().trim();
//
var s1 = comboAGENTID.getComboText().trim();
var s2 = s1.indexOf("|");
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboAGENTID.setComboText(s3);
$("hd_comboAGENTID").value = s3;
}
else {
comboAGENTID.setComboText($("hd_comboAGENTID").value);
}
//
var selVal = comboAGENTID.getSelectedValue();
var selVal2 = comboAGENTID.getComboText().trim();
var loader = dhtmlxAjax.getSync("../FeeCodes/ShipperdetailAdapter.aspx?shipperID=" + escape(selVal) + "&SHORTNAME=" + escape(selVal2) + "&val=" + newGuid());
$("tbAGENT").value = loader.xmlDoc.responseText;
});
}
function initComboGOODSNAME()//货物描述类型
{
comboGOODSNAME = dhtmlXComboFromSelect("ddlGOODSNAME");
comboGOODSNAME.loadXML("../FeeCodes/TCodeGoodsAdapter.aspx?mask=0&pos=0");
}
function initComboGOODSNAME2()//货物描述类型
{
if ($("hdEnabled").value == "false") {
comboGOODSNAME.disable(true);
}
//
comboGOODSNAME.attachEvent("onChange", function () { comboGOODSNAME.setComboText($("hd_comboGOODSNAME").value); });
comboGOODSNAME.attachEvent("onBlur", function () {
var s1 = comboGOODSNAME.getComboText().trim();
var s2 = s1.indexOf("|");
var selVal = "";
if (s1 == "") {
$("hd_comboGOODSNAME").value = "";
comboGOODSNAME.setComboText($("hd_comboGOODSNAME").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboGOODSNAME.setComboText(s3);
$("hd_comboGOODSNAME").value = s3;
}
else {
comboGOODSNAME.setComboText($("hd_comboGOODSNAME").value);
}
//
selVal = comboGOODSNAME.getSelectedValue();
}
var loader = dhtmlxAjax.getSync("../FeeCodes/GOODCODEAdapter.aspx?GOODCODE=" + selVal + "&val=" + newGuid());
$("tbDESCRIPTION").value = loader.xmlDoc.responseText;
});
comboGOODSNAME.setComboText($("hd_comboGOODSNAME").value);
comboGOODSNAME.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboGOODSNAME").value.trim();
var filterCount = 0;
if ("" != comboGOODSNAME.getComboText().trim()) {
while ("undefined" != typeof comboGOODSNAME.getOptionByIndex(filterCount)) {
var comboValue = comboGOODSNAME.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboGOODSNAME.getComboText().trim().toUpperCase();
$("hd_comboGOODSNAME").value = comboGOODSNAME.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboGOODSNAME.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboGOODSNAME").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboGOODSNAME.attachEvent("onSelectionChange", function () {
$("hd_comboGOODSNAME").value = comboGOODSNAME.getComboText().trim();
//
var selVal = comboGOODSNAME.getSelectedValue();
var loader = dhtmlxAjax.getSync("../FeeCodes/GOODCODEAdapter.aspx?GOODCODE=" + selVal + "&val=" + newGuid());
$("tbDESCRIPTION").value = loader.xmlDoc.responseText;
});
}
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.setOptionWidth(200);
comboYARD.attachEvent("onChange", function () { comboYARD.setComboText($("hd_comboYARD").value); });
comboYARD.attachEvent("onBlur", function () {
var s1 = comboYARD.getComboText().trim();
var s2 = s1.indexOf("|");
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);
}
}
});
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.trim();
var filterCount = 0;
if ("" != comboYARD.getComboText().trim()) {
while ("undefined" != typeof comboYARD.getOptionByIndex(filterCount)) {
var comboValue = comboYARD.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboYARD.getComboText().trim().toUpperCase();
$("hd_comboYARD").value = comboYARD.getComboText().trim().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().trim();
});
}
function initComboTRUCKER()//车队
{
comboTRUCKER = dhtmlXComboFromSelect("ddlTRUCKER");
comboTRUCKER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISTRUCK");
}
function initComboTRUCKER2()//车队
{
if ($("hdEnabled").value == "false") {
comboTRUCKER.disable(true);
}
//
comboTRUCKER.setOptionWidth(200);
comboTRUCKER.attachEvent("onChange", function () { comboTRUCKER.setComboText($("hd_comboTRUCKER").value); });
comboTRUCKER.attachEvent("onBlur", function () {
var s1 = comboTRUCKER.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboTRUCKER").value = "";
comboTRUCKER.setComboText($("hd_comboTRUCKER").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboTRUCKER.setComboText(s3);
$("hd_comboTRUCKER").value = s3;
}
else {
comboTRUCKER.setComboText($("hd_comboTRUCKER").value);
}
}
});
comboTRUCKER.setComboText($("hd_comboTRUCKER").value);
comboTRUCKER.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboTRUCKER").value.trim();
var filterCount = 0;
if ("" != comboTRUCKER.getComboText().trim()) {
while ("undefined" != typeof comboTRUCKER.getOptionByIndex(filterCount)) {
var comboValue = comboTRUCKER.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboTRUCKER.getComboText().trim().toUpperCase();
$("hd_comboTRUCKER").value = comboTRUCKER.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboTRUCKER.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboTRUCKER").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
})
comboTRUCKER.attachEvent("onSelectionChange", function () {
$("hd_comboTRUCKER").value = comboTRUCKER.getComboText().trim();
});
}
function initComboCARRIER()//船公司
{
comboCARRIER = dhtmlXComboFromSelect("ddlCARRIER");
comboCARRIER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCARRIER");
}
function initComboCARRIER2()//船公司
{
if ($("hdEnabled").value == "false") {
comboCARRIER.disable(true);
}
//
comboCARRIER.setOptionWidth(200);
comboCARRIER.attachEvent("onChange", function () { comboCARRIER.setComboText($("hd_comboCARRIER").value); });
comboCARRIER.attachEvent("onBlur", function () {
var s1 = comboCARRIER.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboCARRIER").value = "";
comboCARRIER.setComboText($("hd_comboCARRIER").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboCARRIER.setComboText(s3);
$("hd_comboCARRIER").value = s3;
}
else {
comboCARRIER.setComboText($("hd_comboCARRIER").value);
}
}
});
comboCARRIER.setComboText($("hd_comboCARRIER").value);
comboCARRIER.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboCARRIER").value.trim();
var filterCount = 0;
if ("" != comboCARRIER.getComboText().trim()) {
while ("undefined" != typeof comboCARRIER.getOptionByIndex(filterCount)) {
var comboValue = comboCARRIER.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboCARRIER.getComboText().trim().toUpperCase();
$("hd_comboCARRIER").value = comboCARRIER.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboCARRIER.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboCARRIER").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboCARRIER.attachEvent("onSelectionChange", function () {
$("hd_comboCARRIER").value = comboCARRIER.getComboText().trim();
});
}
function initComboFORWARDER()//订舱代理
{
comboFORWARDER = dhtmlXComboFromSelect("ddlFORWARDER");
comboFORWARDER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISBOOKING");
}
function initComboFORWARDER2()//订舱代理
{
if ($("hdEnabled").value == "false") {
comboFORWARDER.disable(true);
}
//
comboFORWARDER.setOptionWidth(200);
comboFORWARDER.attachEvent("onChange", function () { comboFORWARDER.setComboText($("hd_comboFORWARDER").value); });
comboFORWARDER.attachEvent("onBlur", function () {
var s1 = comboFORWARDER.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboFORWARDER").value = "";
comboFORWARDER.setComboText($("hd_comboFORWARDER").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboFORWARDER.setComboText(s3);
$("hd_comboFORWARDER").value = s3;
}
else {
comboFORWARDER.setComboText($("hd_comboFORWARDER").value);
}
}
});
comboFORWARDER.setComboText($("hd_comboFORWARDER").value);
comboFORWARDER.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboFORWARDER").value.trim();
var filterCount = 0;
if ("" != comboFORWARDER.getComboText().trim()) {
while ("undefined" != typeof comboFORWARDER.getOptionByIndex(filterCount)) {
var comboValue = comboFORWARDER.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboFORWARDER.getComboText().trim().toUpperCase();
$("hd_comboFORWARDER").value = comboFORWARDER.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboFORWARDER.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboFORWARDER").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboFORWARDER.attachEvent("onSelectionChange", function () {
$("hd_comboFORWARDER").value = comboFORWARDER.getComboText().trim();
});
}
function initComboCUSTOMSER()//报关行
{
comboCUSTOMSER = dhtmlXComboFromSelect("ddlCUSTOMSER");
comboCUSTOMSER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
}
function initComboCUSTOMSER2()//报关行
{
if ($("hdEnabled").value == "false") {
comboCUSTOMSER.disable(true);
}
//
comboCUSTOMSER.setOptionWidth(200);
comboCUSTOMSER.attachEvent("onChange", function () { comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value); });
comboCUSTOMSER.attachEvent("onBlur", function () {
var s1 = comboCUSTOMSER.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboCUSTOMSER").value = "";
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboCUSTOMSER.setComboText(s3);
$("hd_comboCUSTOMSER").value = s3;
}
else {
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
}
}
});
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
comboCUSTOMSER.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboCUSTOMSER").value.trim();
var filterCount = 0;
if ("" != comboCUSTOMSER.getComboText().trim()) {
while ("undefined" != typeof comboCUSTOMSER.getOptionByIndex(filterCount)) {
var comboValue = comboCUSTOMSER.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboCUSTOMSER.getComboText().trim().toUpperCase();
$("hd_comboCUSTOMSER").value = comboCUSTOMSER.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboCUSTOMSER.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboCUSTOMSER").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboCUSTOMSER.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTOMSER").value = comboCUSTOMSER.getComboText().trim();
});
}
function initComboWAREHOUSE()//仓库
{
comboWAREHOUSE = dhtmlXComboFromSelect("ddlWAREHOUSE");
comboWAREHOUSE.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISWAREHOUSE");
}
function initComboWAREHOUSE2()//仓库
{
if ($("hdEnabled").value == "false") {
comboWAREHOUSE.disable(true);
}
//
comboWAREHOUSE.setOptionWidth(200);
comboWAREHOUSE.attachEvent("onChange", function () { comboWAREHOUSE.setComboText($("hd_comboWAREHOUSE").value); });
comboWAREHOUSE.attachEvent("onBlur", function () {
var s1 = comboWAREHOUSE.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboWAREHOUSE").value = "";
comboWAREHOUSE.setComboText($("hd_comboWAREHOUSE").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboWAREHOUSE.setComboText(s3);
$("hd_comboWAREHOUSE").value = s3;
}
else {
comboWAREHOUSE.setComboText($("hd_comboWAREHOUSE").value);
}
}
});
comboWAREHOUSE.setComboText($("hd_comboWAREHOUSE").value);
comboWAREHOUSE.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var is = -1;
var ishd = $("hd_comboWAREHOUSE").value.trim();
var filterCount = 0;
if ("" != comboWAREHOUSE.getComboText().trim()) {
while ("undefined" != typeof comboWAREHOUSE.getOptionByIndex(filterCount)) {
var comboValue = comboWAREHOUSE.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboWAREHOUSE.getComboText().trim().toUpperCase();
$("hd_comboWAREHOUSE").value = comboWAREHOUSE.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboWAREHOUSE.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboWAREHOUSE").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboWAREHOUSE.attachEvent("onSelectionChange", function () {
$("hd_comboWAREHOUSE").value = comboWAREHOUSE.getComboText().trim();
});
}
function initComboLANE()//航线
{
comboLANE = dhtmlXComboFromSelect("ddlLANE");
comboLANE.loadXML("../FeeCodes/TCodeLanesAdapter.aspx?mask=0&pos=0");
}
function initComboLANE3()//航线
{
comboLANE.loadXML("../FeeCodes/TCodeLanesAdapter.aspx?mask=0&pos=0");
}
function initComboLANE2()//航线
{
if ($("hdEnabled").value == "false") {
comboLANE.disable(true);
}
//
comboLANE.setOptionWidth(200);
comboLANE.attachEvent("onChange", function () {
comboLANE.setComboText($("hd_comboLANE").value);
});
comboLANE.attachEvent("onBlur", function () {
var s1 = comboLANE.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboLANE").value = "";
comboLANE.setComboText($("hd_comboLANE").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboLANE.setComboText(s3);
$("hd_comboLANE").value = s3;
}
else {
comboLANE.setComboText($("hd_comboLANE").value);
}
}
});
comboLANE.setComboText($("hd_comboLANE").value);
comboLANE.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboLANE").value.trim();
if ("" != comboLANE.getComboText().trim()) {
while ("undefined" != typeof comboLANE.getOptionByIndex(filterCount)) {
var comboValue = comboLANE.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboLANE.getComboText().trim().toUpperCase();
$("hd_comboLANE").value = comboLANE.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboLANE.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboLANE").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboLANE.attachEvent("onSelectionChange", function () {
$("hd_comboLANE").value = comboLANE.getComboText().trim();
});
}
function initComboBLFRT()//付费方式
{
comboBLFRT = dhtmlXComboFromSelect("ddlBLFRT");
comboBLFRT.loadXML("../FeeCodes/TCodeFrtAdapter.aspx?mask=0&pos=0");
}
function initComboBLFRT2()//付费方式
{
if ($("hdEnabled").value == "false") {
comboBLFRT.disable(true);
}
//
comboBLFRT.enableOptionAutoPositioning(false);
comboBLFRT.setOptionWidth(200);
comboBLFRT.attachEvent("onChange", function () {
comboBLFRT.setComboText($("hd_comboBLFRT").value);
//
var sBLFRT = comboBLFRT.getComboText().trim();
if (sBLFRT == "FREIGHT PREPAID")//PP
{
$("tbBLFRT").value = $("hd_comboPORTLOAD").value; //POL
}
else if (sBLFRT == "FREIGHT COLLECT")//CC
{
$("tbBLFRT").value = $("hd_comboPORTDISCHARGE").value; //POD
}
});
comboBLFRT.attachEvent("onBlur", function () {
var s1 = comboBLFRT.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboBLFRT").value = "";
comboBLFRT.setComboText($("hd_comboBLFRT").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboBLFRT.setComboText(s3);
$("hd_comboBLFRT").value = s3;
}
else {
comboBLFRT.setComboText($("hd_comboBLFRT").value);
}
}
//
var sBLFRT = comboBLFRT.getComboText().trim();
if (sBLFRT == "FREIGHT PREPAID")//PP
{
$("tbBLFRT").value = $("hd_comboPORTLOAD").value; //POL
}
else if (sBLFRT == "FREIGHT COLLECT")//CC
{
$("tbBLFRT").value = $("hd_comboPORTDISCHARGE").value; //POD
}
else {
$("tbBLFRT").value = "";
}
});
comboBLFRT.setComboText($("hd_comboBLFRT").value);
comboBLFRT.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboBLFRT").value.trim();
if ("" != comboBLFRT.getComboText().trim()) {
while ("undefined" != typeof comboBLFRT.getOptionByIndex(filterCount)) {
var comboValue = comboBLFRT.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboBLFRT.getComboText().trim().toUpperCase();
$("hd_comboBLFRT").value = comboBLFRT.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboBLFRT.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboBLFRT").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboBLFRT.attachEvent("onSelectionChange", function () {
$("hd_comboBLFRT").value = comboBLFRT.getComboText().trim();
//
var sBLFRT = comboBLFRT.getComboText().trim();
if (sBLFRT == "FREIGHT PREPAID")//PP
{
$("tbBLFRT").value = $("hd_comboPORTLOAD").value; //POL
}
else if (sBLFRT == "FREIGHT COLLECT")//CC
{
$("tbBLFRT").value = $("hd_comboPORTDISCHARGE").value; //POD
}
});
}
function initComboSERVICE()//运输条款
{
comboSERVICE = dhtmlXComboFromSelect("ddlSERVICE");
comboSERVICE.loadXML("../FeeCodes/TCodeServiceAdapter.aspx?mask=0&pos=0");
}
function initComboISSTORAGE()//运输条款
{
if ($("hdEnabled").value == "false") {
comboSERVICE.disable(true);
}
//
comboSERVICE.attachEvent("onChange", function () {
comboSERVICE.setComboText($("hd_comboSERVICE").value);
});
comboSERVICE.attachEvent("onBlur", function () {
var s1 = comboSERVICE.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboSERVICE").value = "";
comboSERVICE.setComboText($("hd_comboSERVICE").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboSERVICE.setComboText(s3);
$("hd_comboSERVICE").value = s3;
}
else {
comboSERVICE.setComboText($("hd_comboSERVICE").value);
}
}
});
comboSERVICE.setComboText($("hd_comboSERVICE").value);
comboSERVICE.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboSERVICE").value.trim();
if ("" != comboSERVICE.getComboText().trim()) {
while ("undefined" != typeof comboSERVICE.getOptionByIndex(filterCount)) {
var comboValue = comboSERVICE.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboSERVICE.getComboText().trim().toUpperCase();
$("hd_comboSERVICE").value = comboSERVICE.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboSERVICE.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboSERVICE").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboSERVICE.attachEvent("onSelectionChange", function () {
$("hd_comboSERVICE").value = comboSERVICE.getComboText().trim();
});
}
function initComboPORTLOAD()//启运港==装货港
{
comboPORTLOAD = dhtmlXComboFromSelect("ddlPORTLOAD");
comboPORTLOAD.loadXML("../FeeCodes/TCodeLoadportAdapter.aspx?mask=0&pos=0");
}
function initComboPORTLOAD2()//启运港==装货港
{
if ($("hdEnabled").value == "false") {
comboPORTLOAD.disable(true);
}
//
comboPORTLOAD.setOptionWidth(200);
comboPORTLOAD.attachEvent("onChange", function () {
comboPORTLOAD.setComboText($("hd_comboPORTLOAD").value);
});
comboPORTLOAD.attachEvent("onBlur", function () {
comboPORTLOAD.setComboText($("hd_comboPORTLOAD").value);
//
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeLoadportAdapter.aspx?edicode=" + comboPORTLOAD.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbPORTLOADID").value = loader.xmlDoc.responseText;
$("tbISSUEPLACEID").value = loader.xmlDoc.responseText;
}
});
comboPORTLOAD.setComboText($("hd_comboPORTLOAD").value);
comboPORTLOAD.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboPORTLOAD").value.trim();
if ("" != comboPORTLOAD.getComboText().trim()) {
while ("undefined" != typeof comboPORTLOAD.getOptionByIndex(filterCount)) {
var comboValue = comboPORTLOAD.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboPORTLOAD.getComboText().trim().toUpperCase();
$("hd_comboPORTLOAD").value = comboPORTLOAD.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboPORTLOAD.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboPORTLOAD").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboPORTLOAD.attachEvent("onSelectionChange", function () {
$("hd_comboPORTLOAD").value = comboPORTLOAD.getComboText().trim();
$("tbISSUEPLACE").value = comboPORTLOAD.getComboText().toUpperCase();
});
}
function initComboPORTDISCHARGE()//卸货港
{
comboPORTDISCHARGE = dhtmlXComboFromSelect("ddlPORTDISCHARGE");
}
function initComboPORTDISCHARGE2()//卸货港
{
if ($("hdEnabled").value == "false") {
comboPORTDISCHARGE.disable(true);
}
//
comboPORTDISCHARGE.setOptionWidth(200);
comboPORTDISCHARGE.attachEvent("onOpen", function () {
if (comboPORTDISCHARGE.getOptionByIndex(0) == null) {
comboPORTDISCHARGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=");
}
});
comboPORTDISCHARGE.attachEvent("onChange", function () {
$("hd_comboPORTDISCHARGE").value = comboPORTDISCHARGE.getComboText().trim().toUpperCase(); //comboPORTDISCHARGE.getSelectedText();
comboPORTDISCHARGE.setComboText($("hd_comboPORTDISCHARGE").value);
//
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&port=" + $("hd_comboPORTDISCHARGE").value + "&val=" + newGuid());
$("hd_comboLANE").value = loader.xmlDoc.responseText;
comboLANE.setComboText($("hd_comboLANE").value);
});
comboPORTDISCHARGE.attachEvent("onBlur", function () {
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?edicode=" + comboPORTDISCHARGE.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbPORTDISCHARGEID").value = loader.xmlDoc.responseText;
}
});
comboPORTDISCHARGE.setComboText($("hd_comboPORTDISCHARGE").value);
//检索
//comboPORTDISCHARGE.enableFilteringMode(true);
comboPORTDISCHARGE.attachEvent("onKeyPressed", function (keyCode) {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboPORTDISCHARGE.getComboText().trim()) {
var enterValue = comboPORTDISCHARGE.getComboText().toUpperCase();
comboPORTDISCHARGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
}
}, 10);
});
comboPORTDISCHARGE.attachEvent("onSelectionChange", function () {
$("hd_comboPORTDISCHARGE").value = comboPORTDISCHARGE.getComboText().trim();
//
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&port=" + $("hd_comboPORTDISCHARGE").value + "&val=" + newGuid());
$("hd_comboLANE").value = loader.xmlDoc.responseText;
comboLANE.setComboText($("hd_comboLANE").value);
});
}
function initComboDESTINATION()//目的港
{
comboDESTINATION = dhtmlXComboFromSelect("ddlDESTINATION");
}
function initComboDESTINATION2()//目的港
{
if ($("hdEnabled").value == "false") {
comboDESTINATION.disable(true);
}
//
comboDESTINATION.setOptionWidth(200);
comboDESTINATION.attachEvent("onOpen", function () {
if (comboDESTINATION.getOptionByIndex(0) == null) {
comboDESTINATION.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=");
}
});
comboDESTINATION.attachEvent("onChange", function () {
$("hd_comboDESTINATION").value = comboDESTINATION.getComboText().trim().toUpperCase();
comboDESTINATION.setComboText($("hd_comboDESTINATION").value);
});
comboDESTINATION.attachEvent("onBlur", function () {
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?edicode=" + comboDESTINATION.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbDESTINATIONID").value = loader.xmlDoc.responseText;
}
});
comboDESTINATION.setComboText($("hd_comboDESTINATION").value);
//检索
//comboDESTINATION.enableFilteringMode(true);
comboDESTINATION.attachEvent("onKeyPressed", function (keyCode) {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboDESTINATION.getComboText().trim()) {
var enterValue = comboDESTINATION.getComboText().toUpperCase();
comboDESTINATION.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
}
}, 10);
});
comboDESTINATION.attachEvent("onSelectionChange", function () {
$("hd_comboDESTINATION").value = comboDESTINATION.getComboText().trim();
});
}
function initComboPLACEDELIVERY()//交货地
{
comboPLACEDELIVERY = dhtmlXComboFromSelect("ddlPLACEDELIVERY");
}
function initComboPLACEDELIVERY2()//交货地
{
if ($("hdEnabled").value == "false") {
comboPLACEDELIVERY.disable(true);
}
//
comboPLACEDELIVERY.setOptionWidth(150);
comboPLACEDELIVERY.attachEvent("onOpen", function () {
if (comboPLACEDELIVERY.getOptionByIndex(0) == null) {
comboPLACEDELIVERY.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=");
}
});
comboPLACEDELIVERY.attachEvent("onBlur", function () {
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?edicode=" + comboPLACEDELIVERY.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbPLACEDELIVERYID").value = loader.xmlDoc.responseText;
}
});
comboPLACEDELIVERY.attachEvent("onChange", function () {
$("hd_comboPLACEDELIVERY").value = comboPLACEDELIVERY.getComboText().trim().toUpperCase();
comboPLACEDELIVERY.setComboText($("hd_comboPLACEDELIVERY").value);
});
comboPLACEDELIVERY.setComboText($("hd_comboPLACEDELIVERY").value);
//检索
//comboPLACEDELIVERY.enableFilteringMode(true);
comboPLACEDELIVERY.attachEvent("onKeyPressed", function (keyCode) {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboPLACEDELIVERY.getComboText().trim()) {
var enterValue = comboPLACEDELIVERY.getComboText().toUpperCase();
comboPLACEDELIVERY.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
}
}, 10);
});
comboPLACEDELIVERY.attachEvent("onSelectionChange", function () {
$("hd_comboPLACEDELIVERY").value = comboPLACEDELIVERY.getComboText().trim();
});
}
function initcomboPLA()//收货地
{
comboPLA = dhtmlXComboFromSelect("ddlPLA");
}
function initcomboPLA2()//收货地
{
if ($("hdEnabled").value == "false") {
comboPLA.disable(true);
}
//
comboPLA.setOptionWidth(200);
comboPLA.attachEvent("onOpen", function () {
if (comboPLA.getOptionByIndex(0) == null) {
comboPLA.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=");
}
});
comboPLA.attachEvent("onBlur", function () {
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?edicode=" + comboPLA.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbPLAID").value = loader.xmlDoc.responseText;
}
});
comboPLA.attachEvent("onChange", function () {
$("hd_comboPLA").value = comboPLA.getComboText().trim().toUpperCase();
comboPLA.setComboText($("hd_comboPLA").value);
});
comboPLA.setComboText($("hd_comboPLA").value);
//检索
//comboPLA.enableFilteringMode(true);
comboPLA.attachEvent("onKeyPressed", function (keyCode) {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboPLA.getComboText().trim()) {
var enterValue = comboPLA.getComboText().toUpperCase();
comboPLA.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
}
}, 10);
});
comboPLA.attachEvent("onSelectionChange", function () {
$("hd_comboPLA").value = comboPLA.getComboText().trim();
});
}
function initcomboMIDNUM()//运输中转数
{
comboMIDNUM = dhtmlXComboFromSelect("ddlMIDNUM");
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?mask=0&pos=0");
}
function initcomboMIDNUM2()//运输中转数
{
if ($("hdEnabled").value == "false") {
comboMIDNUM.disable(true);
}
//
comboMIDNUM.attachEvent("onChange", function () {
comboMIDNUM.setComboText($("hd_comboMIDNUM").value);
});
comboMIDNUM.attachEvent("onBlur", function () {
var s1 = comboMIDNUM.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboMIDNUM").value = "";
comboMIDNUM.setComboText($("hd_comboMIDNUM").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboMIDNUM.setComboText(s3);
$("hd_comboMIDNUM").value = s3;
}
else {
comboMIDNUM.setComboText($("hd_comboMIDNUM").value);
}
}
});
comboMIDNUM.setComboText($("hd_comboMIDNUM").value);
comboMIDNUM.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboMIDNUM").value.trim();
if ("" != comboMIDNUM.getComboText().trim()) {
while ("undefined" != typeof comboMIDNUM.getOptionByIndex(filterCount)) {
var comboValue = comboMIDNUM.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboMIDNUM.getComboText().trim().toUpperCase();
$("hd_comboMIDNUM").value = comboMIDNUM.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboMIDNUM.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboMIDNUM").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboMIDNUM.attachEvent("onSelectionChange", function () {
$("hd_comboMIDNUM").value = comboMIDNUM.getComboText().trim();
});
}
function initComboKINDPKGS()//包装类型
{
comboKINDPKGS = dhtmlXComboFromSelect("ddlKINDPKGS");
comboKINDPKGS.loadXML("../FeeCodes/TCodePackageAdapter.aspx?mask=0&pos=0");
comboKINDPKGS.setOptionWidth(100);
comboKINDPKGS.attachEvent("onChange", function () {
comboKINDPKGS.setComboText($("hd_comboKINDPKGS").value);
});
comboKINDPKGS.attachEvent("onBlur", function () {
comboKINDPKGS.setComboText($("hd_comboKINDPKGS").value);
});
comboKINDPKGS.setComboText($("hd_comboKINDPKGS").value);
comboKINDPKGS.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboKINDPKGS").value.trim();
if ("" != comboKINDPKGS.getComboText().trim()) {
while ("undefined" != typeof comboKINDPKGS.getOptionByIndex(filterCount)) {
var comboValue = comboKINDPKGS.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboKINDPKGS.getComboText().trim().toUpperCase();
$("hd_comboKINDPKGS").value = comboKINDPKGS.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboKINDPKGS.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
}
}, 10);
}
});
comboKINDPKGS.attachEvent("onSelectionChange", function () {
$("hd_comboKINDPKGS").value = comboKINDPKGS.getComboText().trim().toUpperCase();
var ii = $("tbTOTALNO").value.trim();
var iii = ii.lastIndexOf(' ');
var iiii = ii.substring(0, iii);
iii = iiii.lastIndexOf(' ');
iiii = ii.substring(0, iii + 1);
$("tbTOTALNO").value = iiii + $("hd_comboKINDPKGS").value + " ONLY.";
});
//
if ($("hdEnabled").value == "false") {
comboKINDPKGS.disable(true);
}
}
function initComboVESSEL()//船名
{
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboVESSEL = dhtmlXComboFromSelect("ddlVESSEL");
comboVESSEL.loadXML("../FeeCodes/TCodeVesselAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
//
comboVOYNO = dhtmlXComboFromSelect("ddlVOYNO");
var strVESSEL = $("hd_comboVESSEL").value;
comboVOYNO.loadXML("../FeeCodes/TCodeVoynoAdapter.aspx?mask=0&pos=0&strVESSEL=" + strVESSEL);
}
function initComboVESSEL2()//船名
{
if ($("hdEnabled").value == "false") {
comboVESSEL.disable(true);
}
//
comboVESSEL.setOptionWidth(200);
comboVESSEL.setComboText($("hd_comboVESSEL").value);
comboVESSEL.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboVESSEL.getComboText().trim()) {
while ("undefined" != typeof comboVESSEL.getOptionByIndex(filterCount)) {
var comboValue = comboVESSEL.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboVESSEL.getComboText().toUpperCase();
$("hd_comboVESSEL").value = comboVESSEL.getComboText().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboVESSEL.selectOption(filterCount, true, true);
$("hd_comboVESSEL").value = comboVESSEL.getComboText().trim();
break;
}
++filterCount;
}
}
}, 10);
}
});
comboVESSEL.attachEvent("onBlur", function () {
//tbVESSELID
var loader = dhtmlxAjax.getSync("../FeeCodes/TCodeDisportAdapter.aspx?edicode=" + comboVESSEL.getComboText().trim() + "&val=" + newGuid());
s1 = loader.xmlDoc.responseText;
if (s1.trim() != "") {
$("tbVESSELID").value = loader.xmlDoc.responseText;
}
//
//$("hd_comboVOYNO").value="";
initComboVOYNO();
});
comboVESSEL.attachEvent("onChange", function () {
comboVESSEL.setComboText($("hd_comboVESSEL").value);
});
comboVESSEL.attachEvent("onSelectionChange", function () {
$("hd_comboVESSEL").value = comboVESSEL.getComboText().trim();
});
}
function initComboVOYNO()//航次
{
var strVESSEL;
try {
strVESSEL = comboVESSEL.getSelectedValue().trim(); //$("hd_comboVESSEL").value;
}
catch (e) {
strVESSEL = "";
}
//var strVESSEL=comboVESSEL.getSelectedValue().trim();//$("hd_comboVESSEL").value;
comboVOYNO.loadXML("../FeeCodes/TCodeVoynoAdapter.aspx?mask=0&pos=0&strVESSEL=" + strVESSEL);
comboVOYNO.setComboText($("hd_comboVOYNO").value);
//
if ($("hdEnabled").value == "false") {
comboVOYNO.disable(true);
}
//
comboVOYNO.attachEvent("onChange", function () {
comboVOYNO.setComboText($("hd_comboVOYNO").value);
});
comboVOYNO.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboVOYNO.getComboText().trim()) {
while ("undefined" != typeof comboVOYNO.getOptionByIndex(filterCount)) {
var comboValue = comboVOYNO.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboVOYNO.getComboText().trim().toUpperCase();
$("hd_comboVOYNO").value = comboVOYNO.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboVOYNO.selectOption(filterCount, true, true);
break;
}
++filterCount;
}
}
}, 10);
}
});
comboVOYNO.attachEvent("onSelectionChange", function () {
$("hd_comboVOYNO").value = comboVOYNO.getComboText().trim();
});
}
function initComboBSSOURCE()//市场来源大类
{
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboBSSOURCE = dhtmlXComboFromSelect("ddlBSSOURCE");
comboBSSOURCE.loadXML("../FeeCodes/TCodeSourceAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
//
comboBSSOURCEDETAIL = dhtmlXComboFromSelect("ddlBSSOURCEDETAIL");
var strBSSOURCE = $("hd_comboBSSOURCE2").value;
comboBSSOURCEDETAIL.loadXML("../FeeCodes/TCodeSourceDetailAdapter.aspx?mask=0&pos=0&strSOURCEID=" + strBSSOURCE);
}
function initComboBSSOURCE2()//市场来源大类
{
if ($("hdEnabled").value == "false") {
comboBSSOURCE.disable(true);
}
//
comboBSSOURCE.readonly(true);
comboBSSOURCE.setComboText($("hd_comboBSSOURCE").value);
comboBSSOURCE.attachEvent("onBlur", function () {
$("hd_comboBSSOURCEDETAIL").value = "";
initComboBSSOURCEDETAIL();
});
comboBSSOURCE.attachEvent("onChange", function () {
comboBSSOURCE.setComboText($("hd_comboBSSOURCE").value);
});
comboBSSOURCE.attachEvent("onSelectionChange", function () {
$("hd_comboBSSOURCE").value = comboBSSOURCE.getComboText().trim();
$("hd_comboBSSOURCE2").value = comboBSSOURCE.getSelectedValue().trim();
});
}
function initComboBSSOURCEDETAIL()//市场来源细类
{
var strBSSOURCE;
try {
strBSSOURCE = comboBSSOURCE.getSelectedValue().trim(); //$("hd_comboBSSOURCE").value;
}
catch (e) {
strBSSOURCE = "";
}
comboBSSOURCEDETAIL.loadXML("../FeeCodes/TCodeSourceDetailAdapter.aspx?mask=0&pos=0&strSOURCEID=" + strBSSOURCE);
comboBSSOURCEDETAIL.setComboText($("hd_comboBSSOURCEDETAIL").value);
//
if ($("hdEnabled").value == "false") {
comboBSSOURCEDETAIL.disable(true);
}
//
comboBSSOURCEDETAIL.attachEvent("onChange", function () {
comboBSSOURCEDETAIL.setComboText($("hd_comboBSSOURCEDETAIL").value);
});
comboBSSOURCEDETAIL.attachEvent("onSelectionChange", function () {
$("hd_comboBSSOURCEDETAIL").value = comboBSSOURCEDETAIL.getComboText().trim();
});
comboBSSOURCEDETAIL.readonly(true);
}
function initComboOPERATOR()//客户的操作人员
{
//生成
comboOPERATOR = dhtmlXComboFromSelect("ddlOPERATOR");
comboOPERATOR.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISOPERATOR&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboOPERATOR3()//客户的操作人员
{
comboOPERATOR.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISOPERATOR&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboOPERATOR2()//客户的操作人员
{
if ($("hdEnabled").value == "false") {
comboOPERATOR.disable(true);
}
//
comboOPERATOR.attachEvent("onChange", function () {
comboOPERATOR.setComboText($("hd_comboOPERATOR").value);
});
comboOPERATOR.setComboText($("hd_comboOPERATOR").value);
comboOPERATOR.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboOPERATOR").value.trim();
if ("" != comboOPERATOR.getComboText().trim()) {
while ("undefined" != typeof comboOPERATOR.getOptionByIndex(filterCount)) {
var comboValue = comboOPERATOR.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboOPERATOR.getComboText().trim().toUpperCase();
$("hd_comboOPERATOR").value = comboOPERATOR.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboOPERATOR.selectOPERATORtion(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboOPERATOR").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboOPERATOR.attachEvent("onSelectionChange", function () {
$("hd_comboOPERATOR").value = comboOPERATOR.getComboText().trim();
$("hd_comboOPERATORCODE").value = comboOPERATOR.getSelectedValue().trim();
//
var loader2 = dhtmlxAjax.getSync("../FeeCodes/OPERATORCODEAdapter.aspx?rName=ISOPERATOR&SHOWNAME=" + escape($("hd_comboOPERATOR").value) + "&val=" + newGuid());
var stel = loader2.xmlDoc.responseText;
if (stel != "") {
var items = new Array();
items = stel.split("&&"); //这里是以换行符作为分界
if (items != null && items.length > 0) {
$("tbOPERATORTEL").value = items[0].trim();
$("tbOPERATORFAX").value = items[1].trim();
$("tbOPERATOREMAIL").value = items[2].trim();
}
}
});
}
function initComboFINANCIALSTAFF()//客户的财务人员
{
//生成
comboFINANCIALSTAFF = dhtmlXComboFromSelect("ddlFINANCIALSTAFF");
comboFINANCIALSTAFF.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISFINANCIALSTAFF&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboFINANCIALSTAFF3()//客户的财务人员
{
comboFINANCIALSTAFF.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISFINANCIALSTAFF&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboFINANCIALSTAFF2()//客户的财务人员
{
if ($("hdEnabled").value == "false") {
comboFINANCIALSTAFF.disable(true);
}
//
comboFINANCIALSTAFF.attachEvent("onChange", function () {
comboFINANCIALSTAFF.setComboText($("hd_comboFINANCIALSTAFF").value);
});
comboFINANCIALSTAFF.setComboText($("hd_comboFINANCIALSTAFF").value);
comboFINANCIALSTAFF.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboFINANCIALSTAFF").value.trim();
if ("" != comboFINANCIALSTAFF.getComboText().trim()) {
while ("undefined" != typeof comboFINANCIALSTAFF.getOptionByIndex(filterCount)) {
var comboValue = comboFINANCIALSTAFF.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboFINANCIALSTAFF.getComboText().trim().toUpperCase();
$("hd_comboFINANCIALSTAFF").value = comboFINANCIALSTAFF.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboFINANCIALSTAFF.selectFINANCIALSTAFFtion(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboFINANCIALSTAFF").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboFINANCIALSTAFF.attachEvent("onSelectionChange", function () {
$("hd_comboFINANCIALSTAFF").value = comboFINANCIALSTAFF.getComboText().trim();
$("hd_comboFINANCIALSTAFFCODE").value = comboFINANCIALSTAFF.getSelectedValue().trim();
//
var loader2 = dhtmlxAjax.getSync("../FeeCodes/OPERATORCODEAdapter.aspx?rName=ISFINANCIALSTAFF&SHOWNAME=" + escape($("hd_comboFINANCIALSTAFF").value) + "&val=" + newGuid());
var stel = loader2.xmlDoc.responseText;
if (stel != "") {
var items = new Array();
items = stel.split("&&"); //这里是以换行符作为分界
if (items != null && items.length > 0) {
$("tbFINANCIALSTAFFTEL").value = items[0].trim();
$("tbFINANCIALSTAFFFAX").value = items[1].trim();
$("tbFINANCIALSTAFFEMAIL").value = items[2].trim();
}
}
});
}
function initComboSALEDEPT()//所属业务部门
{
//生成
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboSALEDEPT = dhtmlXComboFromSelect("ddlSALEDEPT");
comboSALEDEPT.loadXML("../FeeCodes/SALEDEPTAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
}
function initComboSALEDEPT2()//所属业务部门
{
if ($("hdEnabled").value == "false") {
comboSALEDEPT.disable(true);
}
//
comboSALEDEPT.attachEvent("onChange", function () {
comboSALEDEPT.setComboText($("hd_comboSALEDEPT").value);
});
comboSALEDEPT.attachEvent("onBlur", function () {
var s1 = comboSALEDEPT.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboSALEDEPT").value = "";
comboSALEDEPT.setComboText($("hd_comboSALEDEPT").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboSALEDEPT.setComboText(s3);
$("hd_comboSALEDEPT").value = s3;
}
else {
comboSALEDEPT.setComboText($("hd_comboSALEDEPT").value);
}
}
});
comboSALEDEPT.setComboText($("hd_comboSALEDEPT").value);
comboSALEDEPT.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboSALEDEPT").value.trim();
if ("" != comboSALEDEPT.getComboText().trim()) {
while ("undefined" != typeof comboSALEDEPT.getOptionByIndex(filterCount)) {
var comboValue = comboSALEDEPT.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboSALEDEPT.getComboText().trim().toUpperCase();
$("hd_comboSALEDEPT").value = comboSALEDEPT.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboSALEDEPT.selectSALEDEPTtion(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboSALEDEPT").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboSALEDEPT.attachEvent("onSelectionChange", function () {
$("hd_comboSALEDEPT").value = comboSALEDEPT.getComboText().trim();
});
}
function initComboPACKINGTYPE()//装箱类型
{
comboPACKINGTYPE = dhtmlXComboFromSelect("ddlPACKINGTYPE");
comboPACKINGTYPE.loadXML("../FeeCodes/PACKINGTYPEAdapter.aspx?mask=0&pos=0");
}
function initComboPACKINGTYPE2()//装箱类型
{
if ($("hdEnabled").value == "false") {
comboPACKINGTYPE.disable(true);
}
//
comboPACKINGTYPE.readonly(true);
comboPACKINGTYPE.attachEvent("onChange", function () { $("hd_comboPACKINGTYPE").value = comboPACKINGTYPE.getSelectedText(); });
comboPACKINGTYPE.setComboText($("hd_comboPACKINGTYPE").value);
}
function initComboBLTYPE()//装运方式
{
comboBLTYPE = dhtmlXComboFromSelect("ddlBLTYPE");
comboBLTYPE.loadXML("../FeeCodes/BLTYPEAdapter.aspx?mask=0&pos=0");
}
function initComboBLTYPE2()//装运方式
{
//comboBLTYPE.disable(false);
if ($("hdEnabled").value == "false") {
comboBLTYPE.disable(true);
}
//
if ($("hd_comboBLTYPE").value == "整箱" || $("hd_comboBLTYPE").value == "拼箱主票") {
document.getElementById('divadd').style.display = "";
//document.getElementById('divsave').style.display = "";
document.getElementById('divrefresh').style.display = "";
document.getElementById('divdel').style.display = "";
document.getElementById('divrollback').style.display = "";
document.getElementById('divctn').style.display = "";
document.getElementById('btCTN').style.display = "";
}
else {
document.getElementById('divadd').style.display = "none";
//document.getElementById('divsave').style.display = "none";
document.getElementById('divrefresh').style.display = "none";
document.getElementById('divdel').style.display = "none";
document.getElementById('divrollback').style.display = "none";
document.getElementById('divctn').style.display = "none";
document.getElementById('btCTN').style.display = "none";
}
//
comboBLTYPE.readonly(true);
comboBLTYPE.setComboText($("hd_comboBLTYPE").value);
comboBLTYPE.attachEvent("onSelectionChange", function () {
var spd = comboBLTYPE.getComboText().trim();
if (spd == "拼箱单票" || spd == "拼箱分票") {
var loader = dhtmlxAjax.getSync("../FeeCodes/BLTYPEAdapter.aspx?BSNO=" + $("hdGid").value + "&val=" + newGuid());
var sCount = loader.xmlDoc.responseText;
if (sCount != "0" && sCount != "") {
comboBLTYPE.setComboText($("hd_comboBLTYPE").value);
alert("拼箱单票、拼箱分票是不允许添加集装箱信息的,因此请先删除集装箱信息!");
return;
}
}
//
$("hd_comboBLTYPE").value = comboBLTYPE.getComboText().trim();
//
if ($("hd_comboBLTYPE").value == "整箱" || $("hd_comboBLTYPE").value == "拼箱主票") {
document.getElementById('divadd').style.display = "";
//document.getElementById('divsave').style.display = "";
document.getElementById('divrefresh').style.display = "";
document.getElementById('divdel').style.display = "";
document.getElementById('divrollback').style.display = "";
document.getElementById('divctn').style.display = "";
document.getElementById('btCTN').style.display = "";
}
else {
document.getElementById('divadd').style.display = "none";
//document.getElementById('divsave').style.display = "none";
document.getElementById('divrefresh').style.display = "none";
document.getElementById('divdel').style.display = "none";
document.getElementById('divrollback').style.display = "none";
document.getElementById('divctn').style.display = "none";
document.getElementById('btCTN').style.display = "none";
}
});
}
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 = "SEAOP";
var dbSourceID = "";
var userID = "";
var url = "../Reports/ReportService.aspx?handle=printseaop&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();
}
</script>
<!--dropdownlist 无刷新 联动-->
<script type="text/javascript">
function load(state) {
var drp2 = document.getElementById("ddlBSSOURCEDETAIL");
for (i = drp2.length; i >= 0; i--) {
drp2.options.remove(i);
}
var oHttpReq = new ActiveXObject("MSXML2.XMLHTTP");
var oDoc = new ActiveXObject("MSXML2.DOMDocument");
// 这里使用escape可以解决中文的问题
oHttpReq.open("POST", "../FeeCodes/TCodeSourceDetailAdapter.aspx?state=" + escape(state), false);
oHttpReq.send("");
result = oHttpReq.responseText;
oDoc.loadXML(result);
items = oDoc.selectNodes("//NewDataSet/Table");
for (var item = items.nextNode(); item; item = items.nextNode()) {
var city = item.nodeTypedValue;
var newOption = document.createElement("OPTION");
newOption.text = city;
newOption.value = city;
drp2.options.add(newOption);
}
}
</script>
<!--数字键盘锁-->
<script type="text/javascript">
function fun() {
//"8"退格,"13"回车,"45"负号“46”英文的点“xxx<48 and xxx>57”指数值键
if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode != 13 && event.keyCode != 45 && event.keyCode != 46)
{ alert("错误,只能填写整数!"); return false; }
}
</script>
<!--件数、重量、平方等计数-->
<script type="text/javascript">
function IsNumeric(s) {
var inum = s.replace(/[^\d]/g, '');
var bReturn = true;
if (inum == "" || inum == null || inum == NaN) {
bReturn = false;
}
return bReturn;
}
function onBlurGROSSWEIGHT() {
var iums = 0;
var strGROSSWEIGHT = $("tbGROSSWEIGHT").value.trim();
if (strGROSSWEIGHT != null && strGROSSWEIGHT != "") {
var items = new Array();
items = strGROSSWEIGHT.split("\r\n"); //这里是以换行符作为分界
if (items != null && items.length > 0) {
try {
for (var i = 0; i < items.length; i++) {
iums += parseFloat(items[i].trim());
}
}
catch (e) {
alert('“Gross Weight 毛重(公斤)”输入的字符串,格式不正确!');
return;
}
}
}
$("tbKGS").value = iums.toFixed(4).toString();
}
function onBlurMEASUREMENT() {
var iums = 0;
var strMEASUREMENT = $("tbMEASUREMENT").value.trim();
if (strMEASUREMENT != null && strMEASUREMENT != "") {
var items = new Array();
items = strMEASUREMENT.split("\r\n"); //这里是以换行符作为分界
if (items != null && items.length > 0) {
try {
for (var i = 0; i < items.length; i++) {
iums += parseFloat(items[i].trim());
}
}
catch (e) {
alert('“Measurement 尺码(立方米)”输入的字符串,格式不正确!');
return;
}
}
}
$("tbCBM").value = iums.toFixed(2).toString();
}
function onBlurNOPKGS() {
var iums = 0;
var sums = "";
var strNOPKGS = $("tbNOPKGS").value.trim();
if (strNOPKGS != null && strNOPKGS != "") {
var items = new Array();
items = strNOPKGS.split("\r\n"); //这里是以换行符作为分界
var ii = new Array(items.length);
var ss = new Array(items.length);
if (items != null && items.length > 0) {
for (var i = 0; i < items.length; i++) {
for (var j = 0; j < items[i].length; j++) {
var s = items[i].trim().substring(j, j + 1);
var tf = IsNumeric(s);
if (tf) {
ii[i] = ii[i] + s;
ss[i] = "";
}
else {
ss[i] = items[i].trim().substring(j).toUpperCase();
break;
}
}
iums += parseInt(ii[i].substring(9));
}
}
for (var k = 0; k < ss.length; k++) {
if (ss.length == 1) {
sums = ss[k].toString().trim().toUpperCase();
break;
}
if (ss[k] == ss[ss.length - 1]) {
sums = ss[k].toString().trim().toUpperCase();
}
else {
sums = "PACKAGES";
break;
}
}
}
$("tbPKGS").value = iums.toString();
$("hd_comboKINDPKGS").value = sums;
//件数大写
var loaderText3 = dhtmlxAjax.getSync("../FeeCodes/TOTALNOAdapter.aspx?iums=" + iums + "&sums=" + sums + "&uid=" + newID());
var sldfjlksd = loaderText3.xmlDoc.responseText;
$("tbTOTALNO").value = sldfjlksd;
comboKINDPKGS.setComboText($("hd_comboKINDPKGS").value);
}
function newID() {
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 onchangeISSUETYPE() {
var loaderCTN = dhtmlxAjax.getSync("../FeeCodes/OpBlissueAdapter.aspx?BSNO=" + $("hdGid").value + "&val=" + newGuid());
var strCTN = loaderCTN.xmlDoc.responseText;
if (strCTN == "") {
if ($("ddlISSUETYPE").value == "正本") {
$("ddlNOBILL").value = "THREE";
}
else if ($("ddlISSUETYPE").value == "电放") {
$("ddlNOBILL").value = "ZERO";
}
else {
$("ddlNOBILL").value = "";
}
}
else {
$("ddlISSUETYPE").value = strCTN;
alert("已做提单签收,禁止修改签单方式,如要修改,需要先撤销签收!");
}
}
function onchangeBLFRT() {
var sBLFRT = $("ddlBLFRT").value.trim();
if (sBLFRT == "FREIGHT PREPAID")//PP
{
$("tbBLFRT").value = $("hd_comboPORTLOAD").value; //POL
}
else if (sBLFRT == "FREIGHT COLLECT")//CC
{
$("tbBLFRT").value = $("hd_comboPORTDISCHARGE").value; //POD
}
else {
$("tbBLFRT").value = ""; //其他
}
}
function onchangeBLFRTload() {
var sBLFRT = $("ddlBLFRT").value.trim();
if (sBLFRT == "FREIGHT PREPAID")//PP
{
$("tbBLFRT").value = $("hd_comboPORTLOAD").value; //POL
}
else if (sBLFRT == "FREIGHT COLLECT")//CC
{
$("tbBLFRT").value = $("hd_comboPORTDISCHARGE").value; //POD
}
}
function onclickCTN() {
//http://www.qingdaoport.net/ywzx/qqct/dpcx/cargoDya.jsp?tdh=POBUTAO110901073
var loaderCTN = dhtmlxAjax.getSync("../FeeCodes/QQCTAdapter.aspx?BSNO=" + $("hdGid").value + "&val=" + newGuid());
var strCTN = loaderCTN.xmlDoc.responseText;
if (strCTN != "") {
alert(strCTN);
}
else {
refreshRecv();
window.parent.opener.location.href = window.parent.opener.location.href;
}
return;
}
//是否为数字,且数值格式是否正确
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>
<!--页面重新加载-->
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script type="text/javascript">
function reloadParent(strBSNO, strHandle) {
//alert("strBSNO="+strBSNO);
var parentObj = window.parent.location;
var oldUrl = parentObj.href;
var idIndex = oldUrl.indexOf("&id"); //alert(oldUrl);
//
var newUrl = ""; strHandle
if (strHandle == "addfull") {
var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
newUrl = oldUrl.substring(0, handleIndex);
window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl + "handle=edit&opstatus=op_seae&id=" + strBSNO;
}
else if (strHandle == "edit") {
//newUrl = oldUrl.substring(0,idIndex+4);//alert(oldUrl.substring(0,idIndex));
//window.parent.opener.location.href = window.parent.opener.location.href;
//parentObj.href = newUrl+strBSNO;
}
else if (strHandle == "add") {
var handleIndex = oldUrl.indexOf("handle="); //alert(handleIndex);
newUrl = oldUrl.substring(0, handleIndex);
window.parent.opener.location.href = window.parent.opener.location.href;
parentObj.href = newUrl + "handle=edit&opstatus=op_seae&id=" + strBSNO;
}
//
//alert("成功提交!");
}
</script>
<!--蒙板-->
<script type="text/javascript">
function dialog() {
this.width = 450;
this.height = 360;
this.title_height = 20;
this.html = '';
this.title = '';
var self = this;
var bgObj, msgObj, titleObj;
this.close = function () {
document.body.removeChild(document.getElementById("bgDiv"));
document.getElementById("msgDiv").removeChild(document.getElementById("msgTitle"));
document.body.removeChild(document.getElementById("msgDiv"));
}
this.show = function () {
var msgw, msgh, bordercolor;
msgw = self.width;
msgh = self.height;
bordercolor = "#336699";
titlecolor = "#99CCFF";
var sWidth, sHeight;
sWidth = document.body.offsetWidth;
sHeight = screen.height;
bgObj = document.createElement("div");
bgObj.setAttribute('id', 'bgDiv');
bgObj.style.position = "absolute";
bgObj.style.top = "0";
bgObj.style.background = "#777";
bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
bgObj.style.opacity = "0.6";
bgObj.style.left = "0";
bgObj.style.width = sWidth + "px";
bgObj.style.height = sHeight + "px";
bgObj.style.zIndex = "10000";
document.body.appendChild(bgObj);
msgObj = document.createElement("div")
msgObj.setAttribute("id", "msgDiv");
msgObj.setAttribute("align", "center");
msgObj.style.background = "white";
msgObj.style.border = "1px solid " + bordercolor;
msgObj.style.position = "absolute";
msgObj.style.left = "50%";
msgObj.style.top = "30%";
msgObj.style.font = "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
msgObj.style.marginLeft = "-225px";
msgObj.style.marginTop = -75 + document.documentElement.scrollTop + "px";
msgObj.style.width = msgw + "px";
msgObj.style.height = msgh + "px";
msgObj.style.textAlign = "center";
msgObj.style.lineHeight = "25px";
msgObj.style.zIndex = "10001";
titleObj = document.createElement("h4");
titleObj.setAttribute("id", "msgTitle");
titleObj.setAttribute("align", "center");
titleObj.style.margin = "0";
titleObj.style.padding = "3px";
titleObj.style.background = bordercolor;
titleObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
titleObj.style.opacity = "0.75";
titleObj.style.border = "1px solid " + bordercolor;
titleObj.style.height = self.title_height + "px";
titleObj.style.font = "12px Verdana, Geneva, Arial, Helvetica, sans-serif";
titleObj.style.color = "white";
titleObj.style.cursor = "pointer";
titleObj.innerHTML = self.title;
//titleObj.onclick=function(){self.close();}
document.body.appendChild(msgObj);
document.getElementById("msgDiv").appendChild(titleObj);
var txt = document.createElement("div");
txt.style.margin = "1em 0"
txt.setAttribute("id", "msgTxt");
txt.innerHTML = self.html;
document.getElementById("msgDiv").appendChild(txt);
}
}
function msgBox() {
var dg = new dialog();
dg.html = "程序正在提交,请稍等!";
//dg.html+="<input type=button onclick='new dialog().close();' value='确定'>";
dg.width = 200;
dg.height = 100;
dg.title = "标题";
dg.show();
}
function divdadd() {
document.getElementById('divadd').style.display = "";
//document.getElementById('divsave').style.display = "";
document.getElementById('divrefresh').style.display = "";
document.getElementById('divdel').style.display = "none";
document.getElementById('divrollback').style.display = "none";
document.getElementById('divctn').style.display = "none";
document.getElementById('btCTN').style.display = "none";
}
function divdisplay() {
document.getElementById('divadd').style.display = "";
//document.getElementById('divsave').style.display = "";
document.getElementById('divrefresh').style.display = "";
document.getElementById('divdel').style.display = "";
document.getElementById('divrollback').style.display = "";
document.getElementById('divctn').style.display = "";
document.getElementById('btCTN').style.display = "";
}
function setEnter() {
if ($("hd_comboCUSTOMERNAME").value.trim() == "") {
alert("委托单位不允许为空!");
return;
}
//
$("hdEnter").value = "0";
var bl = getdateformat();
if (bl) {
msgBox();
divdisplay();
saveRecvChange();
}
}
function getdateformat() {
var bl = false;
var alt = "";
if ($("tbETA").value != "") {
bl = CheckDate($("tbETA").value);
if (!bl) {
alt += "预抵日期yyyy-MM-dd、";
}
}
if ($("tbETD").value != "") {
bl = CheckDate($("tbETD").value);
if (!bl) {
alt += "开船日期yyyy-MM-dd、";
}
}
//
if ($("tbSTLDATE").value != "") {
bl = CheckDate($("tbSTLDATE").value);
if (!bl) {
alt += "结算日期yyyy-MM-dd、";
}
}
if ($("hdSTLDATE").value != "") {
bl = CheckDate($("hdSTLDATE").value);
if (!bl) {
alt += "结算日期yyyy-MM-dd、";
}
}
//
if ($("tbISSUEDATE").value != "") {
bl = CheckDate($("tbISSUEDATE").value);
if (!bl) {
alt += "签单日期yyyy-MM-dd、";
}
}
//
if (alt == "") {
return true;
}
else {
alt = alt.substring(0, alt.length - 1);
alert(alt + "的格式出错!");
return false;
}
}
//
function onclickCUSTOMERNAME() {
if ($("hd_comboCUSTOMERNAME").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickYARD() {
if ($("hd_comboYARD").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboYARD").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickCARRIER() {
if ($("hd_comboCARRIER").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboCARRIER").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickFORWARDER() {
if ($("hd_comboFORWARDER").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboFORWARDER").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickCUSTOMSER() {
if ($("hd_comboCUSTOMSER").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboCUSTOMSER").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickWAREHOUSE() {
if ($("hd_comboWAREHOUSE").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboWAREHOUSE").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function onclickTRUCKER() {
if ($("hd_comboTRUCKER").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboWAREHOUSE").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function lbCUSTOMERNAMEonMouseOver() {
document.getElementById('lbCUSTOMERNAME').style.color = "#0000FF";
document.getElementById('lbCUSTOMERNAME').style.cursor = "hand";
document.getElementById('lbCUSTOMERNAME').style["textDecoration"] = "underline";
}
function lbCUSTOMERNAMEonMouseOut() {
document.getElementById('lbCUSTOMERNAME').style.color = "#FF0000";
document.getElementById('lbCUSTOMERNAME').style.cursor = "auto";
document.getElementById('lbCUSTOMERNAME').style["textDecoration"] = "";
}
//
function lbYARDonMouseOver() {
document.getElementById('lbYARD').style.color = "#0000FF";
document.getElementById('lbYARD').style.cursor = "hand";
document.getElementById('lbYARD').style["textDecoration"] = "underline";
}
function lbYARDonMouseOut() {
document.getElementById('lbYARD').style.color = "#75787C";
document.getElementById('lbYARD').style.cursor = "auto";
document.getElementById('lbYARD').style["textDecoration"] = "underline";
}
//
function lbCARRIERonMouseOver() {
document.getElementById('lbCARRIER').style.color = "#0000FF";
document.getElementById('lbCARRIER').style.cursor = "hand";
document.getElementById('lbCARRIER').style["textDecoration"] = "underline";
}
function lbCARRIERonMouseOut() {
document.getElementById('lbCARRIER').style.color = "#75787C";
document.getElementById('lbCARRIER').style.cursor = "auto";
document.getElementById('lbCARRIER').style["textDecoration"] = "underline";
}
//
function lbFORWARDERonMouseOver() {
document.getElementById('lbFORWARDER').style.color = "#0000FF";
document.getElementById('lbFORWARDER').style.cursor = "hand";
document.getElementById('lbFORWARDER').style["textDecoration"] = "underline";
}
function lbFORWARDERonMouseOut() {
document.getElementById('lbFORWARDER').style.color = "#75787C";
document.getElementById('lbFORWARDER').style.cursor = "auto";
document.getElementById('lbFORWARDER').style["textDecoration"] = "underline";
}
//
function lbCUSTOMSERonMouseOver() {
document.getElementById('lbCUSTOMSER').style.color = "#0000FF";
document.getElementById('lbCUSTOMSER').style.cursor = "hand";
document.getElementById('lbCUSTOMSER').style["textDecoration"] = "underline";
}
function lbCUSTOMSERonMouseOut() {
document.getElementById('lbCUSTOMSER').style.color = "#75787C";
document.getElementById('lbCUSTOMSER').style.cursor = "auto";
document.getElementById('lbCUSTOMSER').style["textDecoration"] = "underline";
}
//
function lbWAREHOUSEonMouseOver() {
document.getElementById('lbWAREHOUSE').style.color = "#0000FF";
document.getElementById('lbWAREHOUSE').style.cursor = "hand";
document.getElementById('lbWAREHOUSE').style["textDecoration"] = "underline";
}
function lbWAREHOUSEonMouseOut() {
document.getElementById('lbWAREHOUSE').style.color = "#75787C";
document.getElementById('lbWAREHOUSE').style.cursor = "auto";
document.getElementById('lbWAREHOUSE').style["textDecoration"] = "underline";
}
//
function lbTRUCKERonMouseOver() {
document.getElementById('lbTRUCKER').style.color = "#0000FF";
document.getElementById('lbTRUCKER').style.cursor = "hand";
document.getElementById('lbTRUCKER').style["textDecoration"] = "underline";
}
function lbTRUCKERonMouseOut() {
document.getElementById('lbTRUCKER').style.color = "#75787C";
document.getElementById('lbTRUCKER').style.cursor = "auto";
document.getElementById('lbTRUCKER').style["textDecoration"] = "underline";
}
//
function getonload() {
initComboOP2();
initComboSALE2();
initComboDOC2();
initComboCUSTISSTORAGE();
initComboCUSTOMERNAME2();
initComboSHIPPERID2();
initComboCONSIGNEEID2();
initComboNOTIFYPARTYID2();
initComboAGENTID2();
initComboGOODSNAME2();
initComboYARD2();
initComboCARRIER2();
initComboFORWARDER2();
initComboCUSTOMSER2();
initComboWAREHOUSE2();
initComboLANE2();
initComboVESSEL2();
initComboPORTLOAD2();
//initComboBLFRT2();
//initComboISSTORAGE();
initComboPORTDISCHARGE2();
initComboDESTINATION2();
initComboPLACEDELIVERY2();
initComboPACKINGTYPE2();
initComboVOYNO();
initComboBSSOURCE2();
initComboBSSOURCEDETAIL();
initComboOPERATOR2();
initComboFINANCIALSTAFF2();
initComboSALEDEPT2();
initComboTRUCKER2();
initcomboPLA2();
initComboBLTYPE2();
initGrid();
//selSTLDATE();
//onchangeBLFRTload();
}
//回车键控制
document.onkeypress = function () {
if (event.keyCode == 13) {
if (event.srcElement.tagName == 'TEXTAREA') {
return true;
}
//window.event.keyCode=9;
return false;
}
}
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 ShowDetailFresh() {
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboOP.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isOperator&userID=" + strUserID);
comboSALE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isSaleMan&userID=" + strUserID);
comboDOC.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isDocument&userID=" + strUserID);
comboCUSTSERVICE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isCustomsService&userID=" + strUserID);
comboCUSTOMERNAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCONTROLLER");
comboSHIPPERID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=2&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboCONSIGNEEID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=1&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboNOTIFYPARTYID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=3&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboAGENTID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=4&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboGOODSNAME.loadXML("../FeeCodes/TCodeGoodsAdapter.aspx?mask=0&pos=0");
comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
comboTRUCKER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISTRUCK");
comboCARRIER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCARRIER");
comboFORWARDER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISBOOKING");
comboCUSTOMSER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
comboWAREHOUSE.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISWAREHOUSE");
comboLANE.loadXML("../FeeCodes/TCodeLanesAdapter.aspx?mask=0&pos=0");
//comboBLFRT.loadXML("../FeeCodes/TCodeFrtAdapter.aspx?mask=0&pos=0");付费方式
//comboSERVICE.loadXML("../FeeCodes/TCodeServiceAdapter.aspx?mask=0&pos=0"); //运输条款
comboPORTLOAD.loadXML("../FeeCodes/TCodeLoadportAdapter.aspx?mask=0&pos=0");
var enterValue = comboPORTDISCHARGE.getComboText().toUpperCase();
comboPORTDISCHARGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
var enterValue = comboDESTINATION.getComboText().toUpperCase();
comboDESTINATION.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
var enterValue = comboPLACEDELIVERY.getComboText().toUpperCase();
comboPLACEDELIVERY.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
var enterValue = comboPLA.getComboText().toUpperCase();
comboPLA.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?mask=0&pos=0&strSel=" + enterValue);
//comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?mask=0&pos=0");
comboKINDPKGS.loadXML("../FeeCodes/TCodePackageAdapter.aspx?mask=0&pos=0");
comboVESSEL.loadXML("../FeeCodes/TCodeVesselAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
comboVOYNO.loadXML("../FeeCodes/TCodeVoynoAdapter.aspx?mask=0&pos=0&strVESSEL=" + $("hd_comboVESSEL").value);
comboBSSOURCE.loadXML("../FeeCodes/TCodeSourceAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
comboBSSOURCEDETAIL.loadXML("../FeeCodes/TCodeSourceDetailAdapter.aspx?mask=0&pos=0&strSOURCEID=" + $("hd_comboBSSOURCE2").value);
comboOPERATOR.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISOPERATOR&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboFINANCIALSTAFF.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISFINANCIALSTAFF&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
comboSALEDEPT.loadXML("../FeeCodes/SALEDEPTAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
comboPACKINGTYPE.loadXML("../FeeCodes/PACKINGTYPEAdapter.aspx?mask=0&pos=0");
comboBLTYPE.loadXML("../FeeCodes/BLTYPEAdapter.aspx?mask=0&pos=0");
}
/*
function getAbsPoint(e)
{
var x = e.offsetLeft, y = e.offsetTop;
while(e=e.offsetParent)
{
x += e.offsetLeft;
y += e.offsetTop;
}
alert("1.x:"+x+","+"y:"+y);
getPosition();
}
function getPosition(e)
{
//var obj = document.getElementById("tbETA");
//obj.focus();
var rng = event.srcElement.createTextRange();
var x = rng.boundingLeft;
var y = rng.boundingTop+rng.boundingHeight;
alert("2.x:"+x+","+"y:"+y);
var range = document.selection.createRange();
var x = range.boundingLeft;
var y = range.boundingTop+range.boundingHeight;
alert("3.x:"+x+","+"y:"+y);
}
*/
</script>
<!--背景条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.btncss
{
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>
<style type="text/css">
*{ margin:0; padding:0;}
html,body{ width:100%; height:100%; overflow:hidden;}
.containercss{ position:relative; width:100%; height:100%; overflow-y:scroll; overflow-x:auto;}
.topcss{ width:100%; position:absolute; top:0; left:0;}
.boxcss{ height:610px;}
</style>
<!--排序-->
<style type="text/css">
.headStyle a{text-decoration:none;}
</style>
</head>
<body style="background-color: #ECF2FF;" onload="resizeDiv('divTier','divTier','divTier',150);getonload();">
<form id="form1" runat="server" style="background-color: #ECF2FF">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<p class="topcss">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<div class="btnimg"><asp:ImageButton ID="ibAdd" runat="server" onclick="ibAdd_Click" ToolTip="添加" ImageUrl="~/images/icons/btnAdd.gif" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><asp:ImageButton ID="ibFullAdd" runat="server" onclick="ibFullAdd_Click" ToolTip="复制添加" ImageUrl="~/images/cmd-copy.gif" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="ibEnter" runat=server src="../images/icons/save.gif" style="width:16px;" title="保存修改" onclick="setEnter();" class="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><asp:ImageButton ID="ibDel" runat="server" onclick="ibDel_Click" ToolTip="删除" ImageUrl="../images/icons/remove.gif" OnClientClick="return confirm('确定删除吗?')" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<img id="imgFresh" runat=server src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="ibPrint" runat=server src="../images/icons/print.gif" style="width:16px;" title="报表打印" onclick="printAction()" class="cssfont"/></div>
</div>
</div>
</p>
<div id=divTier class="containercss" style="float:left; width:100%;height:500px; overflow-y:scroll; overflow-x:hidden;">
<!-- 选项卡开始 -->
<div class="nTab" style="float:left; width:780px;background-color: #ECF2FF">
<!-- 标题开始 -->
<div class="TabTitle" style="float:left; width:780px;background-color: #ECF2FF">
<ul id="myTab0" style="text-align:center;font-size:12px; ">
<li class="active" onclick="nTabs(this,0);">基本信息</li>
<li class="normal" onclick="nTabs(this,1);">辅助信息</li>
</ul>
</div>
<!-- 内容开始 -->
<div class="TabContent" style="float:left; width:780px;background-color: #ECF2FF">
<div id="myTab0_Content0" style="float:left; width:780px;background-color: #ECF2FF">
<table width=780px>
<tr>
<td width="50px">
<asp:Label ID="Label1" runat="server" Text="业务状态" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:Label ID="lbBSSTATUS" runat="server" BorderStyle="None" CssClass="cssfont"></asp:Label>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label2" runat="server" Text="费用状态" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:Label ID="lbFEESTATUS" runat="server" BorderStyle="None" CssClass="cssfont"></asp:Label>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label3" runat="server" Text="会计期间" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbACCDATE" runat="server" CssClass="txtTab12" ToolTip="例2011-4" onclick="WdatePicker({dateFmt:'yyyy-M'});" MaxLength=7></asp:TextBox>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label4" runat="server" Text="装运方式" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<select id="ddlBLTYPE" name="ddlBLTYPE" runat="server" class="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbCUSTOMERNAME" runat="server" Text="委托单位" width="50px" CssClass="cssfont" onclick="onclickCUSTOMERNAME();" onmouseover="lbCUSTOMERNAMEonMouseOver();" onMouseOut="lbCUSTOMERNAMEonMouseOut();" ForeColor="Red"></asp:Label>
</td>
<td>
<select id="ddlCUSTOMERNAME" runat=server style="width:100px;Height:18px;" class="txtTab12"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label6" runat="server" Text="业务来源" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlBSSOURCE" runat=server style="width:100px" class="txtTab12"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label7" runat="server" Text="来源明细" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlBSSOURCEDETAIL" runat=server style="width:100px" class="txtTab12"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label8" runat="server" Text="所属部门" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlSALEDEPT" name="ddlSALEDEPT" runat="server" class="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label9" runat="server" Text="操作" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlOP" name="ddlOP" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label10" runat="server" Text="揽货人" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlSALE" name="ddlSALE" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label11" runat="server" Text="单证" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlDOC" name="ddlDOC" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="Label12" runat="server" Text="客服" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlCUSTSERVICE" name="ddlCUSTSERVICE" runat="server" class="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td><asp:Label ID="Label13" runat="server" Text="服务项目" width="50px" CssClass="cssfont"></asp:Label></td>
<td colspan=7>
<asp:CheckBox ID="ISFUMIGATION" runat="server" Text="熏蒸"/>
&nbsp;
<asp:CheckBox ID="ISSTORAGE" runat="server" Text="仓储"/>
&nbsp;
<asp:CheckBox ID="ISLAND" runat="server" Text="陆运"/>
&nbsp;
<asp:CheckBox ID="ISCUSTOMS" runat="server" Text="报关"/>
&nbsp;
<asp:CheckBox ID="ISINSPECTION" runat="server" Text="报检"/>
&nbsp;
<asp:CheckBox ID="ISBOOKING" runat="server" Text="订舱"/>
&nbsp;
<asp:CheckBox ID="ISAGENT" runat="server" Text="使用代理"/>
&nbsp;
<asp:CheckBox ID="ISHBLNO" runat="server" Text="分单签单"/>
</td>
</tr>
<tr>
<td colspan=11>
<table width=100%>
<tr>
<td>
<asp:Label ID="Label60" runat="server" Text="结算方式" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlSTLNAME" runat="server" CssClass="txtTab14" onchange="selSTLDATE();" Enabled=false Width=172px Height=22px>
<asp:ListItem>票结</asp:ListItem>
<asp:ListItem>月结</asp:ListItem>
<asp:ListItem>半月结</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td>
<asp:Label ID="Label61" runat="server" Text="结算日期" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbSTLDATE" runat="server" CssClass="txtTab14" onclick="WdatePicker();" Enabled=false></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label17" runat="server" Text="订舱编号" width="50px" CssClass="cssfont"></asp:Label></td>
<td colspan=3>
<asp:TextBox ID="tbORDERNO" runat="server" CssClass="txtTab14" MaxLength="20"></asp:TextBox>
</td>
</tr>
<tr>
<td><asp:Label ID="Label14" runat="server" Text="委托编号" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbCUSTNO" runat="server" CssClass="txtTab14" MaxLength="30"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label15" runat="server" Text="主提单号" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbMBLNO" runat="server" CssClass="txtTab14" MaxLength="30"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label16" runat="server" Text="分提单号" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbHBLNO" runat="server" CssClass="txtTab14" MaxLength="30"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><asp:Label ID="Label18" runat="server" Text="客户操作" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<select id="ddlOPERATOR" name="ddlOPERATOR" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td><asp:Label ID="Label19" runat="server" Text="电话" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbOPERATORTEL" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label20" runat="server" Text="传真" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbOPERATORFAX" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label21" runat="server" Text="Email" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbOPERATOREMAIL" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
</tr>
<tr>
<td><asp:Label ID="Label22" runat="server" Text="客户财务" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<select id="ddlFINANCIALSTAFF" name="ddlFINANCIALSTAFF" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td><asp:Label ID="Label23" runat="server" Text="电话" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbFINANCIALSTAFFTEL" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label24" runat="server" Text="传真" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbFINANCIALSTAFFFAX" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
<td></td>
<td><asp:Label ID="Label25" runat="server" Text="Email" width="50px" CssClass="cssfont"></asp:Label></td>
<td>
<asp:TextBox ID="tbFINANCIALSTAFFEMAIL" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td width="180px"><asp:Label ID="Label26" runat="server" Text="Shipper (发货人)" width="180px" CssClass="cssfont"></asp:Label></td>
<td><select id="ddlSHIPPERID" runat=server style="width:100px"></select></td>
</tr>
<tr>
<td colspan=2>
<asp:TextBox ID="tbSHIPPER" runat="server" CssClass="txtTab12"
TextMode="MultiLine" Height="90px"
style="overflow-y:auto;height:90px;" MaxLength="600" width=100%></asp:TextBox>
</td>
</tr>
<tr>
<td width="180px"><asp:Label ID="Label27" runat="server" Text="Consignee (收货人)" width="180px" CssClass="cssfont"></asp:Label></td>
<td><select id="ddlCONSIGNEEID" runat=server style="width:100px"></select></td>
</tr>
<tr>
<td colspan=2>
<asp:TextBox ID="tbCONSIGNEE" runat="server" CssClass="txtTab12"
TextMode="MultiLine" Height="90px" style="overflow-y:auto;height:90px;" MaxLength="600" width=100%></asp:TextBox>
</td>
</tr>
<tr>
<td width="180px"><asp:Label ID="Label28" runat="server" Text="Notify party (通知人)" width="180px" CssClass="cssfont"></asp:Label></td>
<td><select id="ddlNOTIFYPARTYID" runat=server style="width:100px"></select></td>
</tr>
<tr>
<td colspan=2>
<asp:TextBox ID="tbNOTIFYPARTY" runat="server" CssClass="txtTab12"
TextMode="MultiLine" Height="90px" style="overflow-y:auto;height:90px;" MaxLength="600" width=100%></asp:TextBox>
</td>
</tr>
</table>
</td>
<td></td>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td colspan=5>
<asp:Label ID="Label34" runat="server" Text="集装箱信息" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td colspan=5>
<div style="width:368px;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div id="divadd" runat="server" class="xbtn-img" onclick="divdisplay();addRecvRow()" style="display:block">
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加" class="cssfont"/></div>
</div>
<div id="divsave" runat="server" class="xbtn-img" onclick="divdisplay();saveRecvChange()" style="display:none;">
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改" class="cssfont"/></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="删除" class="cssfont"/></div>
</div>
<div id="divrollback" runat="server" class="xbtn-img" onclick="divdisplay();recoverRecvChange()">
<div class="btnimg"><img src="../images/icons/rollback.gif" width="16px" title="放弃修改" class="cssfont"/></div>
</div>
<div id="divrefresh" runat="server" class="xbtn-img" onclick="divdisplay();refreshRecv()">
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新" class="cssfont"/></div>
</div>
<div id="divctn" runat="server" class="xbtn-img" onclick="divdisplay();onclickCTN();">
<input id="btCTN" type="button" value="箱号封号导入" style="width:100px; height:20px;" class="btncss" />
</div>
</div>
<div style=" width:100%; height:100%;" oncontextmenu="return false">
<div id="mygrid_container_recv" style="width:367px; height:92px;" runat="server" class="cssfont"></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>
</td>
</tr>
<tr>
<td width="50px">
<asp:Label ID="lbYARD" runat="server" Text="场站" width="50px" CssClass="cssfont" onclick="onclickYARD();" onmouseover="lbYARDonMouseOver();" onMouseOut="lbYARDonMouseOut();"></asp:Label>
</td>
<td width="100px">
<select id="ddlYARD" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="lbCARRIER" runat="server" Text="船公司" width="50px" CssClass="cssfont" onclick="onclickCARRIER();" onmouseover="lbCARRIERonMouseOver();" onMouseOut="lbCARRIERonMouseOut();"></asp:Label>
</td>
<td width="100px">
<select id="ddlCARRIER" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbFORWARDER" runat="server" Text="订舱代理" width="50px" CssClass="cssfont" onclick="onclickFORWARDER();" onmouseover="lbFORWARDERonMouseOver();" onMouseOut="lbFORWARDERonMouseOut();"></asp:Label>
</td>
<td>
<select id="ddlFORWARDER" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="lbCUSTOMSER" runat="server" Text="报关行" width="50px" CssClass="cssfont" onclick="onclickCUSTOMSER();" onmouseover="lbCUSTOMSERonMouseOver();" onMouseOut="lbCUSTOMSERonMouseOut();"></asp:Label>
</td>
<td>
<select id="ddlCUSTOMSER" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label33" runat="server" Text="装箱类型" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlPACKINGTYPE" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="lbWAREHOUSE" runat="server" Text="仓库" width="50px" CssClass="cssfont" onclick="onclickWAREHOUSE();" onmouseover="lbWAREHOUSEonMouseOver();" onMouseOut="lbWAREHOUSEonMouseOut();"></asp:Label>
</td>
<td>
<select id="ddlWAREHOUSE" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label39" runat="server" Text="航线" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td>
<select id="ddlLANE" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td>
<asp:Label ID="lbTRUCKER" runat="server" Text="车队" width="50px" CssClass="cssfont" onclick="onclickTRUCKER();" onmouseover="lbTRUCKERonMouseOver();" onMouseOut="lbTRUCKERonMouseOut();"></asp:Label>
</td>
<td>
<select id="ddlTRUCKER" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td colspan=4>
<asp:Label ID="Label40" runat="server" Text="Agent代理信息" CssClass="cssfont"></asp:Label></td>
<td><select id="ddlAGENTID" runat=server style="width:100px"></select></td>
</tr>
<tr>
<td colspan=5>
<asp:TextBox ID="tbAGENT" runat="server" CssClass="txtTab12" TextMode="MultiLine" Height=90px style="overflow-y:auto;height:90px;" MaxLength="600" width=366px></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top>
<asp:Label ID="Label41" runat="server" Text="开船日期" width="50px" CssClass="cssfont"></asp:Label></td>
<td valign=top>
<asp:TextBox ID="tbETD" runat="server" CssClass="txtTab12" onclick="WdatePicker();" onfocus="selSTLDATE();" onblur="selSTLDATE();"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label48" runat="server" Text="预抵日期" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbETA" runat="server" CssClass="txtTab12" onclick="WdatePicker();"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label42" runat="server" Text="船名" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlVESSEL" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label43" runat="server" Text="航次" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlVOYNO" runat="server" class="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td valign=top>
<asp:Label ID="Label44" runat="server" Text="装货港" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlPORTLOAD" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label45" runat="server" Text="卸货港" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlPORTDISCHARGE" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label46" runat="server" Text="目的地" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlDESTINATION" runat="server" class="txtTab12" style="width:100px"></select>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label47" runat="server" Text="交货地点" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlPLACEDELIVERY" runat="server" class="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td valign=top>
<asp:Label ID="Label62" runat="server" Text="收货地点" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<select id="ddlPLA" runat=server class="txtTab12" style="width:100px;"></select>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label49" runat="server" Text="截港日期" width="50px" Visible=false CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbCLOSINGDATE" runat="server" CssClass="txtTab12" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" Visible=false></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label50" runat="server" Text="截单日期" width="50px" Visible=false CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbCLOSEDOCDATE" runat="server" CssClass="txtTab12" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" Visible=false></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label51" runat="server" Text="集港日期" width="50px" Visible=false CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbINTOPORTDATE" runat="server" CssClass="txtTab12" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" Visible=false></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top colspan=2>
<table width=100%>
<tr>
<td>Seal No.(封志号) <br />Marks & Nos.(标记与号码)
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbMARKS" runat="server" CssClass="txtTab12" TextMode="MultiLine" Height=244px style="overflow-y:auto;height:244px;" MaxLength="600" width=100%>N/M</asp:TextBox>
</td>
</tr>
</table>
</td>
<td></td>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td>Description of Goods (包装种类与货名)</td>
<td>
<select id="ddlGOODSNAME" runat="server" CssClass="txtTab12" style="width:100px"></select>
</td>
</tr>
<tr>
<td colspan=2>
<asp:TextBox ID="tbDESCRIPTION" runat="server" CssClass="txtTab12"
TextMode="MultiLine" Height=250px
style="overflow-y:auto;height:250px;" MaxLength="2000" width=100%></asp:TextBox>
</td>
</tr>
</table>
</td>
<td></td>
<td valign=top colspan=2>
<table width=100%>
<tr>
<td colspan=3>No.of containers or pkgs.<br />
(箱数或件数)
</td>
</tr>
<tr>
<td colspan=3>
<asp:TextBox ID="tbNOPKGS" runat="server" CssClass="txtTab7"
TextMode="MultiLine" style="overflow-y:auto;height:40px;"
MaxLength="120" onBlur="onBlurNOPKGS();" width=163px Height="40px"></asp:TextBox>
</td>
</tr>
<tr width=40px>
<td>
<asp:Label ID="Label30" runat="server" Text="总件数" width=40px CssClass="cssfont"></asp:Label></td>
<td Width="40px">
<asp:TextBox ID="tbPKGS" runat="server" CssClass="txtTab7" Width="40px" MaxLength="10" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td>
<select id="ddlKINDPKGS" runat="server" style="width:51px;" onFocus ="initComboKINDPKGS();"></select>
</td>
</tr>
<tr>
<td colspan=3>Gross Weight 毛重(公斤)</td>
</tr>
<tr>
<td colspan=3>
<asp:TextBox ID="tbGROSSWEIGHT" runat="server" CssClass="txtTab7"
TextMode="MultiLine" style="overflow-y:auto;height:40px;"
MaxLength="600" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onBlur="onBlurGROSSWEIGHT();" width=163px Height="40px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label29" runat="server" Text="总重量" width=40px CssClass="cssfont"></asp:Label>
</td>
<td colspan=2>
<asp:TextBox ID="tbKGS" runat="server" Width="70px" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" CssClass="txtTab7" onblur="getIsNum(this);"></asp:TextBox>&nbsp;KGS
</td>
</tr>
<tr>
<td colspan=3>Measurement 尺码(立方米)</td>
</tr>
<tr>
<td colspan=3>
<asp:TextBox ID="tbMEASUREMENT" runat="server" CssClass="txtTab7" TextMode="MultiLine" style="overflow-y:auto;height:40px;" MaxLength="600" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onBlur="onBlurMEASUREMENT();" width=163px Height="40px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label31" runat="server" Text="总尺码" width=40px CssClass="cssfont"></asp:Label></td>
<td colspan=2>
<asp:TextBox ID="tbCBM" runat="server" Width="70px" CssClass="txtTab7" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>&nbsp;CBM
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label52" runat="server" Text="件数大写" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td colspan=10>
<asp:TextBox ID="tbTOTALNO" runat="server" CssClass="txtTab12" MaxLength="100" Width=683px></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top>
<asp:Label ID="Label53" runat="server" Text="签单方式" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:DropDownList ID="ddlISSUETYPE" runat="server" CssClass="txtTab13" onchange="onchangeISSUETYPE();" Width=102px Height=22px>
<asp:ListItem Selected="True">正本</asp:ListItem>
<asp:ListItem>电放</asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label54" runat="server" Text="签单日期" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbISSUEDATE" runat="server" CssClass="txtTab12" onclick="WdatePicker();"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label55" runat="server" Text="签单地点" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbISSUEPLACE" runat="server" CssClass="txtTab12" MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label56" runat="server" Text="提单份数" width="50px" CssClass="cssfont"></asp:Label></td>
<td valign=top>
<asp:DropDownList ID="ddlNOBILL" runat="server" CssClass="txtTab13" Width=102px Height=22px>
<asp:ListItem Value="ZERO">ZERO</asp:ListItem>
<asp:ListItem Value="ONE">ONE</asp:ListItem>
<asp:ListItem Value="TWO">TWO</asp:ListItem>
<asp:ListItem Selected="True" Value="THREE">THREE</asp:ListItem>
<asp:ListItem Value="FOUR">FOUR</asp:ListItem>
<asp:ListItem Value="FIVE">FIVE</asp:ListItem>
<asp:ListItem Value="SIX">SIX</asp:ListItem>
<asp:ListItem Value="SEVEN">SEVEN</asp:ListItem>
<asp:ListItem Value="EIGHT">EIGHT</asp:ListItem>
<asp:ListItem Value="NINE">NINE</asp:ListItem>
<asp:ListItem Value="TEN">TEN</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td width="50px">
<asp:Label ID="Label57" runat="server" Text="付费方式" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:DropDownList ID="ddlBLFRT" runat="server" CssClass="txtTab13" Width=102px onchange="onchangeBLFRT();" Height=22px></asp:DropDownList>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label58" runat="server" Text="付费地点" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbBLFRT" runat="server" CssClass="txtTab12" MaxLength="50"></asp:TextBox>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label59" runat="server" Text="运输条款" width="50px" CssClass="cssfont"></asp:Label></td>
<td width="100px">
<asp:DropDownList ID="ddlSERVICE" runat="server" CssClass="txtTab13" Width=102px Height=22px></asp:DropDownList>
</td>
<td width="10px"></td>
<td width="50px"></td>
<td width="100px"></td>
</tr>
<tr>
<td colspan=11 height="10">
<asp:Label ID="Label5" runat="server" Text="备注" Width=50px CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td colspan=11 align=left height="10">
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab11" TextMode="MultiLine" Height=70px style="overflow-y:auto;height:70px;" MaxLength="4000" Width=746px></asp:TextBox>
</td>
</tr>
</table>
</div>
<div id="myTab0_Content1" class="none" style="float:left; width:780px;background-color: #ECF2FF">
<table id="user_signinfo2" style="float:left; width:780px">
<tr>
<td colspan=10>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<table>
<tr>
<td>
<asp:Label ID="Label63" runat="server" Text="运输过程信息"></asp:Label>
<asp:ImageButton ID="ibMidway" runat="server"
ImageUrl="~/images/icons/addcover.gif" ToolTip="添加" AlternateText="添加"
onclick="ibMidway_Click" CssClass="cssfont"/>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label64" runat="server" Text="(说明:可以添加多种运输信息,包括前程二程三程等)"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="gvMidway" runat="server" Width=100% Font-Size="12pt"
ForeColor="Black" PageSize="2" AutoGenerateColumns="False"
onrowcancelingedit="gvMidway_RowCancelingEdit"
onrowdeleting="gvMidway_RowDeleting" onrowediting="gvMidway_RowEditing"
onrowupdating="gvMidway_RowUpdating" DataKeyNames="MID"
onrowcommand="gvMidway_RowCommand" onrowcreated="gvMidway_RowCreated">
<FooterStyle BackColor="#E0E3E8" Font-Size="11px" ForeColor="Black"
Height="21px" HorizontalAlign="Center" />
<RowStyle HorizontalAlign="center" Font-Size="11px" Height="24px" />
<Columns>
<asp:TemplateField HeaderText="运输过程">
<EditItemTemplate>
<input type="hidden" id="hd_comboMIDNUM" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "MIDNUM")%>'/>
<select id="ddlMIDNUM" runat=server style="width:100px;" onfocus="initcomboMIDNUM();"></select>
</EditItemTemplate>
<ItemTemplate>
<input type="hidden" id="tbMIDNUM" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "MIDNUM")%>'/>
<select id="ddlMIDNUM" runat=server style="display:none;"></select>
<%#DataBinder.Eval(Container.DataItem, "MIDNUM")%>
</ItemTemplate>
<FooterTemplate>
<input type="hidden" id="hd_comboMIDNUM" runat="server"/>
<select id="ddlMIDNUM" runat=server style="width:100px;" onfocus="initcomboMIDNUMAdd();"></select>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="运输方式">
<EditItemTemplate>
<input type="hidden" id="hd_comboTRANTYPE" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "TRANTYPE")%>'/>
<select id="ddlTRANTYPE" runat=server style="width:100px;" onfocus="initComboTRANTYPE();"></select>
</EditItemTemplate>
<ItemTemplate>
<input type="hidden" id="tbTRANTYPE" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "TRANTYPE")%>'/>
<select id="ddlTRANTYPE" runat=server style="display:none;"></select>
<%#DataBinder.Eval(Container.DataItem, "TRANTYPE")%>
</ItemTemplate>
<FooterTemplate>
<input type="hidden" id="hd_comboTRANTYPE" runat="server"/>
<select id="ddlTRANTYPE" runat=server style="width:100px;" onfocus="initComboTRANTYPEAdd();"></select>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="运输工具编号">
<EditItemTemplate>
<input type="text" id="hd_comboVESSEL_VOYNO" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "VESSEL_VOYNO")%>' maxlength="72" />
</EditItemTemplate>
<ItemTemplate>
<input type="hidden" id="hd_comboVESSEL_VOYNO" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "VESSEL_VOYNO")%>'/>
<%#DataBinder.Eval(Container.DataItem, "VESSEL_VOYNO")%>
</ItemTemplate>
<FooterTemplate>
<input type="text" id="hd_comboVESSEL_VOYNO" runat="server"/>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="运输日期">
<EditItemTemplate>
<asp:TextBox ID="tbETD" runat="server" CssClass="txtTab12" onclick="WdatePicker();" Text='<%#DataBinder.Eval(Container.DataItem, "ETD")%>' ReadOnly="True"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<input type="hidden" id="tbETD" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "ETD")%>'/>
<%#DataBinder.Eval(Container.DataItem, "ETD")%>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="tbETD" runat="server" CssClass="txtTab12" onclick="setDay(this,'yyyy-MM-dd')" ReadOnly="True"></asp:TextBox> </FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="港口及口岸">
<EditItemTemplate>
<input type="hidden" id="hd_comboPORTDISCHAGE" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "PORTDISCHAGE")%>'/>
<select id="ddlPORTDISCHAGE" runat=server style="width:100px;" onfocus="initComboPORTDISCHAGE();"></select>
</EditItemTemplate>
<ItemTemplate>
<input type="hidden" id="tbPORTDISCHAGE" runat="server" value='<%#DataBinder.Eval(Container.DataItem, "PORTDISCHAGE")%>'/>
<select id="ddlPORTDISCHAGE" runat=server style="display:none;"></select>
<%#DataBinder.Eval(Container.DataItem, "PORTDISCHAGE")%>
</ItemTemplate>
<FooterTemplate>
<input type="hidden" id="hd_comboPORTDISCHAGE" runat="server"/>
<select id="ddlPORTDISCHAGE" runat=server style="width:100px;" onfocus="initComboPORTDISCHAGEAdd();"></select>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="True"
CommandName="Update" Text="更新"></asp:LinkButton>
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False"
CommandName="Cancel" Text="取消"></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False"
CommandName="Edit" Text="编辑"></asp:LinkButton>
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False"
CommandName="Delete" Text="删除" onclientclick="return confirm('确定删除?')"></asp:LinkButton>
</ItemTemplate>
<FooterTemplate>
<asp:LinkButton ID="lbtAdd" runat="server" CausesValidation="False" CommandName="Insert" Text="添加"></asp:LinkButton>
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel" Text="取消"></asp:LinkButton>
</FooterTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle Font-Size="11px" Height="21px" VerticalAlign="Middle" HorizontalAlign="Center" BackColor="#E0E3E8" />
<SelectedRowStyle BackColor="#5A7EBF" ForeColor="White" />
<HeaderStyle BackColor="#E0E3E8" CssClass="headStyle" BorderColor="#CDD4E3"
Font-Size="11px" Height="22px" />
</asp:GridView>
<script type="text/javascript">
//Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(initcomboMIDNUM)
//运输过程
var comboMIDNUM;
var initValueMIDNUM;
var strddlMIDNUM;
var strhdMIDNUM;
//运输方式
var comboTRANTYPE;
var initValueTRANTYPE;
var strddlTRANTYPE;
var strhdTRANTYPE;
//港口及口岸
var comboPORTDISCHAGE;
var initValuePORTDISCHAGE2;
var strddlPORTDISCHAGE;
var strhdPORTDISCHAGE;
//运输过程
var comboMIDNUM2;
var initValueMIDNUM2;
var strddlMIDNUM2;
var strhdMIDNUM2;
//运输方式
var comboTRANTYPE2;
var initValueTRANTYPE2;
var strddlTRANTYPE2;
var strhdTRANTYPE2;
//港口及口岸
var comboPORTDISCHAGE2;
var initValuePORTDISCHAGE22;
var strddlPORTDISCHAGE2;
var strhdPORTDISCHAGE2;
function $(id)
{
return document.getElementById(id);
}
function initComboMidwayAdd(sid2,gvi)//运输过程信息
{
//生成
strhdMIDNUM2 = sid2+gvi+"_hd_comboMIDNUM";
strddlMIDNUM2 = sid2+gvi+"_ddlMIDNUM";
//initValueMIDNUM=sname;
strhdTRANTYPE2 = sid2+gvi+"_hd_comboTRANTYPE";
strddlTRANTYPE2 = sid2+gvi+"_ddlTRANTYPE";
//生成
strhdPORTDISCHAGE2 = sid2+gvi+"_hd_comboPORTDISCHAGE";
strddlPORTDISCHAGE2 = sid2+gvi+"_ddlPORTDISCHAGE";
}
function initcomboMIDNUMAdd()//运输过程
{
//生成
comboMIDNUM = dhtmlXComboFromSelect(strddlMIDNUM2);
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?pos=0&mask=0");
//取值
comboMIDNUM.attachEvent("onChange", function(){$(""+strhdMIDNUM2+"").value = comboMIDNUM.getSelectedText();});
//赋值
var comIndex = comboMIDNUM.getIndexByValue(initValueMIDNUM);
comboMIDNUM.selectOption(comIndex,true,true);
//检索
//comboMIDNUM.enableFilteringMode(true);
comboMIDNUM.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboMIDNUM.getComboText().trim()){
while("undefined" != typeof comboMIDNUM.getOptionByIndex(filterCount)){
var comboValue = comboMIDNUM.getOptionByIndex(filterCount).text;
var enterValue = comboMIDNUM.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboMIDNUM.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboMIDNUM.getIndexByValue(arrayArg[0]);
comboMIDNUM.selectOption(comIndex,true,true);
}
}},500);});
}
function initComboTRANTYPEAdd ()//运输方式
{
//生成
comboTRANTYPE = dhtmlXComboFromSelect(strddlTRANTYPE2);
comboTRANTYPE.loadXML("../FeeCodes/TRANTYPEAdapter.aspx?pos=0&mask=0");
//取值
comboTRANTYPE.attachEvent("onChange", function(){$(""+strhdTRANTYPE2+"").value = comboTRANTYPE.getSelectedText();});
//赋值
var comIndex = comboTRANTYPE.getIndexByValue(initValueTRANTYPE);
comboTRANTYPE.selectOption(comIndex,true,true);
//检索
//comboTRANTYPE.enableFilteringMode(true);
comboTRANTYPE.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboTRANTYPE.getComboText().trim()){
while("undefined" != typeof comboTRANTYPE.getOptionByIndex(filterCount)){
var comboValue = comboTRANTYPE.getOptionByIndex(filterCount).text;
var enterValue = comboTRANTYPE.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboTRANTYPE.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboTRANTYPE.getIndexByValue(arrayArg[0]);
comboTRANTYPE.selectOption(comIndex,true,true);
}
}},500);});
}
function initComboPORTDISCHAGEAdd()//港口及口岸
{
//生成
comboPORTDISCHAGE = dhtmlXComboFromSelect(strddlPORTDISCHAGE2);
comboPORTDISCHAGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?pos=0&mask=0&strSel=");
//取值
comboPORTDISCHAGE.attachEvent("onChange", function(){$(""+strhdPORTDISCHAGE2+"").value = comboPORTDISCHAGE.getSelectedText();});
//赋值
var comIndex = comboPORTDISCHAGE.getIndexByValue(initValuePORTDISCHAGE2);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
//检索
//comboPORTDISCHAGE.enableFilteringMode(true);
comboPORTDISCHAGE.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboPORTDISCHAGE.getComboText().trim()){
while("undefined" != typeof comboPORTDISCHAGE.getOptionByIndex(filterCount)){
var comboValue = comboPORTDISCHAGE.getOptionByIndex(filterCount).text;
var enterValue = comboPORTDISCHAGE.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboPORTDISCHAGE.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboPORTDISCHAGE.getIndexByValue(arrayArg[0]);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
}
}},500);});
}
function initComboMidway(sid)//运输过程信息
{
//生成
strhdMIDNUM = sid+"hd_comboMIDNUM";
strddlMIDNUM = sid+"ddlMIDNUM";
//initValueMIDNUM=sname;
strhdTRANTYPE = sid+"hd_comboTRANTYPE";
strddlTRANTYPE = sid+"ddlTRANTYPE";
//生成
strhdPORTDISCHAGE = sid+"hd_comboPORTDISCHAGE";
strddlPORTDISCHAGE = sid+"ddlPORTDISCHAGE";
}
function initcomboMIDNUM()//运输过程
{
//生成
comboMIDNUM = dhtmlXComboFromSelect(strddlMIDNUM);
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?pos=0&mask=0");
//取值
comboMIDNUM.attachEvent("onChange", function(){$(""+strhdMIDNUM+"").value = comboMIDNUM.getSelectedText();});
//赋值
var comIndex = comboMIDNUM.getIndexByValue(initValueMIDNUM);
comboMIDNUM.selectOption(comIndex,true,true);
//检索
//comboMIDNUM.enableFilteringMode(true);
comboMIDNUM.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboMIDNUM.getComboText().trim()){
while("undefined" != typeof comboMIDNUM.getOptionByIndex(filterCount)){
var comboValue = comboMIDNUM.getOptionByIndex(filterCount).text;
var enterValue = comboMIDNUM.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboMIDNUM.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboMIDNUM.getIndexByValue(arrayArg[0]);
comboMIDNUM.selectOption(comIndex,true,true);
}
}},500);});
}
function initComboTRANTYPE()//运输方式
{
//生成
comboTRANTYPE = dhtmlXComboFromSelect(strddlTRANTYPE);
comboTRANTYPE.loadXML("../FeeCodes/TRANTYPEAdapter.aspx?pos=0&mask=0");
//取值
comboTRANTYPE.attachEvent("onChange", function(){$(""+strhdTRANTYPE+"").value = comboTRANTYPE.getSelectedText();});
//赋值
var comIndex = comboTRANTYPE.getIndexByValue(initValueTRANTYPE);
comboTRANTYPE.selectOption(comIndex,true,true);
//检索
//comboTRANTYPE.enableFilteringMode(true);
comboTRANTYPE.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboTRANTYPE.getComboText().trim()){
while("undefined" != typeof comboTRANTYPE.getOptionByIndex(filterCount)){
var comboValue = comboTRANTYPE.getOptionByIndex(filterCount).text;
var enterValue = comboTRANTYPE.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboTRANTYPE.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboTRANTYPE.getIndexByValue(arrayArg[0]);
comboTRANTYPE.selectOption(comIndex,true,true);
}
}},500);});
}
function initComboPORTDISCHAGE()//港口及口岸
{
//生成
comboPORTDISCHAGE = dhtmlXComboFromSelect(strddlPORTDISCHAGE);
comboPORTDISCHAGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?pos=0&mask=0&strSel=");
//取值
comboPORTDISCHAGE.attachEvent("onChange", function(){$(""+strhdPORTDISCHAGE+"").value = comboPORTDISCHAGE.getSelectedText();});
//赋值
var comIndex = comboPORTDISCHAGE.getIndexByValue(initValuePORTDISCHAGE2);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
//检索
//comboPORTDISCHAGE.enableFilteringMode(true);
comboPORTDISCHAGE.attachEvent("onKeyPressed", function(keyCode){
var arrayArg = new Array();
setTimeout(function(){
var filterCount = 0;
if("" != comboPORTDISCHAGE.getComboText().trim()){
while("undefined" != typeof comboPORTDISCHAGE.getOptionByIndex(filterCount)){
var comboValue = comboPORTDISCHAGE.getOptionByIndex(filterCount).text;
var enterValue = comboPORTDISCHAGE.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
arrayArg.push(comboPORTDISCHAGE.getOptionByIndex(filterCount).value);
break;
}
++filterCount;
}
if("undefined" != typeof arrayArg[0]){
var comIndex = comboPORTDISCHAGE.getIndexByValue(arrayArg[0]);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
}
}},500);});
}
</script>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label65" runat="server" Text="货物标识 " CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlCARGOID" runat="server" CssClass="txtTab13" Height=22px>
<asp:ListItem Selected="True" Value="S">S通货</asp:ListItem>
<asp:ListItem Value="R">R冻货</asp:ListItem>
<asp:ListItem Value="D">D危险品</asp:ListItem>
<asp:ListItem Value="O">O超限箱</asp:ListItem>
<asp:ListItem Value="C">C</asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td colspan=2>
<asp:CheckBox ID="cbISCONTAINERSOC" runat="server" Text="是否自有箱" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label37" runat="server" Text="来源代码" CssClass="cssfont"></asp:Label>
</td>
<td colspan=7>
<asp:RadioButtonList ID="rblSOURCECODE" runat="server" BorderStyle="None" CssClass="txtTab" RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="1">货主自备箱</asp:ListItem>
<asp:ListItem Value="2">承运人提供箱</asp:ListItem>
<asp:ListItem Value="3">拼箱人提供箱</asp:ListItem>
<asp:ListItem Value="4">拆箱人提供箱</asp:ListItem>
<asp:ListItem Value="5">第三方提供箱</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td colspan="10" height="10"></td>
</tr>
<tr>
<td colspan="10"><div id="dvEmergencyInfo" style="font-weight:800">冻柜信息</div></td>
</tr>
<tr>
<td colspan="10" align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label66" runat="server" Text="冷藏通风量" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbREEFERF" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label67" runat="server" Text="设置温度" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbTEMPSET" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label68" runat="server" Text="温度单位" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:RadioButtonList ID="rblTEMPID" runat="server" BorderStyle="None" CssClass="txtTab12"
RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="C">摄氏</asp:ListItem>
<asp:ListItem Value="F">华氏</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td colspan="10" height="10"></td>
</tr>
<tr>
<td colspan="10"><div id="Div1" style="font-weight:800">危险品信息</div></td>
</tr>
<tr>
<td colspan="10" align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label69" runat="server" Text="危险品等级" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbDCLASS" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label70" runat="server" Text="危险品编号" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbDUNNO" runat="server" CssClass="txtTab12" MaxLength="16"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label32" runat="server" Text="危险品页号" CssClass="cssfont" Width=60px></asp:Label>
</td>
<td>
<asp:TextBox ID="tbDPAGE" runat="server" CssClass="txtTab12" MaxLength="7"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label35" runat="server" Text="危险品标签" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbDLABEL" runat="server" CssClass="txtTab12" MaxLength="32"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label36" runat="server" Text="危险品联系人" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbLINKMAN" runat="server" CssClass="txtTab12" MaxLength="35"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="10" height="10"></td>
</tr>
<tr>
<td colspan="10"><div id="Div2" style="font-weight:800">保险信息</div></td>
</tr>
<tr>
<td colspan="10" align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label71" runat="server" Text="保险公司" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbINSURANCEER" runat="server" CssClass="txtTab12" MaxLength="30"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label72" runat="server" Text="保单号" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbINSURANCENO" runat="server" CssClass="txtTab12" MaxLength="20"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label73" runat="server" Text="保单金额" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbINAMOUT" runat="server" CssClass="txtTab12"></asp:TextBox>
</td>
</tr>
<tr>
<td width="80px"">
<asp:Label ID="Label74" runat="server" Text="发票号" CssClass="cssfont"></asp:Label>
</td>
<td width="100px"">
<asp:TextBox ID="tbINVNO" runat="server" CssClass="txtTab12" MaxLength="20"></asp:TextBox>
</td>
<td width="10px""></td>
<td width="80px"">
<asp:Label ID="Label75" runat="server" Text="运费协议号" CssClass="cssfont"></asp:Label>
</td>
<td width="100px"">
<asp:TextBox ID="tbCONTRACTNO" runat="server" CssClass="txtTab12" MaxLength="20"></asp:TextBox>
</td>
<td width="10px""></td>
<td width="100px""></td>
<td width="100px""></td>
<td width="10px""></td>
</tr>
<tr>
<td colspan="10" height="10"></td>
</tr>
<tr>
<td colspan="10"><div id="Div3" style="font-weight:800">EDI编码信息</div></td>
</tr>
<tr>
<td colspan="10" align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label38" runat="server" Text="装货港代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbPORTLOADID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label76" runat="server" Text="卸货港代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbPORTDISCHARGEID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label77" runat="server" Text="交货地代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbPLACEDELIVERYID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label78" runat="server" Text="目的地代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbDESTINATIONID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label79" runat="server" Text="收货地代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbPLAID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label81" runat="server" Text="提单签发地代码" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbISSUEPLACEID" runat="server" CssClass="txtTab12" MaxLength="5"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label80" runat="server" Text="船舶呼号" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbVESSELID" runat="server" CssClass="txtTab12" MaxLength="9"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- 选项卡结束 -->
</div>
</div>
<div>
<input type="hidden" id="hdGid" runat="server"/>
<input type="hidden" id="hdUserID" runat="server"/>
<input type="hidden" id="hdHandle" runat="server"/>
<input type="hidden" id="hdCOMPANYID" runat="server"/>
<input type="hidden" id="hdEnter" runat="server"/>
<input type="hidden" id="hd_comboOP" runat="server"/>
<input type="hidden" id="hd_comboSALE" runat="server"/>
<input type="hidden" id="hd_comboDOC" runat="server"/>
<input type="hidden" id="hd_comboCUSTSERVICE" runat="server"/>
<input type="hidden" id="hd_comboCUSTOMERCODE" runat="server"/>
<input type="hidden" id="hd_comboCUSTOMERNAME" runat="server"/>
<input type="hidden" id="hd_comboSHIPPERID" runat="server"/>
<input type="hidden" id="hd_comboCONSIGNEEID" runat="server"/>
<input type="hidden" id="hd_comboNOTIFYPARTYID" runat="server"/>
<input type="hidden" id="hd_comboAGENTID" runat="server"/>
<input type="hidden" id="hd_comboYARD" runat="server"/>
<input type="hidden" id="hd_comboTRUCKER" runat="server"/>
<input type="hidden" id="hd_comboCARRIER" runat="server"/>
<input type="hidden" id="hd_comboFORWARDER" runat="server"/>
<input type="hidden" id="hd_comboCUSTOMSER" runat="server"/>
<input type="hidden" id="hd_comboWAREHOUSE" runat="server"/>
<input type="hidden" id="hd_comboLANE" runat="server"/>
<input type="hidden" id="hd_comboVESSEL" runat="server"/>
<input type="hidden" id="hd_comboVOYNO" runat="server"/>
<input type="hidden" id="hd_comboPORTLOAD" runat="server"/>
<input type="hidden" id="hd_comboPORTDISCHARGE" runat="server"/>
<input type="hidden" id="hd_comboDESTINATION" runat="server"/>
<input type="hidden" id="hd_comboPLACEDELIVERY" runat="server"/>
<input type="hidden" id="hd_comboPLA" runat="server"/>
<input type="hidden" id="hd_comboBLFRT" runat="server"/>
<input type="hidden" id="hd_comboBLTYPE" runat=server />
<input type="hidden" id="hd_comboSERVICE" runat="server"/>
<input type="hidden" id="hd_comboPACKINGTYPE" runat="server"/>
<input type="hidden" id="hd_comboGOODSNAME" runat="server"/>
<input type="hidden" id="hd_comboSALEDEPT" runat="server"/>
<input id="hd_comboBSSOURCE" type="hidden" runat="server"/>
<input id="hd_comboBSSOURCE2" type="hidden" runat="server"/>
<input id="hd_comboBSSOURCEDETAIL" type="hidden" runat="server"/>
<input type="hidden" id="hd_comboOPERATORCODE" runat="server"/>
<input type="hidden" id="hd_comboOPERATOR" runat="server"/>
<input type="hidden" id="hd_comboFINANCIALSTAFFCODE" runat="server"/>
<input type="hidden" id="hd_comboFINANCIALSTAFF" runat="server"/>
<input type="hidden" id="hd_comboKINDPKGS" runat="server"/>
<input id="hdDOCGID" type="hidden" runat=server/>
<input type="hidden" id="hdEnabled" runat="server"/>
<input id="hdSTLNAME" type="hidden" runat=server/>
<input id="hdSTLDATE" type="hidden" runat=server/>
</div>
<div style="height:200px; width:100%;"></div>
</form>
</body>
</html>