📄 js.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<script language='javascript'>
//查询按钮JS
function searchJs() {
document.forms[0].TYPE.value = '1';
//屏蔽所有按钮,只有在提交按钮中使用,弹出窗口的按钮不要使用屏蔽功能
disAll();
searchJsValue();
}
//到按钮JS
function goJs() {
if(forwardCheck( "OPERATETYPE","Q","查询" )==false)return false;
document.forms[0].TYPE.value = '2';
pageSubmit();
}
//新增按钮JS
function insertJs() {
if(validateForm(document.forms[0])==false)return false;
document.forms[0].TYPE.value = '3';
pageSubmit();
}
//修改按钮JS
function updateJs() {
if(forwardCheck( "OPERATETYPE", "Q", "查询")==false) return false;
if(validateForm(document.forms[0])==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__FNAME"],document.forms[0].elements["FQTPZ03__FNAME_HIDDEN"],"父结点ID")==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__NAME"],document.forms[0].elements["FQTPZ03__NAME_HIDDEN"],"ID")==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__RESNAME"],document.forms[0].elements["FQTPZ03__RESNAME_HIDDEN"],"资源ID")==false)return false;
if(window.confirm( "确定要修改吗?")==false) return false;
document.forms[0].TYPE.value = '4';
pageSubmit();
}
//删除按钮JS
function deleteJs() {
if(forwardCheck( "OPERATETYPE", "Q", "查询")==false) return false;
if(validateForm(document.forms[0])==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__FNAME"],document.forms[0].elements["FQTPZ03__FNAME_HIDDEN"],"父结点ID")==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__NAME"],document.forms[0].elements["FQTPZ03__NAME_HIDDEN"],"ID")==false)return false;
if(checkKey(document.forms[0].elements["FQTPZ03__RESNAME"],document.forms[0].elements["FQTPZ03__RESNAME_HIDDEN"],"资源ID")==false)return false;
if(window.confirm( "确定要删除吗?")==false) return false;
document.forms[0].TYPE.value = '5';
pageSubmit();
}
function getResname() {
if(document.forms[0].elements["FQTPZ03__NODETYPE"].value=="0") {
document.forms[0].elements["FQTPZ03__RESNAME"].value="FOLDER";
}
else {
document.forms[0].elements["FQTPZ03__RESNAME"].value="";
}
}
function getName() {
if(document.forms[0].elements["FQTPZ03__NODETYPE"].value=="1") {
if(document.forms[0].elements["FQTPZ03__RESNAME"].value!=""
&&document.forms[0].elements["FQTPZ03__FNAME"].value!="") {
document.forms[0].elements["FQTPZ03__NAME"].value=""+document.forms[0].elements["FQTPZ03__FNAME"].value+document.forms[0].elements["FQTPZ03__RESNAME"].value;
}
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -