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.

966 lines
40 KiB
Plaintext

12 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBlissue.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBlissue" %>
<!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><E1B5A5><EFBFBD><EFBFBD></title>
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css" />
<!--<2D><>ť<EFBFBD><C5A5>-->
<style type="text/css">
.btn-content0
{
width: 100%;
height: 30px;
background: url( "../images/content-header.gif" );
cursor: default;
}
</style>
<!--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/jsGridSeaExportInfoBlissue.js" type="text/javascript"></script>
<script src="../js/jsGridSeaExportInfoBlissue_2.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<style type="text/css">
#divh
{
position: absolute;
z-index: 1001;
left: 40%;
top: 30%;
width: 300px;
margin-left: -200px;
border: solid 6px #ddd;
}
.box
{
border: solid 1px #999;
font-size: 14px;
}
#tit
{
border-bottom: solid 1px #999;
background-color: #cccccc;
padding: 6px;
font-weight: bold;
}
#bod
{
background-color: #ffffff;
padding: 20px;
}
#bot
{
border-top: solid 1px #999;
background-color: #cccccc;
text-align: right;
}
.menu
{
position: absolute;
z-index: 101;
width: 150px;
border: solid 1px #999;
padding: 2px;
background-color: #ffffff;
}
.menu a
{
padding: 5px 6px;
font-size: 12px;
color: #000000;
cursor: default;
text-decoration: none;
padding-top: 1px;
width: 90px;
}
.menu a:hover
{
background-color: #507cd1;
color: #ffffff;
}
.regular
{
text-decoration: none;
cursor: default;
margin-right: 20px;
}
.imgLeftButton
{
background-image: url(../images/icons/edit_right.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgLeftHoverButton
{
background-image: url(../images/icons/edit_righthover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgRightButton
{
background-image: url(../images/icons/edit_left.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgRightHoverButton
{
background-image: url(../images/icons/edit_lefthover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgUpButton
{
background-image: url(../images/icons/edit_up.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgUpHoverButton
{
background-image: url(../images/icons/edit_uphover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgDownButton
{
background-image: url(../images/icons/edit_down.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgDownHoverButton
{
background-image: url(../images/icons/edit_downhover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.enterButton
{
display: block;
float: left;
margin: 0 7px 0 0;
background-color: #d5d5d5;
border: 1px solid #dedede;
border-top: 1px solid #eee;
border-left: 1px solid #eee;
font-family: "Lucida Grande" , Tahoma, Arial, Verdana, sans-serif;
font-size: 12px;
line-height: 130%;
text-decoration: none;
font-weight: bold;
color: #565656;
cursor: default;
padding: 5px 10px 6px 7px; /* Links */
width: 60px;
text-align: center;
margin-top: 8px;
margin-left: 20px;
}
.enterButton:hover
{
background-color: #dff4ff;
border: 1px solid #c2e1ef;
color: #336699;
}
.enterButton:active
{
background-color: #6299c5;
border: 1px solid #6299c5;
color: #fff;
}
.dvMenu
{
display: block;
background-color: #ffffff;
border: 1px solid #dedede;
border-top: 1px solid #eee;
border-left: 1px solid #eee;
font-family: "Lucida Grande" , Tahoma, Arial, Verdana, sans-serif;
font-size: 12px;
line-height: 130%;
text-decoration: none;
font-weight: bold;
color: #565656;
cursor: default;
padding: 8px 0px 6px 7px; /* Links */
width: 95%;
text-align: center;
}
.dvMenu:hover
{
background-color: #dff4ff;
border: 1px solid #c2e1ef;
color: #336699;
}
.dvMenu:active
{
background-color: #6299c5;
border: 1px solid #6299c5;
color: #fff;
}
</style>
<!--<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.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">
var comboVESSEL;//<2F><><EFBFBD><EFBFBD>
var comboVOYNO;//<2F><><EFBFBD><EFBFBD>
function $(id)
{
return document.getElementById(id);
}
function initComboVESSEL()//<2F><><EFBFBD><EFBFBD>
{
comboVESSEL = dhtmlXComboFromSelect("ddlVESSEL");
comboVESSEL.loadXML("../FeeCodes/TCodeVesselAdapter.aspx?mask=0&pos=0");
//
comboVOYNO = dhtmlXComboFromSelect("ddlVOYNO");
var strVESSEL=$("hd_comboVESSEL").value;
comboVOYNO.loadXML("../FeeCodes/TCodeVoynoAdapter.aspx?mask=0&pos=0&strVESSEL="+strVESSEL);
}
function initComboVESSEL2()//<2F><><EFBFBD><EFBFBD>
{
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()
{
$("hd_comboVESSEL").value = comboVESSEL.getComboText().trim();
$("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);
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();
});
}
</script>
<script type="text/javascript">
function createGrid2()
{
this.mygrid_log2.attachEvent("onEditCell",function(state,id,index)
{
if (mygrid_log2._columns && !mygrid_log2._columns[index]) return true;
var cell = mygrid_log2.cells(id,index)
if (state==1)
{
if(cell.isCheckbox())
{
//mygrid_log2.setUpdated(id,true)
}
}
else if (state==2)
{
if(cell.wasChanged())
{
var colLabel=mygrid_log2.getColLabel(index);
var cellinfo = cell.cell.innerText;
if(colLabel=="<22><EFBFBD><E1B5A5><EFBFBD><EFBFBD>")
{
$("hid_strSel").value =" BLORDERNO='"+cellinfo+"' where BSNO='"+id+"' and BSINKNO='"+$("hid_BSINKNO").value+"' and BLSTATUS='<27><><EFBFBD><EFBFBD><EFBFBD>ᵥ'";
document.getElementById("btBLORDERNO").click();
}
else if(colLabel=="ǩ<><C7A9><EFBFBD><EFBFBD>ʽ")
{
$("hid_strSel").value =" ISSUETYPE='"+cellinfo+"' where BSNO='"+id+"'";
document.getElementById("btISSUETYPE").click();
}
else if(colLabel=="<22><>ע")
{
$("hid_strSel").value =" REMARK='"+cellinfo+"' where BSNO='"+id+"' and BSINKNO='"+$("hid_BSINKNO").value+"' and BLSTATUS='<27><><EFBFBD><EFBFBD><EFBFBD>ᵥ'";
document.getElementById("btREMARK").click();
}
//mygrid_log2.setUpdated(id,true)
}
}
return true;
});
}
</script>
<!--GridEnd-->
<script language="javascript" type="text/javascript">
function QueryString()
{
var name,value,i;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󲢳<EFBFBD>ʼ<EFBFBD><CABC>
var str=location.href;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>URL<52><4C>
var num=str.indexOf("?")
str=str.substr(num+1);//<2F><>ȡ<EFBFBD><C8A1>?<3F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>
var arrtmp=str.split("&");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γɲ<CEB3><C9B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for(i=0;i < arrtmp.length;i++)
{
num=arrtmp[i].indexOf("=");
if(num>0)
{
name=arrtmp[i].substring(0,num);//ȡ<>ò<EFBFBD><C3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
value=arrtmp[i].substr(num+1);//ȡ<>ò<EFBFBD><C3B2><EFBFBD>ֵ
this[name]=value;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>ʼ<EFBFBD><CABC>
}
}
}
/*
function ShowDetailAdd()
{
try
{
//var checked1=mygrid_log.getCheckedRows(0);//<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD>е<EFBFBD>grid<69><64>id<69><64><EFBFBD><EFBFBD>
var ids=mygrid_log.getAllRowIds();//<2F><><EFBFBD>е<EFBFBD>grid<69><64>id<69><64><EFBFBD><EFBFBD>
var items= new Array();
items =ids.split(",");
if (items != null && items.length > 0)
{
var iXZ;
var strBSNO;
var loader;
var iVal;
//
for (var j=0; j<mygrid_log.getColumnsNum(); j++)
{
var colLabel=mygrid_log.getColLabel(j);
if(colLabel=="ѡ<><D1A1>")
{
iXZ=j;
}
}
//
if($("hid_handle").value=="add")
{
for (var k=0; k<mygrid_log.getRowsNum(); k++)
{
iVal = mygrid_log.cellByIndex(k,iXZ).getValue();
if(iVal==1)
{
strBSNO = items[k].trim();
loader = dhtmlxAjax.getSync("../FeeCodes/SeaExportInfoBlissueBSINKNOAdapter.aspx?handle="+$("hid_handle").value+"&OPNAME="+$("hid_userid").value+"&BSNO="+strBSNO+"&val="+newGuid());
if(loader.xmlDoc.responseText=="")
{
alert('<27>ᵥǩ<E1B5A5><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>op_blissuelist<73><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
//ShowDetailFresh();
return;
}
$("Label1").value = loader.xmlDoc.responseText;
$("hid_BSINKNO").value = loader.xmlDoc.responseText;
$("hid_handle").value="edit"
break;
}
}
}
//
for (var i=0; i<mygrid_log.getRowsNum(); i++)
{
iVal = mygrid_log.cellByIndex(i,iXZ).getValue();
if(iVal==1)
{
var strBSNO = items[i];
var loaders = dhtmlxAjax.getSync("../FeeCodes/SeaExportInfoBlissueAdapter.aspx?OPNAME="+$("hid_userid").value+"&BSINKNO="+$("hid_BSINKNO").value+"&BSNO="+strBSNO+"&val="+newGuid());
if(loaders.xmlDoc.responseText!="")
{
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
//ShowDetailFresh();
return;
}
}
}
ShowDetailFresh2();
}
else
{
alert('<27><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>');
//ShowDetailFresh();
return;
}
}
catch(e)
{
alert('<27><><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
//ShowDetailFresh();
return;
}
//ShowDetailFresh();
}
*/
function ShowDetailAdd()
{
try
{
//var ids=mygrid_log.getAllRowIds();//<2F><><EFBFBD>е<EFBFBD>grid<69><64>id<69><64><EFBFBD><EFBFBD>
var checked1=mygrid_log.getCheckedRows(0);//<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD>е<EFBFBD>grid<69><64>id<69><64><EFBFBD><EFBFBD>
var items= new Array();
items =checked1.split(",");
if (items != null && items.length > 0)
{
if($("hid_handle").value=="add")
{
var loader = dhtmlxAjax.getSync("../FeeCodes/SeaExportInfoBlissueBSINKNOAdapter.aspx?handle="+$("hid_handle").value+"&OPNAME="+$("hid_userid").value+"&BSNO="+items[0].trim()+"&val="+newGuid());
if(loader.xmlDoc.responseText=="")
{
alert('<27>ᵥǩ<E1B5A5><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>op_blissuelist<73><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
return;
}
$("Text1").value = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>"+loader.xmlDoc.responseText;
$("hid_BSINKNO").value = loader.xmlDoc.responseText;
$("hid_handle").value="edit"
window.opener.location.reload();
}
}
//
if(checked1!="")
{
$("hid_BSNO").value=checked1;
document.getElementById("btAdd").click();
ShowDetailFresh2();
}
else
{
alert('<27><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>Ҫ<EFBFBD><D2AA><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD><EFBFBD>ݣ<EFBFBD>');
return;
}
}
catch(e)
{
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD><C9B3><EFBFBD><EFBFBD><EFBFBD>');
return;
}
}
function ShowDetailDel()
{
var checked2=mygrid_log2.getCheckedRows(0);//<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD>е<EFBFBD>grid<69><64>id<69><64><EFBFBD><EFBFBD>
if(checked2!=null && checked2!="")
{
var ii = GetRange();
if(ii==0)
{
return;
}
//
if(confirm('ȷ<><C8B7>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'))
{
$("hid_id").value = checked2;//mygrid_log2.getSelectedRowId();
document.getElementById("btDel").click();
ShowDetailFresh2();
}
}
else
{
alert('<27><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>Ҫɾ<D2AA><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>');
return;
}
}
function ShowDetailFresh()
{
initLog();
initMenu();
}
function ShowDetailFresh2()
{
initLog2();
initMenu2();
//createGrid2();
}
function ShowDetailSelect()
{
$("hid_sel").value="";
if($("hd_comboVESSEL").value!="")
{
$("hid_sel").value+=" and VESSEL='"+$("hd_comboVESSEL").value+"'";
}
if($("hd_comboVOYNO").value!="")
{
$("hid_sel").value+=" and VOYNO='"+$("hd_comboVOYNO").value+"'";
}
if($("tbMBLNO").value!="")
{
$("hid_sel").value+=" and (CUSTNO like '%" + $("tbMBLNO").value + "%' or MBLNO like '%" + $("tbMBLNO").value + "%' or HBLNO like '%" + $("tbMBLNO").value + "%' or ORDERNO like '%" + $("tbMBLNO").value + "%')";
}
if($("tbETD").value!="")
{
$("hid_sel").value+=" and convert(char(10),ETD,20)>='"+$("tbETD").value+"'";
}
if($("tbETD2").value!="")
{
$("hid_sel").value+=" and convert(char(10),ETD,20)<='"+$("tbETD2").value+"'";
}
if($("hid_sel").value=="")
{
$("hid_sel").value ="all";
}
initLog();
initMenu();
}
function printAction()
{
var strBSNO = "";
strBSNO = $("hid_BSINKNO").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 = "SEAEBLISSUE"; var dbSourceID = ""; var userID = "";
var url = "../Reports/ReportService.aspx?handle=printseaeblissue&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();
}
function GetRange()
{
var loader;
var dates;
var strR="";
var strgid = mygrid_log.getSelectedRowId();
if ($("hdRangeV").value != $("hdRangeO").value)
{
if($("hdRangeO").value=="1")//<2F>ֹ<EFBFBD>˾
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=1&strGID="+strgid+"&RangeName=modSeaExportInfoBlissuelist&val="+newGuid());
dates = loader.xmlDoc.responseText;
if(dates=="")
{
alert("<22><>û<EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD>Ȩ<EFBFBD>ޣ<EFBFBD>");
return 0;
}
}
if($("hdRangeO").value=="2")//<2F>ֹ<EFBFBD>˾
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=2&strGID="+strgid+"&RangeName=modSeaExportInfoBlissuelist&val="+newGuid());
dates = loader.xmlDoc.responseText;
if(dates=="")
{
alert("<22><>û<EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD>Ȩ<EFBFBD>ޣ<EFBFBD>");
return 0;
}
}
else if ($("hdRangeO").value="3")//<2F><><EFBFBD><EFBFBD>
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=3&strGID="+strgid+"&RangeName=modSeaExportInfoBlissuelist&val="+newGuid());
dates = loader.xmlDoc.responseText;
if(dates=="")
{
alert("<22><>û<EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD>Ȩ<EFBFBD>ޣ<EFBFBD>");
return 0;
}
}
}
}
/*
function imgAddChangePic()
{
var pic1=document.getElementById("imgAdd");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="edit_downhover.gif")
{
pic1.src="../images/icons/edit_down.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="edit_down.gif")
{
pic1.src="../images/icons/edit_downhover.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>AͼƬ";
}
}
function imgDelChangePic()
{
var pic1=document.getElementById("imgDel");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="edit_uphover.gif")
{
pic1.src="../images/icons/edit_up.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="edit_up.gif")
{
pic1.src="../images/icons/edit_uphover.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>AͼƬ";
}
}
*/
function imgAddChangePic()
{
var pic1=document.getElementById("imgAdd");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="order_modify.gif")
{
pic1.src="../images/order_cancel.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="order_cancel.gif")
{
pic1.src="../images/order_modify.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>AͼƬ";
}
}
function imgDelChangePic()
{
var pic1=document.getElementById("imgDel");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="remove.gif")
{
pic1.src="../images/delete.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>BͼƬ";
}
else if(str=="delete.gif")
{
pic1.src="../images/icons/remove.gif";
//pic1.alt="<22><><EFBFBD><EFBFBD>AͼƬ";
}
}
function imgFresh2ChangePic()
{
var pic1=document.getElementById("imgFresh2");
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ͼƬ";
}
}
</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();
}
//<2F>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
document.onkeypress = function ()
{
if(event.keyCode==13)
{
ShowDetailSelect();
}
}
</script>
</head>
<body onload="initLog();initMenu();initComboVESSEL();initComboVESSEL2();initComboVOYNO();initLog2();initMenu2();" style="border: 0px; width: 100%; height: 100%">
<form id="form1" runat="server">
<div style="width: 100%; vertical-align: text-bottom;" class="btn-content0">
<div class="btn-blank">
</div>
</div>
<div style="font-weight: bold; height:30px">
<input id="Text1" type="text" style="border-style: none;" runat="server"/>
</div>
<div>
<table style="width:100%">
<tr>
<td style="width:20px;"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div></td>
<td style="width:140px;"><select id="ddlVESSEL" runat="server" class="txtTab" style="width:140px"></select></td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont"><3E><><EFBFBD>Σ<EFBFBD></div></td>
<td style="width:100px;"><select id="ddlVOYNO" runat="server" class="txtTab" style="width: 100px"></select></td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont"><3E><EFBFBD>ţ<EFBFBD></div></td>
<td style="width:100px;"><input id="tbMBLNO" type="text" class="txtTab" style="width:100px" /></td>
<td style="width:80px;"><div style="width:80px; text-align:right;" class="cssfont">ETD<54><44><EFBFBD>䣺</div></td>
<td style="width:80px;"><asp:TextBox ID="tbETD" runat="server" onclick="WdatePicker()" Width="80px" ReadOnly="True" CssClass="txtTab"></asp:TextBox></td>
<td style="width:8px;"><div style="width:8px;" class="cssfont">~</div></td>
<td style="width:80px;"><asp:TextBox ID="tbETD2" runat="server" onclick="WdatePicker()" Width="80px" ReadOnly="True" CssClass="txtTab"></asp:TextBox></td>
<td style="width:80px;">
<div onclick="ShowDetailSelect()" style="margin-left:5px;width:80px;">
<div style="width:20px; height:20px; float:left;margin-top:3px;"><img src="../images/icons/btnSearch.gif" title="<22><>ѯ"/></div>
<div style="float:left; font-size:12px; cursor:default;margin-top:5px; width:60px;"><3E><>ѯ</div></div>
</td>
<td width="30%"></td>
</tr>
</table>
</div>
<div oncontextmenu="return false">
<div style="width:100%; overflow-x:scroll; position:relative;"><div id="mygrid_container_log" style="width: 998px; height: 225px;" runat="server" class="cssfont"></div>
</div>
<div id="pager" style="width: 100%; margin: 0px; padding: 4px; border: 0px solid #999;">
</div>
<div id="info" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px;
border: 1px solid #999; display: none;">
</div>
<div>
<input type="hidden" id="hid_setting" runat="server" />
<input type="hidden" id="hid_header" runat="server" />
<input type="hidden" id="hid_id" runat="server" />
<input type="hidden" id="hid_sel" runat="server" />
<input type="hidden" id="hd_comboVESSEL" runat="server" />
<input type="hidden" id="hd_comboVOYNO" runat="server" />
<asp:Button ID="btDel" runat="server" Text="Button" OnClick="btDel_Click" Style="display: none" />
<div id="dvSaveState" runat="server">
</div>
<div id="divh" style="display: none;">
<div class="box">
<div id="tit">
</div>
<div id="bod">
</div>
<div id="bot">
</div>
</div>
</div>
</div>
</div>
<div style="width: 100%; vertical-align: text-bottom;" class="btn-content0">
<div class="btn-blank">
</div>
<div class="xbtn-img">
<img id="imgAdd" runat=server src="../images/icons/btnAdd.gif" onclick="ShowDetailAdd();" class="btnimg" alt="<22><><EFBFBD><EFBFBD>" onmouseover="imgAddChangePic();" onMouseOut="imgAddChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgSave" runat=server src="../images/icons/save.gif" onclick="saveRecvChange();" class="btnimg" alt="<22><><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>"/>
</div>
<div class="xbtn-img">
<img id="imgDel" runat=server src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="ɾ<><C9BE>" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
</div>
<div class="xbtn-img">
<img id="imgFresh2" src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh2();" onmouseover="imgFresh2ChangePic();" onMouseOut="imgFresh2ChangePic();" class="btnimg" alt="ˢ<><CBA2>"/>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="imgPrint" runat=server src="../images/icons/print.gif" style="width:16px;" title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ" onclick="printAction()"/></div>
</div>
</div>
<div oncontextmenu="return false">
<div style="width:99*%; overflow-x:scroll; position:relative;"><div id="mygrid_container_log2" style="width: 998px; height:225px;" runat="server" class="cssfont"></div></div>
<div id="pager2" style="width: 100%; margin: 0px; padding: 4px; border: 0px solid #999;text-align: center;">
</div>
<div id="info2" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px; border: 1px solid #999; display: none;">
</div>
<div>
<input type="hidden" id="hid_setting2" runat="server" />
<input type="hidden" id="hid_header2" runat="server" />
<input type="hidden" id="hid_userid" runat="server" />
<input type="hidden" id="hid_BSINKNO" runat="server" />
<input type="hidden" id="hid_BSNO" runat="server" />
<input type="hidden" id="hid_handle" runat="server" />
<input type="hidden" id="hid_strSel" runat="server" />
<asp:Button ID="btBLORDERNO" runat="server" Text="Button" OnClick="btBLORDERNO_Click" Style="display: none" />
<asp:Button ID="btISSUETYPE" runat="server" Text="Button" OnClick="btISSUETYPE_Click" Style="display: none" />
<asp:Button ID="btREMARK" runat="server" Text="Button" OnClick="btREMARK_Click" Style="display: none" />
<asp:Button ID="btAdd" runat="server" Text="Button" OnClick="btAdd_Click" Style="display: none" />
<div id="dvSaveState2" runat="server">
</div>
<div id="divh2" style="display: none;">
<div class="box">
<div id="tit2">
</div>
<div id="bod2">
</div>
<div id="bot2">
</div>
</div>
</div>
</div>
</div>
<div>
<input id="hdRangeV" type="hidden" runat=server/>
<input id="hdRangeO" type="hidden" runat=server/>
<input id="hdRange" type="hidden" runat=server/>
</div>
</form>
</body>
</html>