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

📄 jcy_ry_dyzj.jsp

📁 公务员工资系统软件工程文档及源代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" %>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<%
  String currusercode = jcypurview.getUsercode(); //取当前用户usercode
  String curruserid = jcypurview.getUserid();     //取当前用户编号
  String currusername = jcypurview.getUserName(); //取当前用户名称
  String curruserszqx = jcypurview.getUserSzqx(); //取当前用户所在区县 
  String curruserszdw = jcypurview.getUserSzdw(); //取当前用户所在单位

//检测用户是否登录
if (jcypurview.checkLogin() == false)
   {
%>   
	<Script Language=javascript>
		alert("用户已断线或未正常登录,请重新登录!")
		window.open("../index.htm","_top")
	</Script>
<%  
    return;
	}
%>
<%
  //检测用户是否有操作权限 
  if (jcypurview.purviewVerdict("B0500043") == false)
  {
%>
	<Script Language=javascript>
		alert("您没有操作此页权限!");
		window.close();
	</Script>
<%
	return;
   }
%> 

<%vststd std = new vststd();%>
<%
	String uid = std.getValue(request,"uid");
	String sqlStr = "";
	String zjhm = "";
	String name = "";
	String xb   = "";
	String csrq = "";
	String zw   = "";
	String dwmc = "";
	String gzzr = "";
	String qx   = "";

	sun.jdbc.rowset.CachedRowSet crs = null;
	sqlStr = "select ry.zjhm zjhm, ry.username username, dp_sys.F_Get_mc_by_dm('0004',ry.xb) xb, DP_SYS.TO_CHN_DATE(ry.csrq,'YMD') csrq, dp_sys.F_Get_mc_by_dm('5002',ry.zw) zw, dw.dwmc dwmc, to_char(ry.gzzr,'yyyymmdd') gzzr, ry.qx qx from jcy_ry ry, jcy_dw dw where userid = '"+uid+"' and ry.dwdm=dw.dwdm";
	crs = std.getResultBySelect(sqlStr);
	crs.next();
	zjhm = crs.getString("zjhm");	
	name = crs.getString("username");
	xb   = crs.getString("xb");
	csrq = crs.getString("csrq");
	zw   = crs.getString("zw");
	dwmc = crs.getString("dwmc");
	gzzr = crs.getString("gzzr");
	qx   = crs.getString("qx");

	zjhm = (zjhm != null)?zjhm:"";
	name = (name != null)?name:"";
	xb   = (xb   != null)?xb:"";
	csrq = (csrq != null)?csrq:"";
	zw   = (zw   != null)?zw:"";
	dwmc = (dwmc != null)?dwmc:"";
	gzzr = (gzzr != null)?gzzr:"";
	qx   = (qx   != null)?qx:"";
%>

<%
  //检测用户是否有操作权限 
  if (!curruserszqx.equals("001") && !curruserszqx.equals(qx))
  {
%>
	<Script Language=javascript>
		alert("您没有操作此页权限!");
		window.close();
	</Script>
<%
	return;
}
%> 
<script language="JavaScript">
function f_check()
{
	var v_zw = "<%=zw%>"
	var v_zjhm = "<%=zjhm%>";
	if (v_zw.length == 0)
	{
		alert("此公务员没有职务,暂时不能打印证件!");
		return(false);
	}
	else if (v_zjhm.length == 0)
	{
		alert("此公务员没有证件号码,暂时不能打印证件!");
		return(false);
	}
	else
	{
	factory.printing.Print(false);
	}
}
</script>
<html>
<style media="print">
.noprint { display: none }
</style>
<link rel="stylesheet" href="../style.css" type="text/css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>证件打印</title>
</head>
<body>
<div id="Layer1" style="position:absolute; width:440px; height:264px; z-index:1"><img src="/images/dyzj.jpg" width="644" height="456"></div>
<div id="Layer2" style="position:absolute; z-index:2; left: 25px; width: 646px; height: 509px;"> 
  <table width="644" height="457" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="101" height="117">&nbsp;</td>
      <td width="309">&nbsp;</td>
      <td colspan="4" valign="bottom"><font size="3"><%=name%>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="43">&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="4" valign="bottom"><font size="3"><%=xb%>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="48">&nbsp;</td>
      <td>&nbsp;</td>
      <td valign="bottom">&nbsp;</td>
      <td colspan="3" valign="bottom"><font size="3">&nbsp;&nbsp;<%=csrq%>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="46">&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="4" valign="bottom"><font size="3"><%=zw%>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="46">&nbsp;</td>
      <td>&nbsp;</td>
      <td valign="bottom">&nbsp;</td>
      <td colspan="3" valign="bottom"><font size="3"><%=dwmc%>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="48">&nbsp;</td>
      <td>&nbsp;</td>
      <td width="33" valign="bottom">&nbsp;</td>
      <td width="52" valign="bottom"><input name="fzyear" type="text" style="BACKGROUND-COLOR: transparent; BORDER-BOTTOM: transparent 0px dotted; BORDER-LEFT: medium none; BORDER-RIGHT: medium none; BORDER-TOP: medium none; COLOR: black; FONT-SIZE: 12pt; width:40px" maxlength="4">&nbsp;</td>
      <td width="39" valign="bottom"><input name="fzmonth" type="text" style="BACKGROUND-COLOR: transparent; BORDER-BOTTOM: transparent 0px dotted; BORDER-LEFT: medium none; BORDER-RIGHT: medium none; BORDER-TOP: medium none; COLOR: black; FONT-SIZE: 12pt" size="2" maxlength="2">&nbsp;</td>
      <td width="110" valign="bottom"><input name="fzday" type="text" style="BACKGROUND-COLOR: transparent; BORDER-BOTTOM: transparent 0px dotted; BORDER-LEFT: medium none; BORDER-RIGHT: medium none; BORDER-TOP: medium none; COLOR: black; FONT-SIZE: 12pt" size="2" maxlength="2">&nbsp;</td>
    </tr>
    <tr> 
      <td height="52">&nbsp;</td>
      <td valign="bottom"><font size="3"><%=zjhm%></font></td>
      <td colspan="4" valign="bottom">&nbsp;</td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="4" valign="bottom">&nbsp;</td>
    </tr>
  </table>
  <div class=noprint> 
	<table width="650" border="0" cellspacing="0" cellpadding="0" height="0">
      <tr> 
        <td width="640" height="0" align="center">&nbsp; 
	<input id="idPrint1" type="button" value="打  印" onClick="f_check()" class="input">
    <input id="idPrint2" type="button" value="页面设置" onclick="factory.printing.PageSetup()" class="input">
	<input id="idPrint3" type="button" value="打印预览" onclick="factory.printing.Preview()" class="input">
	<input type="button" value="打印胸卡" onClick=window.open("jcy_ry_dyxk.jsp?uid=<%=uid%>","_blank") class="input">
	<input id="idPrint4" type="button" value="关闭窗口" onclick="window.close()" class="input">
        </td>
      </tr>
    </table>
	</div>
</div>
<iframe name="submitx" width="1000" height="600"  style="display:none"></iframe>
</body>
</html>

<object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="ScriptX.cab">
</object> 
<script>
	function window.onload() {
	factory.printing.header = ""
	factory.printing.footer = ""
	factory.printing.portrait = false
	idPrint1.disabled = false; // enable UI button
	idPrint2.disabled = false;
	idPrint3.disabled = false;
	idPrint4.disabled = false;
	factory.printing.leftMargin = 0.5
	factory.printing.topMargin = 0.5
	factory.printing.rightMargin = 0.5
	factory.printing.bottomMargin = 0.5
	//  factory.printing.paperSize = "A4"
	}
</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

⌨️ 快捷键说明

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