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.

85 lines
2.2 KiB
Plaintext

function InitBar(optionKey) {
var html = "<b>从表导入模式</b>:";
html += "<select id='changBar' onchange='changeOption()'>";
html += "<option value=0 >无,不设置(默认).</option>";
html += "<option value=1 >表格查询模式(高级)</option>";
html += "<option value=2 >Excel文件模式</option>";
//html += "<option value=3 >单据模式</option>";
//html += "<option value=4 >表格查询模式(简洁)</option>";
html += "</select >";
html += "<input id='Btn_Save' type='button' onclick='Save()' value='保存' />";
html += "<input id='Btn_Delete' type='button' name='Btn_Delete' onclick='Delete()' value='删除' />";
html += "<input id='Btn_Help' type='button' onclick='HelpOnline()' value='在线帮助' />";
document.getElementById("bar").innerHTML = html;
$("#changBar option[value='" + optionKey + "']").attr("selected", "selected");
}
function HelpOnline() {
var url = "https://gitee.com/opencc/JFlow/wikis/%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%85%A5?sort_id=3942532";
window.open(url);
}
function changeOption() {
var fk_MapDtl = GetQueryString("FK_MapDtl");
if (fk_MapDtl == null)
fk_MapDtl = '001';
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_MapDtl=" + fk_MapDtl);
}
function GetUrl(optionKey) {
switch (parseInt(optionKey)) {
case 0:
url = "0.None.htm";
break;
case 1:
url = "1.Table.htm";
break;
case 2:
url = "2.ExcelFile.htm";
break;
case 3:
url = "3.BillModel.htm";
break;
case 4:
url = "4.TableSimple.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();
}
});
}