⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jcy_jcyjc_new_modify_jl.jsp

📁 公务员工资系统软件工程文档及源代码
💻 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" />
<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");	 				// 公务员奖惩编号
	String szt  = std.getValue(request,"zt");	 					// 传递内容
	String userid = std.getValue(request,"userid");					// 公务员编号
	String sdwdm  = std.getValue(request,"sdwdm");
	String szbdm  = std.getValue(request,"szbdm");
	String sfjl ="01";								 //是否奖励:01为奖励,02为不奖励
	String jljb ="";							     // 奖励级别
	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'),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);       						//单位奖惩原因
	jcrq   = crs.getString(2);     							//奖惩日期	
	jljb   = crs.getString(3);     							//惩罚种类
	if (jcyy == null) jcyy = "";
	if (jcrq == null) jcrq = "";
	if (jljb   == null) jljb   = "";
    }
    //计算当前时间,格式: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(); 					//取当前用户所在单位
%>
<% 
 if (szt.equals("new"))
 {
    if (jcypurview.purviewVerdict("B0500025") == false)
   {
%>   
	<Script Language=javascript>
		alert("您没有操作此页权限!")
		window.open("../index.jsp","_top")
	</Script>
<%  return;  
    } 
 } 
 %>
<% 
 if (szt.equals("modify"))
 {
    if (jcypurview.purviewVerdict("B0500024") == false)
   {
%>   
	<Script Language=javascript>
		alert("您没有操作此页权限!")
		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('奖惩名称不允许为空');
        document.form.jcyy.focus();
		return(false);
	}
	if(document.form.rq.value.length==0)
	{
		alert("请输入奖励日期!");
		document.form.rq.focus();
		return(false);
	}
	if (document.form.jcyy.value.length > 500)
	{
		alert('奖惩名称不能字符不能超出500个字符.');
		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>公务员管理</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">&nbsp;</td>
              <td background="../images/caozuo02.gif" align="center" width="771"><font size="3" color="#FF6600"><strong>               
                公务员奖励管理</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">奖励情况</font></strong></td>
                                </tr>
                                <tr align="center" bgcolor="#EEF9FF"> 
                                  
                        <td width="17%" height="25"><strong><font color="#105781">奖励名称</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">奖励时间 </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">奖励级别</font></strong></td>
                                  <td width="38%"> <div align="left"> <strong><font color="#105781"> 
                                      <select name="jljb" style="width:80px">
									  <option selected value="">-请选择-</option>
                                        <option <%if (jljb.equals("部级")) out.print("selected");%>>部级</option>
                                        <option <%if (jljb.equals("市级")) out.print("selected");%>>市级</option>
                                        <option <%if (jljb.equals("区级")) out.print("selected");%>>区级</option>
                                      </select>
                                      </font></strong></div></td>
                                  <td width="13%">&nbsp;</td>
                                  <td width="32%">&nbsp;</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">&nbsp; <%}%></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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -