📄 showprocess.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-logic" prefix="template" %>
<html:html>
<HEAD>
<link rel=stylesheet type="text/css" href="../../common/olstyle.css">
<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>
<script type="text/javascript" src="../../common/CTable.js"></script>
<script type="text/javascript" src="../../common/CommonFunc.js"></script>
<script language=javascript id=clientEventHandlersJS>
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.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( 0 ,"define" , ' width=15% height="22" noWrap ');
mTableData.SetHeadCell( 1 ,"define" , ' width=15% height="22" nowrap ');
mTableData.SetHeadCell( 2 ,"define" , ' width=15% height="22" nowrap class="bluelinkText" title="按项目类型排序" ');
mTableData.SetHeadCell( 3 ,"define" , ' width=15% height="22" nowrap class="bluelinkText" title="按归属单位排序"');
mTableData.SetHeadCell( 4 ,"define" , ' width=15% height="22" nowrap class="bluelinkText" title="按项目经理排序"');
mTableData.SetHeadCell( 5 ,"define" , ' width=15% height="22" nowrap class="bluelinkText" title="按开始日期排序"');
//mTableData.SetHeadCell( 6 ,"define" , ' width=15% 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 CheckBoxClick(aid)
//{
//mTable.ClickRow(aid);
//}
</script>
<logic:iterate id="ProjectProcess" name="processS" type="com.cmmi2pms.ma.ProjectProcess">
<script language=javascript id=clientEventHandlersJS>
lindex = mTableData.AddRow(new Array(
"<bean:write name="ProjectProcess" property="projectId"/>",
"<bean:write name="ProjectProcess" property="taskName"/>",
"<bean:write name="ProjectProcess" property="startTimeP"/>",
"<bean:write name="ProjectProcess" property="stopTimeP"/>",
"<bean:write name="ProjectProcess" property="startTimeA"/>",
"<bean:write name="ProjectProcess" property="stopTimeA"/>"
)
,null
,null
," "
,null
,new Array("<bean:write name='ProjectProcess' property='taskId'/>")
,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"><img src="../../images/tb-select.gif" width="20" height="20" align=absmiddle><font color="#FF0000">选择任务</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>
<script language="JavaScript">
function topClose() {
returnValue="cancel";
top.close();
}
function btnAdd_onclick() {
var cRow = parent.mainFrame.mTable.CurSelectRow;
if(cRow == null)
{
alert("<bean:message key='global.prompt.select_delete'/>");
return;
}
else
{
//if(confirm("确定吗?"))
//if(cRow.id[0] == 'maWorkload')
//alert(cRow.id);
parent.mainFrame.location.replace("SelectAnalysis.do?id=" + cRow.id[0]);
}
}
</script>
<TABLE width="100%" id="idToolbar" cellpadding='0' cellspacing='0'>
<TR align="left" valign="top">
<TD width="*" NOWRAP> </TD>
<TD width="60" NOWRAP> <A class="tbButton" href="#" title="确定" onclick="return btnAdd_onclick()"><html:img src="../../images/dialog-ok.gif" align="absmiddle" border="0"/> <font color="#0000cc">确定</font></A></td>
<TD width="10" NOWRAP> </TD>
<TD width="60" NOWRAP><a class="tbButton" href="#" onclick="topClose()" title="取消"><html:img src="../../images/dialog-cancel.gif" align="absmiddle" border="0"/> <font color="#0000cc">取消</font></a></td>
</tr>
</table>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -