FieldMultiBrowser.jsp
9.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<%@page import="com.weaver.formmodel.util.StringHelper"%>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@page import="weaver.formmode.virtualform.VirtualFormHandler"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="selectRs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page" />
<jsp:useBean id="BrowserComInfo" class="weaver.workflow.field.BrowserComInfo" scope="page"/>
<jsp:useBean id="xssUtil" class="weaver.filter.XssUtil" scope="page" />
<%@ page import="weaver.general.StaticObj" %>
<%@ page import="weaver.interfaces.workflow.browser.Browser" %>
<%@page import="weaver.formmode.data.FieldInfo"%>
<jsp:useBean id="FormModeBrowserSqlwhere" class="weaver.formmode.browser.FormModeBrowserSqlwhere" scope="page"/>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
//============================================重要参数====================================
String titlename = "";
String formid = Util.null2String(request.getParameter("formid"));
String selectids = Util.null2String(request.getParameter("selectids"));
%>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script language=javascript src="/workplan/calendar/src/Plugins/jquery.form_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/jquery-ui-1.10.3/ui/minified/jquery.ui.widget.min_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/jquery-ui-1.10.3/ui/minified/jquery.ui.core.min_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/jquery-ui-1.10.3/ui/minified/jquery.ui.mouse.min_wev8.js"></script>
<script type="text/javascript" src="/formmode/js/jquery/jquery-ui-1.10.3/ui/minified/jquery.ui.sortable.min_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/ajaxmanager_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/rightspluingForBrowserNew_wev8.js?v=<%=System.currentTimeMillis() %>"></script>
<script type="text/javascript" src="/formmode/js/FieldMultiBrowser_wev8.js?v=<%=System.currentTimeMillis() %>"></script>
<script language=javascript src="/formmode/js/modebrow_wev8.js?v=<%=System.currentTimeMillis() %>"></script>
<link type="text/css" href="/js/dragBox/e8browser_wev8.css" rel=stylesheet>
<LINK href="/js/jquery/plugins/multiselect/jquery.multiselect_wev8.css" type=text/css rel=STYLESHEET>
<link href="/js/jquery/plugins/multiselect/style_wev8.css" type=text/css rel=STYLESHEET>
<link href="/formmode/js/jquery/jquery-ui-1.10.3/themes/base/jquery-ui_wev8.css" type=text/css rel=STYLESHEET>
<script type="text/javascript" src="/formmode/js/jquery/jquery-ui-1.10.3/ui/minified/jquery-ui.min_wev8.js"></script>
<script language="javascript" src="/js/jquery/plugins/multiselect/jquery.multiselect.min_wev8.js"></script>
<script language="javascript" src="/js/jquery-autocomplete/jquery.autocomplete_wev8.js"></script>
<style>
.ui-multiselect-menu{
z-index:9999999;
}
.ui-multiselect-displayvalue{
background-image:none;
}
.ui-widget-content label{
background-color:rgb(255, 255, 255);
font-weight:normal;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default{
background-image:none;
background-color: rgb(255,255,255);
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus{
background-image:none;
background-color: rgb(255,255,255);
font-weight:normal;
}
.ui-widget-header {
background-image:none;
font-weight:normal;
}
</style>
<script type="text/javascript">
var parentWin = null;
var dialog = null;
try{
parentWin = parent.parent.getParentWindow(parent);
dialog = parent.parent.getDialog(parent);
}catch(e){}
document.ready = function(){
var $ = jQuery;
var tr = $("#contentDiv tr.items:first");
tr.hide();
setContentHeight();
document.onclick = function (e){//浏览框里面 让链接点击无效
var e=e||event;
var target=e.srcElement||e.target;
var tagName = target.tagName;
if(tagName=="A" || tagName=="a"){
return false;
}
}
pageSizeChage();
}
jQuery(function(){
setTimeout(function(){
var contentDiv = jQuery("#contentDiv");
jQuery(".fieldName").css("padding-left","0px");
},500);
})
function pageSizeChage(){
var srcpagesize = jQuery("#srcpagesize");
if(srcpagesize.length==0){
setTimeout(function(){pageSizeChage()},500);
return;
}
srcpagesize.get(0).onchange = function(){
jQuery("#isCustomPageSize").val("1");
};
}
var isneedSetContentHieght = true;//用来判断收缩条件的时候,是否需要动态设置高度的标志
function setContentHeight(){//设置中间内容的高度
var $ = jQuery;
var sHeight = $(".zDialog_div_content").get(0).scrollHeight;
var zDialog_div_content = sHeight;
var searchHeight = $("#frmmain").height();
var height = zDialog_div_content-searchHeight - 75;
$("#src_box_middle").height(height);
$("#dest_box_middle").height(height);
}
</script>
<script>
var srchead=new Array();
srchead[0] = "fieldname";
</script>
</head>
<BODY sroll="no" >
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:btnsearch_onclick(),_self}" ;//搜索
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(826,user.getLanguage())+",javascript:btnok_onclick(),_top} " ;//确定
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(201,user.getLanguage())+",javascript:btncancel_onclick(),_top} " ;//取消
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(311,user.getLanguage())+",javascript:btnclear_onclick(),_top} " ;//清除
RCMenuHeight += RCMenuHeightStep ;
%>
<div class="zDialog_div_content">
<form id="frmmain" name="frmmain" method="post" action="" onsubmit="return false;">
<input name="src" type=hidden value="multi">
<input type="hidden" name="isCustomPageSize" id="isCustomPageSize" value="">
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan" style="text-align:right; width:500px!important">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>" id="btnsearch1" class="e8_btn_top" onclick="javascript:btnsearch_onclick();" ><!-- 搜索 -->
<span title="<%=SystemEnv.getHtmlLabelName(81804,user.getLanguage())%>" class="cornerMenu"></span><!-- 菜单 -->
</td>
</tr>
</table>
<div style="max-height:155px;overflow:hidden;" id="e8QuerySearchArea">
<wea:layout type="4col">
<wea:group context='<%=SystemEnv.getHtmlLabelName(20331,user.getLanguage())%>' attributes="{'groupSHBtnDisplay':'none'}"><!-- attributes属性,新版自定义多选框微调增加 -->
<wea:item>
表单类型
</wea:item>
<wea:item>
<select id="formtype" name="formtype" >
<option value="0"> </option>
<option value="maintable">主表</option>
<%
String options = "";
rs.executeSql(" select * from workflow_billdetailtable where billid = "+formid);
while(rs.next()) {
String tablename = Util.null2String(rs.getString("tablename"));
String orderid = Util.null2String(rs.getString("orderid"));
options+="<option value=\""+tablename+"\">明细表"+orderid+"</option>";
}
%>
<%= options%>
</select>
</wea:item>
</wea:group>
</wea:layout>
</div>
</form>
<style>
#contentDiv .fieldName{
padding-left: 0px !important;
}
#contentDiv .Spacing{
display:none;
}
</style>
<div id="contentDiv">
<wea:layout>
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item attributes="{'colspan':'full'}"> </wea:item>
</wea:group>
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item attributes="{'isTableList':'true','colspan':'full'}">
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="" attributes="{\"groupDisplay\":\"none\"}">
<wea:item>
<div id="dialog">
<div id='colShow'></div>
</div>
</wea:item>
</wea:group>
</wea:layout>
</wea:item>
</wea:group>
</wea:layout>
</div>
<div style="display:none;">
<!-- 此搜索按钮不能去掉,隐藏掉 -->
<input type="button" class=zd_btn_submit accessKey=S id=btnsearch value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>"><!-- 搜索 -->
</div>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout type="2col" needImportDefaultJsAndCss="false">
<wea:group context="">
<wea:item type="toolbar">
<input type="button" class=zd_btn_submit accessKey=O id=btnok value="<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>"><!-- 确定 -->
<input type="button" class=zd_btn_submit accessKey=2 id=btnclear value="<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%>"><!-- 清除 -->
<input type="button" class=zd_btn_submit accessKey=T id=btncancel value="<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>"><!-- 取消 -->
</wea:item>
</wea:group>
</wea:layout>
</div>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<script>
jQuery(document).ready(function(){
resizeDialog(document);
showMultiDocDialog("<%=selectids%>",srchead,"0","","fieldid",'<%=formid%>');
});
function btnsearch_onclick(){
// multselectSetValue();
jQuery("#btnsearch").click();
}
function btnok_onclick(){
jQuery("#btnok").click();
}
function btnclear_onclick(){
jQuery("#btnclear").click();
}
function btncancel_onclick(){
jQuery("#btncancel").click();
}
</script>
</body>
</html>