📄 jrxmlcontent.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">
<%String contextPath = request.getContextPath();%>
<html>
<head><title>{*[ReportJrxml]*}</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="/dwr/engine.js"/>'></script>
<script src='<ww:url value="/dwr/util.js"/>'></script>
<script src='<ww:url value="/dwr/interface/ConfigUtil.js"/>'></script>
<script src='<ww:url value="/dwr/interface/DWRHtmlUtil.js"/>'></script>
<script src='<ww:url value="/dwr/interface/ApplicationUtil.js"/>'></script>
<script src='<ww:url value="/script/htmlutil.js"/>'></script>
<script src="<ww:url value='/script/util.js'/>"></script>
<script>
var contextPath = '<%=contextPath%>';
function ev_select(module,searchForm)
{
var mv = document.all(module).value;
var vv = document.all(searchForm).value;
if (document.all(searchForm).value=='') {
vv = '<ww:property value="_searchForm"/>'
}
if (document.all(module).value=='') {
mv = '<ww:property value="_module"/>';
}
else if (document.all(module).value=='none'){
vv = 'none';
}
var func = new Function("ev_select('"+module+"','"+searchForm+"')");
document.all(module).onchange = func;
document.all(searchForm).onchange = func;
ApplicationUtil.creatModule(module,'<ww:property value="#session.APPLICATION"/>',mv,function(str) {var func=eval(str);func.call()});
ApplicationUtil.creatSearchForm(searchForm,'<ww:property value="#session.APPLICATION"/>',mv,vv,function(str) {var func=eval(str);func.call()});
}
function attechmentupload(jrxmlpath){
var rtr = uploadFile(jrxmlpath,formItem.elements['_path'].value);
if(rtr!=null&&rtr!='')
{
formItem.elements['_path'].value = rtr.substring(0,rtr.indexOf("_"));
}
}
</script>
<script>
function selectMappingConfig()
{
var mcs = document.getElementsByName("_mappingconfigs");
var id;
<ww:iterator value="_mappingconfigs">
id ='<ww:property value="id" />';
if (mcs != null ) {
for (var i=0; i<mcs.length; i++) {
if(id==mcs[i].value){
mcs[i].checked = true;
}
}
}
</ww:iterator>
}
</script>
<body onload="selectMappingConfig()">
<ww:form id="formItem" theme="simple" action="save" method="post">
<input type="hidden" name="_currpage" value='<ww:property value="#parameters['_currpage']"/>' />
<input type="hidden" name="_pagelines" value='<ww:property value="#parameters['_pagelines']"/>' />
<input type="hidden" name="_rowcount" value='<ww:property value="#parameters['_rowcount']"/>' />
<ww:hidden name="application" value="%{#session.APPLICATION}"/>
<ww:hidden name="content.id"> </ww:hidden>
<input type="hidden" name="_creatReportType" value='<ww:property value="#parameters['_creatReportType']"/>' />
<ww:bean name="cn.myapps.core.dynaform.dts.datasource.action.DatasourceHelper" id="dh"/>
<ww:bean name="cn.myapps.core.dynaform.dts.exp.mappingconfig.action.MappingConfigHelper" id="mh"/>
<ww:bean name="cn.myapps.core.report.dataprepare.action.DataPrepareHepler" id="dph"/>
<ww:hidden name='s_module' value="%{#parameters._moduleid}" />
<ww:hidden name='_moduleid' value="%{#parameters._moduleid}" />
<ww:hidden name='_applicationid' value="%{#parameters._applicationid}" />
<ww:hidden name="mode" value="%{#parameters.mode}" />
<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">{*[ReportJrxml]*}</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].target='_blank';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].target='';forms[0].submit();"><img src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
<td class="line-position2" width="70" valign="top">
<button class="button-image"
onClick="forms[0].action='<ww:url action="list" />';forms[0].target='';forms[0].submit();"><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>
<tr><td>{*[Name]*}:</td><td><ww:textfield name="content.name"></ww:textfield></td></tr>
<tr><td>{*[Module]*}:</td><td><ww:select cssClass="input-cmd" name="_module" list="{}" /></td></tr>
<tr><td>{*[SearchForm]*}:</td><td><ww:select cssClass="input-cmd" name="_searchForm" list="{}" /></td></tr>
<tr><td>{*[DataSource]*}:</td><td><ww:select name="_dts" list="#dh.getAllDatasource(#session.APPLICATION)" emptyOption="true"/></td></tr>
<tr><td>{*[DataPrepare]*}:</td><td><ww:select name="_dataPrepare" list="#dph.getAllDataPrepareByApplication(#session.APPLICATION)" listKey="id" listValue="name" emptyOption="true"/></td></tr>
<tr><td>{*[Attachment]*}:</td>
<td><ww:textfield name="_path" cssClass="bugLong-input" readonly="true"/></td><td>
<button name='btnSelectDept' class="button-image" onClick="attechmentupload('JRXML_PATH')"><img src="<ww:url value="/resource/image/search.gif"/>"></button>
</td>
</tr>
<tr><td>{*[Jrxml]*}:</td><td><ww:textarea name="content.jrxml"></ww:textarea></td></tr>
<br>
<tr><td>{*[RelateTable]*}:</td><td><ww:checkboxlist name="_mappingconfigs" list="#mh.get_allMappingConifgs(#session.APPLICATION)" listKey="id" listValue="name" /></td></tr>
</table>
</ww:form>
<script>
ev_select('_module','_searchForm');
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -