📄 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 freezeJs() {
// if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
// if(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false;
// if(checkKey(document.forms[0].elements["FGYXX06__SBZL"],document.forms[0].elements["FGYXX06__SBZL_HIDDEN"],"设备种类")==false) return false;
if(document.forms[0].FGYGL04RL__ZT.value !='0')
{
alert("状态不为正常,不能冻结");
return false; //状态校验;
}
if(isNull(document.forms[0].elements[ "FGYGL04RL__DJLY" ], "冻结理由")==false) return false;
if(window.confirm("确定要冻结吗?")==false)return false;
document.forms[0].TYPE.value = '3';
pageSubmit();
}
//解冻按钮JS
function thawJs() {
// if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
// if(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false;
// if(checkKey(document.forms[0].elements["FGYXX06__SBZL"],document.forms[0].elements["FGYXX06__SBZL_HIDDEN"],"设备种类")==false) return false;
if(document.forms[0].FGYGL04RL__ZT.value !='2')
{
alert("状态不为冻结,不能解冻");
return false; //状态校验;
}
if(isNull(document.forms[0].elements[ "FGYGL04RL__JDLY" ], "解冻理由")==false) return false;
if(window.confirm("确定要解冻吗?")==false)return false;
document.forms[0].TYPE.value = '4';
pageSubmit();
}
//审批通过按钮JS
function acceptJs() {
// if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
// if(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false;
// if(checkKey(document.forms[0].elements["FGYXX06__SBZL"],document.forms[0].elements["FGYXX06__SBZL_HIDDEN"],"设备种类")==false) return false;
if((document.forms[0].FGYGL04RL__ZT.value !='1') && (document.forms[0].FGYGL04RL__ZT.value !='3'))
{
alert("状态不对,无需审批");
return false; //状态校验;
}
if(isNull(document.forms[0].elements[ "FGYGL04RL__SPYJ" ], "审批意见")==false) return false;
if(window.confirm("确定要审批吗?")==false)return false;
document.forms[0].FGYGL04RL__ZTY.value =document.forms[0].FGYGL04RL__ZT.value
document.forms[0].TYPE.value = '5';
pageSubmit();
}
//审批不通过按钮JS
function cancelJs() {
// if(forwardCheck( "OPERATETYPE","Q","查询")==false)return false;
// if(isNull(document.forms[0].elements[ "FGYXX06__SBZL" ], "设备种类")==false) return false;
// if(checkKey(document.forms[0].elements["FGYXX06__SBZL"],document.forms[0].elements["FGYXX06__SBZL_HIDDEN"],"设备种类")==false) return false;
if((document.forms[0].FGYGL04RL__ZT.value !='1') && (document.forms[0].FGYGL04RL__ZT.value !='3'))
{
alert("状态不对,无需审批");
return false; //状态校验;
}
if(isNull(document.forms[0].elements[ "FGYGL04RL__SPYJ" ], "审批意见")==false) return false;
if(window.confirm("确定要审批吗?")==false)return false;
document.forms[0].FGYGL04RL__ZTY.value =document.forms[0].FGYGL04RL__ZT.value
document.forms[0].TYPE.value = '6';
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -