📄 show_recorddtail.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.RecordInfoRecordSet,cn.com.aheadsoft.recordset.RecordAttachmentRecordSet,java.util.GregorianCalendar,java.util.Calendar,cn.com.aheadsoft.util.StringFormat,cn.com.aheadsoft.util.UserInfo,cn.com.aheadsoft.manage.UserPurviewManage" %>
<%
String libtype=(String)session.getAttribute("lib");
String grouptype=(String)session.getAttribute("group");
String RGI_CategoryName=(String)session.getAttribute("RGI_CategoryName");
String RGI_CategoryID = (String)session.getAttribute("RGI_CategoryID");
session.removeAttribute(RGI_CategoryID);
RecordInfoRecordSet set = (RecordInfoRecordSet)request.getAttribute("result");
RecordAttachmentRecordSet raset = (RecordAttachmentRecordSet)request.getAttribute("raresult");
set.beforefirst();
set.next();
raset.beforefirst();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>档案详细信息</title>
</head>
<script>
function openWin(url) {
window.open(url,'','toolbar=no,location=no,menubar=yes,resizable=1,scrollbars=yes,left=0,top=0,width=600,height=400');
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" >
<tr >
<td class="trA"> 您的位置:知识管理 >> <a href="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=q&&queryterm=lib&&libtype=<%=libtype%>" target="right" ><%if(libtype.equals("kn")){%>知识库<%}else if(libtype.equals("in")){%> 信息库<%}%></a> >> <a href="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=q&&queryterm=group&&libtype=<%=libtype%>&&grouptype=<%=grouptype%>" target="right"><%if(grouptype.equals("1")){%>市场 <%}else if(grouptype.equals("2")){%>技术<%}else if(grouptype.equals("3")){%>管理 <%}else if(grouptype.equals("4")){%>销售 <%}else if(grouptype.equals("5")){%>资本<%}%></a> >> <a href="/krm/servlet/RecordInfoServlet?module=<%=libtype%>&&status=q&&queryterm=obtain&&id=<%=RGI_CategoryID%>&&libtype=<%=libtype%>"><%=RGI_CategoryName%></a> >> <font class="fontcolor"><%=StringFormat.changeHTMLTags(set.getRI_RecordName())%> 档案详细信息</font>
</td>
</tr>
<tr height="8">
<td >
</td>
</tr>
<tr>
<td align="center" >
<table border="0" width="98%" align="center" bordercolor="A1B7DB" class="collapse">
<tr >
<td class="tdA" colspan="9">
档案详细信息</td>
</tr>
<tr>
<td width="100" class="common bgcolor" > 资料编号</td>
<td class="common" > <%=StringFormat.changeHTMLTags(set.getRI_RecordNumber())%></td>
</tr>
<tr>
<td class="common bgcolor" > 资料名称</td>
<td class="common" > <%=StringFormat.changeHTMLTags(set.getRI_RecordName())%></td>
</tr>
<tr>
<td class="common bgcolor" > 出版单位</td>
<td class="common" > <%if(set.getRI_PublishCompany().length()==0){%>未知<%}else{%><%=StringFormat.changeHTMLTags(set.getRI_PublishCompany())%><%}%></td>
</tr>
<tr>
<td class="common bgcolor" > 出版时间</td>
<td class="common" > <%=StringFormat.changeHTMLTags(set.getRI_PublishTime())%></td>
</tr>
<tr>
<td class="common bgcolor" > 登记时间</td>
<td class="common" > <%=StringFormat.changeHTMLTags(set.getRI_RegisterTime())%></td>
</tr>
<tr>
<td class="common bgcolor" > 附件</td>
<td class="common" >
<% while(raset.next()){
String str =raset.getRA_AttachmentPath();
String separator = java.io.File.separator;
String uploadpath="";
String FileName="";
String FileExt="";
if(str!=null){
uploadpath = str.substring(0,str.indexOf("\\"));
FileName = str.substring(str.lastIndexOf("\\")+1);
FileExt = str.substring(str.lastIndexOf(".")+1);
}
String rapath = request.getRealPath(separator + "jsp" + separator + "knwmanage" + separator + "knowledge" + separator + "knattachment");
String pathroad=rapath+separator+uploadpath;
if(FileExt.equalsIgnoreCase("txt")){
java.io.File f = new java.io.File(pathroad, FileName);
if(f.exists()) { //检查是否存在
%>
[<a href="javascript:openWin('/krm/jsp/knwmanage/knowledge/knattachment/<%=raset.getRA_AttachmentPath()%>');"><%= StringFormat.Source2GB(raset.getRA_AttachmentName()) %></a>]
<%}else{
%>
[<a href="javascript:openWin('/krm/jsp/util/info.jsp?msg=对不起,文件可能不存在!');"><%= StringFormat.Source2GB(raset.getRA_AttachmentName()) %></a>]
<% }
%>
<%}else{%>
[<% out.println("<a href=\"/krm/jsp/util/attechAccesory.jsp?realpath="+uploadpath+separator+"&filename=" + FileName +"\"\" + target=_blank\">"+StringFormat.Source2GB(raset.getRA_AttachmentName())+"</a>" );%>]
<%
}
}%>
</td>
</tr>
<tr>
<td class="common bgcolor" > 备注</td>
<td class="common" > <textarea type="textarea" name="RI_Comment" class="long" rows="5" style="overflow:auto" readonly><%=StringFormat.changeHTMLTags(set.getRI_Comment())%></textarea></td>
</tr>
<tr>
<td align="center" class="tdC" colspan="8"> <input name="button3" type="button" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="history.back(1);" value="返 回">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -