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

📄 jcy_dwjc_view_cf.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" />

<% if (jcypurview.checkLogin() == false)
   {
%>   
	<Script Language=javascript>
		alert("用户已断线或未正常登录,请重新登录!")
		window.open("../index.htm","_top")
	</Script>
<%  return;
    }
   if (jcypurview.purviewVerdict("B0500019") == false)
  {
%>   
	<Script Language=javascript>
		alert("您没有操作此页权限!")
		window.open("../index.jsp","_top")
	</Script>
<%  return;  
}  %>  
<%
  String nowuserid   = jcypurview.getUserid();   						//取当前用户编号
  String nowusername = jcypurview.getUserName(); 						//取当前用户名称
  String nowuserszqx = jcypurview.getUserSzqx(); 						//取当前用户所在区县 
  String nowuserszdw = jcypurview.getUserSzdw(); 						//取当前用户所在单位
%>
<html>
<head>
<title>公务员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="../style.css" type="text/css">
<script language="JavaScript" src = "../new.js">
</script>
<%	
	response.setHeader("Pragma","No-cache");
	response.setHeader("Cache-Control","no-cache");
	response.setDateHeader("Expires",0);
	String dwdm = std.getValue(request,"ID");	          				// 单位代码
	String szt  = std.getValue(request,"zt");            					// 类型标识
	String dwjcxh = "";		                                                 
	String sfjl = "";									//是否奖励
	String jljb = "";									//奖励级别
	String sfcf = "";									//是否惩罚
	String cfzl = "";									//惩罚种类
	String jcyy = ""; 	 	 	 	 	    				//奖惩原因
	String jcrq = ""; 									//奖惩日期
	String lrrq = "";									//录入时期
	String jl   = "";
	
	String sql_select = "select dwjcxh,cfzl,to_char(jcrq,'YYYY.MM.DD'),jcyy from jcy_dwjc where dwdm = '"+dwdm+"' and sfcf = '01' order by jcrq desc";
	sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select); 
	
	String sql_count = "select count(*) from jcy_dwjc where dwdm  = '"+dwdm+"' and sfcf = '01'";  //sfcf是否惩罚,是,01,否02
	sun.jdbc.rowset.CachedRowSet ii = std.getResultBySelect(sql_count); 
	ii.next();
	jl = ii.getString(1);
	%>
<script>
var G_id;
function f_radio(num)
{   
	G_id = num;
}
function f_new()
{
	window.open("jcy_dwjc_new_modify_cf.jsp?zt=new&dwdm="+'<%=dwdm%>',"_self");
}
function f_modify()
{   
       if (<%=jl%> == 0)
       {
    	alert("没有记录");
    	return false;	
        } 
       if (G_id == "" || G_id == null)
       {
	    alert("您没有选择惩罚记录!");
	   return false;
       }
        else
        {
        window.open("jcy_dwjc_new_modify_cf.jsp?zt=modify&ID="+G_id+"&dwdm="+'<%=dwdm%>',"_self");
        }
}
function f_del()
{   

    if (<%=jl%> == 0)
    {
    	alert("没有记录");
    	return false;	
     }   	    	
    if (G_id == "" || G_id == null)
	{
	alert("请选择需要删除的单位!");
	return false;
        }
    else
	{
	    form.action = "jcy_dwjc_submit_cf.jsp?zt=del&ID="+G_id;
		form.submit();
         }    
}
function f_back()
{
		window.open("jcy_dw_select.jsp","_self");
}
function f_imager(text,ixy)
{	         		  
	   if (ixy == '0') 		  
	      {
		 alert(text);
	        window.open("jcy_dwjc_view_cf.jsp?ID="+'<%=dwdm%>',"_self");		 
	      }
		  else
		  {
		  alert(text);
		  }		 	     
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="16" height="84" align="left" background="../images/caozuo01.gif"></td>
      <td background="../images/caozuo02.gif" align="center" width="947"><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="230" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEF9FF">
    <tr> 
      <td width="15" height="230" background="../images/caozuo04.gif"></td>
      <td align="center"> <table width="95%" height="139" border="0" align="center">
          <tr> 
            <td width="719" height="135"> <form name="form" method="post" action="" target="view_cf">
                <br>
                <table width="100%" height="55" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#666699 bordercolordark=#ffffff>
                  <tr align="center" bgcolor="#EEF9FF"> 
                    <td height="25" colspan="2"><font color="#FF0000" size="3"><strong>惩罚查询</strong></font></td>
                    <td width="0" height="18">&nbsp;</td>
                    <td width="0"><font color="#174ca3"><a href="jcy_dwjc_view_jl.jsp?ID=<%=dwdm%>&zt=<%=szt%>&dwdm=<%=dwdm%>"><strong>奖励查询</strong></a></font></td>
                  </tr>
                  <tr align="center" bgcolor="#174ca3"> 
                    <td width="5%" height="40"><font color="#FFFFFF">&nbsp;</font> 
                    </td>
                    <td width="40%" height="16"><font color="#FFFFFF">惩罚名称</font></td>
                    <td width="30%"><font color="#FFFFFF">惩罚级别</font></td>
                    <td width="25%"><font color="#FFFFFF">惩罚时间</font></td>
                  </tr>
                  <%while (crs.next()){
				   			dwjcxh = crs.getString(1);
				  			cfzl = crs.getString(2);
				  			jcrq = crs.getString(3);
							jcyy = crs.getString(4);	             
				 			if (dwjcxh == null) dwjcxh= "";				 
				 			if (cfzl == null) cfzl = "0";
				 		    	if (jcrq == null) jcrq = "0";
							if (jcyy == null) jcyy = "无";				 			 			  								
							%>
                  <tr align="center" bgcolor="#EEF9FF"> 
                    <td height="25"> <input type="radio" name="radiobutton" value="<%=dwjcxh%>" onClick="f_radio(this.value)"> 
                    </td>
                    <td height="16"><font color="#105781"><%=jcyy%></font></td>
                    <td height="16"><font color="#105781"><%=cfzl%></font></td>
                    <td><font color="#105781"><%=jcrq%></font></td>
                  </tr>
                  <%}%>
                </table>
                <br>
                <table width="600" border="0"  align="center" bordercolorlight=#666699 bordercolordark=#ffffff>
                  <tr> 
                    <td width="39" height="23"> <div align="right"></div>
                      <div align="center"></div>
                      <div align="center"></div>
                      <div align="center"> </div></td>
                    <td width="166"><div align="center"> 
                        <input type="submit" name="Submit52" value="新  增" class="input" onClick="f_new()" >
                      </div></td>
                    <td width="166"><div align="center"> 
                        <input type="button" name="Submit52" value="修  改" class="input" onClick="f_modify()">
                      </div></td>
                    <td width="159"><div align="center"> 
                        <input type="button" name="Submit55" value="删  除" class="input" onClick="f_del()">
                      </div></td>
                    <td width="121"> <div align="center"> </div>
                      <div align="center"> </div>
                      <div align="center"> 
                        <input type="button" name="Submit2222" value="返  回" class="input" onClick="f_back()">
                      </div></td>
                    <td width="93">&nbsp;</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></td>
  </tr> </table> </td> </div>
<td width="59"></td>
<div align="center"><br>
</div>
<td width="381"><p align="center"><br>
  </p></td>
<div align="center">

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

⌨️ 快捷键说明

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