📄 destineshowpositionview.js
字号:
// JScript 文件
var DestineStyle = "color:Green;";
var CheckingStyle = "Color:Red;";
var EmptyStyle = "Color:Blue;";
function PageInit()
{
var imgMap = GetElementById("ImgMap");
for (var i = 0; i < ShowPositionList.length; i++)
{
var sp = ShowPositionList[i];
var num = i;
var style = "";
if (sp.OrderId > 0)
{
if (sp.State == 0)
{
style = CheckingStyle;
}
else
{
style = DestineStyle;
}
}
else
{
style = EmptyStyle;
}
GetElementById("ShowPositionPanel").insertAdjacentHTML("beforeEnd","<div class=\"ShowPosition\" style=\"" + style + "\" id=\"SP" + num + "\" Num=\"" + num + "\" ondblclick=\"mousedbclick(this);\" onmouseover=\"mouseover(this);\" onmouseout=\"mouseout();\">" + sp.Name + "</div>");
var divSp = GetElementById("SP" + num);
divSp.style.left = GetBrowserPositionX(imgMap) + parseInt(sp.PointX);
divSp.style.top = GetBrowserPositionY(imgMap) + parseInt(sp.PointY);
divSp.style.width = sp.Width;
divSp.style.height = sp.Height;
}
}
function mousedbclick(obj)
{
var num = parseInt(obj.Num);
var sp = ShowPositionList[num];
if (sp.OrderId > 0)
{
document.URL = "AdPositionOrderView.aspx?id=" + sp.OrderId + "&view=1&mpid=" + GetElementById("HidMeetingPlaceId").value;
}
}
function mouseover(obj)
{
var num = parseInt(obj.Num);
var sp = ShowPositionList[num];
var info = "";
info += "状态:";
if (sp.OrderId > 0)
{
if (sp.State == 0)
{
info += "<span style=\"" + CheckingStyle + "\">等待审核</span><br />";
}
else
{
info += "<span style=\"" + DestineStyle + "\">已审核</span><br />";
}
info += "公司名称:" + sp.Company + "<br />";
}
else
{
info += "<span style=\"" + EmptyStyle + "\">空位</span><br />";
}
var divInfo = GetElementById("DivInfo");
divInfo.style.display = "block";
divInfo.style.left = GetBrowserPositionX(obj);
divInfo.style.top = GetBrowserPositionY(obj) + 20;
divInfo.innerHTML = info;
}
function mouseout()
{
GetElementById("DivInfo").style.display = "none";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -