?? jcy_jcyjc_view_jl.jsp
字號:
<%@ page contentType="text/html; charset=GBK" errorPage="" %>
<%@ import="com.vstsoft.std.vststd" %>
<%com.vstsoft.std.vststd std=new com.vstsoft.std.vststd();%>
<%@ errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<%
String nowuserid = jcypurview.getUserid(); //取當前用戶編號
String nowusername = jcypurview.getUserName(); //取當前用戶名稱
String nowuserszqx = jcypurview.getUserSzqx(); //取當前用戶所在區縣
String nowuserszdw = jcypurview.getUserSzdw(); //取當前用戶所在單位
%>
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500023") == false)
{
%>
<Script Language=javascript>
alert("您沒有操作此頁權限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
%>
<html>
<head>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
String userid = std.getValue(request,"userid"); // 人員代碼
String szt = std.getValue(request,"zt"); // 類型標識
String sdwdm = std.getValue(request,"sdwdm");
String szbdm = std.getValue(request,"szbdm");
//out.print(szbdm+"P"+sdwdm+"P"+userid);
String jcyjcxh = "";
String sfjl = ""; //是否獎勵
String jljb = ""; //獎勵級別
String jcyy = ""; //獎懲原因
String jcrq = ""; //獎懲日期
String lrrq = ""; //錄入時期
String jl = ""; //判斷記錄
String sql_select = "select jcyjcxh,jljb,to_char(jcrq,'yyyy.mm.dd'),jcyy from jcy_jcyjc where userid = '"+userid+"' and sfjl = '01' order by jcrq desc";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select);
String sql_count = "select count(*) from jcy_jcyjc where userid = '"+userid+"' and sfjl ='01' "; //sfjl獎勵01,不獎勵02
sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(sql_count);
ii.next();
jl = ii.getString(1);
%>
<%
String qaxa = "select qx from jcy_ry where userid = '"+userid+"'"; ///判斷當前用戶有無權限查看此人獎懲信息
sun.jdbc.rowset.CachedRowSet v_qaxa = std.getResultBySelect(qaxa);
v_qaxa.next();
String pi_qaxa = v_qaxa.getString(1);
if(!nowuserszqx.equals("001"))
{
if(!pi_qaxa.equals(nowuserszqx))
{
%>
<Script Language=javascript>
alert("您沒有查看其它區縣人員獎懲的權限!")
window.open("jcy_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self"); //返回當前頁
</Script>
<%
return;
}
}
%>
<script>
var G_id;
function f_radio(num)
{
G_id = num;
}
function f_new()
{
window.open("jcy_jcyjc_new_modify_jl.jsp?zt=new&userid="+'<%=userid%>',"_self");
}
function f_modify()
{
if (<%=jl%> == 0)
{
alert("沒有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("您沒有選擇公務員獎勵記錄!");
return false;
}
else
{
window.open("jcy_jcyjc_new_modify_jl.jsp?zt=modify&ID="+G_id+"&userid="+'<%=userid%>',"_self");
}
}
function f_del()
{
if (<%=jl%> == 0)
{
alert("沒有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("請選擇需要刪除的公務員獎勵記錄!");
return false;
}
else
{
form.action = "jcy_jcyjc_submit_jl.jsp?zt=del&ID="+G_id;
form.submit();
}
}
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_jcyjc_view_jl.jsp?userid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
else
{
alert(text);
}
}
function f_back()
{
window.open("jcy_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
</script>
<title>公務員管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tr>
<td width="252">
<table width="100%" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="88" align="center"><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17" height="84" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="946"><font size="3" color="#FF6600"><strong>
公務員獎勵查詢</strong></font></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" height="247" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
<tr>
<td width="15" height="247" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td align="center">
<table width="95%" height="136" border="0" align="center">
<tr>
<td width="719" height="132"> <form name="form" method="post" action="" target="view_jl">
<br>
<table width="100%" height="60" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr align="center" bgcolor="#EEF9FF">
<td height="25" colspan="2"><font color="#174ca3"><a href="jcy_jcyjc_view_cf.jsp?userid=<%=userid%>&zt=<%=szt%>&sdwdm=<%=sdwdm%>&szbdm=<%=szbdm%>"><strong>懲罰查詢</strong></a></font></td>
<td width="0" height="16"> </td>
<td width="0"><font color="#FF0000" size="3"><b>獎勵查詢</b></font></td>
</tr>
<tr align="center" bgcolor="#174ca3">
<td width="5%" height="40"><font color="#FFFFFF"> </font></td>
<td width="40%" height="40"><font color="#FFFFFF">獎勵名稱</font></td>
<td width="30%" height="40"><font color="#FFFFFF">獎勵級別</font></td>
<td width="25%" height="40" bgcolor="#174ca3"><font color="#FFFFFF">獎勵時間</font></td>
</tr>
<%while (crs.next()){
jcyjcxh = crs.getString(1);
jljb = crs.getString(2);
jcrq = crs.getString(3);
jcyy = crs.getString(4);
if (jcyjcxh == null) jcyjcxh = "";
if (jljb == null) jljb = "0";
if (jcrq == null) jcrq = "0";
if (jcyy == null) jcyy = "0";
%>
<tr align="center" bgcolor="#EEF9FF">
<td width="0" height="25">
<input type="radio" name="radiobutton" value="<%=jcyjcxh%>" onClick="f_radio(this.value)">
</td>
<td width="0" height="25"><font color="#105781"><%=jcyy%></font></td>
<td width="0" height="25"><font color="#105781"><%=jljb%></font></td>
<td width="0" height="25"><font color="#105781"><%=jcrq%></font></td>
</tr>
<%}%>
</table>
<br>
<table width="600" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td width="25%" height="23">
<div align="center">
<input type="button" name="Submit52" value="新 增" class="input" onClick="f_new()">
</div></td>
<td width="25%">
<div align="center">
<input type="button" name="Submit52" value="修 改" class="input" onClick="f_modify()">
</div></td>
<td width="25%">
<div align="center">
<input type="button" name="Submit55" value="刪 除" class="input" onClick="f_del()">
</div></td>
<td width="25%" align="center">
<div align="center"> </div>
<div align="center"> </div>
<input type="button" name="Submit58" value="返 回" class="input" onClick="f_back()">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p></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" height="16"><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>
</td>
<td width="59">
</td>
<td width="381">
<p><br>
</p>
</td>
<iframe name="view_jl" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -