?? jcy_pxxx_view.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" />
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return;
}
if (jcypurview.purviewVerdict("B0500035") == 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(); //取當前用戶所在單位
%>
<html>
<head>
<title>公務員管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
<%
//response.setHeader("Pragma","No-cache");
//response.setHeader("Cache-Control","no-cache");
//response.setDateHeader("Expires",0);
String pxbm = std.getValue(request,"pxbm"); //公務員培訓組織部門
String pxqr = std.getValue(request,"rq"); //公務員培訓時間起
String pxzr = std.getValue(request,"rqr"); //公務員培訓時間止
String pxqc = std.getValue(request,"pxqc"); //公務員培訓班期次
String pxnd= std.getValue(request,"pxnd"); //公務員培訓年度
String sfzh= std.getValue(request,"sfzh"); //公務員身份證號
String username = std.getValue(request,"username"); //公務員姓名
String qxdm = std.getValue(request,"qxdm"); //所屬區縣
String userid = ""; //公務員培訓序號
String pxqk = ""; //培訓情況
String jl = "";
String pxxxid = ""; //培訓人員編號ID
String sid = std.getValue(request,"userid");
String sdwdm = std.getValue(request,"sdwdm");
String szbdm = std.getValue(request,"szbdm");
//String sql_select = "select jcy_pxxx.pxxxid, dp_sys.f_get_mc_by_dm('0001',jcy_ry.qx), jcy_ry.username,to_char(jcy_pxxx.pxqr,'yyyy.mm.dd'),to_char(jcy_pxxx.pxzr,'yyyy.mm.dd'),dp_sys.f_get_mc_by_dm('5001',jcy_pxxx.pxbm),jcy_pxxx.pxnd,jcy_pxxx.pxqc,jcy_pxxx.pxqk from jcy_pxxx,jcy_ry where jcy_pxxx.pxbm = '"+pxbm+"' and jcy_ry.qx= '"+qxdm+"' and jcy_pxxx.userid = jcy_ry.userid and jcy_pxxx.userid = '"+sid+"'";
String sql_select = "select jcy_pxxx.pxxxid, dp_sys.f_get_mc_by_dm('0001',jcy_ry.qx), jcy_ry.username,to_char(jcy_pxxx.pxqr,'yyyy.mm.dd'),to_char(jcy_pxxx.pxzr,'yyyy.mm.dd'),dp_sys.f_get_mc_by_dm('5001',jcy_pxxx.pxbm),jcy_pxxx.pxnd,jcy_pxxx.pxqc,jcy_pxxx.pxqk from jcy_pxxx,jcy_ry where jcy_pxxx.pxbm = '"+pxbm+"' and jcy_pxxx.userid = jcy_ry.userid and jcy_pxxx.userid = '"+sid+"'";
if (!pxqr.equals(""))
sql_select = sql_select + " and jcy_pxxx.pxqr >= to_date('"+pxqr+"', 'YYYY.MM.DD')";
if (!pxzr.equals(""))
sql_select = sql_select + " and jcy_pxxx.pxzr <= to_date('"+pxzr+"', 'YYYY.MM.DD')";
if (!pxnd.equals(""))
sql_select = sql_select + " and jcy_pxxx.pxnd like '%"+pxnd+"%'";
if (!pxqc.equals(""))
sql_select = sql_select + " and jcy_pxxx.pxqc = '"+pxqc+"'";
if (!sfzh.equals(""))
sql_select = sql_select + " and jcy_ry.sfzh like '%"+sfzh+"%'";
if (!username.equals(""))
sql_select = sql_select + " and jcy_ry.username like '%"+username+"%'";
sql_select = sql_select + " order by jcy_pxxx.pxqc";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select);
String panduan = "select count(*) from jcy_pxxx,jcy_ry where jcy_pxxx.pxbm = '"+pxbm+"' and jcy_pxxx.userid = jcy_ry.userid and jcy_pxxx.userid = '"+sid+"'";
if (!pxqr.equals(""))
panduan = panduan + " and jcy_pxxx.pxqr >= to_date('"+pxqr+"', 'YYYY.MM.DD')";
if (!pxzr.equals(""))
panduan = panduan + " and jcy_pxxx.pxzr <= to_date('"+pxzr+"', 'YYYY.MM.DD')";
if (!pxnd.equals(""))
panduan = panduan + " and jcy_pxxx.pxnd like '%"+pxnd+"%'";
if (!pxqc.equals(""))
panduan = panduan + " and jcy_pxxx.pxqc = '"+pxqc+"'";
if (!sfzh.equals(""))
panduan = panduan + " and jcy_ry.sfzh like '%"+sfzh+"%'";
if (!username.equals(""))
panduan = panduan + " and jcy_ry.username like '%"+username+"%'";
sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(panduan);
ii.next();
jl = ii.getString(1);
%>
<script language=javascript>
var G_id;
function f_radio(num)
{
G_id = num;
}
function f_modify()
{
if (<%=jl%> == 0)
{
alert("沒有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("請選擇需要修改的培訓人員信息!");
return false;
}
else
{
window.open("jcy_pxxx_new_modify.jsp?zt=modify&ID="+G_id+"&userid="+'<%=sid%>',"_self");
}
}
function f_del()
{
if (<%=jl%> == 0)
{
alert("沒有記錄");
return false;
}
if (G_id == "" || G_id == null)
{
alert("請選擇需要刪除的培訓人員信息!");
return false;
}
else
{
form.action = "jcy_pxxx_submit.jsp?zt=del&ID="+G_id;
form.submit();
}
}
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_pxxx_select.jsp?zt=todel&userid="+'<%=sid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
else
{
alert(text);
}
}
function f_back()
{
window.open("jcy_pxxx_select.jsp?zt=back&userid="+'<%=sid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tr>
<td width="252">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td 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="944"><font size="5" color="#ff0000"><b><font color="#FF6633" size="3">公務員培訓信息</font></b></font><font color="#FF9933" size="3"> </font></td>
<td width="18"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="100%" height="242" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
<tr>
<td width="15" height="242" background="../images/caozuo04.gif"><img src="../images/caozuo04.gif" width="15" height="6"></td>
<td width="782" align="center">
<table width="100%" height="154" border="0" align="center">
<tr>
<td width="764"> <form name="form" method="post" action="" target="pxxxview">
<br>
<table width="95%" bordercolorlight=#666699 bordercolordark=#ffffff border="1" cellspacing="0" cellpadding="0" align="center">
<tr align="center" bgcolor="#174ca3">
<td width="0" height="40"><font color="#FFFFFF"> </font></td>
<td width="0"><font color="#FFFFFF">所屬區縣</font></td>
<td width="0"><font color="#FFFFFF">姓名</font></td>
<td width="0"><font color="#FFFFFF">參加培訓時間(起)</font></td>
<td width="0"><font color="#FFFFFF">參加培訓時間(止)</font></td>
<td width="0"><font color="#FFFFFF">組織培訓部門</font></td>
<td width="0"><font color="#FFFFFF">培訓年份</font></td>
<td width="0"><font color="#FFFFFF">培訓班期次</font></td>
<td width="0"><font color="#FFFFFF">培訓情況</font></td>
</tr>
<%while (crs.next()){
pxxxid = crs.getString(1);
qxdm = crs.getString(2);
username = crs.getString(3);
pxqr = crs.getString(4);
pxzr = crs.getString(5);
pxbm = crs.getString(6);
pxnd = crs.getString(7);
pxqc = crs.getString(8);
pxqk = crs.getString(9);
if (pxxxid == null) pxxxid = "";
if (qxdm == null) qxdm = "無";
if (username == null) username = "無";
if (pxqr == null) pxqr = "0000-00-00";
if (pxzr == null) pxzr = "0000-00-00";
if (pxbm == null) pxbm = "無";
if (pxnd == null) pxnd = "0";
if (pxqc == null) pxqc = "0";
if (pxqk == null) pxqk = "無";
%>
<tr height='25' align='center'>
<td width="26" height="25"> <input type="radio" name="radiobutton" value="<%=pxxxid%>" onClick="f_radio(this.value)">
</td>
<td width="59"><font color="#105781"><%=qxdm%></font></td>
<td width="59"><font color="#105781"><%=username%></font></td>
<td><font color="#105781"><%=pxqr%></font></td>
<td><font color="#105781"><%=pxzr%></font></td>
<td><font color="#105781"><%=pxbm%></font></td>
<td><font color="#105781"><%=pxnd%></font></td>
<td><font color="#105781"><%=pxqc%></font></td>
<td width="123"><font color="#105781"><%=pxqk%></font></td>
</tr>
<%}%>
</table>
<br>
<table width="600" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td width="108" height="23"> <div align="right"></div>
<div align="center"> </div></td>
<td width="111"> <input type="button" name="Submit52" value="修 改" class="input" onClick="f_modify()"></td>
<td width="138"> <div align="center">
<input type="button" name="Submit223" value="刪 除" class="input" onClick="f_del()">
</div></td>
<td width="136"> <div align="center">
<input type="button" name="Submit2222" value="返 回" class="input" onClick="f_back()">
</div></td>
<td width="85"> </td>
</tr>
</table>
</form></td>
</tr>
</table>
<br>
</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 width="935" background="../images/caozuo08.gif"><img src="../images/caozuo08.gif" width="6" height="16"></td>
<td width="22"><img src="../images/caozuo09.gif" width="19" height="16"></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</td>
<td width="59">
</td>
<br>
<td width="381"><p><br>
</p>
</td>
<div align="center"></div>
<tr>
<iframe name="pxxxview" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -