$(function () {
jQuery.getScript(basePath + "/WF/Admin/Admin.js")
.done(function () {
/* 耶,没有问题,这里可以干点什么 */
// alert('ok');
})
.fail(function () {
/* 靠,马上执行挽救操作 */
//alert('err');
});
});
function InitBar(optionKey) {
var html = "选择Pop模式:";
html += "";
html += "";
html += "";
html += ""
html += "";
//html += "";
document.getElementById("bar").innerHTML = html;
$("#changBar option[value='" + optionKey + "']").attr("selected", "selected");
}
//高级设置.
function Adv(PopModel) {
//这里弹窗设置最好
var keyOfEn = GetQueryString("KeyOfEn");
var optionKey = $("#changBar").val();
var myPK = optionKey + "_" + GetQueryString("FK_MapData") + "_" + GetQueryString("KeyOfEn");
var url = "Adv.htm?FK_MapData=" + this.GetQueryString("FK_MapData") + "&RefPK=" + myPK + "&KeyOfEn=" + keyOfEn + "&PopModel=" + PopModel;
var w = window.innerWidth*4/5;
var h = window.innerHeight*4/5;
OpenEasyUiDialogExt(url, "通用设置", w, h, false);
//window.location.href = filterXSS(url);
//WinOpen(url);
}
function FullData() {
var keyOfEn = GetQueryString("KeyOfEn");
var optionKey = $("#changBar").val();
var myPK = optionKey + "_" + GetQueryString("FK_MapData") + "_" + GetQueryString("KeyOfEn");
var url = "../FullData/Default.htm?FK_MapData=" + this.GetQueryString("FK_MapData") + "&RefPK=" + myPK + "&KeyOfEn=" + keyOfEn;
SetHref(url);
}
function HelpOnline() {
var url = "http://ccform.mydoc.io";
window.open(url);
}
function changeOption() {
var fk_MapData = GetQueryString("FK_MapData");
var KeyOfEn = GetQueryString("KeyOfEn");
var obj = document.getElementById("changBar");
var sele = obj.options;
var index = obj.selectedIndex;
var optionKey = optionKey = sele[index].value;
var url = GetUrl(optionKey);
SetHref(url + "?FK_MapData=" + fk_MapData + "&KeyOfEn=" + KeyOfEn);
}
function GetUrl(popModel) {
switch (popModel) {
case "None":
url = "0.None.htm";
break;
case "PopBranchesAndLeaf":
url = "1.BranchesAndLeaf.htm";
break;
case "PopBranchesAndLeafLazyLoad":
url = "2.BranchesAndLeafLazyLoad.htm";
break;
case "PopBranches":
url = "3.Branches.htm";
break;
case "PopBranchesLazyLoad":
url = "4.BranchesLazyLoad.htm";
break;
case "PopGroupList":
url = "5.GroupList.htm";
break;
case "PopTableList":
url = "6.TableList.htm";
break;
case "PopTableSearch":
url = "7.TableSearch.htm";
break;
case "PopSelfUrl":
url = "8.SelfUrl.htm";
break;
case "PopBindEnum":
url = "9.BindEnum.htm";
break;
case "PopBindSFTable":
url = "10.BindSFTable.htm";
break;
default:
url = "0.None.htm";
break;
}
return url;
}
function SaveAndClose() {
Save();
window.close();
}
//打开窗体.
function OpenEasyUiDialogExt(url, title, w, h, isReload) {
OpenEasyUiDialog(url, "eudlgframe", title, w, h, "icon-property", true, null, null, null, function () {
if (isReload == true) {
Reload();
}
});
}