You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
6.4 KiB
132 lines
6.4 KiB
//
|
|
// /***************************************************************
|
|
// * <p>ProName:UserPopedom.js</p>
|
|
// * <p>Title:保全员级别指定</p>
|
|
// * <p>Description:保全员级别指定</p>
|
|
// * <p>Copyright:Copyright (c) 2012</p>
|
|
// * <p>Company:Sinosoft</p>
|
|
// * @author : lisy
|
|
// * @version : 8.0
|
|
// * @date : 2024-11-15
|
|
// ****************************************************************/
|
|
// var showInfo;
|
|
//
|
|
//
|
|
// //提交权限配置数据
|
|
// function saveUserPopedom()
|
|
// {
|
|
// if (!verifyInput2()) return;
|
|
// if (!sureDelPopedom()) return;
|
|
// var MsgContent = "正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面";
|
|
// var MsgPageURL = "../common/jsp/MessagePage.jsp?picture=C&content=" + MsgContent;
|
|
// var name='提示'; //网页名称,可为空;
|
|
// var iWidth=550; //弹出窗口的宽度;
|
|
// var iHeight=350; //弹出窗口的高度;
|
|
// var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
// var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
// showInfo = window.open (MsgPageURL,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
// showInfo.focus();
|
|
// fm.action = "../API/grp_pa/g_pos/UserPopedomSave/ADD";
|
|
// submitForm(fm);
|
|
// }
|
|
//
|
|
// //提交后操作, 服务器数据返回后执行的操作
|
|
// function afterSubmit(DealFlag, MsgContent)
|
|
// {
|
|
// try { showInfo.close(); } catch (ex) {}
|
|
// DealFlag = DealFlag.toLowerCase();
|
|
// var MsgPageURL = "../common/jsp/MessagePage.jsp?picture=";
|
|
// switch (DealFlag)
|
|
// {
|
|
// case "fail":
|
|
// MsgPageURL = MsgPageURL + "F&content=" + MsgContent;
|
|
// var name='提示'; //网页名称,可为空;
|
|
// var iWidth=550; //弹出窗口的宽度;
|
|
// var iHeight=350; //弹出窗口的高度;
|
|
// var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
// var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
// showInfo = window.open (MsgPageURL,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
// showInfo.focus();
|
|
// break;
|
|
// case "succ":
|
|
// case "success":
|
|
// MsgPageURL = MsgPageURL + "S&content=" + MsgContent;
|
|
// var name='提示'; //网页名称,可为空;
|
|
// var iWidth=550; //弹出窗口的宽度;
|
|
// var iHeight=350; //弹出窗口的高度;
|
|
// var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
// var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
// showInfo = window.open (MsgPageURL,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
// showInfo.focus();
|
|
// break;
|
|
// default:
|
|
// MsgPageURL = MsgPageURL + "C&content=" + MsgContent;
|
|
// var name='提示'; //网页名称,可为空;
|
|
// var iWidth=550; //弹出窗口的宽度;
|
|
// var iHeight=350; //弹出窗口的高度;
|
|
// var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
// var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
// showInfo = window.open (MsgPageURL,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
// showInfo.focus();
|
|
// break;
|
|
// }
|
|
// }
|
|
//
|
|
// //确认删除保全权限操作
|
|
// function sureDelPopedom()
|
|
// {
|
|
// var sEdorPopedom, sGEdorPopedom, sUserCode, sErrorMsg, needConfirmFlag;
|
|
// try
|
|
// {
|
|
// sUserCode = document.getElementsByName("UserCode")[0].value;
|
|
// sEdorPopedom = document.getElementsByName("EdorPopedom")[0].value;
|
|
// sGEdorPopedom = document.getElementsByName("GEdorPopedom")[0].value;
|
|
// }
|
|
// catch (ex) {}
|
|
// needConfirmFlag = false;
|
|
// sErrorMsg = "您没有为用户 " + sUserCode + " 指定";
|
|
// // if ((sEdorPopedom == null || sEdorPopedom.trim() == "") && (sGEdorPopedom != null && sGEdorPopedom.trim() != ""))
|
|
// // {
|
|
// // sErrorMsg += "个单";
|
|
// // needConfirmFlag = true;
|
|
// // }
|
|
// // else
|
|
// if ((sEdorPopedom != null && sEdorPopedom.trim() != "") && (sGEdorPopedom == null || sGEdorPopedom.trim() == ""))
|
|
// {
|
|
// sErrorMsg += "团单";
|
|
// needConfirmFlag = true;
|
|
// }
|
|
// else if ((sEdorPopedom == null || sEdorPopedom.trim() == "") && (sGEdorPopedom == null || sGEdorPopedom.trim() == ""))
|
|
// {
|
|
// sErrorMsg += "任何";
|
|
// needConfirmFlag = true;
|
|
// }
|
|
// sErrorMsg += "保全权限级别。\n\n如果该用户原来具有该权限,继续操作将删除相应权限。\n\n要继续吗?";
|
|
// if (needConfirmFlag && !confirm(sErrorMsg))
|
|
// {
|
|
// return false;
|
|
// }
|
|
// return true;
|
|
// }
|
|
//
|
|
// //进入用户信息查询页面
|
|
// function queryUser()
|
|
// {
|
|
// var newWindow = window.open("../sys/UsrCommonQueryMain.jsp?ManageCom="+manageCom+"&UserCode="+fm.UserCode.value,"UsrCommonQueryMain",'width='+screen.availWidth+',height='+screen.availHeight+',top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
|
|
// }
|
|
//
|
|
// //返回用户代码
|
|
// function afterQuery(arrResult) {
|
|
//
|
|
// if(arrResult!=null)
|
|
// {
|
|
// fm.UserCode.value = arrResult[0][0];
|
|
// fm.UserCode_read.value = arrResult[0][0];
|
|
// fm.UserName.value = arrResult[0][1];
|
|
// fm.ComName.value = arrResult[0][3];
|
|
// fm.EdorPopedom.value = arrResult[0][4];
|
|
// fm.EdorPopedomName.value = arrResult[0][5];
|
|
// fm.GEdorPopedom.value = arrResult[0][6];
|
|
// fm.GEdorPopedomName.value = arrResult[0][7];
|
|
// }
|
|
// }
|
|
|