customSearchInfo.jsp 7.49 KB
<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="weaver.formmode.service.CustomSearchService"%>
<%@page import="weaver.formmode.service.LogService"%>
<%@page import="weaver.formmode.virtualform.*"%>
<%@page import="weaver.formmode.Module"%>
<%@ include file="/formmode/pub.jsp"%>
<%@ page import="weaver.general.Util"%>
<%
	if (!HrmUserVarify.checkUserRight("FORMMODEAPP:ALL", user)) {
		response.sendRedirect("/notice/noright.jsp");
		return;
	}
%>
<%
int customSearchId = Util.getIntValue(request.getParameter("id"), 0);
int appid = Util.getIntValue(request.getParameter("appid"), 0);
int formId  = 0;
int modeId = 0;
String norightlist="";
String customname = "";
String customdesc = "";
CustomSearchService customSearchService=new CustomSearchService();
if(customSearchId!=0){
	Map<String,Object> map=customSearchService.getCustomSearchById(customSearchId);
	if(map.size()>0){
		customname = Util.toScreen(Util.null2String(map.get("customname")),user.getLanguage());
		customdesc = Util.toScreen(Util.null2String(map.get("customdesc")),user.getLanguage());
		formId = Util.getIntValue(Util.null2String(map.get("formid")));
		modeId = Util.getIntValue(Util.null2String(map.get("modeid")));
		norightlist=Util.toScreen(Util.null2String(map.get("norightlist")),user.getLanguage());
	}
}
%>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="/formmode/js/ext/resources/css/ext-all_wev8.css" />
	<script type="text/javascript" src="/formmode/js/ext/adapter/ext/ext-base_wev8.js"></script>
	<script type="text/javascript" src="/formmode/js/ext/ext-all_wev8.js"></script>
	<script type="text/javascript" src="/formmode/js/ext/ux/miframe_wev8.js"></script>
	<script type="text/javascript" src="/formmode/js/jquery/simpleTabs/simpleTabs_wev8.js"></script>
	
	<style type="text/css">
		* {font:12px Microsoft YaHei}
		html,body{
			height: 100%;
			margin: 0px;
			padding: 0px 0 0 2px;
		}
		.e8_right_top{
			padding: 13px 10px 0px 10px;
			position: relative;
		}
		.e8_right_top .e8_baseinfo{
			border-bottom: 1px solid #E9E9E9;
			padding-bottom: 16px;
		}
		.e8_right_top .e8_baseinfo_name{
			font-size: 18px;
			color: #333;
		}
		.e8_right_top .e8_baseinfo_modify{
			font-size: 12px;
			color: #AFAFAF;
		}
		.e8_right_top ul{
			list-style: none;
			position: absolute;
			right: 20px;
			bottom: 15px;
		}
		.e8_right_top ul li{
			float: left;
			padding: 0px 5px;
		}
		.e8_right_top ul li a{
			display: block;
			font-size: 15px;
			color: #A3A3A3;
			padding: 1px;
			text-decoration: none;
			cursor: pointer;
			border-bottom: 2px solid #fff;
		}
		.e8_right_top ul li.selected a{
			color: #0072C6;		
			border-bottom: 2px solid #0072C6;
		}
		.e8_right_center{
			overflow: hidden;
			padding: 0px 10px;
		}
		.e8_right_center .e8_right_frameContainer{
			display: none;
			height: 100%;
		}
	</style>
	<script type="text/javascript">
		
		$(document).ready(function () {
			$(window).resize(forPageResize);
			forPageResize();
			
			$(".e8_right_tabs").simpleTabs();
		});
		
		function forPageResize(){
			var $body = $(document.body);
			var $e8_right_top = $(".e8_right_top");
			var $e8_right_center = $(".e8_right_center");
			
			var centerHeight = $body.height() - $e8_right_top.outerHeight(true);
			
			$e8_right_center.height(centerHeight);
		}
		
	function copyCustomSearcSetting(){
		var id = <%=customSearchId%>;
		if(id>0){
			if(confirm("<%=SystemEnv.getHtmlLabelName(82060,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(82061,user.getLanguage())%><%=customname%><%=SystemEnv.getHtmlLabelName(82062,user.getLanguage())%>")){//提示:确认要复制【】吗?
				jQuery.ajax({
				   type: "POST",
				   dataType:"json",
				   url: "/weaver/weaver.formmode.servelt.CustomSearchAction",
				   data: "id="+id+"&action=customcopy",
				   success: function(data){
					if(data){
				     	parent.refreshCustomSearch(data.id);
					}
				   }
				});
			}
		}else{
			parent.Dialog.alert("<%=SystemEnv.getHtmlLabelName(82059,user.getLanguage())%>");//请先保存数据,再复制!
		}
	}
	</script>
</head>
  
<body>
	<div class="e8_right_top">
		<div style="width:40px;float:left;margin:2px 10px 0 0;"><img src="/formmode/images/searchIconRounded_wev8.png" /></div>
		<div class="e8_baseinfo">
			<div class="e8_baseinfo_name">
				<%=SystemEnv.getHtmlLabelName(82063,user.getLanguage())%> / <%=customname%><!-- 查询列表  -->
			</div>
			<div class="e8_baseinfo_modify">
				<%LogService logService = new LogService(); %>
				<%=SystemEnv.getHtmlLabelName(82013,user.getLanguage())%>:<%=logService.getLastOptTime(customSearchId, Module.SEARCH) %><!-- 最后编辑时间 -->
			</div>
		</div>
		<div class="e8_right_tabs">
			<ul>
				<li href="#tabs-content-1" defaultSelected="true"><a><%=SystemEnv.getHtmlLabelName(81990,user.getLanguage())%></a></li><!-- 基础 -->
				<%if(customSearchId>0){ %>
				<li href="#tabs-content-2"><a><%=SystemEnv.getHtmlLabelName(16503,user.getLanguage())%></a></li><!-- 字段定义 -->
				<li href="#tabs-content-3"><a><%=SystemEnv.getHtmlLabelName(385,user.getLanguage())%></a></li><!-- 权限 -->
				<li href="#tabs-content-6"><a><%=SystemEnv.getHtmlLabelName(82064,user.getLanguage())%></a></li><!-- 自定义按钮 -->
				<li href="#tabs-content-4"><a><%=SystemEnv.getHtmlLabelName(31914,user.getLanguage())%></a></li><!-- 批量操作 -->
				<li href="#tabs-content-7"><a><%=SystemEnv.getHtmlLabelName(124822,user.getLanguage())%></a></li><!--工具栏搜索 -->
				<li href="#tabs-content-5"><a><%=SystemEnv.getHtmlLabelName(83,user.getLanguage())%></a></li><!-- 日志 -->
				<%}%>
			</ul>
		</div>
	</div>
	
	<div class="e8_right_center">
		<div id="tabs-content-1" class="e8_right_frameContainer">
			<iframe id="baseIframe" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/setup/customSearchBase.jsp?appid=<%=appid %>&id=<%=customSearchId %>">
					
			</iframe>
		</div>
		<%if(customSearchId>0){ %>
		<div id="tabs-content-2" class="e8_right_frameContainer">
			<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="no" lazy-src="/formmode/setup/customSearchField.jsp?id=<%=customSearchId %>&norightlist=<%=norightlist%>">
					
			</iframe>
		</div>
		<div id="tabs-content-3" class="e8_right_frameContainer">
			<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchShare.jsp?id=<%=customSearchId %>&formId=<%=formId%>&modeId=<%=modeId%>&norightlist=<%=norightlist%>">
					
			</iframe>
		</div>
		<div id="tabs-content-4" class="e8_right_frameContainer">
			<iframe frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/batchoperate/ModeBatchSet.jsp?id=<%=customSearchId %>">
					
			</iframe>
		</div>
		<div id="tabs-content-5" class="e8_right_frameContainer">
			<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/setup/log.jsp?objid=<%=customSearchId%>&logmodule=<%=Module.SEARCH %>">
					
			</iframe>
		</div>
		<div id="tabs-content-6" class="e8_right_frameContainer">
			<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchButton.jsp?id=<%=customSearchId%>">	
			</iframe>
		</div>
		<div id="tabs-content-7" class="e8_right_frameContainer">
			<iframe id="logFrame" name="logFrame" frameborder="0" style="width: 100%;height: 100%;" scrolling="auto" lazy-src="/formmode/search/CustomSearchToolbar.jsp?id=<%=customSearchId%>&type=1">	
			</iframe>
		</div>
		<%}%>
	</div>
</body>
</html>