📄 viewdoc.vm
字号:
<html>
<head>
<title>发文编辑</title>
<link rel="stylesheet" href="$request.getContextPath()/csslib/style.css" type="text/css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
function init(){
thisForm.sendPerson.rows=2;
thisForm.docTitle.rows=2;
thisForm.docMemo.rows=2;
thisForm.subject.rows=2;
thisForm.publishPerson.rows=2;
thisForm.allSignPerson.rows=2;
}
function refreshPage(){
if(opener){
opener.refreshPage();
}
}
function guanbi(){
if(opener){
window.close();
opener.changePage('4');
}else{
}
}
</script>
</head>
<br>
<table width="520" border="0" align="center" cellpadding="0">
<tr><td height="1" align=center><b><font color="red" size="6" face="楷体_GB2312">公文收文登记簿</font></b></td></tr>
</table>
<body onload="init()" onunload="refreshPage()" scroll="yes">
<form name="thisForm" method="post" ENCTYPE="multipart/form-data">
<input type=hidden name="docId" value="$!recvDocForm.getDocId()">
<input type=hidden name="sendDocId" value="$!recvDocForm.getSendDocId()">
<input type=hidden name="docKind" value="$!recvDocForm.getDocKind()">
<input type=hidden name="status" value="$!recvDocForm.getStatus()">
<input type=hidden name="createUnitId" value="$!userinfo.getUnit().getUnitId()">
<input type=hidden name="creatorId" value="$!userinfo.getUserId()">
<input type=hidden name="creator" value="$!userinfo.getUserName()">
<input type=hidden name="zwcount" value="0">
<input type=hidden name="openWin" value="0">
<input type=hidden name="xiugai" value="">
<input type=hidden name="subjecthide" value="">
<input type=hidden name="combinehide" value="">
<input type=hidden name="allsignhide" value="">
<input type=hidden name="publisherhide" value="">
<input type=hidden name="tempTarget" value="">
<input type=hidden name="method" value="saveDoc">
<input type=hidden name="filePages" value="0">
<table width="750" border="0" cellspacing="1" cellpadding="3" bgcolor="#000000" align=center>
<tbody id="tbody">
<tr >
<td bgcolor="#ffffff" width=10% height=""> 标 题</td>
<td bgcolor="#ffffff" colspan=3 ><textarea rows=1 name="docTitle" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:646;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly >$!recvDocForm.getDocTitle()</textarea></td>
</tr>
<!--tr>
<td bgcolor="#ffffff" width=10% height=""> 联合行文</td>
<td bgcolor="#ffffff" colspan=3 ><textarea rows=1 name="combineUnit" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:646;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="50" readonly >$!recvDocForm.getCombineUnit()</textarea></td>
</tr-->
<tr>
<td bgcolor="#ffffff" height=""> 文 号</td>
<td bgcolor="#ffffff" colspan=3><input name="docNoPre" type="text" size="20" value="$!recvDocForm.getDocNoPre()" class="inputStyle" style="width:100" onkeypress="return handleEnter(this, event)" maxlength="20" readonly>[<input name="yearNo" type="text" size="20" value="$!recvDocForm.getYearNo()" class="inputStyle" style="width:40" onkeypress="return handleEnter(this, event)" maxlength="4">]<input name="waterNo" type="text" size="20" value="$!recvDocForm.getWaterNo()" class="inputStyle" style="width:80" onkeypress="return handleEnter(this, event)" maxlength="10" readonly>号</td>
</tr>
<tr>
<td bgcolor="#ffffff" height=""> 主 题 词</div></td>
<td bgcolor="#ffffff" colspan=3><textarea rows=1 name="subject" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:646;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="50" readonly>$!recvDocForm.getSubject()</textarea></td>
</tr>
<tr>
<td bgcolor="#ffffff" width=10% height=""> 签 发 人</td>
<td bgcolor="#ffffff" width=58%><textarea rows=1 name="publishPerson" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:380;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!recvDocForm.getPublishPerson()</textarea></td>
<td bgcolor="#ffffff" width=10% height=""> 紧急程度</td>
<td bgcolor="#ffffff" width=22%><textarea rows=1 name="emergency" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:100;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!emergency</textarea></td>
</tr>
<tr>
<td bgcolor="#ffffff"> 会 签 人</td>
<td bgcolor="#ffffff" ><textarea rows=1 name="allSignPerson" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:380;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!recvDocForm.getAllSignPerson()</textarea></td>
<td bgcolor="#ffffff"> 秘密等级</td>
<td bgcolor="#ffffff"><textarea rows=1 name="secret" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:100;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!secret</textarea></td>
</tr>
<tr >
<td bgcolor="#ffffff" height=""> 正 文</td>
<td bgcolor="#ffffff" ><!--input name="zhengwen" type="text" class="inputStyle" style="width:380" size="16" value="" onkeypress="return handleEnter(this, event)" readonly><img src="$request.getContextPath()/image/checkfile.gif" onclick="insertfile(0)"></td-->
#set ($attachments = $!attach)
#set ($fjNum = 0)
#foreach($attachment in $attachments)
#if($attachment.getStatus().equals("0") || $attachment.getStatus().equals("10"))
#set ($zw = $attachment)
#else
#set ($fjNum = $fjNum + 1)
#end
#end
<textarea rows=1 name="zhengwen" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:380;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!zw.getTitle()</textarea></td>
</td>
<td bgcolor="#ffffff"> 正文页数</td>
<td bgcolor="#ffffff"><input name="filePages" type="text" class="inputStyle" style="width:115" size="8" maxlength="5" value="$!recvDocForm.getFilePages()" onkeypress="return handleEnter(this, event)" readonly></td>
</tr>
#set ($num = 1)
#foreach($attachment in $attach)
#if($attachment.getStatus().equals("1") || $attachment.getStatus().equals("11"))
<tr id="fujian$num">
<td bgcolor="#ffffff" height=""> 附 件</div></td>
<td bgcolor="#ffffff" colspan=3>
附件$num:$attachment.getTitle()
<a href="$request.getContextPath()/downLoadFileAction.do?fileId=$attachment.getFileId()">下载文件</a>
</td>
</tr>
#set ($num = $num+1)
#end
#end
<tr id="memo">
<td bgcolor="#ffffff" height=""> 发文备注</td>
<td bgcolor="#ffffff" colspan=3><textarea rows=1 name="docMemo" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:646;" class="inputStyle" onkeypress="handleEnter1(this, event)" maxlength="200" readonly>$!recvDocForm.getMemo()</textarea></td>
</tr>
<tr>
<td bgcolor="#ffffff" height=""> 发 送 人</div></td>
<td bgcolor="#ffffff" ><textarea rows=1 name="sendPerson" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:380;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!recvDocForm.getSendPerson()</textarea></td>
<td bgcolor="#ffffff"> 发送时间</div></td>
<td bgcolor="#ffffff"><textarea rows=1 name="sendTime" onpropertychange="this.style.posHeight=this.scrollHeight" style="overflow:hidden;width:155;" class="inputStyle" onkeypress="return handleEnter(this, event)" maxlength="200" readonly>$!recvDocForm.getSendTime().toString().substring(0,19)</textarea></td>
</tr>
</tbody>
</table>
<table id="operateTable" width="380" border="0" align=center>
<tr height="20"> </tr>
<tr id="operateTr">
<td align=center><button onclick="changeText(1)" class="button-01" accesskey="V">浏览(V)</button></td>
#if($status.equals("0"))
<td align=center><button onclick="changeText(2)" class="button-01" accesskey="S">签收(S)</button></td>
<td align=center><button onclick="changeText(4)" class="button-01" accesskey="B">退回(B)</button></td>
#elseif($status.equals("2"))
<td align=center><button onclick="changeText(4)" class="button-01" accesskey="B">退回(B)</button></td>
#end
<td align=center><button onclick="guanbi()" class="button-01" accesskey="C">关闭(C)</button></td>
</tr>
</table>
</form>
</body>
</html>
<script language="javascript">
function openFile(docId){
var wid = screen.width-10;
var hei = screen.height-30;
docId = $!recvDocForm.getDocId();
var val = "10";
window.open('$request.getContextPath()/recvDocAction.do?method=viewFile&docId='+docId+'&status='+val+'','','height='+hei+', width='+wid+', top=0, left=0,resizable=yes,location=no, status=no');
}
function changeText(value){
if(value==1){
openFile();
return false;
}
if(value==2){
var docId = $!recvDocForm.getDocId();
location.replace("recvDocAction.do?method=sign&docId="+docId+"&status=2");
alert("签收成功!");
opener.createPage(1$status);
window.close();
}
if(value==4){
var docId = $!recvDocForm.getDocId();
//window.open("$request.getContextPath()/recvDocAction.do?method=refusePage&docId="+docId+"&status=4",'editor','toolbar=no,scroll=yes,location=no,status=no,width=800,height=510,top=100,left=100');
location.replace("recvDocAction.do?method=refusePage&docId="+docId+"&status=4");
}
if(value==6){
var docId = $!recvDocForm.getDocId();
location.replace("recvDocAction.do?method=archive&docId="+docId+"&status=6");
opener.createPage(1$status);
window.close();
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -