📄 planlist.jsp
字号:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="cn.com.aheadsoft.recordset.ApplyDEPlanRecordSet,cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.DeInforAttachmentRecordSet,cn.com.aheadsoft.business.DeInforAttachmentBusiness" %>
<%@ page import="cn.com.aheadsoft.business.PersonInfoBusiness, cn.com.aheadsoft.recordset.PersonInfoRecordSet"%>
<%
int Approv=0;
String Approved=(String)session.getAttribute("Approved");
if(null !=Approved){
Approv=Integer.parseInt(Approved);
}
ApplyDEPlanRecordSet set = (ApplyDEPlanRecordSet) request.getAttribute("result");
String D_Serial = (String)request.getAttribute("D_Serial");
%>
<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=no,left=0,top=0,width=600,height=400');
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="101%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr height="8">
<td></td>
</tr>
<tr>
<td align="center" valign="top" >
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="right" width="40%"><%if(Approv<1){%>
<input type="button" value="添 加" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="javascript:document.location.href='/krm/servlet/ApplyDEAimServlet?module=ApplyDEPlan&&status=i&&queryterm=obtain&&D_Serial=<%=D_Serial%>'">
<%}%>
</td>
</tr>
</table>
<table border="0" width="100%" class="collapse" align="center">
<tr>
<td colspan="9" 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>计划开始时间</th>
<td width="12%" height="15" align="center" class="tdB" nowrap>计划完成时间</th>
<td width="28%" height="15" align="center" class="tdB" nowrap>实施计划概述</td>
<td width="8%" height="15" align="left" class="tdB" nowrap>负责人</td>
<td width="5%" height="15" align="center" class="tdB" nowrap>分值</td>
<td width="20%" height="15" align="left" class="tdB" nowrap>ISO9000记录</td>
<td height="15" colspan="2" align="center" nowrap class="tdB">操作</td>
</tr>
<%int i = 0;%>
<%if(null != set&&set.size()>0){
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_ApplyStartDate()%></td>
<td width="12%" height="15" align="center" class="common" ><%=set.getP_ApplyDate()%></td>
<td width="40%" height="15" align="left" class="common" ><a href="/krm/servlet/ApplyDEAimServlet?module=ApplyDEPlan&&status=q&&id=<%=set.getP_ApplyID()%>&&D_Serial=<%=D_Serial%>"><%=StringFormat.toOldFormat(set.getP_ApplyBrief())%></a></th>
<td width="8%" height="15" align="left" class="common" ><%=set.getI_Name()%></td>
<td width="5%" height="15" align="center" class="common" ><%=set.getP_ApplyGrade()%></td>
<td width="5%" height="15" align="left" class="common" ><%=StringFormat.changeHTMLTags(set.getP_ApplyMemo())%></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_ApplyID());
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>-->
<td width="6%" height="15" align="center" nowrap class="common" >
<%if(Approv<1){%>
<a href="/krm/servlet/ApplyDEAimServlet?module=ApplyDEPlan&&status=u&&queryterm=obtain&&id=<%=set.getP_ApplyID()%>&&D_Serial=<%=D_Serial%>">修改</a>
<%}else{%>修改<%}%>
</td>
<td width="6%" height="15" align="center" class="common" nowrap>
<%if(Approv<1){%>
<a href="/krm/servlet/ApplyDEAimServlet?module=ApplyDEPlan&&status=d&&id=<%=set.getP_ApplyID()%>&&D_Serial=<%=D_Serial%>" onclick="return(confirm('确定要删除吗?'))">删除</a>
<%}else{%>删除<%}%>
</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 + -