📄 jcy_dwjc_new_modify_cf.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"); // 传递内容
String dwdm = std.getValue(request,"dwdm"); // 公务单位代码
String sfcf ="01"; //是否惩罚:处罚01为惩罚,02为不惩罚
String cfzl =""; // 惩罚种类
String lrrq =""; // 录入日期
String jcrq =""; // 奖惩日期
String jcyy =""; // 奖惩原因
String pd =""; // 修改,新增标记:1修改,2新增
String rqtime = "";
if ( szt.equals("modify"))
{
pd = "1";
String sql_modify = "select jcyy,to_char(jcrq,'YYYY.MM.DD'),cfzl 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); //奖惩日期
cfzl = crs.getString(3); //惩罚种类
if (jcyy == null) jcyy = "";
if (jcrq == null) jcrq = "";
if (cfzl == null) cfzl = "";
}
//计算当前时间,格式: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(); //取当前用户编号
String nowusername = jcypurview.getUserName(); //取当前用户名称
String nowuserszqx = jcypurview.getUserSzqx(); //取当前用户所在区县
String nowuserszdw = jcypurview.getUserSzdw(); //取当前用户所在单位
%>
<html>
<head>
<%
if (szt.equals("new"))
{
if (jcypurview.purviewVerdict("B0500020") == false)
{
%>
<Script Language=javascript>
alert("您没有操作此页权限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<%
if (szt.equals("modify"))
{
if (jcypurview.purviewVerdict("B0500021") == false)
{
%>
<Script Language=javascript>
alert("您没有操作此页权限!")
window.open("../index.jsp","_top")
</Script>
<% return;
}
}
%>
<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>
<script language="JavaScript">
function dwcf()
{
var v_jcyy = document.form.jcyy.value; //单位名称
if (check_null(v_jcyy))
{
alert("惩罚名称不能为空。");
document.form.jcyy.focus();
return(false);
}
if (v_jcyy.length > 500)
{
alert("惩罚名称长度不能超过500个字符!");
document.form.jcyy.focus();
return(false);
}
if(document.form.rq.value=="")
{
alert("惩罚日期不能为空");
document.form.jcyy.focus();
return(false);
}
}
function check_null(v_flag)
{
if(v_flag.length==0)
return(true);
}
function check_number(num)
{
for(i=0;i<num.length;i++)
{
var a=num.substr(i,1);
if (a<'0' || a>'9')
return('1');
}
return('0');
}
//判断
function f_imager(text,ixy)
{
if (ixy == '0')
{
alert(text)
window.open("jcy_dwjc_view_cf.jsp?ID="+'<%=dwdm%>',"_self");
}
else
{
alert(text);
return(false);
}
}
function f_back()
{
window.open("jcy_dwjc_view_cf.jsp?ID="+'<%=dwdm%>',"_self");
}
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>
<head>
<title>公务员管理</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"> <div align="center">
<table width="100%" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="750" height="88" align="center"> <div align="center"><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="84" align="left" background="../images/caozuo01.gif"></td>
<td background="../images/caozuo02.gif" align="center" width="744"><font size="3" color="#FF6600"><strong>
公务单位惩罚管理</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_cf.jsp?ID=<%=dwjcxh%>&zt=<%=szt%>&dwdm=<%=dwdm%>" target="submitcf" onSubmit ="return(dwcf())">
<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 bgcolor="#EEF9FF">
<td height="25" colspan="4" align="center">
<div align="center">
<strong><font color="#105781">奖惩情况 </font></strong></div></td>
</tr>
<tr bgcolor="#EEF9FF">
<td width="122" height="25" align="center"><strong><font color="#105781">惩罚名称</font><font color="#FF0000">*</font></strong></td>
<td width="292" height="21" align="center">
<div align="left"><strong> <font color="#000000">
<input name="jcyy" type="text" value="<%=jcyy%>" size="36" maxlength="500">
</font></strong></div></td>
<td width="103" height="21" align="center">
<strong><font color="#105781">惩罚时间</font><font color="#FF0000">*</font></strong></td>
<td width="224" height="21" align="center">
<div align="left">
<strong><font color="#105781">
<%if (szt.equals("modify"))
{
rqtime =jcrq;
}else
{
//rqtime = std.getDateStr("YYYY.MM.DD");
rqtime=ti;
}
%>
<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 bgcolor="#EEF9FF">
<td height="25" align="center"><strong><font color="#105781">惩罚种类</font></strong></td>
<td height="21"><strong>
<select name="cfzl" style="width:80px">
<option selected <%if (cfzl.equals("警告")) out.print("selected");%>>警告</option>
<option <%if (cfzl.equals("处分")) out.print("selected");%>>处分</option>
<option <%if (cfzl.equals("记过")) out.print("selected");%>>记过</option>
</select>
</strong></td>
<td height="21" align="center"> </td>
<td height="21" align="center"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="595" border="0" align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
<tr>
<td height="23"> <div align="right"></div>
<div align="center"> </div>
<div align="center">
<input type="submit" name="modify_new" value="保 存" class="input">
</div>
<div align="center"> </div></td>
<% if(szt.equals("modify")){ %>
<td width="188"> <%}%></td>
<% if(szt.equals("new")){ %>
<td width="188" align="center"><input type="reset" name="return2" value="清 屏" class="input"s>
<%}%></td>
<td> <div align="center">
<input type="button" name="modify_return" value="返 回" class="input" src="" onClick="f_back()">
</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>
</div></td>
</tr>
</table>
</div></td>
<td width="59"> </td>
<td width="381"> <p align="center"><br>
</p></td>
<tr>
<iframe name="submitcf" width="100" height="100" style="display:none" ></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -