?? jcy_dwjc_new_modify_jl.jsp
字號:
<%@ 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" />
<%vststd std = new vststd();%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);
String dwjcxh = std.getValue(request,"ID"); // 單位獎懲編號
String szt = std.getValue(request,"zt"); // 傳遞內(nèi)容
String dwdm = std.getValue(request,"dwdm"); // 公務(wù)單位代碼
String sfjl ="01"; // 是否獎勵:01為獎勵,02為不獎勵
String jljb =""; // 獎勵級別
String lrrq =""; // 錄入日期
String jcrq =""; // 獎懲日期
String jcyy =""; // 獎懲原因
String pd =""; // 修改,新增標(biāo)記:1修改,2新增
String rqtime = "";
rqtime = std.getDateStr("YYYY.MM.DD");
if ( szt.equals("modify"))
{
pd = "1";
String sql_modify ="select jcyy,to_char(jcrq,'YYYY.MM.DD'),jljb from jcy_dwjc where dwjcxh = '"+dwjcxh+"' and dwdm = '"+dwdm+"'";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_modify);
crs.next();
jcyy = crs.getString(1); //單位獎懲原因
jcrq = crs.getString(2); //獎懲日期
jljb = crs.getString(3); //懲罰種類
if (jcyy == null) jcyy = "";
if (jcrq == null) jcrq = "";
if (jljb == null) jljb = "";
}
//計算當(dāng)前時間,格式: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("用戶已斷線或未正常登錄,請重新登錄!")
window.open("../index.htm","_top")
</Script>
<% return; }%>
<%
String nowuserid = jcypurview.getUserid(); //取當(dāng)前用戶編號
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("B0500020") == false)
{
%>
<Script Language=javascript>
alert("您沒有操作此頁權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<%
if (szt.equals("modify"))
{
if (jcypurview.purviewVerdict("B0500021") == false)
{
%>
<Script Language=javascript>
alert("您沒有操作此頁權(quán)限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<html>
<head>
<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('獎懲名稱不允許為空');
document.form.jcyy.focus();
return(false);
}
if (document.form.jcyy.value.length > 500)
{
alert('獎懲名稱長度不能超出500個字符.');
document.form.jcyy.focus();
return(false);
}
if(document.form.rq.value.length==0)
{
alert("請輸入獎勵日期!");
document.form.rq.focus();
return(false);
}
if(document.form.rq.value=="")
{
alert("獎勵日期不能為空");
document.form.jcyy.focus();
return(false);
}
}
//判斷
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text);
window.open("jcy_dwjc_view_jl.jsp?ID="+'<%=dwdm%>',"_self");
}
else
{
alert(text);
return(false);
}
}
function f_back()
{
window.open("jcy_dwjc_view_jl.jsp?ID="+'<%=dwdm%>',"_self");
}
</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">
<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="13" height="84" align="left" background="../images/caozuo01.gif"></td>
<td background="../images/caozuo02.gif" align="center" width="743"><font size="3" color="#FF6600"><strong>
公務(wù)單位獎勵管理</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="131" border="0" align="center">
<tr>
<td width="682" height="127">
<form name="form" method="post" action="jcy_dwjc_submit_jl.jsp?ID=<%=dwjcxh%>&zt=<%=szt%>&dwdm=<%=dwdm%>" target="submitjl" onSubmit ="return(f_isnull())">
<table width="95%" align="center" cellpadding="0" cellspacing="1" 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"><div align="center">
<b><font color="#105781"><strong>獎懲情況</strong>
</font></b></div></td>
</tr>
<tr align="center" bgcolor="#EEF9FF">
<td width="122" height="25"><strong><font color="#105781">獎勵名稱</font><font color="#FF0000">*</font><font color="#105781">
</font></strong></td>
<td width="294" height="21"> <div align="left"><strong><font color="#105781">
<input name="jcyy" type="text" value="<%=jcyy%>" size="36" maxlength="250">
</font></strong></div></td>
<td width="153" height="21"> <strong><font color="#105781">獎勵時間</font><font color="#FF0000">*</font></strong></td>
<td width="172" height="21"> <div align="left">
<strong><font color="#105781">
<!--<script language="JavaScript">-->
<%if (szt.equals("modify"))
{
rqtime =jcrq;
}else
{
//rqtime = std.getDateStr("YYYY.MM.DD");
rqtime=ti;
}
%>
<!--var d1=new rlCtrl("rq","<%//=rqtime%>");</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">獎勵級別</font></strong></td>
<td height="21" bgcolor="#EEF9FF"> <div align="left">
<strong><font color="#105781">
<select name="jljb">
<option selected <%if (jljb.equals("部級")) out.print("selected");%>>部級</option>
<option <%if (jljb.equals("市級")) out.print("selected");%>>市級</option>
<option <%if (jljb.equals("區(qū)級")) out.print("selected");%>>區(qū)級</option>
</select>
</font></strong></div></td>
<td height="21"> </td>
<td height="21"> </td>
</tr>
</table></td>
</tr>
</table>
<div align="center"></div>
<table width="596" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td height="23"> <div align="center">
<input type="submit" name="modify_new" value="保 存" class="input">
</div>
<div align="center"></div></td>
<% if(szt.equals("modify")){ %>
<td width="184" align="center">
<%}%>
</div></td>
<% if(szt.equals("new")){ %>
<td width="184" align="center"><input type="reset" name="return2" value="清 屏" class="input">
<%}%></td>
<td> <div align="center">
<input type="button" name="modify_return" value="返 回" class="input" src="" onClick="f_back()">
</div>
<div align="center"> </div></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>
<br> </td>
</tr>
</table>
<div align="center"></div>
<div align="center"></div></td>
<td width="59">
</td>
<td width="381">
<p><br>
</p>
</td>
<iframe name="submitjl" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -