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

📄 alteritemview.jsp

📁 本人课程设计时做的一个用struts框架实现的基于cmmi2的项目管理系统的原型。还有部分功能尚未实现
💻 JSP
字号:
<jsp:include page="/include/global.jsp"/>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<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 = " nowrap ";
   // mTableData.head.addCells(new Array("变更标题","变更类型","当前状态","申请人","审批人","审批结论","变更结束日期","跟踪变更结论"));
    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( 5 ,"cansort", true);    
    mTableData.SetHeadCell( 6 ,"cansort", true);   
    mTableData.SetHeadCell( 7 ,"cansort", true);  
    mTableData.SetHeadCell( 8 ,"cansort", true);

    //设置各列的属性
    mTableData.SetHeadCell( 0 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按编号排序"');
    mTableData.SetHeadCell( 1 ,"define" , ' width=120 height="22" nowrap class="bluelinkText" title="按标题排序" ');   
    mTableData.SetHeadCell( 2 ,"define" , ' width=70 height="22" nowrap class="bluelinkText" title="按请求类型排序" ');    
    mTableData.SetHeadCell( 3 ,"define" , ' width=70 height="22" nowrap class="bluelinkText" title="按申请者排序"');
    mTableData.SetHeadCell( 4 ,"define" , ' width=80 height="22" nowrap class="bluelinkText" title="按状态排序"');
     mTableData.SetHeadCell( 5 ,"define" , ' width=70 height="22"  nowrap class="bluelinkText" title="按分析人排序"');    
    mTableData.SetHeadCell( 6 ,"define" , ' width=70 height="22" nowrap class="bluelinkText" title="按审批人排序"');    
    mTableData.SetHeadCell( 8 ,"define" , ' width=100 height="22" nowrap class="bluelinkText" title="关闭日期"');
   mTableData.SetHeadCell( 7 ,"define" , ' width=80 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);
	
}

</script>
<logic:iterate id="attribute" name="theAttrList" type="com.cmmi2pms.cm.configalter.ConfigAlterAttr">
<script>
     lindex = mTableData.AddRow(new Array(             
              "<a href='../ConfigAlter.do?toDo=viewDetail&theAlterId=<bean:write name='attribute' property='alterapplyid'/>' title='查看详细的变更控制报告'><bean:write name="attribute" property="alterapplyid"/></a>",
              "<a href='../ConfigAlter.do?toDo=viewDetail&theAlterId=<bean:write name='attribute' property='alterapplyid'/>' title='查看详细的变更控制报告'><bean:write name="attribute" property="alteritem"/></a>",
              "<bean:write name="attribute" property="requisttype"/>",
              "<bean:write name="attribute" property="proposer"/>",
              "<bean:write name="attribute" property="status"/>",
              <logic:notEmpty  name="attribute" property="analyser" >
			    "<bean:write name="attribute" property="analyser"/>",
			  </logic:notEmpty>
			  <logic:empty name="attribute" property="analyser">
			    "",
			  </logic:empty>
			  <logic:notEmpty  name="attribute" property="approver" >
			    "<bean:write name="attribute" property="approver"/>",
			  </logic:notEmpty>
			  <logic:empty name="attribute" property="approver">
			    "",
			  </logic:empty>
			  <logic:notEmpty  name="attribute" property="validator" >
			    "<bean:write name="attribute" property="validator"/>",
			  </logic:notEmpty>
			  <logic:empty name="attribute" property="validator">
			    "",
			  </logic:empty>
			  "<bean:write name="attribute" property="closedate"/>")
			                            ,null
                                        ,null
                                        ," "
                                        ,null
                                        ,<bean:write name='attribute' property='alterapplyid'/>
                                        ,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 + -