?? jcy_jcyjc_new_modify_jl.jsp
字號(hào):
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" errorPage=""%>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<html>
<head>
<%vststd std = new vststd();%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
String jcyjcxh = std.getValue(request,"ID"); // 公務(wù)員獎(jiǎng)懲編號(hào)
String szt = std.getValue(request,"zt"); // 傳遞內(nèi)容
String userid = std.getValue(request,"userid"); // 公務(wù)員編號(hào)
String sdwdm = std.getValue(request,"sdwdm");
String szbdm = std.getValue(request,"szbdm");
String sfjl ="01"; //是否獎(jiǎng)勵(lì):01為獎(jiǎng)勵(lì),02為不獎(jiǎng)勵(lì)
String jljb =""; // 獎(jiǎng)勵(lì)級(jí)別
String lrrq =""; // 錄入日期
String jcrq =""; // 獎(jiǎng)懲日期
String jcyy =""; // 獎(jiǎng)懲原因
String pd =""; // 修改,新增標(biāo)記:1修改,2新增
String rqtime = "";
if ( szt.equals("modify"))
{
pd = "1";
String sql_modify ="select jcyy,to_char(jcrq,'yyyy.mm.dd'),jljb from jcy_jcyjc where jcyjcxh = '"+jcyjcxh+"' and userid = '"+userid+"'";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_modify);
crs.next();
jcyy = crs.getString(1); //單位獎(jiǎng)懲原因
jcrq = crs.getString(2); //獎(jiǎng)懲日期
jljb = crs.getString(3); //懲罰種類
if (jcyy == null) jcyy = "";
if (jcrq == null) jcrq = "";
if (jljb == null) jljb = "";
}
//計(jì)算當(dāng)前時(shí)間,格式:yyyy.mm.dd
sun.jdbc.rowset.CachedRowSet aa=std.getResultBySelect("select to_char(sysdate,'yyyy.mm.dd') t from dual");
aa.next();
String ti=aa.getString("t");
%>
<% if (jcypurview.checkLogin() == false)
{
%>
<Script Language=javascript>
alert("用戶已斷線或未正常登錄,請(qǐng)重新登錄!")
window.open("../index.htm","_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)前用戶所在單位
%>
<%
if (szt.equals("new"))
{
if (jcypurview.purviewVerdict("B0500025") == false)
{
%>
<Script Language=javascript>
alert("您沒(méi)有操作此頁(yè)權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<%
if (szt.equals("modify"))
{
if (jcypurview.purviewVerdict("B0500024") == false)
{
%>
<Script Language=javascript>
alert("您沒(méi)有操作此頁(yè)權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<script language="JavaScript" src = "new.js">
</script>
<!--// modify : yhy-->
<link rel="stylesheet" href="../lib/main.css" type="text/css">
<script language="javascript" src="../lib/check.js"></script>
<script language="JavaScript" src="../lib/date/GetDate.js"></script>
<script language="JavaScript" src="../lib/util.js"></script>
<!-- modify end -->
<script>
function checkJsrqs(inval){
if(inval==""){
return true;
}
var ret = check_date(inval,"D");
if(ret == "")
return true;
else
{
ret="新增日期 起:"+ret;
alert(ret);
return false;
}
}
</script>
<script>
function f_isnull()
{
if (document.form.jcyy.value == '')
{
alert('獎(jiǎng)懲名稱不允許為空');
document.form.jcyy.focus();
return(false);
}
if(document.form.rq.value.length==0)
{
alert("請(qǐng)輸入獎(jiǎng)勵(lì)日期!");
document.form.rq.focus();
return(false);
}
if (document.form.jcyy.value.length > 500)
{
alert('獎(jiǎng)懲名稱不能字符不能超出500個(gè)字符.');
document.form.jcyy.focus();
return(false);
}
}
//判斷
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_jcyjc_view_jl.jsp?userid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");
}
</script>
<script language=javascript>
</script>
<title>公務(wù)員管理</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">
<table width="100%" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="88" align="center"><br>
<table width="806" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" height="84" align="left" background="../images/caozuo01.gif"> </td>
<td background="../images/caozuo02.gif" align="center" width="771"><font size="3" color="#FF6600"><strong>
公務(wù)員獎(jiǎng)勵(lì)管理</strong></font></td>
<td width="17"><img src="../images/caozuo03.gif" width="15" height="84"></td>
</tr>
</table>
<table width="803" 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">
<form name="form" method="post" action="jcy_jcyjc_submit_jl.jsp?zt=<%=szt%>&ID=<%=jcyjcxh%>&userid=<%=userid%>" target="submitjl" onSubmit ="return(f_isnull())">
<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 align="center" bgcolor="#EEF9FF">
<td height="25" colspan="4"><strong><font color="#105781">獎(jiǎng)勵(lì)情況</font></strong></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td width="17%" height="25"><strong><font color="#105781">獎(jiǎng)勵(lì)名稱</font><font color="#FF0000">*</font></strong></td>
<td> <div align="left"> <strong><font color="#105781">
<input name="jcyy" type="text" value="<%=jcyy%>" size="35" maxlength="500">
</font></strong></div></td>
<td><strong><font color="#105781">獎(jiǎng)勵(lì)時(shí)間 </font><font color="#FF0000">*</font></strong></td>
<td> <div align="left">
<strong><font color="#105781">
<!-- <script language="JavaScript1.2">-->
<%if (szt.equals("modify"))
{
rqtime =jcrq;
}else
{
//rqtime = std.getDateStr("YYYY.MM.DD");
rqtime=ti;
}
%>
<!--var d1=new rlCtrl("","");</script>-->
<input id="rq" name="rq" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqs(this.value)) this.focus();" onDblClick=this.value="" value="<%=rqtime%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('rq',1);">
</font></strong></div></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td height="25"><strong><font color="#105781">獎(jiǎng)勵(lì)級(jí)別</font></strong></td>
<td width="38%"> <div align="left"> <strong><font color="#105781">
<select name="jljb" style="width:80px">
<option selected value="">-請(qǐng)選擇-</option>
<option <%if (jljb.equals("部級(jí)")) out.print("selected");%>>部級(jí)</option>
<option <%if (jljb.equals("市級(jí)")) out.print("selected");%>>市級(jí)</option>
<option <%if (jljb.equals("區(qū)級(jí)")) out.print("selected");%>>區(qū)級(jí)</option>
</select>
</font></strong></div></td>
<td width="13%"> </td>
<td width="32%"> </td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="595" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td width="193" height="23"> <div align="center"></div>
<div align="center">
<input type="submit" name="Submit53" value="保 存" class="input">
</div></td>
<% if(szt.equals("modify")){ %>
<td width="194"> <%}%></td>
<% if(szt.equals("new")){ %>
<td width="194" align="center"><input type="reset" name="return2" value="清 屏" class="input">
<%}%> </td>
<td width="194"> <div align="center">
<input type="button" name="Submit58" value="返 回" class="input" onClick="f_back()">
</div>
<div align="center"> </div>
<div align="center"> </div></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="803" 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>
<iframe name="submitjl" 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 + -