?? jcy_ry_hf.jsp
字號:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" %>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<%
String currusercode = jcypurview.getUsercode(); //取當前用戶usercode
String curruserid = jcypurview.getUserid(); //取當前用戶編號
String currusername = jcypurview.getUserName(); //取當前用戶名稱
String curruserszqx = jcypurview.getUserSzqx(); //取當前用戶所在區縣
String curruserszdw = jcypurview.getUserSzdw(); //取當前用戶所在單位
//檢測用戶是否登錄
if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請重新登錄!")
window.open("../index.htm","_top")
</Script>
<%
return;}
%>
<%
//檢測用戶是否有操作權限
if (jcypurview.purviewVerdict("B0500003") == false)
{
%>
<Script Language=javascript>
alert("您沒有操作此頁權限!")
history.go(-1);
</Script>
<% return;
}
%>
<html>
<head>
<%vststd std = new vststd();%>
<title>恢復公務員</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<script language="JavaScript1.2" src="new.js"></script>
<link rel="stylesheet" href="../style.css" type="text/css">
<script language="JavaScript">
function f_hfCheck()
{
var v_hfyy = document.form1.hfyy.value; //恢復原因
if (check_null(trim(v_hfyy)))
{
alert("請填寫恢復原因。");
document.form1.hfyy.focus();
return(false);
}
if (trim(v_hfyy).length >= 80)
{
alert("您輸入的字符過多!");
document.form1.hfyy.focus();
return(false);
}
}
function check_null(v_flag)
{
if(v_flag.length==0)
return(true);
}
function f_err(err)
{
if (err == "ok")
{
alert("此公務員已被恢復,操作成功!");
window.open("jcy_ry_cx_select.jsp","_self");
return;
}
alert(err);
}
function leftTrim(text)
{
for(var i = 0;i < text.length;i++)
if(text.charAt(i) != " ")
return text.substring(i,text.length);
return "";
}
function rightTrim(text)
{
for(var i = text.length -1;i >= 0;i--)
if(text.charAt(i) != " ")
return text.substring(0,i + 1);
return "";
}
function trim(text)
{
return leftTrim(rightTrim(text));
}
</script>
<%
String uid = request.getParameter("uid");
String sdwdm = std.getValue(request, "sdwdm");
String szbdm = std.getValue(request, "szbdm");
String sql_view = null;
if (sdwdm.equals("")){
sql_view = "select ry.username, ry.sfzh, dp_sys.F_Get_mc_by_dm('0004',ry.xb), '' dwmc, dp_sys.F_Get_mc_by_dm('5002',ry.zw), dp_sys.F_Get_mc_by_dm('5003',ry.ssbz), DP_SYS.TO_CHN_DATE(ry.gzqr,'YMD'), DP_SYS.TO_CHN_DATE(ry.gzzr,'YMD'), DP_SYS.TO_CHN_DATE(js.jssj,'YMD'), ry.qx, js.jsyy, js.ryzt1 from jcy_ry ry, jcy_js js, jcy_dw dw where ry.userid = '"+uid+"' and js.userid = '"+uid+"'";
}
else {
sql_view = "select ry.username, ry.sfzh, dp_sys.F_Get_mc_by_dm('0004',ry.xb), dw.dwmc, dp_sys.F_Get_mc_by_dm('5002',ry.zw), dp_sys.F_Get_mc_by_dm('5003',ry.ssbz), DP_SYS.TO_CHN_DATE(ry.gzqr,'YMD'), DP_SYS.TO_CHN_DATE(ry.gzzr,'YMD'), DP_SYS.TO_CHN_DATE(js.jssj,'YMD'), ry.qx, js.jsyy, js.ryzt1 from jcy_ry ry, jcy_js js, jcy_dw dw where ry.userid = '"+uid+"' and js.userid = '"+uid+"' and ry.dwdm=dw.dwdm";
}
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_view);
crs.next();
String username = crs.getString(1);
String sfzh = crs.getString(2);
String xb = crs.getString(3);
String gzdw = crs.getString(4);
String zw = crs.getString(5);
String ssbz = crs.getString(6);
String gzqr = crs.getString(7);
String gzzr = crs.getString(8);
String jssj = crs.getString(9);
String qx = crs.getString(10);
String jsyy = crs.getString(11);
String ryzt1 = crs.getString(12); //減少前的狀態
username = (username != null)?username:"";
sfzh = (sfzh != null)?sfzh:"";
xb = (xb != null)?xb:"";
gzdw = (gzdw != null)?gzdw:"";
zw = (zw != null)?zw:"";
ssbz = (ssbz != null)?ssbz:"";
gzqr = (gzqr != null)?gzqr:"";
gzzr = (gzzr != null)?gzzr:"";
jssj = (jssj != null)?jssj:"";
jsyy = (jsyy != null)?jsyy:"";
String sql_preryzt = "select dp_sys.F_Get_mc_by_dm('5009','"+ryzt1+"') from dual";
sun.jdbc.rowset.CachedRowSet crs_preryzt = std.getResultBySelect(sql_preryzt);
crs_preryzt.next();
String preryzt = crs_preryzt.getString(1);
%>
<%
if (!curruserszqx.equals("001") && !curruserszqx.equals(qx))
{
%>
<Script Language=javascript>
alert("您沒有恢復別區公務員權限!")
window.open("../index.jsp","_top")
</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="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" align="left" background="../images/caozuo01.gif"> </td>
<td background=".././images/caozuo02.gif" align="center" width="771"><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="800" 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="form1" method="post" action="jcy_ry_submit.jsp" target="submitx" onSubmit="return(f_hfCheck())">
<table width="750" cellspacing="1" cellpadding="0" bgcolor="#000099">
<tr>
<td>
<table align=center bordercolordark=#ffffff bordercolorlight=#666699
cellpadding=0 cellspacing=1 width=100% bgcolor="#000099">
<tr bgcolor="#EEF9FF">
<td width="20%" height="25" align="center"><b><font color="#105781">姓名</font></b></td>
<td width="25%"><%=username%></td>
<td width="10%" align="center"><b><font color="#105781">身份證號</font></b></td>
<td width="15%"><%=sfzh%></td>
<td width="10%" align="center"><b><font color="#105781">性別</font></b></td>
<td width="15%"><%=xb%></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="20%" height="25" align="center"><b><font color="#105781">工作單位</font></b></td>
<td width="25%"><%=gzdw%></td>
<td width="10%" align="center"><b><font color="#105781">職務</font></b></td>
<td width="15%"><%=zw%></td>
<td width="10%" height="29" align="center"><b><font color="#105781">所屬編制</font></b></td>
<td width="15%"><%=ssbz%></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="20%" height="25" align="center"><b><font color="#105781">從事公務工作起止日期</font></b></td>
<td colspan="5"><%=gzqr%><b><font color="#105781"> 至 </font></b><%=gzzr%></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="20%" height="25" align="center"><b><font color="#105781">被減少的日期</font></b></td>
<td colspan="3"><%=jssj%></td>
<td width="10%" align="center"><b><font color="#105781">被減少前狀態</font></b></td>
<td width="15%"><%=preryzt%></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="20%" height="25" align="center"><b><font color="#105781">減少原因</font></b></td>
<td colspan="5"><%=jsyy%></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="20%" height="29" align="center"><b><font color="#105781">恢復原因<font color="#FF0000">*</font></font></b></td>
<td colspan="5"><textarea name="hfyy" cols="50" rows="3"></textarea>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="dz" value="hf">
<input type="hidden" name="uid" value="<%=uid%>">
<input type="hidden" name="ryzt1" value="<%=ryzt1%>">
<input type="hidden" name="qx" value="<%=qx%>">
<table width="85%" border="0" cellspacing="0">
<tr>
<td width="20%" height="63" align="center"> </td>
<td width="20%" align="left">
<input type="submit" name="submit" value="確認恢復" class="input">
</td>
<td width="20%" align="center"> </td>
<td width="20%" align="right">
<input type="button" name="return" value="返 回" onClick="history.back()" class="input"></td>
<td width="20%" align="center"> </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="800" 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>
<iframe name="submitx" width="1000" height="600" style="display:none"></iframe>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -