"
// +" "
//// +" "
// +" "
// +"
| "
// +" | |
"
// +" ";
messContent += ""
+ "
";
showMessageBox('综合查询',messContent,objPos,350);
}
function reInitJs(){
//
//
// var opSeaeSrc = $("opseae");
// var origOpSeaeSrc = $("origopseae");
// var defaultSource = $("defaultsource");
if(document.getElementById("origopseae") == null){
var url = "../UserSettings/UserGridSource/OrigOpSeaeGrid.js?uid="+newGuid();
var loader = dhtmlxAjax.getSync(url);
var jsVal = loader.xmlDoc.responseText;
var oHead = document.getElementsByTagName('head').item(0);
var oScript = document.createElement( "script" );
oScript.language = "javascript";
oScript.type = "text/javascript";
oScript.id = "origopseae";
oScript.defer = true;
oScript.text = jsVal;
oHead.appendChild(oScript);
}
if(document.getElementById("defaultsource") == null){
var url = "../js/DefaultSource.js?uid="+newGuid();
var loader = dhtmlxAjax.getSync(url);
var jsVal = loader.xmlDoc.responseText;
var oHead = document.getElementsByTagName('head').item(0);
var oScript = document.createElement( "script" );
oScript.language = "javascript";
oScript.type = "text/javascript";
oScript.id = "defaultsource";
oScript.defer = true;
oScript.text = jsVal;
oHead.appendChild(oScript);
}
if(document.getElementById("opseae") == null){
var url = "../UserSettings/UserGridSource/" + $("h_uid").value + "gridopseae.js?uid="+newGuid();
var loader = dhtmlxAjax.getSync(url);
var jsVal = loader.xmlDoc.responseText;
if(jsVal.indexOf("newHeaderArgs") >= 0){
var oHead = document.getElementsByTagName('head').item(0);
var oScript = document.createElement( "script" );
oScript.language = "javascript";
oScript.type = "text/javascript";
oScript.id = "opseae";
oScript.defer = true;
oScript.text = jsVal;
oHead.appendChild(oScript);
}
}
initCombo();createGrid(1);
}
//
function setNpsesa()
{
var checked0=commonGridObj_orderlist.getGridObj().getCheckedRows(0);//所有选中的grid的id编号
if(checked0!=null && checked0!="")
{
var openSet = "height=200, width=600, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height-200)/2 + ",Left= "+(screen.width-600)/2
var openType = "导出东南船代的EDI";
var openUrl = "../EDI/NpsesaEDIExport.aspx?ids="+checked0+"&ishbl=0";
window.open (openUrl,openType,openSet);
}
else
{
alert('请先选中要导出的数据!');
return;
}
}
//
function setINTTRA()
{
var checked0=commonGridObj_orderlist.getGridObj().getCheckedRows(0);//所有选中的grid的id编号
if(checked0!=null && checked0!="")
{
var openSet = "height=300, width=600, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height-200)/2 + ",Left= "+(screen.width-600)/2
var openType = "导出INTTRA的EDI";
var openUrl = "../EDI/INTTRAEDIExport.aspx?ids="+checked0;
window.open (openUrl,openType,openSet);
}
else
{
alert('请先选中要导出的数据!');
return;
}
}
function initLoading(){
$("progressBar").style.display = "";
}
function finishLoading(){
$("progressBar").style.display = "none";
}
function ShowBSSTATUS(isBsstatus) {
var ii = GetRange();
if (ii == 0) {
return;
}
//
var checked2 = commonGridObj_orderlist.getGridObj().getCheckedRows(0); //所有选中的grid的id编号
if (checked2 != null && checked2 != "") {
if (isBsstatus == 0) {
var jj = OpenInfoRange();
if (jj == 0) {
return;
}
}
}
else {
alert("请先选择要操作的数据");
return;
}
if (checked2 != null && checked2 != "") {
if (window.confirm("您确定要调整业务状态吗?")) {
var strBSSTATUS = "../Shipping/SeaExportGridSource.aspx?handle=bsstatus&isbsstatus=" + isBsstatus + "&gids=" + checked2 + "&oplb=op_seae&val=" + newGuid();
var loader2 = dhtmlxAjax.getSync(strBSSTATUS);
var loadVal2 = loader2.xmlDoc.responseText;
if (loadVal2 == "") {
//alert("操作成功!");
refreshOrder();
}
else {
alert("操作失败!");
}
}
}
else {
alert("请先选择要操作的数据!");
}
}
//委托信息解锁权限验证
function OpenInfoRange() {
var loader;
var dates;
var strR = "";
var strgid = commonGridObj_orderlist.getGridObj().getCheckedRows(0); //所有选中的grid的id编号
//var strgid = mygrid_log.getSelectedRowId();
if ($("h_openlock").value != "") {
if ($("h_openlock").value == "1")//分公司
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=1&strGID=" + strgid + "&RangeName=openSeaeInfoLock&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "no") {
if (strgid.length > 50) {
alert("您选择了没有业务解锁权限的项!");
return 0;
}
else {
alert("您没有该项业务的解锁权限!");
return 0;
}
}
}
else if ($("h_openlock").value == "2")//部门
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=2&strGID=" + strgid + "&RangeName=openSeaeInfoLock&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "no") {
if (strgid.length > 50) {
alert("您选择了没有业解锁权限的项!");
return 0;
}
else {
alert("您没有该项业务的解锁权限!");
return 0;
}
}
}
else if ($("h_openlock").value == "3")//个人
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=3&strGID=" + strgid + "&RangeName=openSeaeInfoLock&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "no") {
if (strgid.length > 50) {
alert("您选择了没有业务解锁权限的项!");
return 0;
}
else {
alert("您没有该项业务的解锁权限!");
return 0;
}
}
}
}
else {
return 1;
}
}
function GetRange() {
var loader;
var dates;
var strR = "";
var strgid = commonGridObj_orderlist.getGridObj().getCheckedRows(0); //所有选中的grid的id编号
//var strgid = mygrid_log.getSelectedRowId();
if ($("hdRangeV").value != $("hdRangeO").value) {
if ($("hdRangeO").value == "1")//分公司
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=1&strGID=" + strgid + "&RangeName=modOrderManagement&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "") {
alert("您没有操作此数据的权限!");
return 0;
}
}
if ($("hdRangeO").value == "2")//部门
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=2&strGID=" + strgid + "&RangeName=modOrderManagement&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "") {
alert("您没有操作此数据的权限!");
return 0;
}
}
else if ($("hdRangeO").value == "3")//个人
{
loader = dhtmlxAjax.getSync("../FeeCodes/RangeAdapter.aspx?RangeID=3&strGID=" + strgid + "&RangeName=modOrderManagement&val=" + newGuid());
dates = loader.xmlDoc.responseText;
if (dates == "") {
alert("您没有操作此数据的权限!");
return 0;
}
}
}
else {
return 1;
}
}