📄 proccesslist.jsp
字号:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="cn.com.aheadsoft.recordset.DEProccessRecordSet,cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.DeInforAttachmentRecordSet,cn.com.aheadsoft.business.DeInforAttachmentBusiness" %>
<%@ page import="cn.com.aheadsoft.util.UserInfo"%>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<%
DEProccessRecordSet set = (DEProccessRecordSet) request.getAttribute("result");
String D_Serial = (String)request.getAttribute("D_Serial");
String userID = "";
UserInfo userInfo=(UserInfo)session.getAttribute("userinfo") ;
userID=userInfo.GetUserID();
int i39 = upm.getUserPopInt(userinfo,"3","9","i");
int u39 = upm.getUserPopInt(userinfo,"3","9","u");
int d39 = upm.getUserPopInt(userinfo,"3","9","d");
%>
<html>
<head>
<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="102%" border="0" cellpadding="0" cellspacing="0" align="center" >
<tr height="8">
<td></td>
</tr>
<tr>
<td align="center" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="right" colspan="6">
<%if(i39 > 0){%>
<input type="button" value="添 加" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="javascript:document.location.href='/krm/servlet/DetailServlet?module=deproccess&&status=i&&queryterm=obtain&&D_Serial=<%=D_Serial%>'">
<%}%>
</td>
</tr>
</table>
<table border="0" width="100%" class="collapse">
<tr>
<td colspan="6" class="tdA"> 实施过程列表</td>
</tr>
<tr>
<td width="5%" height="15" align="center" class="tdB" nowrap>序号</td>
<td width="12%" height="15" align="center" class="tdB" nowrap>时间</td>
<td width="51%" height="15" align="center" class="tdB" nowrap>实施过程概述</td>
<td width="20%" height="15" align="left" class="tdB" nowrap>ISO9000记录</td>
<%if((u39 > 0)|(d39 > 0)){%>
<td height="15" colspan="2" align="center" nowrap class="tdB">操作</td>
<%}%>
<%//if(userID.equals("138")){%>
<%//}%>
</tr>
<%int i = 0;%>
<%if(null != set){
while(set.next()){%>
<tr <%
if((i+1)%2==0){
%> class="bgcolor"<%}%>>
<td width="5%" height="15" align="center" class="common" ><%=i+1%></td>
<td width="12%" height="15" align="center" class="common" ><%=set.getP_FinishDate()%></td>
<td width="51%" height="15" align="left" class="common" ><a href="/krm/servlet/DetailServlet?module=deproccess&&status=q&&id=<%=set.getP_ID()%>&&D_Serial=<%=D_Serial%>"><%=StringFormat.changeHTMLTags(set.getP_Brief())%></a></td>
<td width="20%" height="15" align="left" class="common" >
<%
DeInforAttachmentBusiness m_DeInforAttachmentBusiness = new
DeInforAttachmentBusiness();
DeInforAttachmentRecordSet m_DeInforAttachmentRecordSet = new
DeInforAttachmentRecordSet();
m_DeInforAttachmentBusiness.setQueryWhereID(set.getP_ID());
int j = m_DeInforAttachmentBusiness.execute("query");
if (j > 0) {
DeInforAttachmentRecordSet DeAimAttachSet = m_DeInforAttachmentBusiness.
getDIRecordSet();
DeAimAttachSet.beforefirst();
while(DeAimAttachSet.next()){
String str =DeAimAttachSet.getDI_AttachmentPath();
String separator = java.io.File.separator;
String uploadpath = str.substring(0,str.indexOf("/"));
String FileName = str.substring(str.lastIndexOf("/")+1);
String FileExt = str.substring(str.lastIndexOf(".")+1);
String rapath = request.getRealPath(separator + "jsp" + separator + "tskmanage" + separator + "detail" + separator + "upload");
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/tskmanage/detail/upload/<%=DeAimAttachSet.getDI_AttachmentPath()%>');"><%= StringFormat.Source2GB(DeAimAttachSet.getDI_AttachmentName()) %></a>]<br>
<%}else{
%>
[<a href="/krm/jsp/util/info.jsp?msg=对不起,文件可能不存在!"><%= StringFormat.Source2GB(DeAimAttachSet.getDI_AttachmentName()) %></a>]<br>
<% }
%>
<%}else{%>
[
<% out.println("<a href=\"/krm/jsp/util/detailattechAccesory.jsp?realpath="+uploadpath+separator+"&filename=" + FileName +"\"\" + target=_blank\">"+StringFormat.Source2GB(DeAimAttachSet.getDI_AttachmentName())+"</a>" );%>
]<br>
<%
}
}
}else{
out.print("无");
}%>
</td>
<%if(u39 > 0){%>
<td width="6%" height="15" align="center" class="common" >
<a href="/krm/servlet/DetailServlet?module=deproccess&&status=u&&queryterm=obtain&&id=<%=set.getP_ID()%>&&D_Serial=<%=D_Serial%>">修改</a>
</td>
<%//if(userID.equals("138")){%>
<%}if(d39 > 0){%>
<td width="6%" height="15" align="center" class="common" >
<a href="/krm/servlet/DetailServlet?module=deproccess&&status=d&&id=<%=set.getP_ID()%>&&D_Serial=<%=D_Serial%>" onclick="return(confirm('确定要删除吗?'))">删除</a>
</td>
<%}%>
<%//}%>
</tr>
<%i++;
}}%>
</table>
<tr><td colspan="6" class="tdC"> </td>
</tr>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -