You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Shipping/SeaExportInfo.aspx

4815 lines
253 KiB
Plaintext

3 years ago
<%@ 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><3E>û<EFBFBD></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;"); //<2F><>ֹ<EFBFBD>Ҽ<EFBFBD><D2BC><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD>Ҽ<EFBFBD><D2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κη<CEBA>Ӧ
//document.onselectstart=new Function("event.returnValue=false;"); //<2F><>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><><D2B2><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>
</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>
<!--<2D>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
<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);
}
//<2F><><EFBFBD><EFBFBD>ȥ<EFBFBD>ո<EFBFBD><D5B8><EFBFBD><EFBFBD><EFBFBD>
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function selSTLDATE() {
var il = 0;
var strSTLDATEPJ = ""; //Ʊ<><C6B1>
var strSTLDATE = ""; //<2F>½<EFBFBD>
var strSTLFIRSTHALFDATE = ""; //<2F>ϰ<EFBFBD><CFB0><EFBFBD>
var strSTLMIDDLEDATE = ""; //<2F>°<EFBFBD><C2B0><EFBFBD>
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("&&"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γɲ<CEB3><C9B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
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"); //<2F><>ȡDropDownList<73>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//var DropDownList1_Index = DropDownList1.selectedIndex; //<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value;//<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
//var DropDownList1_Text = DropDownList1.options[DropDownList1_Index].text;//<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
var DropDownList1_Text = $("ddlSTLNAME").value.trim(); //<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
if (DropDownList1_Text == "Ʊ<><C6B1>") {
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 == "<22>½<EFBFBD>") {
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;
//<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ
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 == "<22><><EFBFBD>½<EFBFBD>") {
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)//<2F>°<EFBFBD><C2B0><EFBFBD>
{
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//<2F>ϰ<EFBFBD><CFB0><EFBFBD>
{
if (strSTLMIDDLEDATE != "") {
il = strSTLMIDDLEDATE.toString().trim().length;
if (il < 2) {
strSTLMIDDLEDATE = "0" + strSTLMIDDLEDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLMIDDLEDATE;
//<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ
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 = ""; //Ʊ<><C6B1>
var strSTLDATE = ""; //<2F>½<EFBFBD>
var strSTLFIRSTHALFDATE = ""; //<2F>ϰ<EFBFBD><CFB0><EFBFBD>
var strSTLMIDDLEDATE = ""; //<2F>°<EFBFBD><C2B0><EFBFBD>
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("&&"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γɲ<CEB3><C9B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
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"); //<2F><>ȡDropDownList<73>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//var DropDownList1_Index = DropDownList1.selectedIndex; //<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value;//<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
//var DropDownList1_Text = DropDownList1.options[DropDownList1_Index].text;//<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
var DropDownList1_Text = $("ddlSTLNAME").value.trim(); //<2F><>ȡѡ<C8A1><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
if (DropDownList1_Text == "Ʊ<><C6B1>") {
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 == "<22>½<EFBFBD>") {
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;
//<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ
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 == "<22><><EFBFBD>½<EFBFBD>") {
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)//<2F>°<EFBFBD><C2B0><EFBFBD>
{
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//<2F>ϰ<EFBFBD><CFB0><EFBFBD>
{
if (strSTLMIDDLEDATE != "") {
il = strSTLMIDDLEDATE.toString().trim().length;
if (il < 2) {
strSTLMIDDLEDATE = "0" + strSTLMIDDLEDATE;
}
sdate = syear + "-" + smonth + "-" + strSTLMIDDLEDATE;
//<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ
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;//<2F><><EFBFBD><EFBFBD>
var comboOP; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա
var comboSALE; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboDOC; //<2F><>֤
var comboCUSTSERVICE; //<2F>ͷ<EFBFBD>
var comboCUSTOMERNAME; //ί<>е<EFBFBD>λ
var comboSHIPPERID; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboCONSIGNEEID; //<2F>ջ<EFBFBD><D5BB><EFBFBD>
var comboNOTIFYPARTYID; //֪ͨ<CDA8><D6AA>
var comboAGENTID; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboKINDPKGS; //<2F><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>
var comboYARD; //<2F><>վ
var comboCARRIER; //<2F><><EFBFBD><EFBFBD>˾
var comboFORWARDER; //<2F><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD>
var comboCUSTOMSER; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboWAREHOUSE; //<2F>ֿ<EFBFBD>
var comboTRUCKER; //<2F><><EFBFBD><EFBFBD>
var comboLANE; //<2F><><EFBFBD><EFBFBD>
var comboVESSEL; //<2F><><EFBFBD><EFBFBD>
var comboVOYNO; //<2F><><EFBFBD><EFBFBD>
var comboPORTLOAD; //<2F><><EFBFBD>˸<EFBFBD>
var comboPORTDISCHARGE; //ж<><D0B6><EFBFBD>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD>
var comboDESTINATION; //Ŀ<>ĸ<EFBFBD>
var comboPLACEDELIVERY; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboPLA; //<2F>ջ<EFBFBD><D5BB><EFBFBD>
var comboBLFRT; //<2F><><EFBFBD>ѷ<EFBFBD>ʽ
var ComboSERVICE; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var ComboBSSOURCE; //<2F>г<EFBFBD><D0B3><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>
var ComboBSSOURCEDETAIL; //<2F>г<EFBFBD><D0B3><EFBFBD>Դϸ<D4B4><CFB8>
var comboMIDNUM; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
var ComboPACKINGTYPE; //װ<><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var ComboBLTYPE; //װ<>˷<EFBFBD>ʽ
var ComboGOODSNAME; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboOPERATOR; //<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
var comboFINANCIALSTAFF; //<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
var comboSALEDEPT; //<2F><><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
function initComboOP()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա
{
//<2F><><EFBFBD><EFBFBD>
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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboOP.attachEvent("onSelectionChange", function () {
$("hd_comboOP").value = comboOP.getComboText().trim();
});
}
function initComboSALE()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
comboSALE.loadXML("../FeeCodes/OPAdapter.aspx?mask=0&pos=0&rName=isSaleMan&userID=" + strUserID);
}
function initComboSALE2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboSALE.attachEvent("onSelectionChange", function () {
$("hd_comboSALE").value = comboSALE.getComboText().trim();
});
}
function initComboDOC()//<2F><>֤
{
//<2F><><EFBFBD><EFBFBD>
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()//<2F><>֤
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboDOC.attachEvent("onSelectionChange", function () {
$("hd_comboDOC").value = comboDOC.getComboText().trim();
});
}
function initComboCUSTSERVICE()//<2F>ͷ<EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
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()//<2F>ͷ<EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboCUSTSERVICE.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTSERVICE").value = comboCUSTSERVICE.getComboText().trim();
});
}
function initComboCUSTOMERNAME()//ί<>е<EFBFBD>λ
{
comboCUSTOMERNAME = dhtmlXComboFromSelect("ddlCUSTOMERNAME");
comboCUSTOMERNAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCONTROLLER");
}
function initComboCUSTOMERNAME2()//ί<>е<EFBFBD>λ
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboCUSTOMERNAME.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTOMERNAME").value = comboCUSTOMERNAME.getComboText().trim();
});
}
function initComboSHIPPERID()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboSHIPPERID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=2&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboSHIPPERID2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
/*
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//<2F>ջ<EFBFBD><D5BB><EFBFBD>
{
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()//<2F>ջ<EFBFBD><D5BB><EFBFBD>
{
comboCONSIGNEEID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=1&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboCONSIGNEEID2()//<2F>ջ<EFBFBD><D5BB><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//֪ͨ<CDA8><D6AA>
{
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()//֪ͨ<CDA8><D6AA>
{
comboNOTIFYPARTYID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=3&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboNOTIFYPARTYID2()//֪ͨ<CDA8><D6AA>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboAGENTID.loadXML("../FeeCodes/InfoShipperAdapter.aspx?mask=0&pos=0&shippertype=4&CODENAME=" + $("hd_comboCUSTOMERCODE").value + "&SHORTNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboAGENTID2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboGOODSNAME = dhtmlXComboFromSelect("ddlGOODSNAME");
comboGOODSNAME.loadXML("../FeeCodes/TCodeGoodsAdapter.aspx?mask=0&pos=0");
}
function initComboGOODSNAME2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//<2F><>վ
{
comboYARD = dhtmlXComboFromSelect("ddlYARD");
comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
}
function initComboYARD2()//<2F><>վ
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
})
comboYARD.attachEvent("onSelectionChange", function () {
$("hd_comboYARD").value = comboYARD.getComboText().trim();
});
}
function initComboTRUCKER()//<2F><><EFBFBD><EFBFBD>
{
comboTRUCKER = dhtmlXComboFromSelect("ddlTRUCKER");
comboTRUCKER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISTRUCK");
}
function initComboTRUCKER2()//<2F><><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
})
comboTRUCKER.attachEvent("onSelectionChange", function () {
$("hd_comboTRUCKER").value = comboTRUCKER.getComboText().trim();
});
}
function initComboCARRIER()//<2F><><EFBFBD><EFBFBD>˾
{
comboCARRIER = dhtmlXComboFromSelect("ddlCARRIER");
comboCARRIER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCARRIER");
}
function initComboCARRIER2()//<2F><><EFBFBD><EFBFBD>˾
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboCARRIER.attachEvent("onSelectionChange", function () {
$("hd_comboCARRIER").value = comboCARRIER.getComboText().trim();
});
}
function initComboFORWARDER()//<2F><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD>
{
comboFORWARDER = dhtmlXComboFromSelect("ddlFORWARDER");
comboFORWARDER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISBOOKING");
}
function initComboFORWARDER2()//<2F><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboFORWARDER.attachEvent("onSelectionChange", function () {
$("hd_comboFORWARDER").value = comboFORWARDER.getComboText().trim();
});
}
function initComboCUSTOMSER()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboCUSTOMSER = dhtmlXComboFromSelect("ddlCUSTOMSER");
comboCUSTOMSER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
}
function initComboCUSTOMSER2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboCUSTOMSER.attachEvent("onSelectionChange", function () {
$("hd_comboCUSTOMSER").value = comboCUSTOMSER.getComboText().trim();
});
}
function initComboWAREHOUSE()//<2F>ֿ<EFBFBD>
{
comboWAREHOUSE = dhtmlXComboFromSelect("ddlWAREHOUSE");
comboWAREHOUSE.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISWAREHOUSE");
}
function initComboWAREHOUSE2()//<2F>ֿ<EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboWAREHOUSE.attachEvent("onSelectionChange", function () {
$("hd_comboWAREHOUSE").value = comboWAREHOUSE.getComboText().trim();
});
}
function initComboLANE()//<2F><><EFBFBD><EFBFBD>
{
comboLANE = dhtmlXComboFromSelect("ddlLANE");
comboLANE.loadXML("../FeeCodes/TCodeLanesAdapter.aspx?mask=0&pos=0");
}
function initComboLANE3()//<2F><><EFBFBD><EFBFBD>
{
comboLANE.loadXML("../FeeCodes/TCodeLanesAdapter.aspx?mask=0&pos=0");
}
function initComboLANE2()//<2F><><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboLANE.attachEvent("onSelectionChange", function () {
$("hd_comboLANE").value = comboLANE.getComboText().trim();
});
}
function initComboBLFRT()//<2F><><EFBFBD>ѷ<EFBFBD>ʽ
{
comboBLFRT = dhtmlXComboFromSelect("ddlBLFRT");
comboBLFRT.loadXML("../FeeCodes/TCodeFrtAdapter.aspx?mask=0&pos=0");
}
function initComboBLFRT2()//<2F><><EFBFBD>ѷ<EFBFBD>ʽ
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboSERVICE = dhtmlXComboFromSelect("ddlSERVICE");
comboSERVICE.loadXML("../FeeCodes/TCodeServiceAdapter.aspx?mask=0&pos=0");
}
function initComboISSTORAGE()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboSERVICE.attachEvent("onSelectionChange", function () {
$("hd_comboSERVICE").value = comboSERVICE.getComboText().trim();
});
}
function initComboPORTLOAD()//<2F><><EFBFBD>˸<EFBFBD>==װ<><D7B0><EFBFBD><EFBFBD>
{
comboPORTLOAD = dhtmlXComboFromSelect("ddlPORTLOAD");
comboPORTLOAD.loadXML("../FeeCodes/TCodeLoadportAdapter.aspx?mask=0&pos=0");
}
function initComboPORTLOAD2()//<2F><><EFBFBD>˸<EFBFBD>==װ<><D7B0><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboPORTLOAD.attachEvent("onSelectionChange", function () {
$("hd_comboPORTLOAD").value = comboPORTLOAD.getComboText().trim();
$("tbISSUEPLACE").value = comboPORTLOAD.getComboText().toUpperCase();
});
}
function initComboPORTDISCHARGE()//ж<><D0B6><EFBFBD><EFBFBD>
{
comboPORTDISCHARGE = dhtmlXComboFromSelect("ddlPORTDISCHARGE");
}
function initComboPORTDISCHARGE2()//ж<><D0B6><EFBFBD><EFBFBD>
{
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);
//<2F><><EFBFBD><EFBFBD>
//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()//Ŀ<>ĸ<EFBFBD>
{
comboDESTINATION = dhtmlXComboFromSelect("ddlDESTINATION");
}
function initComboDESTINATION2()//Ŀ<>ĸ<EFBFBD>
{
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);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboPLACEDELIVERY = dhtmlXComboFromSelect("ddlPLACEDELIVERY");
}
function initComboPLACEDELIVERY2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F>ջ<EFBFBD><D5BB><EFBFBD>
{
comboPLA = dhtmlXComboFromSelect("ddlPLA");
}
function initcomboPLA2()//<2F>ջ<EFBFBD><D5BB><EFBFBD>
{
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);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
{
comboMIDNUM = dhtmlXComboFromSelect("ddlMIDNUM");
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?mask=0&pos=0");
}
function initcomboMIDNUM2()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboMIDNUM.attachEvent("onSelectionChange", function () {
$("hd_comboMIDNUM").value = comboMIDNUM.getComboText().trim();
});
}
function initComboKINDPKGS()//<2F><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>
{
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()//<2F><><EFBFBD><EFBFBD>
{
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()//<2F><><EFBFBD><EFBFBD>
{
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()//<2F><><EFBFBD><EFBFBD>
{
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()//<2F>г<EFBFBD><D0B3><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>
{
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()//<2F>г<EFBFBD><D0B3><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>
{
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()//<2F>г<EFBFBD><D0B3><EFBFBD>Դϸ<D4B4><CFB8>
{
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()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
//<2F><><EFBFBD><EFBFBD>
comboOPERATOR = dhtmlXComboFromSelect("ddlOPERATOR");
comboOPERATOR.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISOPERATOR&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboOPERATOR3()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
comboOPERATOR.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISOPERATOR&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboOPERATOR2()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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("&&"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB>з<EFBFBD><D0B7><EFBFBD>Ϊ<EFBFBD>ֽ<EFBFBD>
if (items != null && items.length > 0) {
$("tbOPERATORTEL").value = items[0].trim();
$("tbOPERATORFAX").value = items[1].trim();
$("tbOPERATOREMAIL").value = items[2].trim();
}
}
});
}
function initComboFINANCIALSTAFF()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
//<2F><><EFBFBD><EFBFBD>
comboFINANCIALSTAFF = dhtmlXComboFromSelect("ddlFINANCIALSTAFF");
comboFINANCIALSTAFF.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISFINANCIALSTAFF&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboFINANCIALSTAFF3()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
comboFINANCIALSTAFF.loadXML("../FeeCodes/OPERATORAdapter.aspx?mask=0&pos=0&rName=ISFINANCIALSTAFF&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value));
}
function initComboFINANCIALSTAFF2()//<2F>ͻ<EFBFBD><CDBB>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>Ա
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 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("&&"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB>з<EFBFBD><D0B7><EFBFBD>Ϊ<EFBFBD>ֽ<EFBFBD>
if (items != null && items.length > 0) {
$("tbFINANCIALSTAFFTEL").value = items[0].trim();
$("tbFINANCIALSTAFFFAX").value = items[1].trim();
$("tbFINANCIALSTAFFEMAIL").value = items[2].trim();
}
}
});
}
function initComboSALEDEPT()//<2F><><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
var strUserID = document.getElementById("" + '<%= hdUserID.ClientID %>' + "").value;
comboSALEDEPT = dhtmlXComboFromSelect("ddlSALEDEPT");
comboSALEDEPT.loadXML("../FeeCodes/SALEDEPTAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
}
function initComboSALEDEPT2()//<2F><><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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("<22>޴<EFBFBD><DEB4><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>");
}
}
}, 10);
}
});
comboSALEDEPT.attachEvent("onSelectionChange", function () {
$("hd_comboSALEDEPT").value = comboSALEDEPT.getComboText().trim();
});
}
function initComboPACKINGTYPE()//װ<><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
comboPACKINGTYPE = dhtmlXComboFromSelect("ddlPACKINGTYPE");
comboPACKINGTYPE.loadXML("../FeeCodes/PACKINGTYPEAdapter.aspx?mask=0&pos=0");
}
function initComboPACKINGTYPE2()//װ<><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
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()//װ<>˷<EFBFBD>ʽ
{
comboBLTYPE = dhtmlXComboFromSelect("ddlBLTYPE");
comboBLTYPE.loadXML("../FeeCodes/BLTYPEAdapter.aspx?mask=0&pos=0");
}
function initComboBLTYPE2()//װ<>˷<EFBFBD>ʽ
{
//comboBLTYPE.disable(false);
if ($("hdEnabled").value == "false") {
comboBLTYPE.disable(true);
}
//
if ($("hd_comboBLTYPE").value == "<22><><EFBFBD><EFBFBD>" || $("hd_comboBLTYPE").value == "ƴ<><C6B4><EFBFBD><EFBFBD>Ʊ") {
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 == "ƴ<><C6B4><EFBFBD><EFBFBD>Ʊ") {
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("ƴ<>䵥Ʊ<E4B5A5><C6B1>ƴ<EFBFBD><C6B4><EFBFBD><EFBFBD>Ʊ<EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӽ<EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>Ϣ<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>");
return;
}
}
//
$("hd_comboBLTYPE").value = comboBLTYPE.getComboText().trim();
//
if ($("hd_comboBLTYPE").value == "<22><><EFBFBD><EFBFBD>" || $("hd_comboBLTYPE").value == "ƴ<><C6B4><EFBFBD><EFBFBD>Ʊ") {
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("û<><C3BB>Ҫ<EFBFBD><D2AA>ӡ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>");
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 <20><>ˢ<EFBFBD><CBA2> <20><><EFBFBD><EFBFBD>-->
<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");
// <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>escape<70><65><EFBFBD>Խ<EFBFBD><D4BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>
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>
<!--<2D><><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD><EFBFBD><EFBFBD>-->
<script type="text/javascript">
function fun() {
//"8"<22>˸<EFBFBD><CBB8><EFBFBD>"13"<22>س<EFBFBD><D8B3><EFBFBD>"45"<22><><EFBFBD>ţ<EFBFBD><C5A3><EFBFBD>46<34><36>Ӣ<EFBFBD>ĵĵ㣬<C4B5><E3A3AC>xxx<48 and xxx>57<35><37>ָ<EFBFBD><D6B8>ֵ<EFBFBD><D6B5>
if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode != 13 && event.keyCode != 45 && event.keyCode != 46)
{ alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"); return false; }
}
</script>
<!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>-->
<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"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB>з<EFBFBD><D0B7><EFBFBD>Ϊ<EFBFBD>ֽ<EFBFBD>
if (items != null && items.length > 0) {
try {
for (var i = 0; i < items.length; i++) {
iums += parseFloat(items[i].trim());
}
}
catch (e) {
alert('<27><>Gross Weight ë<>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFA3A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>');
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"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB>з<EFBFBD><D0B7><EFBFBD>Ϊ<EFBFBD>ֽ<EFBFBD>
if (items != null && items.length > 0) {
try {
for (var i = 0; i < items.length; i++) {
iums += parseFloat(items[i].trim());
}
}
catch (e) {
alert('<27><>Measurement <20><><EFBFBD><EFBFBD><EBA3A8><EFBFBD><EFBFBD><EFBFBD>ף<EFBFBD><D7A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>');
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"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB>з<EFBFBD><D0B7><EFBFBD>Ϊ<EFBFBD>ֽ<EFBFBD>
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;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д
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 == "<22><><EFBFBD><EFBFBD>") {
$("ddlNOBILL").value = "THREE";
}
else if ($("ddlISSUETYPE").value == "<22><><EFBFBD><EFBFBD>") {
$("ddlNOBILL").value = "ZERO";
}
else {
$("ddlNOBILL").value = "";
}
}
else {
$("ddlISSUETYPE").value = strCTN;
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ᵥǩ<E1B5A5>գ<EFBFBD><D5A3><EFBFBD>ֹ<EFBFBD>޸<EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ģ<DEB8><C4A3><EFBFBD>Ҫ<EFBFBD>ȳ<EFBFBD><C8B3><EFBFBD>ǩ<EFBFBD>գ<EFBFBD>");
}
}
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 = ""; //<2F><><EFBFBD><EFBFBD>
}
}
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;
}
//<2F>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>֣<EFBFBD><D6A3><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5>ʽ<EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ
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("<22><>ֵ<EFBFBD><D6B5>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
x.focus();
x.select();
}
}
}
</script>
<!--ҳ<><D2B3><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>-->
<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("<22>ɹ<EFBFBD><C9B9><EFBFBD><E1BDBB>");
}
</script>
<!--<2D>ɰ<EFBFBD>-->
<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 = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1BDBB><EFBFBD><EFBFBD><EFBFBD>Եȣ<D4B5>";
//dg.html+="<input type=button onclick='new dialog().close();' value='ȷ<><C8B7>'>";
dg.width = 200;
dg.height = 100;
dg.title = "<22><><EFBFBD><EFBFBD>";
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("ί<>е<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD>");
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 += "Ԥ<><D4A4><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy-MM-dd<64><64><EFBFBD><EFBFBD>";
}
}
if ($("tbETD").value != "") {
bl = CheckDate($("tbETD").value);
if (!bl) {
alt += "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy-MM-dd<64><64><EFBFBD><EFBFBD>";
}
}
//
if ($("tbSTLDATE").value != "") {
bl = CheckDate($("tbSTLDATE").value);
if (!bl) {
alt += "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy-MM-dd<64><64><EFBFBD><EFBFBD>";
}
}
if ($("hdSTLDATE").value != "") {
bl = CheckDate($("hdSTLDATE").value);
if (!bl) {
alt += "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy-MM-dd<64><64><EFBFBD><EFBFBD>";
}
}
//
if ($("tbISSUEDATE").value != "") {
bl = CheckDate($("tbISSUEDATE").value);
if (!bl) {
alt += "ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>yyyy-MM-dd<64><64><EFBFBD><EFBFBD>";
}
}
//
if (alt == "") {
return true;
}
else {
alt = alt.substring(0, alt.length - 1);
alert(alt + "<22>ĸ<EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
return false;
}
}
//
function onclickCUSTOMERNAME() {
if ($("hd_comboCUSTOMERNAME").value == "") {
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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, "<22><><EFBFBD><EFBFBD><EFBFBD>ᵥ", "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();
}
//<2F>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
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="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if (str == "progress.gif") {
pic1.src = "../images/icons/btnFresh.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>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");<3B><><EFBFBD>ѷ<EFBFBD>ʽ
//comboSERVICE.loadXML("../FeeCodes/TCodeServiceAdapter.aspx?mask=0&pos=0"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
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>
<!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
<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>
<!--<2D><><EFBFBD><EFBFBD>-->
<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="<22><><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>" onclick="setEnter();" class="cssfont"/></div>
</div>
<div class="xbtn-img">
<div class="btnimg"><asp:ImageButton ID="ibDel" runat="server" onclick="ibDel_Click" ToolTip="ɾ<><C9BE>" ImageUrl="../images/icons/remove.gif" OnClientClick="return confirm('ȷ<><C8B7>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')" CssClass="cssfont"/></div>
</div>
<div class="xbtn-img">
<img id="imgFresh" runat=server src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="ˢ<><CBA2>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ" 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;">
<!-- ѡ<><EFBFBD><EEBFA8>ʼ -->
<div class="nTab" style="float:left; width:780px;background-color: #ECF2FF">
<!-- <20><><EFBFBD>ʼ -->
<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);"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</li>
<li class="normal" onclick="nTabs(this,1);"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</li>
</ul>
</div>
<!-- <20><><EFBFBD>ݿ<EFBFBD>ʼ -->
<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="ҵ<><D2B5>״̬" 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="<22><><EFBFBD><EFBFBD>״̬" 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="<22><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>" width="50px" CssClass="cssfont"></asp:Label>
</td>
<td width="100px">
<asp:TextBox ID="tbACCDATE" runat="server" CssClass="txtTab12" ToolTip="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2011-4<><34>" onclick="WdatePicker({dateFmt:'yyyy-M'});" MaxLength=7></asp:TextBox>
</td>
<td width="10px"></td>
<td width="50px">
<asp:Label ID="Label4" runat="server" Text="װ<>˷<EFBFBD>ʽ" 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="ί<>е<EFBFBD>λ" 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="ҵ<><D2B5><EFBFBD><EFBFBD>Դ" 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="<22><>Դ<EFBFBD><D4B4>ϸ" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><>֤" 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="<22>ͷ<EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ" width="50px" CssClass="cssfont"></asp:Label></td>
<td colspan=7>
<asp:CheckBox ID="ISFUMIGATION" runat="server" Text="Ѭ<><D1AC>"/>
&nbsp;
<asp:CheckBox ID="ISSTORAGE" runat="server" Text="<22>ִ<EFBFBD>"/>
&nbsp;
<asp:CheckBox ID="ISLAND" runat="server" Text="½<><C2BD>"/>
&nbsp;
<asp:CheckBox ID="ISCUSTOMS" runat="server" Text="<22><><EFBFBD><EFBFBD>"/>
&nbsp;
<asp:CheckBox ID="ISINSPECTION" runat="server" Text="<22><><EFBFBD><EFBFBD>"/>
&nbsp;
<asp:CheckBox ID="ISBOOKING" runat="server" Text="<22><><EFBFBD><EFBFBD>"/>
&nbsp;
<asp:CheckBox ID="ISAGENT" runat="server" Text="ʹ<>ô<EFBFBD><C3B4><EFBFBD>"/>
&nbsp;
<asp:CheckBox ID="ISHBLNO" runat="server" Text="<22>ֵ<EFBFBD>ǩ<EFBFBD><C7A9>"/>
</td>
</tr>
<tr>
<td colspan=11>
<table width=100%>
<tr>
<td>
<asp:Label ID="Label60" runat="server" Text="<22><><EFBFBD>ʽ" 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>Ʊ<><C6B1></asp:ListItem>
<asp:ListItem><3E>½<EFBFBD></asp:ListItem>
<asp:ListItem><3E><><EFBFBD>½<EFBFBD></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td>
<asp:Label ID="Label61" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD>ձ<EFBFBD><D5B1><EFBFBD>" 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="ί<>б<EFBFBD><D0B1><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><E1B5A5>" 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="<22><><EFBFBD><EFBFBD><E1B5A5>" 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="<22>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>" 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="<22>绰" 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="<22><><EFBFBD><EFBFBD>" 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="<22>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>" 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="<22>绰" 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="<22><><EFBFBD><EFBFBD>" 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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˣ<EFBFBD>" 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 <20><><EFBFBD>ջ<EFBFBD><D5BB>ˣ<EFBFBD>" 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 <20><>֪ͨ<CDA8>ˣ<EFBFBD>" 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="<22><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>Ϣ" 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="<22><><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>" 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="ɾ<><C9BE>" 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="<22><><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>" 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="ˢ<><CBA2>" class="cssfont"/></div>
</div>
<div id="divctn" runat="server" class="xbtn-img" onclick="divdisplay();onclickCTN();">
<input id="btCTN" type="button" value="<22><><EFBFBD>ŷ<EFBFBD><C5B7>ŵ<EFBFBD><C5B5><EFBFBD>" 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="<22><>վ" 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="<22><><EFBFBD><EFBFBD>˾" 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="<22><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="װ<><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22>ֿ<EFBFBD>" 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="<22><><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD>" 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<6E><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="Ԥ<><D4A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD>" 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="װ<><D7B0><EFBFBD><EFBFBD>" 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="ж<><D0B6><EFBFBD><EFBFBD>" 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="Ŀ<>ĵ<EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>" 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="<22>ջ<EFBFBD><D5BB>ص<EFBFBD>" 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="<22>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD><EFBFBD>" 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="<22>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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.<2E><><EFBFBD><EFBFBD>־<EFBFBD>ţ<EFBFBD> <br />Marks & Nos.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</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 <20><><EFBFBD><EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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 />
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</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="<22>ܼ<EFBFBD><DCBC><EFBFBD>" 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 ë<>أ<EFBFBD><D8A3><EFBFBD><EFBFBD></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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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 <20><><EFBFBD><EFBFBD><EBA3A8><EFBFBD><EFBFBD><EFBFBD>ף<EFBFBD></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="<22>ܳ<EFBFBD><DCB3><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д" 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="ǩ<><C7A9><EFBFBD><EFBFBD>ʽ" 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"><3E><><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem><3E><><EFBFBD><EFBFBD></asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label54" runat="server" Text="ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="ǩ<><C7A9><EFBFBD>ص<EFBFBD>" 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="<22><EFBFBD><E1B5A5><EFBFBD><EFBFBD>" 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="<22><><EFBFBD>ѷ<EFBFBD>ʽ" 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="<22><><EFBFBD>ѵص<D1B5>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><>ע" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ"></asp:Label>
<asp:ImageButton ID="ibMidway" runat="server"
ImageUrl="~/images/icons/addcover.gif" ToolTip="<22><><EFBFBD><EFBFBD>" AlternateText="<22><><EFBFBD><EFBFBD>"
onclick="ibMidway_Click" CssClass="cssfont"/>
&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label64" runat="server" Text="<22><>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӷ<EFBFBD><D3B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ,<2C><><EFBFBD><EFBFBD>ǰ<EFBFBD>̶<EFBFBD><CCB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̵ȣ<CCB5>"></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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<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="<22><><EFBFBD>ʽ">
<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="<22><><EFBFBD><EFBFBD>߱<EFBFBD><DFB1><EFBFBD>">
<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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<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="<22>ۿڼ<DBBF><DABC>ڰ<EFBFBD>">
<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="<22><><EFBFBD><EFBFBD>"></asp:LinkButton>
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False"
CommandName="Cancel" Text="ȡ<><C8A1>"></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False"
CommandName="Edit" Text="<22>༭"></asp:LinkButton>
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False"
CommandName="Delete" Text="ɾ<><C9BE>" onclientclick="return confirm('ȷ<><C8B7>ɾ<EFBFBD><C9BE>?')"></asp:LinkButton>
</ItemTemplate>
<FooterTemplate>
<asp:LinkButton ID="lbtAdd" runat="server" CausesValidation="False" CommandName="Insert" Text="<22><><EFBFBD><EFBFBD>"></asp:LinkButton>
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel" Text="ȡ<><C8A1>"></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)
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboMIDNUM;
var initValueMIDNUM;
var strddlMIDNUM;
var strhdMIDNUM;
//<2F><><EFBFBD>ʽ
var comboTRANTYPE;
var initValueTRANTYPE;
var strddlTRANTYPE;
var strhdTRANTYPE;
//<2F>ۿڼ<DBBF><DABC>ڰ<EFBFBD>
var comboPORTDISCHAGE;
var initValuePORTDISCHAGE2;
var strddlPORTDISCHAGE;
var strhdPORTDISCHAGE;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var comboMIDNUM2;
var initValueMIDNUM2;
var strddlMIDNUM2;
var strhdMIDNUM2;
//<2F><><EFBFBD>ʽ
var comboTRANTYPE2;
var initValueTRANTYPE2;
var strddlTRANTYPE2;
var strhdTRANTYPE2;
//<2F>ۿڼ<DBBF><DABC>ڰ<EFBFBD>
var comboPORTDISCHAGE2;
var initValuePORTDISCHAGE22;
var strddlPORTDISCHAGE2;
var strhdPORTDISCHAGE2;
function $(id)
{
return document.getElementById(id);
}
function initComboMidwayAdd(sid2,gvi)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
{
//<2F><><EFBFBD><EFBFBD>
strhdMIDNUM2 = sid2+gvi+"_hd_comboMIDNUM";
strddlMIDNUM2 = sid2+gvi+"_ddlMIDNUM";
//initValueMIDNUM=sname;
strhdTRANTYPE2 = sid2+gvi+"_hd_comboTRANTYPE";
strddlTRANTYPE2 = sid2+gvi+"_ddlTRANTYPE";
//<2F><><EFBFBD><EFBFBD>
strhdPORTDISCHAGE2 = sid2+gvi+"_hd_comboPORTDISCHAGE";
strddlPORTDISCHAGE2 = sid2+gvi+"_ddlPORTDISCHAGE";
}
function initcomboMIDNUMAdd()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
comboMIDNUM = dhtmlXComboFromSelect(strddlMIDNUM2);
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?pos=0&mask=0");
//ȡֵ
comboMIDNUM.attachEvent("onChange", function(){$(""+strhdMIDNUM2+"").value = comboMIDNUM.getSelectedText();});
//<2F><>ֵ
var comIndex = comboMIDNUM.getIndexByValue(initValueMIDNUM);
comboMIDNUM.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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 ()//<2F><><EFBFBD>ʽ
{
//<2F><><EFBFBD><EFBFBD>
comboTRANTYPE = dhtmlXComboFromSelect(strddlTRANTYPE2);
comboTRANTYPE.loadXML("../FeeCodes/TRANTYPEAdapter.aspx?pos=0&mask=0");
//ȡֵ
comboTRANTYPE.attachEvent("onChange", function(){$(""+strhdTRANTYPE2+"").value = comboTRANTYPE.getSelectedText();});
//<2F><>ֵ
var comIndex = comboTRANTYPE.getIndexByValue(initValueTRANTYPE);
comboTRANTYPE.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F>ۿڼ<DBBF><DABC>ڰ<EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
comboPORTDISCHAGE = dhtmlXComboFromSelect(strddlPORTDISCHAGE2);
comboPORTDISCHAGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?pos=0&mask=0&strSel=");
//ȡֵ
comboPORTDISCHAGE.attachEvent("onChange", function(){$(""+strhdPORTDISCHAGE2+"").value = comboPORTDISCHAGE.getSelectedText();});
//<2F><>ֵ
var comIndex = comboPORTDISCHAGE.getIndexByValue(initValuePORTDISCHAGE2);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
{
//<2F><><EFBFBD><EFBFBD>
strhdMIDNUM = sid+"hd_comboMIDNUM";
strddlMIDNUM = sid+"ddlMIDNUM";
//initValueMIDNUM=sname;
strhdTRANTYPE = sid+"hd_comboTRANTYPE";
strddlTRANTYPE = sid+"ddlTRANTYPE";
//<2F><><EFBFBD><EFBFBD>
strhdPORTDISCHAGE = sid+"hd_comboPORTDISCHAGE";
strddlPORTDISCHAGE = sid+"ddlPORTDISCHAGE";
}
function initcomboMIDNUM()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
comboMIDNUM = dhtmlXComboFromSelect(strddlMIDNUM);
comboMIDNUM.loadXML("../FeeCodes/MIDNUMAdapter.aspx?pos=0&mask=0");
//ȡֵ
comboMIDNUM.attachEvent("onChange", function(){$(""+strhdMIDNUM+"").value = comboMIDNUM.getSelectedText();});
//<2F><>ֵ
var comIndex = comboMIDNUM.getIndexByValue(initValueMIDNUM);
comboMIDNUM.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F><><EFBFBD>ʽ
{
//<2F><><EFBFBD><EFBFBD>
comboTRANTYPE = dhtmlXComboFromSelect(strddlTRANTYPE);
comboTRANTYPE.loadXML("../FeeCodes/TRANTYPEAdapter.aspx?pos=0&mask=0");
//ȡֵ
comboTRANTYPE.attachEvent("onChange", function(){$(""+strhdTRANTYPE+"").value = comboTRANTYPE.getSelectedText();});
//<2F><>ֵ
var comIndex = comboTRANTYPE.getIndexByValue(initValueTRANTYPE);
comboTRANTYPE.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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()//<2F>ۿڼ<DBBF><DABC>ڰ<EFBFBD>
{
//<2F><><EFBFBD><EFBFBD>
comboPORTDISCHAGE = dhtmlXComboFromSelect(strddlPORTDISCHAGE);
comboPORTDISCHAGE.loadXML("../FeeCodes/TCodeDisportAdapter.aspx?pos=0&mask=0&strSel=");
//ȡֵ
comboPORTDISCHAGE.attachEvent("onChange", function(){$(""+strhdPORTDISCHAGE+"").value = comboPORTDISCHAGE.getSelectedText();});
//<2F><>ֵ
var comIndex = comboPORTDISCHAGE.getIndexByValue(initValuePORTDISCHAGE2);
comboPORTDISCHAGE.selectOption(comIndex,true,true);
//<2F><><EFBFBD><EFBFBD>
//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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʶ " CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlCARGOID" runat="server" CssClass="txtTab13" Height=22px>
<asp:ListItem Selected="True" Value="S">Sͨ<53><CDA8></asp:ListItem>
<asp:ListItem Value="R">R<><52><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem Value="D">DΣ<44><CEA3>Ʒ</asp:ListItem>
<asp:ListItem Value="O">O<><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem Value="C">C</asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td colspan=2>
<asp:CheckBox ID="cbISCONTAINERSOC" runat="server" Text="<22>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label37" runat="server" Text="<22><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD>" 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"><3E><><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD></asp:ListItem>
<asp:ListItem Value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9A9></asp:ListItem>
<asp:ListItem Value="3">ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9A9></asp:ListItem>
<asp:ListItem Value="4"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9A9></asp:ListItem>
<asp:ListItem Value="5"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9A9></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"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</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="<22><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22>¶ȵ<C2B6>λ" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:RadioButtonList ID="rblTEMPID" runat="server" BorderStyle="None" CssClass="txtTab12"
RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="C"><3E><><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem Value="F"><3E><><EFBFBD><EFBFBD></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">Σ<><CEA3>Ʒ<EFBFBD><C6B7>Ϣ</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="Σ<><CEA3>Ʒ<EFBFBD>ȼ<EFBFBD>" 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="Σ<><CEA3>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>" 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="Σ<><CEA3>Ʒҳ<C6B7><D2B3>" 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="Σ<><CEA3>Ʒ<EFBFBD><C6B7>ǩ" 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="Σ<><CEA3>Ʒ<EFBFBD><C6B7>ϵ<EFBFBD><CFB5>" 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"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</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="<22><><EFBFBD>չ<EFBFBD>˾" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 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="<22><>Ʊ<EFBFBD><C6B1>" 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="<22>˷<EFBFBD>Э<EFBFBD><D0AD><EFBFBD><EFBFBD>" 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<44><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</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="װ<><D7B0><EFBFBD>۴<EFBFBD><DBB4><EFBFBD>" 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="ж<><D0B6><EFBFBD>۴<EFBFBD><DBB4><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD>ش<EFBFBD><D8B4><EFBFBD>" 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="Ŀ<>ĵش<C4B5><D8B4><EFBFBD>" 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="<22>ջ<EFBFBD><D5BB>ش<EFBFBD><D8B4><EFBFBD>" 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="<22>ᵥǩ<E1B5A5><C7A9><EFBFBD>ش<EFBFBD><D8B4><EFBFBD>" 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbVESSELID" runat="server" CssClass="txtTab12" MaxLength="9"></asp:TextBox>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- ѡ<><EFBFBD><EEBFA8><EFBFBD><EFBFBD> -->
</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>