📄 object_group_list.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/tops.tld" prefix="tops"%>
<html:html>
<head>
<html:base/>
<LINK REL="stylesheet" TYPE="text/css" href="<%=request.getContextPath()%>/_normal/css/style.css">
<script language="javascript" src="<%=request.getContextPath()%>/_normal/script/common.js" type="text/javascript"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/AjaxTopsJ2eeObj.js'></script>
<script language="JavaScript" type="text/javascript">
function addNew() {
window.location = '<%=request.getContextPath()%>/actTopsJ2eeObjGroup.do?method=add';
}
function del() {
var isSelected = false;
if (actfrmTopsJ2eeObjGroup.id.checked) {
isSelected = true;
}
else {
for (var i = 0; i < actfrmTopsJ2eeObjGroup.id.length; i++) {
if (actfrmTopsJ2eeObjGroup.id[i].checked == true) {
isSelected = true;
break;
}
}
}
if (isSelected) {
if (!confirm("确定删除所选记录?")) {
return false;
}
actfrmTopsJ2eeObjGroup.action ='<%=request.getContextPath()%>/actTopsJ2eeObjGroup.do?method=delete';
actfrmTopsJ2eeObjGroup.submit();
}
else {
alert("请至少选择一条!");
return false;
}
}
function createTbl(tblId){
if (confirm("确定生成该表结构吗?")) {
ceter_loadingDIV();
AjaxTopsJ2eeObj.createTblByProc(tblId,FinishCreateTbl);
}
else {
return false;
}
}
function FinishCreateTbl(){
cancel_loadingDIV();
}
</script>
</head>
<title>持久化对象管理</title>
<body>
<form action="" method="post" name="actfrmTopsJ2eeObjGroup">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="70%" nowrap class="location">您的位置:持久化对象管理</td>
<td nowrap class="location"> </td>
</tr>
</table>
<span style="cursor:hand;" onclick="cancel_loadingDIV()"> <div id="loading_div" style="z-Index:1000;overflow:auto;height:105;background:#eeeeee;border:solid 1px #666666;;position:absolute;width:380;filter:progid:dximagetransform.microsoft.dropshadow(color=#cccccc);padding:10px;display:none"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td height="80" align="center" width="99%"> <center> 数据处理中,请稍等... <marquee direction="right" scrollamount="9" scrolldelay="80"> <span style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#FFFFFF', EndColorStr='#7491DC')"></span> <span style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#7491DC',EndColorStr='#FFFFFF')"></span> </marquee> </center> </td> </tr> </table> </div> </span>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="7%" id="addNew" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="addNew()">
<img src="<%=request.getContextPath()%>/_normal/toolbar_pic/page_add.gif" alt="新增">
新持久化对象类别
</td>
<td width="1%" align="center" valign="middle" nowrap class="toolbar">|</td>
<td width="7%" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onclick="del()">
<img src="<%=request.getContextPath()%>/_normal/toolbar_pic/page_delete.gif" alt="删除">
删除
</td>
<td width="82%" align="center" valign="middle" nowrap class="toolbar"> </td>
</tr>
</table>
<table cellpadding="0" cellspacing="1" border="0" width="100%" id="PowerTable">
<tr align="center">
<td height="20" width="5%" nowrap class="title">
<input type="checkbox" style="cursor:hand;border:0" onclick="selectAll(this)" title="全选"/>
</td>
<td width="5%" nowrap class="title">序号</td>
<td width="25%" nowrap class="title">持久化对象类别</td>
<td width="15%" nowrap class="title">创建时间</td>
<td width="15%" nowrap class="title">创建人</td>
<td width="10%" nowrap class="title">重命名</td>
<td width="20%" nowrap class="title">操作</td>
<td width="10%" nowrap class="title">明细</td>
</tr>
<logic:notEmpty name="objlist">
<logic:iterate id="obj" name="objlist" indexId="index">
<tr align="center">
<td height="20">
<input type="checkbox" name="id" value="<bean:write name="obj" property="id"/>" style="border:0">
</td>
<td><%=(index.intValue() + 1)%> </td>
<td align="left">
<bean:write name="obj" property="ojbGroupName"/>
</td>
<td>
<bean:write name="obj" property="sd_ZzCreateDate"/>
</td>
<td>
<bean:write name="obj" property="zzCreateUser"/>
</td>
<td>
<tops:link action="actTopsJ2eeObjGroup" caption="重命名" method="modify" argname1="id" argbeanproperty1="page-obj-id"/>
</td>
<td>
<html:link action="/actTopsJ2eeObj.do?method=add" paramId="id" paramName="obj" paramProperty="id">新持久化对象</html:link>
</td>
<td>
<img src="<%=request.getContextPath()%>/_normal/toolbar_pic/unwrap.gif" alt="展开详细列表" onClick="showDetail(this,'<%=request.getContextPath()%>')" style="cursor:hand">
</td>
</tr>
<tr align="center" style="display:none">
<td colspan="8">
<table cellpadding="0" cellspacing="1" border="0" width="95%">
<tr align="center">
<td height="20" width="2%" nowrap class="subTitle">序号</td>
<td width="25%" nowrap class="subTitle">名称</td>
<td width="25%" nowrap class="subTitle">数据库表名</td>
<td width="25%" nowrap class="subTitle">类名</td>
<td width="4%" nowrap class="subTitle">多状态</td>
<td width="4%" nowrap class="subTitle">删除</td>
<td width="8%" nowrap class="subTitle">生成表</td>
</tr>
<logic:iterate id="subobj" name="obj" property="objList" indexId="subindex">
<tr align="center">
<td height="20"><%=(subindex.intValue() + 1)%> </td>
<td align="left">
<tops:link action="actTopsJ2eeObj" captionbeanproperty="page-subobj-objName" method="modify" argname1="id" argbeanproperty1="page-subobj-id" caption="dd"/>
</td>
<td align="left">
<bean:write name="subobj" property="objCode"/>
</td>
<td align="left">
<bean:write name="subobj" property="javaClassName"/>
</td>
<td>
<bean:write name="subobj" property="hasMutilState"/>
</td>
<td>
<tops:link action="actTopsJ2eeObj" caption="删除" method="delete" argname1="id" argbeanproperty1="page-subobj-id"/>
</td>
<td>
<a onclick="createTbl('<bean:write name="subobj" property="id"/>')" style="cursor:hand" title="创建表结构">生成表</a>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="objlist">
<tr>
<td colspan="7" height="20" align="center">没有数据</td>
</tr>
</logic:empty>
</table>
</form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -