js.jsp
来自「用java编写的网络架构程序」· JSP 代码 · 共 59 行
JSP
59 行
<%@ 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(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false;
document.forms[0].TYPE.value = '3';
pageSubmit();
}
--%>
//认证按钮JS
function authJs() {
if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false; //请先进行查询操作;
// if(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false; //非空校验;
// if(checkKey(document.forms[0].elements["FGYGL01__GYSDM"],"供应商代码")==false) return false;
if(document.forms[0].FGYGL01__ZT.value!='0') {
alert("供应商状态不对,不能进行认证操作");
return false; //存在性校验;
}
if(window.confirm("确定要认证吗?")==false)return false;
document.forms[0].TYPE.value = '3';
pageSubmit();
}
//撤消按钮JS
function cancelJs() {
if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
if(document.forms[0].FGYGL01__ZT.value!='1') {
alert("供应商状态不对,不能进行撤销操作");
return false; //存在性校验;
}
if(window.confirm("确定要撤消吗?")==false)return false;
document.forms[0].TYPE.value = '5';
pageSubmit();
}
//详情链接
//function detailJs1( index ) {
// var val = document.forms[0].elements[ "FGYXX06__GYSDM" + index ].value;
// location.href = "PGYXX06?WINDOW=open&PGYXX06__GYSDM_S=" + val + "&TYPE=1&PAGE=1";
//}
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?