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/js/jsGridSeaImportLCLInfo.js

761 lines
34 KiB
JavaScript

2 years ago
var mygrid_recv;
var page_count = 5;
var column_count;
var jsonTopCtnObj;
var changeCount = 0;
//两端去空格函数
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function $(id) {
return document.getElementById(id);
}
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
//document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
//document.onselectstart=new Function("event.returnValue=false;"); //禁止先择,也就是无法复制
var comboCUSTOMERNAME; //委托单位
var comboSTORAGENAME; //仓库名称
var comboCUSTOMSER;//报关行
var comboINSPECTION; //报检行
var ComboGOODSNAME; //品名
var comboVESSEL; //船名
function $(id)
{
return document.getElementById(id);
}
function initComboCUSTOMERNAME()//委托单位
{
comboCUSTOMERNAME = dhtmlXComboFromSelect("ddlCUSTOMERNAME");
comboCUSTOMERNAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCONTROLLER");
}
function initComboCUSTOMERNAME2()//委托单位
{
if($("hdEnabled").value == "false")
{
comboCUSTOMERNAME.disable(true);
}
comboCUSTOMERNAME.setOptionWidth(200);
comboCUSTOMERNAME.attachEvent("onChange", function()
{
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
});
comboCUSTOMERNAME.attachEvent("onBlur", function () {
var s1 = comboCUSTOMERNAME.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboCUSTOMERNAME").value = "";
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
}
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);
}
}
});
comboCUSTOMERNAME.setComboText($("hd_comboCUSTOMERNAME").value);
comboCUSTOMERNAME.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function()
{
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboCUSTOMERNAME").value.trim();
if("" != comboCUSTOMERNAME.getComboText().trim())
{
while("undefined" != typeof comboCUSTOMERNAME.getOptionByIndex(filterCount))
{
var comboValue = comboCUSTOMERNAME.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboCUSTOMERNAME.getComboText().trim().toUpperCase();
$("hd_comboCUSTOMERNAME").value = comboCUSTOMERNAME.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0)
{
comboCUSTOMERNAME.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboCUSTOMERNAME").value = ishd;
alert("无此内容,请重新选择!");
}
}
},10);
}
});
comboCUSTOMERNAME.attachEvent("onSelectionChange", function()
{
$("hd_comboCUSTOMERNAME").value = comboCUSTOMERNAME.getComboText().trim();
});
}
function initComboSTORAGENAME()//仓库
{
comboSTORAGENAME = dhtmlXComboFromSelect("ddlSTORAGENAME");
comboSTORAGENAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISWAREHOUSE");
}
function initComboSTORAGENAME2()//仓库
{
if ($("hdEnabled").value == "false") {
comboSTORAGENAME.disable(true);
}
comboSTORAGENAME.setOptionWidth(200);
comboSTORAGENAME.attachEvent("onChange", function () {
comboSTORAGENAME.setComboText($("hd_comboSTORAGENAME").value);
});
comboSTORAGENAME.attachEvent("onBlur", function () {
var s1 = comboSTORAGENAME.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboSTORAGENAME").value = "";
comboSTORAGENAME.setComboText($("hd_comboSTORAGENAME").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboSTORAGENAME.setComboText(s3);
$("hd_comboSTORAGENAME").value = s3;
}
else {
comboSTORAGENAME.setComboText($("hd_comboSTORAGENAME").value);
}
}
});
comboSTORAGENAME.setComboText($("hd_comboSTORAGENAME").value);
comboSTORAGENAME.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboSTORAGENAME").value.trim();
if ("" != comboSTORAGENAME.getComboText().trim()) {
while ("undefined" != typeof comboSTORAGENAME.getOptionByIndex(filterCount)) {
var comboValue = comboSTORAGENAME.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboSTORAGENAME.getComboText().trim().toUpperCase();
$("hd_comboSTORAGENAME").value = comboSTORAGENAME.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboSTORAGENAME.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboSTORAGENAME").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboSTORAGENAME.attachEvent("onSelectionChange", function () {
$("hd_comboSTORAGENAME").value = comboSTORAGENAME.getComboText().trim();
});
}
function initComboYARD()//场站/靠泊码头
{
comboYARD = dhtmlXComboFromSelect("ddlYARD");
comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
}
function initComboYARD2()//场站/靠泊码头
{
if ($("hdEnabled").value == "false") {
comboYARD.disable(true);
}
comboYARD.setOptionWidth(200);
comboYARD.attachEvent("onChange", function () {
comboYARD.setComboText($("hd_comboYARD").value);
});
comboYARD.attachEvent("onBlur", function () {
var s1 = comboYARD.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboYARD").value = "";
comboYARD.setComboText($("hd_comboYARD").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboYARD.setComboText(s3);
$("hd_comboYARD").value = s3;
}
else {
comboYARD.setComboText($("hd_comboYARD").value);
}
}
});
comboYARD.setComboText($("hd_comboYARD").value);
comboYARD.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
var is = -1;
var ishd = $("hd_comboYARD").value.trim();
if ("" != comboYARD.getComboText().trim()) {
while ("undefined" != typeof comboYARD.getOptionByIndex(filterCount)) {
var comboValue = comboYARD.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboYARD.getComboText().trim().toUpperCase();
$("hd_comboYARD").value = comboYARD.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboYARD.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboYARD").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboYARD.attachEvent("onSelectionChange", function () {
$("hd_comboYARD").value = comboYARD.getComboText().trim();
});
}
function initComboGOODSNAME()//货物描述类型
{
comboGOODSNAME = dhtmlXComboFromSelect("ddlGOODSNAME");
comboGOODSNAME.loadXML("../FeeCodes/TCodeGoodsAdapter.aspx?mask=0&pos=0");
}
function initComboGOODSNAME2()//货物描述类型
{
if($("hdEnabled").value == "false")
{
comboGOODSNAME.disable(true);
}
//
comboGOODSNAME.setOptionWidth(200);
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);
}
}
});
comboGOODSNAME.setComboText($("hd_comboGOODSNAME").value);
comboGOODSNAME.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function(){
var is = -1;
var ishd = $("hd_comboGOODSNAME").value.trim();
var filterCount = 0;
if("" != comboGOODSNAME.getComboText().trim()){
while("undefined" != typeof comboGOODSNAME.getOptionByIndex(filterCount)){
var comboValue = comboGOODSNAME.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboGOODSNAME.getComboText().trim().toUpperCase();
$("hd_comboGOODSNAME").value = comboGOODSNAME.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
comboGOODSNAME.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboGOODSNAME").value = ishd;
alert("无此内容,请重新选择!");
}
}},10);}});
comboGOODSNAME.attachEvent("onSelectionChange", function()
{
$("hd_comboGOODSNAME").value = comboGOODSNAME.getComboText().trim();
});
}
//comboGoodsTypeName
function initComboGoodsTypeName()//货物类型描述
{
comboGoodsTypeName = dhtmlXComboFromSelect("ddlGoodsType");
comboGoodsTypeName.loadXML("../FeeCodes/TCodeGoodsTypeAdapter.aspx?mask=0&pos=0");
}
function initComboCUSTOMSER()//报关行
{
comboCUSTOMSER = dhtmlXComboFromSelect("ddlCUSTOMSER");
comboCUSTOMSER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
}
function initComboCUSTOMSER2()//报关行
{
if($("hdEnabled").value == "false")
{
comboCUSTOMSER.disable(true);
}
//
comboCUSTOMSER.setOptionWidth(200);
comboCUSTOMSER.attachEvent("onChange", function(){comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);});
comboCUSTOMSER.attachEvent("onBlur", function(){
var s1 = comboCUSTOMSER.getComboText().trim();
var s2 = s1.indexOf("|");
if(s1=="")
{
$("hd_comboCUSTOMSER").value="";
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
}
else
{
if(s2>0)
{
s2=s2+2;
}
var s3 = s1.substring(s2);
if(s2>0)
{
comboCUSTOMSER.setComboText(s3);
$("hd_comboCUSTOMSER").value=s3;
}
else
{
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
}
}
});
comboCUSTOMSER.setComboText($("hd_comboCUSTOMSER").value);
comboCUSTOMSER.attachEvent("onKeyPressed", function(keyCode)
{
if(keyCode!="8")
{
var arrayArg = new Array();
setTimeout(function(){
var is = -1;
var ishd = $("hd_comboCUSTOMSER").value.trim();
var filterCount = 0;
if("" != comboCUSTOMSER.getComboText().trim()){
while("undefined" != typeof comboCUSTOMSER.getOptionByIndex(filterCount)){
var comboValue = comboCUSTOMSER.getOptionByIndex(filterCount).text.toUpperCase();//.value;
var enterValue = comboCUSTOMSER.getComboText().trim().toUpperCase();
$("hd_comboCUSTOMSER").value = comboCUSTOMSER.getComboText().trim().toUpperCase();
if(comboValue.indexOf(enterValue) == 0){
comboCUSTOMSER.selectOption(filterCount,true,true);
is=filterCount;
break;
}
++filterCount;
}
if(is==-1)
{
$("hd_comboCUSTOMSER").value = ishd;
alert("无此内容,请重新选择!");
}
}},10);}});
comboCUSTOMSER.attachEvent("onSelectionChange", function()
{
$("hd_comboCUSTOMSER").value = comboCUSTOMSER.getComboText().trim();
});
}
function initComboINSPECTION()//报检
{
comboINSPECTION = dhtmlXComboFromSelect("ddlINSPECTION");
comboINSPECTION.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
}
function initComboINSPECTION2()//报检`
{
if ($("hdEnabled").value == "false") {
comboINSPECTION.disable(true);
}
//
comboINSPECTION.setOptionWidth(200);
comboINSPECTION.attachEvent("onChange", function() { comboINSPECTION.setComboText($("hd_comboINSPECTION").value); });
comboINSPECTION.attachEvent("onBlur", function() {
var s1 = comboINSPECTION.getComboText().trim();
var s2 = s1.indexOf("|");
if (s1 == "") {
$("hd_comboINSPECTION").value = "";
comboINSPECTION.setComboText($("hd_comboINSPECTION").value);
}
else {
if (s2 > 0) {
s2 = s2 + 2;
}
var s3 = s1.substring(s2);
if (s2 > 0) {
comboINSPECTION.setComboText(s3);
$("hd_comboINSPECTION").value = s3;
}
else {
comboINSPECTION.setComboText($("hd_comboINSPECTION").value);
}
}
});
comboINSPECTION.setComboText($("hd_comboINSPECTION").value);
comboINSPECTION.attachEvent("onKeyPressed", function(keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function() {
var is = -1;
var ishd = $("hd_comboINSPECTION").value.trim();
var filterCount = 0;
if ("" != comboINSPECTION.getComboText().trim()) {
while ("undefined" != typeof comboINSPECTION.getOptionByIndex(filterCount)) {
var comboValue = comboINSPECTION.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboINSPECTION.getComboText().trim().toUpperCase();
$("hd_comboINSPECTION").value = comboINSPECTION.getComboText().trim().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboINSPECTION.selectOption(filterCount, true, true);
is = filterCount;
break;
}
++filterCount;
}
if (is == -1) {
$("hd_comboINSPECTION").value = ishd;
alert("无此内容,请重新选择!");
}
}
}, 10);
}
});
comboINSPECTION.attachEvent("onSelectionChange", function() {
$("hd_comboINSPECTION").value = comboINSPECTION.getComboText().trim();
});
}
function initComboVESSEL()//船名
{
var strUserID = $("hdUserID").value;
comboVESSEL = dhtmlXComboFromSelect("ddlVESSEL");
comboVESSEL.loadXML("../FeeCodes/TCodeVesselAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
}
function initComboVESSEL2()//船名
{
if ($("hdEnabled").value == "false") {
comboVESSEL.disable(true);
}
//
comboVESSEL.setOptionWidth(200);
comboVESSEL.setComboText($("hd_comboVESSEL").value);
comboVESSEL.attachEvent("onKeyPressed", function (keyCode) {
if (keyCode != "8") {
var arrayArg = new Array();
setTimeout(function () {
var filterCount = 0;
if ("" != comboVESSEL.getComboText().trim()) {
while ("undefined" != typeof comboVESSEL.getOptionByIndex(filterCount)) {
var comboValue = comboVESSEL.getOptionByIndex(filterCount).text.toUpperCase(); //.value;
var enterValue = comboVESSEL.getComboText().toUpperCase();
$("hd_comboVESSEL").value = comboVESSEL.getComboText().toUpperCase();
if (comboValue.indexOf(enterValue) == 0) {
comboVESSEL.selectOption(filterCount, true, true);
$("hd_comboVESSEL").value = comboVESSEL.getComboText().trim();
break;
}
++filterCount;
}
}
}, 10);
}
});
comboVESSEL.attachEvent("onChange", function () {
comboVESSEL.setComboText($("hd_comboVESSEL").value);
});
comboVESSEL.attachEvent("onSelectionChange", function () {
$("hd_comboVESSEL").value = comboVESSEL.getComboText().trim();
});
}
function printAction(){
var strBSNO = "";
strBSNO = $("hdGid").value;
var printUrl = "";
var companyID = "";
var typeName = "SEAOP";
var dbSourceID = "";
var userID = "";
var url = "../Reports/ReportService.aspx?handle=printseai&bsno=" + strBSNO + "&val=" + newGuid();
var loader = dhtmlxAjax.getSync(url);
var reportVal = loader.xmlDoc.responseText;
var reportObj = null;
if(reportVal != ""){
reportObj = eval('(' + reportVal + ')');
if(reportObj.reports.length > 0){
if(reportObj.reports[0].compid != ""){
companyID = reportObj.reports[0].compid;
}
if(reportObj.reports[0].sourceid != ""){
dbSourceID = reportObj.reports[0].sourceid;
}
if(reportObj.reports[0].compid != ""){
userID = reportObj.reports[0].userid;
}
printUrl = "print://?comp="+companyID+"&type="+typeName+"&dbid="+dbSourceID+"&uid="+userID;//alert(printUrl);
window.location.href = window.location.href;
location.href = printUrl;
}
}else{
alert("没有要打印的报表");
return;
}
}
function newGuid(){
var guid = "";
for (var i = 1; i <= 32; i++){
var n = Math.floor(Math.random()*16.0).toString(16);
guid += n;
if((i==8)||(i==12)||(i==16)||(i==20))
guid += "-";
}
return guid.toUpperCase();
}
//--数字键盘锁-->
function fun()
{
//"8"退格,"13"回车,"45"负号“46”英文的点“xxx<48 and xxx>57”指数值键
if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46)
{ alert("错误,只能填写整数!");return false;}
}
//--件数、重量、平方等计数-->
function IsNumeric(s)
{
var inum = s.replace(/[^\d]/g,'');
var bReturn = true;
if(inum=="" || inum==null || inum==NaN)
{
bReturn = false;
}
return bReturn;
}
function setEnter() {
if ($("hd_comboVESSEL").value.trim() == "") {
alert("船名不允许为空!");
return;
}
//
if ($("hd_comboCUSTOMERNAME").value.trim() == "") {
alert("委托单位不允许为空!");
return;
}
//
$("hdEnter").value = "0";
msgBox();
setTimeout(postEnter, 200);
}
//post数据
function postEnter() {
var myForm = document.getElementById("form1");
myForm.submit();
}
//
function onclickCUSTOMERNAME() {
if ($("hd_comboCUSTOMERNAME").value == "") {
var URLs = "../Shipping/ExchangesUnitEdit.aspx?handle=add";
ret = window.open(URLs, "添加提单", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
else {
var loader = dhtmlxAjax.getSync("../FeeCodes/CUSTOMERNAMEGIDAdapter.aspx?handle=gid&CUSTOMERNAME=" + escape($("hd_comboCUSTOMERNAME").value) + "&val=" + newGuid());
var selectedId = loader.xmlDoc.responseText;
var URLs = "../Shipping/ExchangesUnitEdit.aspx?handle=edit&id=" + selectedId;
ret = window.open(URLs, "_blank", "height=768, width=1024,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
//
function 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 getonload0() {
initComboCUSTOMERNAME();
initComboSTORAGENAME();
initComboGOODSNAME();
initComboCUSTOMSER();
initComboINSPECTION();
initComboYARD();
initComboVESSEL();
getonload();
}
function getonload() {
initComboCUSTOMERNAME2();
initComboSTORAGENAME2();
initComboGOODSNAME2();
initComboCUSTOMSER2();
initComboINSPECTION2();
initComboYARD2();
initComboVESSEL2();
}
//回车键控制
document.onkeypress = function() {
if (event.keyCode == 13) {
if (event.srcElement.tagName == 'TEXTAREA') {
return true;
}
//window.event.keyCode=9;
return false;
}
}
function imgFreshChangePic() {
var pic1 = document.getElementById("imgFresh");
var start = pic1.src.lastIndexOf("/");
var str = pic1.src.substring(start + 1);
if (str == "btnFresh.gif") {
pic1.src = "../images/icons/progress.gif";
//pic1.alt="我是B图片";
}
else if (str == "progress.gif") {
pic1.src = "../images/icons/btnFresh.gif";
//pic1.alt="我是A图片";
}
}
function ShowDetailFresh() {
window.parent.location.href = window.parent.location.href;
// var strUserID = $("hdUserID").value;
// comboCUSTOMERNAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCONTROLLER");
// comboSTORAGENAME.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISWAREHOUSE");
// comboYARD.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISYARD");
// comboGOODSNAME.loadXML("../FeeCodes/TCodeGoodsAdapter.aspx?mask=0&pos=0");
// comboCUSTOMSER.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
// comboINSPECTION.loadXML("../FeeCodes/WebCrmClientAdapter.aspx?mask=0&pos=0&strIS=ISCUSTOM");
// comboVESSEL.loadXML("../FeeCodes/TCodeVesselAdapter.aspx?mask=0&pos=0&userID=" + strUserID);
}
function getUNITOFWEIGHT0() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT0").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT0").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT0").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT0").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT0").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT0").value;
}
function getUNITOFWEIGHT1() {
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT1").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT1").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT1").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT1").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT1").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT1").value;
}
function getUNITOFWEIGHT2() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT2").value;
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT2").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT2").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT2").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT2").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT2").value;
}
function getUNITOFWEIGHT3() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT3").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT3").value;
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT3").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT3").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT3").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT3").value;
}
function getUNITOFWEIGHT4() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT4").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT4").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT4").value;
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT4").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT4").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT4").value;
}
function getUNITOFWEIGHT5() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT5").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT5").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT5").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT5").value;
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT5").value;
$("ddlUNITOFWEIGHT6").value = $("ddlUNITOFWEIGHT5").value;
}
function getUNITOFWEIGHT6() {
$("ddlUNITOFWEIGHT1").value = $("ddlUNITOFWEIGHT6").value;
$("ddlUNITOFWEIGHT2").value = $("ddlUNITOFWEIGHT6").value;
$("ddlUNITOFWEIGHT3").value = $("ddlUNITOFWEIGHT6").value;
$("ddlUNITOFWEIGHT4").value = $("ddlUNITOFWEIGHT6").value;
$("ddlUNITOFWEIGHT5").value = $("ddlUNITOFWEIGHT6").value;
$("ddlUNITOFWEIGHT0").value = $("ddlUNITOFWEIGHT6").value;
}