📄 jcy_zb_select.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<html>
<head>
<%vststd std = new vststd();%>
<%
String dwdm = std.getValue(request,"ID"); //单位代码
%>
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用户已断线或未正常登录,请重新登录!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500027") == false)
{
%>
<Script Language=javascript>
alert("您没有操作此页权限!")
window.open("../index.jsp","_top")
</Script>
<% return;
} %>
<%
String nowuserid = jcypurview.getUserid(); //取当前用户编号
String nowusername = jcypurview.getUserName(); //取当前用户名称
String nowuserszqx = jcypurview.getUserSzqx(); //取当前用户所在区县
String nowuserszdw = jcypurview.getUserSzdw(); //取当前用户所在单位
%>
<%
String sqlPd = "select qx from jcy_dw where dwdm = '"+dwdm+"'";
sun.jdbc.rowset.CachedRowSet pd = std.getResultBySelect(sqlPd);
pd.next();
String qx = pd.getString(1);
if (!nowuserszqx.equals(qx)){
%>
<Script Language=javascript>
alert("您不可以管理非本区组别!")
history.go(-1);
</Script>
<%
return;
}%>
<title>欢迎!</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
<script language="JavaScript" src = "new.js">
</script>
<script>
function f_new()
{
window.open("jcy_zb_new_modify.jsp?zt=new&dwdm="+'<%=dwdm%>',"_self");
}
function f_number()
{
/*if (document.form.zbdm.value.length > 20)
{
alert('组别编号长度不能超长20位!');
document.form.zbdm.focus();
return(false);
}*/
if (document.form.zbmc.value.length >50)
{
alert('级别名称长度不能超过50位!');
document.form.zbmc.focus();
return(false);
}
/*if (isNaN(document.form.zbdm.value) == true)
{
alert('组别编号不能为字符!');
document.form.zbdm.focus();
return(false); //字符判断
}
for (var i=1;i<document.form.zbdm.value.length;i++)
{
var a=document.form.zbdm.value.substr(i,1);
if (a =='.')
{
alert('组别代码不能有 " ."');
document.form.zbdm.focus();
return(false);
}
} */
}
function check_number(num)
{
for(i=0;i<num.length;i++)
{
var a=num.substr(i,1);
if (a<'0' || a>'9')
return('1');
}
return('0');
}
function f_back()
{
window.open("jcy_dw_select.jsp","_self");
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> <br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="962"><b><font color="#FF6600" size="3">组别管理</font></b></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEF9FF">
<tr>
<td width="15" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td align="center">
<form name="form" method="post" action="jcy_zb_view.jsp?dwdm=<%=dwdm%>" onSubmit="return(f_number())">
<table width="750" cellspacing="1" cellpadding="0" bgcolor="#000099">
<tr>
<td><table width=100% border="0" align=center
cellpadding=0 cellspacing=1 bordercolorlight=#666699 bordercolordark=#ffffff bgcolor="#000099">
<tr bgcolor="#EEF9FF">
<td width="12%" height="25" align="center"><b><font color="#105781">组别名称</font><font color="#105781" size="-1">
<!--组别编号-->
<!--所属区县-->
</font></b></td>
<td><font size="-1"><b><font color="#105781">
<!--<select name="qx">
<%//=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0001' ","001")%> </select> -->
<!--<input name="zbdm" type="text" maxlength="20">-->
</font></b><font color="#FF6600">
<!--组别编号:区县+年度+顺序号可进行模糊查询。例如:输入2003 -->
</font><font size="-1"><b><font color="#105781">
<input name="zbmc" type="text" size="80" maxlength="50">
</font></b></font><font color="#FF6600"> </font></font>
<div align="left"><b><font color="#105781" size="2">
</font></b></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="75%" border="0">
<tr>
<td width="29%" height="63" align="center"> <input type="submit" class="input" name="chx" value="查 询">
</td>
<td width="25%" align="center"> <input type="button" class="input" name="new" value="新 增" onClick="f_new()">
</td>
<td width="25%" align="center"><input type="reset" class="input" name="reset" value="清 屏">
</td>
<td width="21%" align="center"><input type="button" class="input" name="reset2" value="返 回" onClick="f_back()"></td>
</tr>
</table>
</form>
</td>
<td width="14" background="../images/caozuo07.gif"><img src="../images/caozuo07.gif" width="14" height="6"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21"><img src="../images/caozuo05.gif" width="21" height="16"></td>
<td background="../images/caozuo08.gif"><img src="../images/caozuo08.gif" width="6" height="16"></td>
<td width="19"><img src="../images/caozuo09.gif" width="19" height="16"></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -