?? jcy_dwjc_view_jl.jsp
字號(hào):
<%@ 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" />
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請(qǐng)重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500019") == false)
{
%>
<Script Language=javascript>
alert("您沒(méi)有操作此頁(yè)權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
} %>
<%
String nowuserid = jcypurview.getUserid(); //取當(dāng)前用戶編號(hào)
String nowusername = jcypurview.getUserName(); //取當(dāng)前用戶名稱
String nowuserszqx = jcypurview.getUserSzqx(); //取當(dāng)前用戶所在區(qū)縣
String nowuserszdw = jcypurview.getUserSzdw(); //取當(dāng)前用戶所在單位
%>
<html>
<head>
<title>公務(wù)員管理</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>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
String dwdm = std.getValue(request,"ID"); // 單位代碼
String szt = std.getValue(request,"zt"); // 類型標(biāo)識(shí)
String dwjcxh = "";
String sfjl = ""; //是否獎(jiǎng)勵(lì)
String jljb = ""; //獎(jiǎng)勵(lì)級(jí)別
String sfcf = ""; //是否懲罰
String cfzl = ""; //懲罰種類
String jcyy = ""; //獎(jiǎng)懲原因
String jcrq = ""; //獎(jiǎng)懲日期
String lrrq = ""; //錄入時(shí)期
String jl = "";
String sql_select = "select dwjcxh,jljb,to_char(jcrq,'YYYY.MM.DD'),jcyy from jcy_dwjc where dwdm = '"+dwdm+"' and sfjl = '01' order by jcrq desc";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select);
String sql_count = "select count(*) from jcy_dwjc where dwdm = '"+dwdm+"' and sfjl ='01' "; //sfjl獎(jiǎng)勵(lì)01,不獎(jiǎng)勵(lì)02
sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(sql_count);
ii.next();
jl = ii.getString(1);
%>
<script>
var G_id;
function f_radio(num)
{
G_id = num;
}
function f_new()
{
window.open("jcy_dwjc_new_modify_jl.jsp?zt=new&dwdm="+'<%=dwdm%>',"_self");
}
function f_modify()
{
if (<%=jl%> == 0)
{
alert("沒(méi)有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("您沒(méi)有選擇獎(jiǎng)懲信息!");
return false;
}
else
{
window.open("jcy_dwjc_new_modify_jl.jsp?zt=modify&ID="+G_id+"&dwdm="+'<%=dwdm%>',"_self");
}
}
function f_del()
{
if (<%=jl%> == 0)
{
alert("沒(méi)有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("請(qǐng)選擇需要?jiǎng)h除的獎(jiǎng)懲信息!");
return false;
}
else
{
form.action = "jcy_dwjc_submit_jl.jsp?zt=del&ID="+G_id;
form.submit();
}
}
function f_back()
{
window.open("jcy_dw_select.jsp","_self");
}
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_dwjc_view_jl.jsp?ID="+'<%=dwdm%>',"_self");
}
else
{
alert(text);
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<td height="528" align="center"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16" height="84" align="left" background="../images/caozuo01.gif"></td>
<td background="../images/caozuo02.gif" align="center" width="947"><font size="3" color="#FF6600"><strong>
公務(wù)單位獎(jiǎng)勵(lì)情況</strong></font></td>
<td width="15"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" height="230" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
<tr>
<td width="15" height="230" background="../images/caozuo04.gif"></td>
<td align="center"> <table width="95%" height="139" border="0" align="center">
<tr>
<td width="719" height="135"> <form name="form" method="post" action="" target="view_jl">
<br>
<table width="100%" height="55" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr align="center" bgcolor="#EEF9FF">
<td height="25" colspan="2" bgcolor="#EEF9FF"><font color="#174ca3"><a href="jcy_dwjc_view_cf.jsp?ID=<%=dwdm%>&zt=<%=szt%>&dwdm=<%=dwdm%>"><strong>懲罰查詢</strong></a></font></td>
<td width="0" height="15" bgcolor="#EEF9FF"> </td>
<td width="0"><font color="#FF0000" size="3"><strong>獎(jiǎng)勵(lì)查詢</strong></font></td>
</tr>
<tr align="center" bgcolor="#174ca3">
<td width="5%" height="40"><font color="#FFFFFF"> </font>
</td>
<td width="40%" height="16"><font color="#FFFFFF">獎(jiǎng)勵(lì)名稱</font></td>
<td width="30%"><font color="#FFFFFF">獎(jiǎng)勵(lì)級(jí)別</font></td>
<td width="25%"><font color="#FFFFFF">獎(jiǎng)勵(lì)時(shí)間</font></td>
</tr>
<%while (crs.next()){
dwjcxh = crs.getString(1);
jljb = crs.getString(2);
jcrq = crs.getString(3);
jcyy = crs.getString(4);
if (dwjcxh == null) dwjcxh = "";
if (jljb == null) jljb = "0";
if (jcrq == null) jcrq = "0";
if (jcyy == null) jcyy = "無(wú)";
%>
<tr align="center" bgcolor="#EEF9FF">
<td height="25"> <input type="radio" name="radiobutton" value="<%=dwjcxh%>" onClick="f_radio(this.value)">
</td>
<td height="16"><font color="#105781"><%=jcyy%></font></td>
<td height="16"><font color="#105781"><%=jljb%></font></td>
<td width="25%"><font color="#105781"><%=jcrq%></font></td>
</tr>
<%}%>
</table>
<br>
<table width="600" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td width="39" height="23"> <div align="right"></div>
<div align="center"></div></td>
<td width="166"><div align="center">
<input type="button" name="Submit52" value="新 增" class="input" onClick="f_new()">
</div></td>
<td width="166"><div align="center">
<input type="button" name="Submit52" value="修 改" class="input" onClick="f_modify()">
</div></td>
<td width="159"><div align="center">
<input type="button" name="Submit55" value="刪 除" class="input" onClick="f_del()">
</div></td>
<td width="121"> <div align="center"> </div>
<div align="center"> </div>
<div align="center">
<input type="button" name="Submit2222" value="返 回" class="input" onClick="f_back()">
</div></td>
<td width="93"> </td>
</tr>
</table>
</form></td>
</tr>
</table></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>
</div></td>
<div align="center"></tr> </table> </td> </div>
<td width="59">
</td>
<br>
<td width="381"><p><br>
</p>
</td>
<iframe name="view_jl" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -