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.
1268 lines
57 KiB
Plaintext
1268 lines
57 KiB
Plaintext
3 years ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrmPriceCarrierLCList.aspx.cs" Inherits="DSWeb.PriceCarrier.CrmPriceCarrierLCList" %>
|
||
|
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||
|
<head id="Head1" runat="server">
|
||
|
<title>海运代订舱运价管理</title>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<!--按钮条-->
|
||
|
<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/json2.js" type="text/javascript"></script>
|
||
|
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
|
||
|
<script src="../js/jsGridCrmPriceCarrierLCList.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;
|
||
|
}
|
||
|
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
|
||
|
.btncss
|
||
|
{
|
||
|
width:100px;
|
||
|
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>
|
||
|
<script type="text/javascript">
|
||
|
</script>
|
||
|
<!--GridEnd-->
|
||
|
<script language="javascript" type="text/javascript">
|
||
|
function QueryString()
|
||
|
{
|
||
|
var name,value,i;//构造参数对象并初始化
|
||
|
var str=location.href;//获得浏览器地址栏URL串
|
||
|
var num=str.indexOf("?")
|
||
|
str=str.substr(num+1);//截取“?”后面的参数串
|
||
|
var arrtmp=str.split("&");//将各参数分离形成参数数组
|
||
|
for(i=0;i < arrtmp.length;i++)
|
||
|
{
|
||
|
num=arrtmp[i].indexOf("=");
|
||
|
if(num>0)
|
||
|
{
|
||
|
name=arrtmp[i].substring(0,num);//取得参数名称
|
||
|
value=arrtmp[i].substr(num+1);//取得参数值
|
||
|
this[name]=value;//定义对象属性并初始化
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function $(id)
|
||
|
{
|
||
|
return document.getElementById(id);
|
||
|
}
|
||
|
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="我是B图片";
|
||
|
}
|
||
|
else if(str=="order_cancel.gif")
|
||
|
{
|
||
|
pic1.src="../images/order_modify.gif";
|
||
|
//pic1.alt="我是A图片";
|
||
|
}
|
||
|
}
|
||
|
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 imgEditChangePic()
|
||
|
{
|
||
|
var pic1=document.getElementById("imgEdit");
|
||
|
var start=pic1.src.lastIndexOf("/");
|
||
|
var str=pic1.src.substring(start+1);
|
||
|
if(str=="audit.gif")
|
||
|
{
|
||
|
pic1.src="../images/order_delete.gif";
|
||
|
//pic1.alt="我是B图片";
|
||
|
}
|
||
|
else if(str=="order_delete.gif")
|
||
|
{
|
||
|
pic1.src="../images/audit.gif";
|
||
|
//pic1.alt="我是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="我是B图片";
|
||
|
}
|
||
|
else if(str=="delete.gif")
|
||
|
{
|
||
|
pic1.src="../images/icons/remove.gif";
|
||
|
//pic1.alt="我是A图片";
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<!--自定义下拉框-->
|
||
|
<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">
//回车键控制
document.onkeypress=function()
|
||
|
{
|
||
|
if(event.keyCode==13)
|
||
|
{
|
||
|
ShowDetailSelect();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function initDialog()
|
||
|
{
|
||
|
var winScreenHeight = 0;
|
||
|
var winScreenWidth = 0;
|
||
|
if(window.screen.height)
|
||
|
{
|
||
|
winScreenHeight = window.screen.height;
|
||
|
}
|
||
|
if(window.screen.width)
|
||
|
{
|
||
|
winScreenWidth = window.screen.width;
|
||
|
}
|
||
|
if(winScreenWidth >= 1440 && winScreenWidth >= 900)
|
||
|
{
|
||
|
document.getElementById("mygrid_container_log").style.height = "400px";
|
||
|
}else if(winScreenWidth >= 1366 && winScreenWidth >= 768)
|
||
|
{
|
||
|
document.getElementById("mygrid_container_log").style.height = "310px";
|
||
|
}else if(winScreenWidth >= 1024 && winScreenWidth >= 768)
|
||
|
{
|
||
|
document.getElementById("mygrid_container_log").style.height = "270px";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function ShowDetailAdd()
|
||
|
{
|
||
|
var URLs = "../PriceCarrier/CrmPriceCarrierInfo.aspx?handle=add";
|
||
|
ret = window.open(URLs,"添加运价管理", "height=600, width=900,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no");
|
||
|
}
|
||
|
function ShowDetailUpdate()
|
||
|
{
|
||
|
var asid = mygrid_log.getSelectedRowId();
|
||
|
if(asid==null || asid=="")
|
||
|
{
|
||
|
alert("请先选中要操作的数据行!");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
var selectedId = mygrid_log.getSelectedRowId();
|
||
|
var URLs = "../PriceCarrier/CrmPriceCarrierInfo.aspx?handle=edit&id="+selectedId;
|
||
|
ret = window.open(URLs,"_blank", "height=600, width=900, center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=0,location=no,status=no");
|
||
|
}
|
||
|
}
|
||
|
function ShowDetailDel() {
|
||
|
var checked5 = mygrid_log.getCheckedRows(0); //所有选中的grid的id编号
|
||
|
if (checked5 == null || checked5 == "")
|
||
|
{
|
||
|
alert("请先选择要操作的数据!");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(confirm('确定删除吗?')) {
|
||
|
var strgids5 = "";
|
||
|
var strError5 = "";
|
||
|
var arrtmp=checked5.split(",");//将各参数分离形成参数数组
|
||
|
for(var i=0;i<arrtmp.length;i++)
|
||
|
{
|
||
|
var sRowIndex = mygrid_log.getRowIndex(arrtmp[i]);
|
||
|
var sLOCKFLAG = mygrid_log.cellByIndex(sRowIndex,1).getValue();//锁定
|
||
|
var sISISSUE = mygrid_log.cellByIndex(sRowIndex,2).getValue();//发布
|
||
|
if(sLOCKFLAG=="是" || sISISSUE=="是")
|
||
|
{
|
||
|
alert('有已锁定或已发布的数据,不允许删除!');
|
||
|
return;
|
||
|
}
|
||
|
var ii5 = GetRange(arrtmp[i]);
|
||
|
if (ii5 == 0) {
|
||
|
strError5 = "您没有操作某些数据的权限!";
|
||
|
}
|
||
|
else {
|
||
|
strgids5 += "," + arrtmp[i];
|
||
|
}
|
||
|
}
|
||
|
strgids5 = strgids5.substr(1);
|
||
|
if (strError5.trim() != "") {
|
||
|
alert(strError5);
|
||
|
}
|
||
|
//
|
||
|
$("hid_id").value = strgids5; //所有选中的grid的id编号
|
||
|
document.getElementById("btDel").click();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
function ShowDetailFresh()
|
||
|
{
|
||
|
initLog();
|
||
|
initMenu();
|
||
|
getLOCKFLAG()
|
||
|
}
|
||
|
function ShowDetailSelect()
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
function getLOCKFLAG()
|
||
|
{
|
||
|
// btLOCKFLAG0//锁定
|
||
|
// btLOCKFLAG1//解锁
|
||
|
// btIssue//发布、取消发布
|
||
|
if($("ddlLOCKFLAG").value=="0")//未锁定
|
||
|
{
|
||
|
document.getElementById('imgDel').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG0').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG1').setAttribute('disabled','disabled');
|
||
|
document.getElementById('btLOCKFLAG2').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG3').setAttribute('disabled','disabled');
|
||
|
document.getElementById('ibIssue0').setAttribute('disabled','disabled');
|
||
|
document.getElementById('ibIssue1').setAttribute('disabled','disabled');
|
||
|
document.getElementById('ibIssue2').setAttribute('disabled','disabled');
|
||
|
document.getElementById('ibIssue3').setAttribute('disabled','disabled');
|
||
|
}
|
||
|
else if($("ddlLOCKFLAG").value=="1")//锁定
|
||
|
{
|
||
|
document.getElementById('imgDel').setAttribute('disabled','disabled');
|
||
|
document.getElementById('btLOCKFLAG0').setAttribute('disabled','disabled');
|
||
|
document.getElementById('btLOCKFLAG1').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG2').setAttribute('disabled','disabled');
|
||
|
document.getElementById('btLOCKFLAG3').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue0').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue1').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue2').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue3').removeAttribute('disabled');
|
||
|
}
|
||
|
else if($("ddlLOCKFLAG").value=="9")//全部ALL
|
||
|
{
|
||
|
document.getElementById('imgDel').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG0').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG1').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG2').removeAttribute('disabled');
|
||
|
document.getElementById('btLOCKFLAG3').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue0').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue1').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue2').removeAttribute('disabled');
|
||
|
document.getElementById('ibIssue3').removeAttribute('disabled');
|
||
|
}
|
||
|
}
|
||
|
function GetRange(strgid)
|
||
|
{
|
||
|
var loader;
|
||
|
var dates;
|
||
|
var strR="";
|
||
|
//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=modCrmPriceCarrierList&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=modCrmPriceCarrierList&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=modCrmPriceCarrierList&val=" + newGuid());
|
||
|
dates = loader.xmlDoc.responseText;
|
||
|
if(dates=="") {
|
||
|
//alert("您没有操作某些数据的权限!");
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function setLOCKFLAG0()
|
||
|
{
|
||
|
var checked0=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked0!=null && checked0!="")
|
||
|
{
|
||
|
if(confirm('确定锁定吗?')) {
|
||
|
var strgids0 = "";
|
||
|
var strError0 = "";
|
||
|
var arrtmp = checked0.split(","); //将各参数分离形成参数数组
|
||
|
for (var i = 0; i < arrtmp.length; i++) {
|
||
|
var ii0 = GetRange(arrtmp[i]);
|
||
|
if (ii0 == 0) {
|
||
|
strError0 = "您没有操作某些数据的权限!";
|
||
|
}
|
||
|
else {
|
||
|
strgids0 += "," + arrtmp[i];
|
||
|
}
|
||
|
}
|
||
|
strgids0 = strgids0.substr(1);
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isLOCKFLAGGID").value = "1";
|
||
|
$("hdLOCKFLAGGID").value = strgids0;
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btSubmit&isLOCKFLAGGID=1&hdLOCKFLAGGID=" + strgids0 + "&val=" + newGuid());
|
||
|
var alt0 = loader.xmlDoc.responseText;
|
||
|
if (alt0 != "" || strError0.trim() != "") {
|
||
|
alt0 = alt0 + strError0;
|
||
|
alert(alt0);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
alert('请先选中要锁定的数据!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
function setLOCKFLAG1()
|
||
|
{
|
||
|
var checked1=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked1!=null && checked1!="")
|
||
|
{
|
||
|
if(confirm('确定解锁吗?')) {
|
||
|
var strgids1 = "";
|
||
|
var strError1 = "";
|
||
|
var arrtmp=checked1.split(",");//将各参数分离形成参数数组
|
||
|
for(var i=0;i<arrtmp.length;i++)
|
||
|
{
|
||
|
var sRowIndex = mygrid_log.getRowIndex(arrtmp[i]);
|
||
|
var sLOCKFLAG = mygrid_log.cellByIndex(sRowIndex,1).getValue();//锁定
|
||
|
var sISISSUE = mygrid_log.cellByIndex(sRowIndex,2).getValue();//发布
|
||
|
if(sISISSUE=="是")
|
||
|
{
|
||
|
alert('有已发布的数据,不允许解锁!');
|
||
|
return;
|
||
|
}
|
||
|
var ii1 = GetRange(arrtmp[i]);
|
||
|
if (ii1 == 0) {
|
||
|
strError1 = "您没有操作某些数据的权限!";
|
||
|
}
|
||
|
else {
|
||
|
strgids1 += "," + arrtmp[i];
|
||
|
}
|
||
|
}
|
||
|
strgids1 = strgids1.substr(1);
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isLOCKFLAGGID").value = "0";
|
||
|
$("hdLOCKFLAGGID").value = strgids1;
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btSubmit&isLOCKFLAGGID=0&hdLOCKFLAGGID=" + strgids1 + "&val=" + newGuid());
|
||
|
var alt1 = loader.xmlDoc.responseText;
|
||
|
if (alt1 != "" || strError1.trim() != "") {
|
||
|
alt1 = alt1 + strError1;
|
||
|
alert(alt1);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
alert('请先选中要解锁的数据!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
function setLOCKFLAG2()//全部锁定
|
||
|
{
|
||
|
if(confirm('确定要全部锁定吗?')) {
|
||
|
if ($("hdRangeV").value.trim() != $("hdRangeO").value.trim()) {
|
||
|
alert("您的可视权限与可操作权限范围不同,无法使用全部锁定功能!");
|
||
|
return;
|
||
|
}
|
||
|
msgBox();
|
||
|
$("isLOCKFLAGGID").value = "2";
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btSubmit&isLOCKFLAGGID=2&carrier=" + escape($("hd_comboCARRIER").value) + "&lane=" + escape($("hd_comboLANE").value) + "&lockflag=" + escape($("ddlLOCKFLAG").value) + "&val=" + newGuid());
|
||
|
var alt = loader.xmlDoc.responseText;
|
||
|
if(alt!="")
|
||
|
{
|
||
|
alert(alt);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
function setLOCKFLAG3()//全部解锁
|
||
|
{
|
||
|
if(confirm('确定要全部解锁吗?')) {
|
||
|
if ($("hdRangeV").value.trim() != $("hdRangeO").value.trim()) {
|
||
|
alert("您的可视权限与可操作权限范围不同,无法使用全部解锁功能!");
|
||
|
return;
|
||
|
}
|
||
|
//判断选择的数据状态
|
||
|
var checked1=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked1!="")
|
||
|
{
|
||
|
var arrtmp=checked1.split(",");//将各参数分离形成参数数组
|
||
|
for(var i=0;i<arrtmp.length;i++)
|
||
|
{
|
||
|
var sRowIndex = mygrid_log.getRowIndex(arrtmp[i]);
|
||
|
var sLOCKFLAG = mygrid_log.cellByIndex(sRowIndex,1).getValue();//锁定
|
||
|
var sISISSUE = mygrid_log.cellByIndex(sRowIndex,2).getValue();//发布
|
||
|
if(sISISSUE=="是")
|
||
|
{
|
||
|
alert('有已发布的数据,不允许解锁!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isLOCKFLAGGID").value = "3";
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btSubmit&isLOCKFLAGGID=3&carrier=" + escape($("hd_comboCARRIER").value) + "&lane=" + escape($("hd_comboLANE").value) + "&lockflag=" + escape($("ddlLOCKFLAG").value) + "&val=" + newGuid());
|
||
|
var alt = loader.xmlDoc.responseText;
|
||
|
if(alt!="")
|
||
|
{
|
||
|
alert(alt);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
function setIssue0()
|
||
|
{
|
||
|
var checked3=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked3!=null && checked3!="")
|
||
|
{
|
||
|
if(confirm('确定要发布信息吗?')) {
|
||
|
var strgids3 = "";
|
||
|
var strError3 = "";
|
||
|
var arrtmp=checked3.split(",");//将各参数分离形成参数数组
|
||
|
for(var i=0;i<arrtmp.length;i++)
|
||
|
{
|
||
|
var sRowIndex = mygrid_log.getRowIndex(arrtmp[i]);
|
||
|
var sLOCKFLAG = mygrid_log.cellByIndex(sRowIndex,1).getValue();//锁定
|
||
|
var sISISSUE = mygrid_log.cellByIndex(sRowIndex,2).getValue();//发布
|
||
|
if(sLOCKFLAG=="否")
|
||
|
{
|
||
|
alert('有未锁定的数据,不允许发布!');
|
||
|
return;
|
||
|
}
|
||
|
var ii3 = GetRange(arrtmp[i]);
|
||
|
if (ii3 == 0) {
|
||
|
strError3 = "您没有操作某些数据的权限!";
|
||
|
}
|
||
|
else {
|
||
|
strgids3 += "," + arrtmp[i];
|
||
|
}
|
||
|
}
|
||
|
strgids3 = strgids3.substr(1);
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isISSUE").value = "1";
|
||
|
$("hdISSUEGID").value = strgids3;
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btIssue&isISSUE=1&hdISSUEGID=" + strgids3 + "&val=" + newGuid());
|
||
|
var alt3 = loader.xmlDoc.responseText;
|
||
|
if (alt3 != "" || strError3.trim() != "") {
|
||
|
alt3 = alt3 + strError3;
|
||
|
alert(alt3);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
alert('请先选中要发布的信息!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
function setIssue1()
|
||
|
{
|
||
|
var checked4=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked4!=null && checked4!="")
|
||
|
{
|
||
|
if(confirm('确定要取消信息发布吗?')) {
|
||
|
var strgids4 = "";
|
||
|
var strError4 = "";
|
||
|
var arrtmp = checked4.split(","); //将各参数分离形成参数数组
|
||
|
for (var i = 0; i < arrtmp.length; i++) {
|
||
|
var ii4 = GetRange(arrtmp[i]);
|
||
|
if (ii4 == 0) {
|
||
|
strError4 = "您没有操作某些数据的权限!";
|
||
|
}
|
||
|
else {
|
||
|
strgids4 += "," + arrtmp[i];
|
||
|
}
|
||
|
}
|
||
|
strgids4 = strgids4.substr(1);
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isISSUE").value = "0";
|
||
|
$("hdISSUEGID").value = strgids4;
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btIssue&isISSUE=0&hdISSUEGID=" + strgids4 + "&val=" + newGuid());
|
||
|
var alt4 = loader.xmlDoc.responseText;
|
||
|
if (alt4 != "" || strError4.trim() != "") {
|
||
|
alt4 = alt4 + strError4;
|
||
|
alert(alt4);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
alert('请先选中要取消发布的信息!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
function setIssue2()//全部发布
|
||
|
{
|
||
|
if(confirm('确定要全部发布信息吗?')) {
|
||
|
if ($("hdRangeV").value.trim() != $("hdRangeO").value.trim()) {
|
||
|
alert("您的可视权限与可操作权限范围不同,无法使用全部发布功能!");
|
||
|
return;
|
||
|
}
|
||
|
//判断选择的数据状态
|
||
|
var checked1=mygrid_log.getCheckedRows(0);//所有选中的grid的id编号
|
||
|
if(checked1!="")
|
||
|
{
|
||
|
var arrtmp=checked1.split(",");//将各参数分离形成参数数组
|
||
|
for(var i=0;i<arrtmp.length;i++)
|
||
|
{
|
||
|
var sRowIndex = mygrid_log.getRowIndex(arrtmp[i]);
|
||
|
var sLOCKFLAG = mygrid_log.cellByIndex(sRowIndex,1).getValue();//锁定
|
||
|
var sISISSUE = mygrid_log.cellByIndex(sRowIndex,2).getValue();//发布
|
||
|
if(sLOCKFLAG=="否")
|
||
|
{
|
||
|
alert('有未锁定的数据,不允许发布!');
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
//
|
||
|
msgBox();
|
||
|
$("isISSUE").value = "2";
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btIssue&isISSUE=2&carrier=" + escape($("hd_comboCARRIER").value) + "&lane=" + escape($("hd_comboLANE").value) + "&lockflag=" + escape($("ddlLOCKFLAG").value) + "&val=" + newGuid());
|
||
|
var alt = loader.xmlDoc.responseText;
|
||
|
if(alt!="")
|
||
|
{
|
||
|
alert(alt);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
var dg0=new dialog();
|
||
|
dg0.close();
|
||
|
}
|
||
|
}
|
||
|
function setIssue3()//全部取消发布
|
||
|
{
|
||
|
if(confirm('确定要全部取消发布信息吗?')) {
|
||
|
if ($("hdRangeV").value.trim() != $("hdRangeO").value.trim()) {
|
||
|
alert("您的可视权限与可操作权限范围不同,无法使用全部取消发布功能!");
|
||
|
return;
|
||
|
}
|
||
|
var dg1=new dialog();
|
||
|
dg1.html="程序正在提交,请稍等!";
|
||
|
dg1.width=200;
|
||
|
dg1.height=100;
|
||
|
dg1.title="标题";
|
||
|
dg1.show();
|
||
|
//msgBox();
|
||
|
$("isISSUE").value = "3";
|
||
|
var loader = dhtmlxAjax.getSync("../FeeCodes/CrmPriceCarrierLCListAdapter.aspx?handle=btIssue&isISSUE=3&carrier="+escape($("hd_comboCARRIER").value)+"&lane="+escape($("hd_comboLANE").value)+"&lockflag="+escape($("ddlLOCKFLAG").value)+"&val="+newGuid());
|
||
|
var alt = loader.xmlDoc.responseText;
|
||
|
if(alt!="")
|
||
|
{
|
||
|
alert(alt);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ShowDetailFresh();
|
||
|
}
|
||
|
//var dg1=new dialog();
|
||
|
dg1.close();
|
||
|
}
|
||
|
}
|
||
|
function setExcel()
|
||
|
{
|
||
|
if(confirm('确定要导出报表吗?'))
|
||
|
{
|
||
|
var loader = dhtmlxAjax.getSync("CrmPriceCarrierLCListGridSource.aspx?handle=excel&carrier="+escape($("hd_comboCARRIER").value)+"&lane="+escape($("hd_comboLANE").value)+"&lockflag="+escape($("ddlLOCKFLAG").value)+"&val="+newGuid());
|
||
|
$("hdSQL").value = loader.xmlDoc.responseText;
|
||
|
//
|
||
|
document.getElementById("btExcel1").click();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var comboCARRIER;//船公司
|
||
|
var comboLANE;//航线
|
||
|
|
||
|
function initcomboCARRIER()//船公司
|
||
|
{
|
||
|
comboCARRIER = dhtmlXComboFromSelect("ddlCARRIER");
|
||
|
comboCARRIER.loadXML("../FeeCodes/CrmPriceCarrierAdapter.aspx?mask=0&pos=0&yunjia=webcrmclientadapter&type=LC&companyid="+$("hdCompanyid").value);
|
||
|
}
|
||
|
function initcomboCARRIER2()//船公司
|
||
|
{
|
||
|
comboCARRIER.setOptionWidth(200);
|
||
|
comboCARRIER.attachEvent("onChange", function(){comboCARRIER.setComboText($("hd_comboCARRIER").value);});
|
||
|
comboCARRIER.attachEvent("onBlur", function(){
|
||
|
var s1 = comboCARRIER.getComboText();
|
||
|
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;
|
||
|
var filterCount = 0;
|
||
|
if("" != comboCARRIER.getComboText()){
|
||
|
while("undefined" != typeof comboCARRIER.getOptionByIndex(filterCount)){
|
||
|
var comboValue = comboCARRIER.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
||
|
var enterValue = comboCARRIER.getComboText().toUpperCase();
|
||
|
$("hd_comboCARRIER").value = comboCARRIER.getComboText().toUpperCase();
|
||
|
if(comboValue.indexOf(enterValue) == 0){
|
||
|
comboCARRIER.selectOption(filterCount,true,true);
|
||
|
is=filterCount;
|
||
|
break;
|
||
|
}
|
||
|
++filterCount;
|
||
|
}
|
||
|
if(is==-1)
|
||
|
{
|
||
|
$("hd_comboCARRIER").value = ishd;
|
||
|
alert("无此内容,请重新选择!");
|
||
|
}
|
||
|
}},10);}});
|
||
|
comboCARRIER.attachEvent("onSelectionChange", function()
|
||
|
{
|
||
|
$("hd_comboCARRIER").value = comboCARRIER.getComboText();
|
||
|
});
|
||
|
}
|
||
|
function initComboLANE()//航线
|
||
|
{
|
||
|
comboLANE = dhtmlXComboFromSelect("ddlLANE");
|
||
|
comboLANE.loadXML("../FeeCodes/CrmPriceCarrierAdapter.aspx?mask=0&pos=0&yunjia=tcodelanesadapter&type=LC&companyid="+$("hdCompanyid").value);
|
||
|
}
|
||
|
function initComboLANE2()//航线
|
||
|
{
|
||
|
comboLANE.setOptionWidth(200);
|
||
|
comboLANE.attachEvent("onChange", function()
|
||
|
{
|
||
|
comboLANE.setComboText($("hd_comboLANE").value);
|
||
|
});
|
||
|
comboLANE.attachEvent("onBlur", function(){
|
||
|
var s1 = comboLANE.getComboText();
|
||
|
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;
|
||
|
if("" != comboLANE.getComboText())
|
||
|
{
|
||
|
while("undefined" != typeof comboLANE.getOptionByIndex(filterCount))
|
||
|
{
|
||
|
var comboValue = comboLANE.getOptionByIndex(filterCount).text.toUpperCase();//.value;
|
||
|
var enterValue = comboLANE.getComboText().toUpperCase();
|
||
|
$("hd_comboLANE").value = comboLANE.getComboText().toUpperCase();
|
||
|
if(comboValue.indexOf(enterValue) == 0)
|
||
|
{
|
||
|
comboLANE.selectOption(filterCount,true,true);
|
||
|
is=filterCount;
|
||
|
break;
|
||
|
}
|
||
|
++filterCount;
|
||
|
}
|
||
|
if(is==-1)
|
||
|
{
|
||
|
$("hd_comboLANE").value = ishd;
|
||
|
alert("无此内容,请重新选择!");
|
||
|
}
|
||
|
}
|
||
|
},10);}});
|
||
|
comboLANE.attachEvent("onSelectionChange", function()
|
||
|
{
|
||
|
$("hd_comboLANE").value = comboLANE.getComboText();
|
||
|
});
|
||
|
}
|
||
|
function bodyOnload()
|
||
|
{
|
||
|
initDialog();
|
||
|
initLog();
|
||
|
initMenu();
|
||
|
getLOCKFLAG();
|
||
|
//
|
||
|
initcomboCARRIER();//船公司
|
||
|
initcomboCARRIER2();//船公司
|
||
|
initComboLANE();//航线
|
||
|
initComboLANE2();//航线
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<!--蒙板-->
|
||
|
<script type="text/javascript">
|
||
|
function dialog() {
|
||
|
this.width = 450;
|
||
|
this.height = 360;
|
||
|
this.title_height = 20;
|
||
|
this.html = '';
|
||
|
this.title = '';
|
||
|
var self = this;
|
||
|
var bgObj, msgObj, titleObj;
|
||
|
this.close = function () {
|
||
|
document.body.removeChild(document.getElementById("bgDiv"));
|
||
|
document.getElementById("msgDiv").removeChild(document.getElementById("msgTitle"));
|
||
|
document.body.removeChild(document.getElementById("msgDiv"));
|
||
|
}
|
||
|
|
||
|
this.show = function () {
|
||
|
var msgw, msgh, bordercolor;
|
||
|
msgw = self.width;
|
||
|
msgh = self.height;
|
||
|
bordercolor = "#336699";
|
||
|
titlecolor = "#99CCFF";
|
||
|
|
||
|
var sWidth, sHeight;
|
||
|
sWidth = document.body.offsetWidth;
|
||
|
sHeight = screen.height;
|
||
|
bgObj = document.createElement("div");
|
||
|
bgObj.setAttribute('id', 'bgDiv');
|
||
|
bgObj.style.position = "absolute";
|
||
|
bgObj.style.top = "0";
|
||
|
bgObj.style.background = "#777";
|
||
|
bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
|
||
|
bgObj.style.opacity = "0.6";
|
||
|
bgObj.style.left = "0";
|
||
|
bgObj.style.width = sWidth + "px";
|
||
|
bgObj.style.height = sHeight + "px";
|
||
|
bgObj.style.zIndex = "10000";
|
||
|
document.body.appendChild(bgObj);
|
||
|
|
||
|
msgObj = document.createElement("div")
|
||
|
msgObj.setAttribute("id", "msgDiv");
|
||
|
msgObj.setAttribute("align", "center");
|
||
|
msgObj.style.background = "white";
|
||
|
msgObj.style.border = "1px solid " + bordercolor;
|
||
|
msgObj.style.position = "absolute";
|
||
|
msgObj.style.left = "50%";
|
||
|
msgObj.style.top = "30%";
|
||
|
msgObj.style.font = "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
|
||
|
msgObj.style.marginLeft = "-225px";
|
||
|
msgObj.style.marginTop = -75 + document.documentElement.scrollTop + "px";
|
||
|
msgObj.style.width = msgw + "px";
|
||
|
msgObj.style.height = msgh + "px";
|
||
|
msgObj.style.textAlign = "center";
|
||
|
msgObj.style.lineHeight = "25px";
|
||
|
msgObj.style.zIndex = "10001";
|
||
|
|
||
|
titleObj = document.createElement("h4");
|
||
|
titleObj.setAttribute("id", "msgTitle");
|
||
|
titleObj.setAttribute("align", "center");
|
||
|
titleObj.style.margin = "0";
|
||
|
titleObj.style.padding = "3px";
|
||
|
titleObj.style.background = bordercolor;
|
||
|
titleObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
|
||
|
titleObj.style.opacity = "0.75";
|
||
|
titleObj.style.border = "1px solid " + bordercolor;
|
||
|
titleObj.style.height = self.title_height + "px";
|
||
|
titleObj.style.font = "12px Verdana, Geneva, Arial, Helvetica, sans-serif";
|
||
|
titleObj.style.color = "white";
|
||
|
titleObj.style.cursor = "pointer";
|
||
|
titleObj.innerHTML = self.title;
|
||
|
//titleObj.onclick=function(){self.close();}
|
||
|
document.body.appendChild(msgObj);
|
||
|
document.getElementById("msgDiv").appendChild(titleObj);
|
||
|
var txt = document.createElement("div");
|
||
|
txt.style.margin = "1em 0"
|
||
|
txt.setAttribute("id", "msgTxt");
|
||
|
txt.innerHTML = self.html;
|
||
|
document.getElementById("msgDiv").appendChild(txt);
|
||
|
}
|
||
|
}
|
||
|
function msgBox() {
|
||
|
var dg = new dialog();
|
||
|
dg.html = "程序正在提交,请稍等!";
|
||
|
//dg.html+="<input type=button onclick='new dialog().close();' value='确定'>";
|
||
|
dg.width = 200;
|
||
|
dg.height = 100;
|
||
|
dg.title = "标题";
|
||
|
dg.show();
|
||
|
}
</script>
|
||
|
<style type="text/css">
|
||
|
.anylinkcss
|
||
|
{
|
||
|
position:absolute;
|
||
|
visibility: hidden;
|
||
|
border:1px solid #C0C0C0;
|
||
|
border-bottom-width: 0;
|
||
|
font:normal 12px Verdana;
|
||
|
line-height: 18px;
|
||
|
z-index: 100;
|
||
|
background-color: #ECF4FF;
|
||
|
width: 60px;
|
||
|
}
|
||
|
|
||
|
.anylinkcss a
|
||
|
{
|
||
|
width: 100%;
|
||
|
display: block;
|
||
|
text-indent: 3px;
|
||
|
border-bottom: 1px solid #C0C0C0;
|
||
|
padding: 1px 0;
|
||
|
text-decoration: none;
|
||
|
font-weight: bold;
|
||
|
text-indent: 5px;
|
||
|
}
|
||
|
|
||
|
.anylinkcss a:hover
|
||
|
{
|
||
|
background-color: #C0C0C0;
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
<script language="javascript">
|
||
|
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
|
||
|
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
|
||
|
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
|
||
|
|
||
|
var ie5=document.all
|
||
|
var ns6=document.getElementById && !document.all
|
||
|
|
||
|
function getposOffset(what, offsettype)
|
||
|
{
|
||
|
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
|
||
|
var parentEl=what.offsetParent;
|
||
|
while (parentEl!=null)
|
||
|
{
|
||
|
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
|
||
|
parentEl=parentEl.offsetParent;
|
||
|
}
|
||
|
return totaloffset;
|
||
|
}
|
||
|
|
||
|
function showhide(obj, e, visible, hidden)
|
||
|
{
|
||
|
if (ie5||ns6)
|
||
|
dropmenuobj.style.left=dropmenuobj.style.top=-500
|
||
|
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
|
||
|
obj.visibility=visible
|
||
|
else if (e.type=="click")
|
||
|
obj.visibility=hidden
|
||
|
}
|
||
|
|
||
|
function iecompattest()
|
||
|
{
|
||
|
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
|
||
|
}
|
||
|
|
||
|
function clearbrowseredge(obj, whichedge)
|
||
|
{
|
||
|
var edgeoffset=0
|
||
|
if (whichedge=="rightedge")
|
||
|
{
|
||
|
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
|
||
|
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
|
||
|
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
|
||
|
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
|
||
|
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
|
||
|
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
|
||
|
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
|
||
|
}
|
||
|
return edgeoffset
|
||
|
}
|
||
|
|
||
|
function dropdownmenu(obj, e, dropmenuID)
|
||
|
{
|
||
|
if (window.event) event.cancelBubble=true
|
||
|
else if (e.stopPropagation) e.stopPropagation()
|
||
|
if (typeof dropmenuobj!="undefined") //hide previous menu
|
||
|
dropmenuobj.style.visibility="hidden"
|
||
|
clearhidemenu()
|
||
|
if (ie5||ns6)
|
||
|
{
|
||
|
obj.onmouseout=delayhidemenu
|
||
|
dropmenuobj=document.getElementById(dropmenuID)
|
||
|
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
|
||
|
dropmenuobj.onmouseover=clearhidemenu
|
||
|
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
|
||
|
showhide(dropmenuobj.style, e, "visible", "hidden")
|
||
|
dropmenuobj.x=getposOffset(obj, "left")
|
||
|
dropmenuobj.y=getposOffset(obj, "top")
|
||
|
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")-3+"px"
|
||
|
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+3+"px"
|
||
|
}
|
||
|
return clickreturnvalue()
|
||
|
}
|
||
|
|
||
|
function clickreturnvalue()
|
||
|
{
|
||
|
if ((ie5||ns6) && !enableanchorlink) return false
|
||
|
else return true
|
||
|
}
|
||
|
|
||
|
function contains_ns6(a, b)
|
||
|
{
|
||
|
while (b.parentNode)
|
||
|
if ((b = b.parentNode) == a)
|
||
|
return true;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
function dynamichide(e)
|
||
|
{
|
||
|
if (ie5 && !dropmenuobj.contains(e.toElement))
|
||
|
delayhidemenu()
|
||
|
else if (ns6 && e.currentTarget!= e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))
|
||
|
delayhidemenu()
|
||
|
}
|
||
|
|
||
|
function delayhidemenu()
|
||
|
{
|
||
|
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
|
||
|
}
|
||
|
|
||
|
function clearhidemenu()
|
||
|
{
|
||
|
if (typeof delayhide!="undefined")
|
||
|
clearTimeout(delayhide)
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="bodyOnload();" style="border:0px; width:100%; height:100%">
|
||
|
<form id="form1" runat="server">
|
||
|
<div>
|
||
|
<table style="border:0; padding:0;">
|
||
|
<tr>
|
||
|
<td><div style="width:40px;text-align:right;" class="cssfont">状态:</div></td>
|
||
|
<td>
|
||
|
<asp:DropDownList ID="ddlLOCKFLAG" runat="server" CssClass="cssfont" Width=60px Height=24px Font-Size=12px>
|
||
|
<asp:ListItem Value="0">未锁定</asp:ListItem>
|
||
|
<asp:ListItem Value="1">锁定</asp:ListItem>
|
||
|
<asp:ListItem Value="9" Selected=True>ALL</asp:ListItem>
|
||
|
</asp:DropDownList>
|
||
|
</td>
|
||
|
<td width="10px"><div style="width:50px;text-align:center;" class="cssfont">船公司</div></td>
|
||
|
<td style="width:110px;">
|
||
|
<select id="ddlCARRIER" runat="server" class="txtTab" name="ddlCARRIER" style="width:100px;"></select>
|
||
|
</td>
|
||
|
<td><div style="width:40px;text-align:right;" class="cssfont">航线:</div></td>
|
||
|
<td>
|
||
|
<select id="ddlLANE" runat="server" class="txtTab" style="width:100px;"></select>
|
||
|
</td>
|
||
|
<td valign="middle" style="width:70px;">
|
||
|
<div onclick="ShowDetailSelect()" style="margin-left:5px; width:70px;">
|
||
|
<div style="width:20px; height:20px; float:left;margin-top:3px;"><img src="../images/icons/btnSearch.gif" title="查询"/></div>
|
||
|
<div style="float:left; font-size:12px; cursor:default;margin-top:5px;width:30px;">查询</div></div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
|
||
|
<div class="btn-blank"></div>
|
||
|
<div class="xbtn-img">
|
||
|
<img id="imgDel" runat=server src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="删除" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
|
||
|
</div>
|
||
|
<div class="xbtn-img">
|
||
|
<img id="imgFresh" runat=server src="../images/icons/btnFresh.gif" onclick="ShowDetailFresh();" class="btnimg" alt="刷新" onmouseover="imgFreshChangePic();" onMouseOut="imgFreshChangePic();"/>
|
||
|
</div>
|
||
|
<div class="xbtn-img" id=divexcel runat=server onclick="setExcel()">
|
||
|
<div class="btnimg"><img src="../images/icons/excel.gif" width="16px" height="16px" title="导出" class="cssfont"/></div>
|
||
|
</div>
|
||
|
<div class="xbtn2" style="width:70px;">
|
||
|
<div class="btncss" style=" width:60px; height:16px;text-decoration: none; font-size:12px; color:Black;">
|
||
|
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')" style="text-decoration: none; font-size:12px; color:Black;">锁定/解锁</a>
|
||
|
</div>
|
||
|
<div id="anylinkmenu1" class="anylinkcss" style=" width:64px;" runat="server">
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btLOCKFLAG0" onclick="setLOCKFLAG0();" runat="server">锁定</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btLOCKFLAG1" onclick="setLOCKFLAG1();" runat="server">解锁</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btLOCKFLAG2" onclick="setLOCKFLAG2();" runat="server">全部锁定</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="btLOCKFLAG3" onclick="setLOCKFLAG3();" runat="server">全部解锁</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="xbtn2" style="width:80px;">
|
||
|
<div class="btncss" style="width:60px; height:16px;text-decoration: none;">
|
||
|
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')" style="text-decoration: none; font-size:12px; color:Black;">发布/取消</a>
|
||
|
</div>
|
||
|
<div id="anylinkmenu2" class="anylinkcss" style=" width:100px;" runat="server">
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="ibIssue0" onclick="setIssue0();" runat="server">发布</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="ibIssue1" onclick="setIssue1();" runat="server">取消发布</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="ibIssue2" onclick="setIssue2();" runat="server">全部发布</a>
|
||
|
<a href="#" style="text-decoration: none; font-size:12px; color:Black;" id="ibIssue3" onclick="setIssue3();" runat="server">全部取消发布</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="xbtn-img3" style=" width:250px;">
|
||
|
<input type="file" id="import_file" runat="server" class="btncss" style=" width:170px;" />
|
||
|
<asp:Button ID="btExcel2" runat="server" Text="导入excel" Width=60px Height=20px CssClass="btncss" OnClick="btExcel2_Click"/>
|
||
|
</div>
|
||
|
<div class="xbtn-img3" style="width:80px;">
|
||
|
<a href="../tools/excel_formwork.rar" style="text-decoration:none">
|
||
|
<input id="btERAR" runat="server" type="button" value="excel模板下载" style="width:80px; height:20px;" class="btncss" onclick="document.location='../tools/excel_formwork.rar'"/></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div style=" width:100%; height:100%;" oncontextmenu="return false">
|
||
|
<div style="width:98%; overflow-x:scroll; position:relative;"><div id="mygrid_container_log" style="width:1700px; height:420px;" 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" />
|
||
|
<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>
|
||
|
<input id="hdRangeV" type="hidden" runat=server/>
|
||
|
<input id="hdRangeO" type="hidden" runat=server/>
|
||
|
<input id="hdRange" type="hidden" runat=server/>
|
||
|
|
||
|
<input type="hidden" id="hd_comboCARRIER" runat="server"/>
|
||
|
<input type="hidden" id="hd_comboLANE" runat="server"/>
|
||
|
|
||
|
<input type="hidden" id="hdLOCKFLAGGID" runat="server"/>
|
||
|
<input type="hidden" id="isLOCKFLAGGID" runat="server"/>
|
||
|
<input type="hidden" id="hdISSUEGID" runat="server"/>
|
||
|
<input type="hidden" id="isISSUE" runat="server"/>
|
||
|
<input type="hidden" id="hdSQL" runat="server" />
|
||
|
<input type="hidden" id="hdNAMES" runat="server" />
|
||
|
<input type="hidden" id="hid_id" runat="server" />
|
||
|
<input type="hidden" id="hdCompanyid" runat="server"/>
|
||
|
|
||
|
<asp:Button ID="btDel" runat="server" Text="Button" OnClick="btDel_Click" style="display:none" CssClass="cssfont"/>
|
||
|
<asp:Button ID="btExcel1" runat="server" Text="导出excel" Width=60px Height=20px CssClass="btncss" onclick="btExcel1_Click" style="display:none;"/>
|
||
|
</div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|