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

📄 jcy_jcyjc_view_jl.jsp

📁 公务员工资系统软件工程文档及源代码
💻 JSP
字号:

<%@ page contentType="text/html; charset=GBK" errorPage="" %>
<%@ import="com.vstsoft.std.vststd" %>
<%com.vstsoft.std.vststd std=new com.vstsoft.std.vststd();%>
<%@ errorPage="errorPage.jsp" %>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<%
  String nowuserid   = jcypurview.getUserid();   						//取当前用户编号
  String nowusername = jcypurview.getUserName(); 						//取当前用户名称
  String nowuserszqx = jcypurview.getUserSzqx(); 						//取当前用户所在区县 
  String nowuserszdw = jcypurview.getUserSzdw(); 						//取当前用户所在单位
%>
<% if (jcypurview.checkLogin() == false)
   {
%>   
	<Script Language=javascript>
		alert("用户已断线或未正常登录,请重新登录!")
		window.open("../index.htm","_top")
	</Script>
<%  return;
    }
   if (jcypurview.purviewVerdict("B0500023") == false)
  {
%>   
	<Script Language=javascript>
		alert("您没有操作此页权限!")
		window.open("../index.jsp","_top")
	</Script>
<%  return;  
  }  
  %>  

<html>
<head>
<%
	response.setHeader("Pragma","No-cache");
	response.setHeader("Cache-Control","no-cache");
	response.setDateHeader("Expires",0);
	String userid = std.getValue(request,"userid");	     					// 人员代码
	String szt    = std.getValue(request,"zt");			 			// 类型标识
	String sdwdm  = std.getValue(request,"sdwdm");
	String szbdm  = std.getValue(request,"szbdm");
	//out.print(szbdm+"P"+sdwdm+"P"+userid);
	String jcyjcxh = "";                                          
	String sfjl = "";									//是否奖励
	String jljb = "";									//奖励级别
	String jcyy = ""; 	 	 	 	 	    				//奖惩原因
	String jcrq = ""; 									//奖惩日期
	String lrrq = "";									//录入时期
	String jl   = "";									//判断记录

	String sql_select = "select jcyjcxh,jljb,to_char(jcrq,'yyyy.mm.dd'),jcyy from jcy_jcyjc where userid = '"+userid+"' and sfjl = '01' order by jcrq desc";
	sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select); 
	
	String sql_count = "select count(*) from jcy_jcyjc where userid  = '"+userid+"' and sfjl ='01' ";  //sfjl奖励01,不奖励02
	sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(sql_count); 
	ii.next();
	jl = ii.getString(1);
%>
<%
	 String qaxa = "select qx from jcy_ry where userid = '"+userid+"'";   ///判断当前用户有无权限查看此人奖惩信息
	 sun.jdbc.rowset.CachedRowSet v_qaxa = std.getResultBySelect(qaxa);
	 v_qaxa.next();
	 String pi_qaxa = v_qaxa.getString(1);
	  if(!nowuserszqx.equals("001"))
	  {
	 	if(!pi_qaxa.equals(nowuserszqx))
	        {
	 	%>
	 	<Script Language=javascript>
	 	  alert("您没有查看其它区县人员奖惩的权限!")
		  window.open("jcy_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_self");  //返回当前页
	 	</Script>
	 	<%
	 	return;
	        }    
	  }    
%>
<script>
var G_id;
function f_radio(num)
{   
	G_id = num;
}
function f_new()
{
	window.open("jcy_jcyjc_new_modify_jl.jsp?zt=new&userid="+'<%=userid%>',"_self");
}
function f_modify()
{   
    if (<%=jl%> == 0)
    {
    	alert("没有记录");
    	return false;	
    } 
    if (G_id == "" || G_id == null)
    {
	alert("您没有选择公务员奖励记录!");
	return false;
    }
    else
    {
    window.open("jcy_jcyjc_new_modify_jl.jsp?zt=modify&ID="+G_id+"&userid="+'<%=userid%>',"_self");
    }
}
function f_del()
{   

    if (<%=jl%> == 0)
    {
    	alert("没有记录");
    	return false;	
     }   	    	
    if (G_id == "" || G_id == null)
	{
	alert("请选择需要删除的公务员奖励记录!");
	return false;
        }
    else
	{
	    form.action = "jcy_jcyjc_submit_jl.jsp?zt=del&ID="+G_id;
	    form.submit();
	}    
}
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_ry_view.jsp?uid="+'<%=userid%>'+"&sdwdm="+'<%=sdwdm%>'+"&szbdm="+'<%=szbdm%>',"_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="17" height="84" align="left" background="../images/caozuo01.gif">&nbsp;</td>
              <td background="../images/caozuo02.gif" align="center" width="946"><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="136" border="0" align="center">
                  <tr> 
                    <td width="719" height="132"> <form name="form" method="post" action="" target="view_jl">
                        <br>
                        <table width="100%" height="60" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#666699 bordercolordark=#ffffff>
                          <tr align="center" bgcolor="#EEF9FF"> 
                            <td height="25" colspan="2"><font color="#174ca3"><a href="jcy_jcyjc_view_cf.jsp?userid=<%=userid%>&zt=<%=szt%>&sdwdm=<%=sdwdm%>&szbdm=<%=szbdm%>"><strong>惩罚查询</strong></a></font></td>
                            <td width="0" height="16">&nbsp;</td>
                            <td width="0"><font color="#FF0000" size="3"><b>奖励查询</b></font></td>
                          </tr>
                          <tr align="center" bgcolor="#174ca3"> 
                            <td width="5%" height="40"><font color="#FFFFFF">&nbsp;</font></td>
                            <td width="40%" height="40"><font color="#FFFFFF">奖励名称</font></td>
                            <td width="30%" height="40"><font color="#FFFFFF">奖励级别</font></td>
                            <td width="25%" height="40" bgcolor="#174ca3"><font color="#FFFFFF">奖励时间</font></td>
                          </tr>
                          <%while (crs.next()){
				   			jcyjcxh = crs.getString(1);
				  			jljb = crs.getString(2);
				  			jcrq = crs.getString(3);
							jcyy = crs.getString(4);	             
				 			if (jcyjcxh == null) jcyjcxh = "";				 
				 			if (jljb == null) jljb = "0";
				 		    	if (jcrq == null) jcrq = "0";
							if (jcyy == null) jcyy = "0";				 			 			  								
							%>
                          <tr align="center" bgcolor="#EEF9FF"> 
                            <td width="0" height="25"> 
                              <input type="radio" name="radiobutton" value="<%=jcyjcxh%>" onClick="f_radio(this.value)"> 
                            </td>
                            <td width="0" height="25"><font color="#105781"><%=jcyy%></font></td>
                            <td width="0" height="25"><font color="#105781"><%=jljb%></font></td>
                            <td width="0" height="25"><font color="#105781"><%=jcrq%></font></td>
                          </tr>
                          <%}%>
                        </table>
                        <br>
                        <table width="600" border="0"  align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
                          <tr> 
                            <td width="25%" height="23">
<div align="center"> 
                                <input type="button" name="Submit52" value="新  增" class="input" onClick="f_new()">
                              </div></td>
                            <td width="25%">
<div align="center"> 
                                <input type="button" name="Submit52" value="修  改" class="input" onClick="f_modify()">
                              </div></td>
                            <td width="25%">
<div align="center"> 
                                <input type="button" name="Submit55" value="删  除" class="input" onClick="f_del()">
                              </div></td>
                            <td width="25%" align="center"> 
                              <div align="center"> </div>
                              <div align="center"> </div>
                              <input type="button" name="Submit58" value="返  回" class="input" onClick="f_back()">
                            </td>
                          </tr>
                        </table>
                      </form></td>
                  </tr>
                </table>
                <p>&nbsp;</p></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>      
    </td>
    <td width="59">
    </td>
<td width="381">
<p><br>
  </p>
  </td>

<iframe name="view_jl" width="100" height="100" style="display:none" ></iframe>
</body>
</html>

⌨️ 快捷键说明

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