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

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@include file="/common/taglibs.jsp"%>
<%@ page import="cn.myapps.core.report.reportconfig.ejb.ReportConfig"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head><title>{*[{*[ReportConfig]*}]*}</title>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css"></head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="<ww:url id="url" value='/resourse/main.css'/>"/>
<script src="<ww:url value='/script/util.js'/>"></script>
<script src="<ww:url value='/script/list.js'/>"></script>
<script src='<ww:url value="/dwr/engine.js"/>'></script>
<script src='<ww:url value="/dwr/util.js"/>'></script>
<script src='<ww:url value="/dwr/interface/ModuleHelper.js"/>'></script>
<script src='<ww:url value="/script/htmlutil.js"/>'></script>
<script>
function ev_init(fn1,fn2,fn3) {
var mode = '<ww:property value="#parameters.mode" />';
if (mode == 'module'){
	document.all('modid').style.display='none';
}

var def1 = document.all(fn1).value;
var def2 = document.all(fn2).value;
var def3 = document.all(fn3).value;
var excludeNodeId = '<ww:property value="content.id"/>';
if (document.all(fn1).value==''){def1 = '<ww:property value="_applicationid"/>'}
if (document.all(fn2).value==''){def2 = '<ww:property value="_moduleid"/>'}
if (document.all(fn3).value==''){def3 = '<ww:property value="_query"/>'}
if(document.all(fn1).value=='')
  def2='none';
var func = new Function("ev_init('"+fn1+"','"+fn2+"','"+fn3+"')");


document.all(fn2).onchange = func;
ModuleHelper.createSuperiorOptionFunc(fn2,def1,excludeNodeId,def2,'<ww:property value="#session.APPLICATION"/>',function(str) {var func=eval(str);func.call()});
if(def2!=''&&def2!=null&& def2!='none')
ModuleHelper.createQueryOption(fn3,def1,def2,def3,'<ww:property value="#session.APPLICATION"/>',function(str) {var func=eval(str);func.call()});
}
</script>
<script>
function ev_switchpage(sId){
 document.all('basic').style.display = 'none';
 document.all('columnpage').style.display ='none';
 document.all(sId).style.display = '';

}
function returncheck()
{

     var mode = document.all('mode').value;
     if(mode=='application'){document.all('s_module').value='';}
     document.forms[0].action="<ww:url action='list.action'/>";
     document.forms[0].submit();
 
   
}

function disPage(reportType)
{

  if(reportType=='ListTable')
  {  
    document.all('disgroup').style.display = '';
    document.all('disDeSu').style.display = '';
    document.all('CrossTable').style.display = 'none';   
  }else if(reportType=='CrossTable')
  {
    document.all('disgroup').style.display = 'none';
    document.all('disDeSu').style.display = 'none';
    document.all('CrossTable').style.display = '';          
  }
}
</script>

<body SCROLL = 'auto' leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0  onload="disPage('<ww:property value="_reportType"/>')">
<ww:form name="columnform" action="save" method="post">
<%@include file="/common/page.jsp"%>
<ww:hidden name='s_module' value="%{#parameters._moduleid}" />
<ww:hidden name='mode' value="%{#parameters.mode}" />
<input type="hidden" name="_creatReportType" value='<ww:property value="#parameters['_creatReportType']"/>' />
<ww:if test = "_reportType==null">
<ww:hidden name="_reportType"   value="%{#parameters._reportType}" />
</ww:if>
<ww:else>
<ww:hidden name="_reportType"/>
</ww:else>

<ww:bean name="cn.myapps.core.report.query.action.QueryHelper" id="queryHelper">
<ww:param name="moduleid" value="%{#parameters._moduleid}" />
</ww:bean>
<ww:bean name="cn.myapps.core.report.tablecolumn.action.TableColumnHelper" id="th" >
<ww:param name="_queryid" value="content.query.id" />
</ww:bean>
<ww:hidden name = "#parameters['reportType']"/>
<table width="98%" >
		<tr>
			<td width="10" class="image-label"><img
				src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
			<td width="3"></td>
			<td width="90" class="text-label">{*[ReportConfig]*}</td>
			<td>
			<table width="100%" border=1 cellpadding="0" cellspacing="0" class="line-position" ><tr><td ></td>
			<td class="line-position2" width="60" valign="top">
				<button class="button-image" onClick="forms[0].action='<ww:url action="reportCondition"></ww:url>';forms[0].submit();"><img src="<ww:url value="/resource/image/new2.jpg"/>">{*[Report]*}</button>
				</td>
				<td class="line-position2" width="60" valign="top">
				<button class="button-image" onClick="forms[0].action='<ww:url action="save"></ww:url>';forms[0].submit();"><img src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
				</td>
				<td class="line-position2" width="70" valign="top">
				<button class="button-image" onClick="returncheck();"><img src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
				</td>
			</tr></table>
			</td>
		</tr>
	</table>
		<ww:if test="hasFieldErrors()">
	<span class="errorMessage"> <b>Errors:</b><br>
	<ww:iterator value="fieldErrors">
		*<ww:property value="value[0]" />;
	</ww:iterator> </span>
</ww:if>
<table width='100%'  >
	<tr valign='top' height='20'>
		<td>
		<table>
			<tr>
				<td><input class="button-cmd" type="button"
					onclick="ev_switchpage('basic')" value="Basic" />
					<input class="button-cmd" type="button"
						onclick="ev_switchpage('columnpage')" value="Query" /></td>
						<td class="reportText">
						Title:&nbsp;
	<ww:textfield cssClass="input-cmd" name="content.name" theme="simple"/>
	
	</td>
	<td id='modid'  class="reportText">
		{*[Module]*}:
			<ww:select label="{*[Module]*}" name="_moduleid" list="{}" emptyOption ="ture" listKey="id" theme='simple'/>
		</td> 
 		<td class="reportText">Query: &nbsp;<ww:select name="_query" list="#queryHelper._queryStringList"  listKey="id" listValue="name" emptyOption="true" theme='simple'></ww:select></td> 
 		</tr>
 		<% String  _reportType=(String)request.getAttribute("_reportType");
 			if(_reportType==null||_reportType.trim().length()==0)
 				_reportType=(String)request.getParameter("reportType");
 			  if(_reportType.equals(ReportConfig.Report_Type_CrossTable)){
 		%>
 		<ww:if test="content.id!=null&&content.query.id!=null">
 		<tr>
 		<td colspan="1"></td>
 		<td class="reportText">CalculateType: &nbsp;<ww:select name="content.crossTable_CalculateType" list="#th.get_calculateType()"  theme='simple'></ww:select></td> 
		  <td class="reportText">CalculateColumn: &nbsp;<ww:select name="content.crossTable_CalculateField" list="#th.get_tableColumnByQuery()" listKey="name" listValue="name" emptyOption="true"  theme='simple'></ww:select></td> 
		</tr>
		</ww:if>
		<%}%>
		</table>  
		</td>
	</tr>
	</table>
<table id='basic' width="100%" >
<tr width='100%'><td width='100%'><table id="disgroup" width='100%'>
	<tr >
		<td ><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe height="45" name="cloumnFrame" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_Group1%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame" height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_Group2%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%" frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame" height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_Group3%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%" frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame" height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_Group4%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr></table>
	</td></tr>
	<tr><td>
	<table id="disDeSu" width='100%'>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame" height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_Detail%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame"  height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.Column_Type_summary%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	</table>
	</td>
	</tr>
	<tr><td>
	<table id="CrossTable" width='100%'>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame"  height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.CrossTable_Type_RowGroup%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	<tr>
		<td width="100%"><ww:if test="content.id!=null&&_query!=null">
		<div id="div_cloumn"><iframe name="cloumnFrame"  height="45" scrolling="no"
			src='<ww:url value="/core/report/tablecolumn/list.action" />?_reportConfigid=<ww:property value="content.id"/>&_type=<%=ReportConfig.CrossTable_Type_ColumnGroup%>&_queryid=<ww:property value="_query"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%"  frameborder="0" /></iframe></div>
         </ww:if></td>
	</tr>
	</table>
	</td></tr>
	</table>

<table id='Query' width="100%" >
	<tr id='columnpage' style='display:none'>
		<td width="100%">
		<div id="div_cloumn"><iframe name="cloumnFrame" scrolling="no"
			src='<ww:url value="/core/report/query/list.action" />?s_module=<ww:property value="#parameters._moduleid"/>&_moduleid=<ww:property value="#parameters._moduleid"/>&s_instanceId=<ww:property value="#session.APPLICATION"/>'
			width="100%" height="330" frameborder="0" /></iframe></div>
		</td>
</tr>
</table>	
</ww:form>
</body>
</html>

⌨️ 快捷键说明

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