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

📄 jcy_dwjc_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" />
<%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 sfjl ="01";								 // 是否奖励:01为奖励,02为不奖励
	String jljb ="";							     	 // 奖励级别
	String lrrq ="";								 // 录入日期
	String jcrq ="";								 // 奖惩日期
	String jcyy ="";								 // 奖惩原因								 								 
	String pd   ="";								 // 修改,新增标记: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   = "";	
    }
    //计算当前时间,格式: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("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;  
    } 
 } 
 %>
<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>公务员管理</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> 
                公务单位奖励管理</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("区级")) out.print("selected");%>>区级</option>
                                      </select>
                                      </font></strong></div></td>
                                  <td height="21">&nbsp;</td>
                                  <td height="21">&nbsp;</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">&nbsp;                                
                                <%}%>
                              </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>

⌨️ 快捷键说明

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