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

📄 requirementtracemain.jsp

📁 本人课程设计时做的一个用struts框架实现的基于cmmi2的项目管理系统的原型。还有部分功能尚未实现
💻 JSP
字号:
<jsp:include page="/include/global.jsp"/>

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-template" prefix="template" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.cmmi2pms.common.Constants,com.cmmi2pms.sa.project.Project" %>
<%! Project currentProject=null;%>
<% if (session.getAttribute(Constants.PROJECT_KEY)!=null)
currentProject = (Project)session.getAttribute(Constants.PROJECT_KEY);
else {
%>
<script language="JavaScript">
parent.location.href="<%=request.getContextPath()+"/pages/logon/selectProject/selectProject/index.jsp"%>"
</script>
<%}%>
<html:html>
<head>
<style>
A:link {text-decoration: underline; color:red}
A:visited { color:red; text-decoration:underline }
A:active { text-decoration: underline; color:red }
A:hover {text-decoration:underline;color:red;background-color:#cccccc;}
</style>
<link rel="stylesheet" type="text/css" href="../../common/olstyle.css">
<script type="text/javascript" src="../../common/CTable.js"></script>
<script type="text/javascript" src="../../common/CommonFunc.js"></script>
<script type="text/javascript" src="../../common/dialog.js"></script>
<script language="JavaScript">
    window.onload = ShowTable;
    var mTable = null ;
    var mTableData = new CTableItem(null,null,null,null,null,null,'T');//按照缺省的属性建立一个Table

    var ShowingModal=false;      //used for show modal window
    var myObject = new Object(); //used for arg
    var i;
    cntCTDefaultRowCellDefine = " ";
    mTableData.head.addCells(new Array("需求标题","状态","获取日期","获取定义文档","分析日期","分析文档","概要设计日期","概要设计文档","详细设计日期","详细设计文档","实现日期","实现文档","测试日期","测试文档"));  //添加表头
   
    //设置排序的列
    mTableData.SetHeadCell( 0 ,"cansort", true);
    mTableData.SetHeadCell( 1 ,"cansort", true);
    mTableData.SetHeadCell( 2 ,"cansort", true);
    mTableData.SetHeadCell( 3 ,"cansort", true);
    mTableData.SetHeadCell( 4 ,"cansort", true);        

    //设置各列的属性
    mTableData.SetHeadCell( 0 ,"define" , ' width=150 height="22" noWrap class="bluelinkText" title="按标题排序" ');
    mTableData.SetHeadCell( 1 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按提出人排序" ');
    mTableData.SetHeadCell( 2 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按来源排序"');
    mTableData.SetHeadCell( 3 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按获取日期排序"');
    mTableData.SetHeadCell( 4 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按状态排序"');
    mTableData.SetHeadCell( 5 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按需求描述排序"');
    mTableData.SetHeadCell( 6 ,"define" , ' width=150 height="22" noWrap class="bluelinkText" title="按标题排序" ');
    mTableData.SetHeadCell( 7 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按提出人排序" ');
    mTableData.SetHeadCell( 8 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按来源排序"');
    mTableData.SetHeadCell( 9 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按获取日期排序"');
    mTableData.SetHeadCell( 10 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按状态排序"');
    mTableData.SetHeadCell( 11 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按需求描述排序"');
    mTableData.SetHeadCell( 12 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按状态排序"');
    mTableData.SetHeadCell( 13 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="按需求描述排序"');
function ShowTable() { //显示表
   if(mTable == null){
	mTable =new CommonTableClass(divMain,mTableData);
	mTable.ReDraw();
   }
}
function divMainOnClick(aTable)
{
	if (aTable) aTable.OnClick();
}
function divMainOnClickCell(axx)
{
	divMainOnClickRow(axx);

}
function divMainOnClickRow(axx)
{
	//parent.bottomFrame.ShowTable( mTable.CurSelectRow);
}
function showDetail(objId) {
	ret = link2("requirementInvestigationShow.do?id="+objId,620,500);    
}
</script>
<logic:iterate id="requirement" name="requirementList" type="com.cmmi2pms.rm.RequirementForm">
<script>
     lindex = mTableData.AddRow(new Array(
              "<bean:write name="requirement" property="requirementName"/>",
              "<bean:write name="requirement" property="status"/>",
              "<bean:write name="requirement" property="getTime" />",
			  "<bean:write name="requirement" property="defineDoc" />",
			  "<bean:write name="requirement" property="analyseTime" />",
			  "<bean:write name="requirement" property="analyseDoc" />",
			  "<bean:write name="requirement" property="generalDesignTime" />",
			  "<bean:write name="requirement" property="generalDesignDoc" />",
			  "<bean:write name="requirement" property="detailDesignTime" />",
			  "<bean:write name="requirement" property="detailDesignDoc" />",
			  "<bean:write name="requirement" property="implementTime" />",
			  "<bean:write name="requirement" property="implementDoc" />",
			  "<bean:write name="requirement" property="testTime" />",
			  "<bean:write name="requirement" property="testDoc" />"
			  )
                                        ,null
                                        ,null
                                        ," "
                                        ,null
                                        ,"<bean:write name='requirement' property='requirementID'/>"
                                        ,null
                );
</script>
</logic:iterate>
</head>
<body >
<TABLE cellpadding='0' cellspacing='0' bgcolor="#93bee2" class="cbToolbar" id="idToolbar">
  <TR valign="top">
    <TD height="15" NOWRAP><div align="center"><font color="#339966">需求信息汇总</font></div></TD>
  </tr>
</table>
  <div id="divMain" style="behavior:url(../../common/CTable.htc)"
   onclick      = "divMainOnClick(mTable);"
   onclickCell	= "divMainOnClickCell(divMain);"
   onclickRow   = "divMainOnClickRow(divMain);"
   onSort       = ""
   onclickCol   = ""
> </DIV>
</body>
</html:html>



⌨️ 快捷键说明

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