?? jcy_ry_dyzj.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"> </td>
<td width="309"> </td>
<td colspan="4" valign="bottom"><font size="3"><%=name%> </font></td>
</tr>
<tr>
<td height="43"> </td>
<td> </td>
<td colspan="4" valign="bottom"><font size="3"><%=xb%> </font></td>
</tr>
<tr>
<td height="48"> </td>
<td> </td>
<td valign="bottom"> </td>
<td colspan="3" valign="bottom"><font size="3"> <%=csrq%> </font></td>
</tr>
<tr>
<td height="46"> </td>
<td> </td>
<td colspan="4" valign="bottom"><font size="3"><%=zw%> </font></td>
</tr>
<tr>
<td height="46"> </td>
<td> </td>
<td valign="bottom"> </td>
<td colspan="3" valign="bottom"><font size="3"><%=dwmc%> </font></td>
</tr>
<tr>
<td height="48"> </td>
<td> </td>
<td width="33" valign="bottom"> </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"> </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"> </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"> </td>
</tr>
<tr>
<td height="52"> </td>
<td valign="bottom"><font size="3"><%=zjhm%></font></td>
<td colspan="4" valign="bottom"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="4" valign="bottom"> </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">
<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 + -