⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 project_prepare.jsp

📁 java jsp教程
💻 JSP
字号:
<!-- jsp/project/project_prepare.jsp -->
<%@ page  contentType="text/html;charset=GBK" %>
<%@ page import=" java.util.* "%>
<%@ page import="com.icss.j2ee.util.PageScrollUtil"%>
<%@ page import="com.icss.cnpc.project.vo.DocListVO"%>
<%@ page import="com.icss.cnpc.util.DataFormat"%>
<%@ page import="com.icss.j2ee.util.StringUtil"%>
<%@ page import="java.util.StringTokenizer" %>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%
	request.setCharacterEncoding("GBK");
	Map map = (Map)request.getAttribute("infoMap");
	int num = 1;
	String prjno = request.getParameter("prjno");
	prjno = StringUtil.escapeNull(prjno);
	String phaseno = request.getParameter("phaseno");
	phaseno = StringUtil.escapeNull(phaseno);
	String projNo = prjno;
	String phaseName = request.getParameter("phasename");
%>
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">

<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {	font-size: 12px;
	font-weight: bold;
}
-->
</style>
<BODY text=#000000 leftMargin=0 background=<%=request.getContextPath()%>/images/grid.gif topMargin=10>
<form name="form1" method="post" enctype="multipart/form-data">
  <TABLE cellSpacing=0 borderColorDark=#dfdfff cellPadding=0
			width="100%" height="98%" align=center bordercolorlight="#003366"
			border=0>
<%
	if(map != null && map.size() > 0)
	{
%>
	<TBODY>
      <TR align="center" valign="middle">
        <TD height="143"><p> </p>
          <TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
            <TBODY>
              <TR>
                <TD align=middle><TABLE cellSpacing=1 borderColorDark=#dfdfff cellPadding=2 
            width="100%" align=center bgColor=#b3c4db borderColorLight=#003366 
            border=0>
                    <TBODY>
                      <TR bgcolor="#a6d0f2">
                        <TD align=middle colSpan=9 height=30><div align="center" class="style1">
						<%=phaseName%>列表</div></TD>
                      </TR>
                      <TR onmouseover="this.bgColor='#EBEBEB';" onmouseout="this.bgColor='#EEF4FF';" bgColor=#eef4ff>
                        <TD width="5%" align=middle><div align="center"><strong>序号</strong></div></TD>
                        <TD width="10%" align=middle><div align="center"><strong>文档类型</strong></div></TD>
                        <TD width="17%" height="25" align=middle><div align="center" class="style2">文号</div></TD>
                        <TD width="10%" height="25" align=middle><div align="center"><strong>抄送</strong></div></TD>
                        <TD width="10%" align=center><div align="center" class="style2"><strong>抄报</strong></div></TD>
                        <TD width="9%" align=center><span class="style2">复核人</span></TD>
                        <TD width="10%" align=center><div align="center" class="style2">成文时间</div></TD>
                        <TD width="10%" align=center><strong>送达时间</strong></TD>
                        <TD width="19%" align=center>文档</TD>
                      </TR>
                      
<%
		for(Iterator i = map.keySet().iterator();i.hasNext();)
		{
			String key = (i.next()).toString();
			String[] array = DataFormat.toArray(key,"%");
			DocListVO vo = (DocListVO)map.get(key);
			String resourceno = vo.getPhaseresourceno().toString();
%>
                      <TR onmouseover="this.bgColor='#EBEBEB';" onmouseout="this.bgColor='#EEF4FF';" bgColor=#eef4ff>
                        <TD align=middle><div align="center"><%=num%></div></TD>
                        <TD align=middle>
							<div align="center">
<%
		if(array.length > 1 && array[1]!=null && !"".equals(array[1]))
		{
%>
		<span	onClick="_viewDoc('<%=vo.getDocno()%>','<%=vo.getProjectno()%>')" 	style="cursor:hand;color:blue">
<%=array[1]%>
								</span>
<%
		}
%>	
								</div>
								</TD>
                        <TD  height="25" align=middle>
<%	
		if(vo.getDocnumber()!=null&&!"".equals(vo.getDocnumber()))
		{
%>
                        <div align="center"><%=vo.getDocnumber()%></div>
<%
		}
%>
                        </TD>
                        <TD width="10%" align=middle>
<%
		if(vo.getCopyfor()!=null&&!"".equals(vo.getCopyfor()))
		{
%>
                        <div align="center"><%=vo.getCopyfor()%></div>
<%
		}
%>
                        </TD>
                        <TD  align=center><div align="center">
<%
		if(vo.getReport()!=null&&!"".equals(vo.getReport()))
		{
%>
                        <div align="center">
                        <%=vo.getReport()%>
                        </div>
<%
		}
%>
                        </TD>
                        <TD  align=center>
<%
		if(vo.getApprover()!=null&&!"".equals(vo.getApprover()))
		out.print(vo.getApprover());
%>
						</TD>
                        <TD  align=center>
<%
		if(vo.getCreatetime()!=null && !"".equals(vo.getCreatetime()))
		{
%>
                        <div align="center"><%=vo.getCreatetime()%></div>
<%
		}
%>
                         </TD>
                        <TD  align=center>
<%
		if(vo.getReceivetime()!=null&&!"".equals(vo.getReceivetime()))
		{
%>
                        <%=vo.getReceivetime()%>
                        </TD>
<%
		}
%>
                        <TD  align=center>
<%
		if( array[0] != null && !"none".equals(array[0].trim()) )
		{
				StringTokenizer st = new StringTokenizer(array[0],"$");
				String attachNo = st.nextToken();
				String attachName = st.nextToken();			
%>
   	<a href="#" onClick="download('<%=attachNo%>')"><%=attachName%></a>
<%
		}else{
%>
文档未上传
<%
	}
%>
                        </TD>
                      </TR>
                      <%num++;}%>
                    </TBODY>
                </TABLE></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
      <TR align="center" valign="top">
        <TD>
	  		<p> </p>
	    </td>
	</tr>
<%
	}
	else
	{
%>
<tr><td align="center"><h1>项 目 管 理 </h1></td></tr>
<%
	}
%>
  </TABLE>
</form>

<script>
function uploaddoc()
{
	wx=300;
	wy=150;
	urlstr="project_report_uploaddoc.html";
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"上传报告文档","width="+wx+",height="+wy+",scrollbars=no,status=no"+wposition);
}
function popUpCalendarDlg(ctrlobj) {
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;
	retval = window.showModalDialog("<%=request.getContextPath()%>/include/date.htm", "", "dialogWidth:220px; dialogHeight:220px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scroll:no;Resizable:no; "  );
	if( retval != null ){
		ctrlobj.value = retval;
	}
}
function _viewDoc(docno,projNo)
{
	wx=300;
	wy=320;
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y
	var url = "<%=request.getContextPath()%>/servlet/ShowDocInfoServlet?docNo=" + docno + "&prjno=" + projNo + "&isView=true";
	window.open(url+"&isEdit=false","_blan","width=560,height=400,menu=no"+wposition);
}
function download(attachno)
{
	if(attachno == "")
	{
		alert("无法获取要下载的文件信息");
		return;
	}
	var url = "/cnpc/servlet/DownloadAttachServlet?attachNo="+attachno;
	window.location = url;
}
</script>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -