提交 | 用户 | age
|
906e37
|
1 |
<%@ page language="java" pageEncoding="UTF-8" %> |
a6a76f
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
F |
3 |
|
|
4 |
<% |
906e37
|
5 |
String formId_str = request.getParameter("formId"); |
X |
6 |
int formId = -1; |
|
7 |
try { |
|
8 |
formId = Integer.parseInt(formId_str); |
|
9 |
} catch (Exception e) { |
|
10 |
return; |
|
11 |
} |
a6a76f
|
12 |
%> |
F |
13 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
14 |
<head> |
906e37
|
15 |
<base target="_self"/> |
X |
16 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
17 |
<title>编辑数据源信息</title> |
|
18 |
<link rel="stylesheet" type="text/css" |
|
19 |
href="/style/icon.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/icon.css")%>"></link> |
|
20 |
<link rel="stylesheet" type="text/css" |
|
21 |
href="/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>"></link> |
|
22 |
<script type="text/javascript" |
|
23 |
src="/js/jquery-1.4.4.min1.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jquery-1.4.4.min1.js")%>"></script> |
|
24 |
<script type="text/javascript" |
|
25 |
src="/js/jquery.easyui.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jquery.easyui.min.js")%>"></script> |
|
26 |
<script type="text/javascript" |
|
27 |
src="/js/locale/easyui-lang-zh_CN.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/locale/easyui-lang-zh_CN.js")%>"></script> |
|
28 |
<script type="text/javascript" |
|
29 |
src="/personalized/js/editPaneDataGrid.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/personalized/js/editPaneDataGrid.js")%>"></script> |
|
30 |
<script type="text/javascript" |
|
31 |
src="/js/color/iColorPicker.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/color/iColorPicker.js")%>"></script> |
|
32 |
<style type="text/css"> |
|
33 |
#container { |
|
34 |
font-size: 10pt; |
|
35 |
} |
a6a76f
|
36 |
|
906e37
|
37 |
td { |
X |
38 |
height: 26px; |
|
39 |
} |
a6a76f
|
40 |
|
906e37
|
41 |
.in { |
X |
42 |
height: 18px; |
|
43 |
border: 1px solid #cccccc; |
|
44 |
width: 100px; |
|
45 |
line-height: 20px; |
|
46 |
vertical-align: middle; |
|
47 |
} |
|
48 |
|
|
49 |
select.in { |
|
50 |
width: 104px; |
|
51 |
height: 22px; |
|
52 |
border-radius: 6px; |
|
53 |
border: 1px solid #8cade8 !important; |
|
54 |
} |
|
55 |
|
|
56 |
.btn { |
|
57 |
height: 26px; |
|
58 |
width: 60px; |
|
59 |
} |
|
60 |
|
|
61 |
/*#groupList{margin-top:10px;height:300px;width:500px;}*/ |
|
62 |
#groupList { |
|
63 |
margin-top: 10px; |
|
64 |
/* height: 200px; */ |
|
65 |
max-height: 200px; |
|
66 |
width: 660px; |
|
67 |
text-align: center; |
|
68 |
overflow-y: auto; |
|
69 |
} |
|
70 |
|
|
71 |
input, textarea { |
|
72 |
border-radius: 6px; |
|
73 |
border: 1px solid #8cade8 !important; |
|
74 |
} |
|
75 |
|
|
76 |
.msgtd { |
|
77 |
text-align: right; |
|
78 |
} |
|
79 |
|
|
80 |
td { |
|
81 |
padding: 2px 0px; |
|
82 |
} |
|
83 |
</style> |
|
84 |
<script type="text/javascript"> |
|
85 |
$(function () { |
|
86 |
$("#loading").css("opacity", '0.8'); |
|
87 |
setTimeout("closeLoading()", 400); |
|
88 |
}); |
|
89 |
|
|
90 |
function build(fid) { |
|
91 |
showLoading(); |
|
92 |
updateField(function () { |
|
93 |
$.post("/buildPersonlizedTemplate.do", {"formId": fid}, function (d) { |
|
94 |
closeLoading(); |
|
95 |
$.messager.alert('提示', d.info, 'info'); |
|
96 |
}, "json"); |
|
97 |
}); |
|
98 |
} |
|
99 |
|
|
100 |
function showLoading() { |
|
101 |
$("#loading").show(); |
|
102 |
} |
|
103 |
|
|
104 |
function closeLoading() { |
|
105 |
$("#loading").hide(); |
|
106 |
} |
|
107 |
</script> |
a6a76f
|
108 |
</head> |
F |
109 |
|
|
110 |
<body> |
906e37
|
111 |
<div id="loading" |
X |
112 |
style="position:fixed !important;position:absolute;top:0;left:0;height:100%; width:100%; z-index:999; background:#99BBE8 url(/style/icons/load.gif) no-repeat center center; font-size:14px;line-height:20px;"> |
|
113 |
<p id="loading-one" |
|
114 |
style="color:#fff;position:absolute; top:50%; left:50%; margin:20px 0 0 -50px; padding:3px 10px;">加载中,请稍候....</p> |
a6a76f
|
115 |
</div> |
906e37
|
116 |
<input type="hidden" id="formId" value="<%=formId %>"/> |
a6a76f
|
117 |
<div id="container"> |
906e37
|
118 |
<div> |
X |
119 |
</div> |
|
120 |
<div id="addGroup"> |
|
121 |
<table width="669" border="0" cellpadding="0" cellspacing="0"> |
|
122 |
<tr> |
|
123 |
<td class="msgtd" width="80">字段名:</td> |
|
124 |
<td width="120"><input class="in" type="text" id="fieldId"/></td> |
|
125 |
<td class="msgtd" width="80">字段描述:</td> |
|
126 |
<td width="120"><input class="in" type="text" id="fieldName"/></td> |
|
127 |
<td class="msgtd" width="80">列宽:</td> |
|
128 |
<td width="120"><input id="width" type="text" class="in" value=""/> |
|
129 |
px |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
<tr> |
f3efcc
|
133 |
<td class="msgtd">对齐方式:</td> |
906e37
|
134 |
<td><select id="align" class="in"> |
X |
135 |
<option value="center">center</option> |
|
136 |
<option value="right">right</option> |
|
137 |
<option value="left">left</option> |
|
138 |
</select></td> |
|
139 |
<td class="msgtd">上边框:</td> |
|
140 |
<td><input class="in" type="text" id="borderTop"/> |
|
141 |
px |
|
142 |
</td> |
|
143 |
<td class="msgtd">右边框:</td> |
|
144 |
<td><input class="in" type="text" id="borderRight"/> |
|
145 |
px |
|
146 |
</td> |
|
147 |
</tr> |
|
148 |
<tr> |
|
149 |
<td class="msgtd">下边框:</td> |
|
150 |
<td><input class="in" type="text" id="borderBottom"/> |
|
151 |
px |
|
152 |
</td> |
|
153 |
<td class="msgtd">左边框:</td> |
|
154 |
<td><input class="in" type="text" id="borderLeft"/> |
|
155 |
px |
|
156 |
</td> |
|
157 |
<td class="msgtd">边框颜色:</td> |
|
158 |
<td><input class="in" id="selectColor" readonly="readonly" type="text" id="borderColor"/></td> |
|
159 |
</tr> |
|
160 |
<tr> |
|
161 |
<td class="msgtd">排列顺序:</td> |
|
162 |
<td><input class="in" type="text" id="sort"/></td> |
a14d7d
|
163 |
<td class="msgtd">数字格式:</td> |
X |
164 |
<td><input class="in" id="displayformat"></td> |
|
165 |
<td class="msgtd">启用已读:</td> |
|
166 |
<td><input id="isUpdateReadForToDo" type="checkbox" style="width: 18px;height: 18px"/></td> |
906e37
|
167 |
</tr> |
X |
168 |
<tr> |
|
169 |
<td class="msgtd">链接功能号:</td> |
|
170 |
<td colspan="5"><input id="linkformid" |
|
171 |
style="border:1px solid #cccccc;height:25px;width:500px;"></input></td> |
|
172 |
</tr> |
|
173 |
<tr class="msgtd"> |
|
174 |
<td style="width: 100px">链接功能号类型:</td> |
|
175 |
<td colspan="5" style="text-align: left"><input id="linkformtype" |
|
176 |
style="border:1px solid #cccccc;height:25px;width:500px;"></input> |
|
177 |
</td> |
|
178 |
</tr> |
|
179 |
<tr> |
|
180 |
<td class="msgtd">自表条件:</td> |
|
181 |
<td colspan="5"><textarea id="sPremissField" |
|
182 |
style="border:1px solid #cccccc;height:30px;width:500px;overflow: auto;"></textarea> |
|
183 |
</td> |
|
184 |
</tr> |
|
185 |
<tr> |
|
186 |
<td class="msgtd">外表条件:</td> |
|
187 |
<td colspan="5"><textarea id="dPremissField" |
|
188 |
style="margin-top:2px;border:1px solid #cccccc;height:30px;width:500px;overflow: auto;"></textarea> |
|
189 |
</td> |
|
190 |
</tr> |
|
191 |
<tr> |
|
192 |
<td class="msgtd">自定义条件:</td> |
|
193 |
<td colspan="5"><textarea id="FKeFilter" |
|
194 |
style="margin-top:2px;border:1px solid #cccccc;height:30px;width:500px;overflow: auto;"></textarea> |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
<tr> |
|
198 |
<td> </td> |
|
199 |
<td> </td> |
|
200 |
<td colspan="5"> |
|
201 |
<div align="right" style=" margin-right:28px;"> |
|
202 |
<a onclick="javascript:parent.deskTopShow('桌面数据源列表','/personalized/manager/desktopList.jsp',750,520,'',{modal:false});" |
|
203 |
class="easyui-linkbutton" iconCls="icon-docList">数据源列表</a> |
|
204 |
<a onclick="build(<%=formId %>)" class="easyui-linkbutton" iconCls="icon-edit">生成</a> |
|
205 |
<a id="addBtn" onclick="addField();" class="easyui-linkbutton" iconCls="icon-save">添 加</a> |
|
206 |
<a id="saveBtn" onclick="updateField();" class="easyui-linkbutton" iconCls="icon-save">保 存</a> |
|
207 |
</td> |
|
208 |
</tr> |
|
209 |
</table> |
a6a76f
|
210 |
|
F |
211 |
|
906e37
|
212 |
</div> |
X |
213 |
<div id="groupList"> |
|
214 |
<table id="tt" style="width:650px;height:200px;" |
|
215 |
title="字段列表" iconCls="icon-edit" |
|
216 |
url="/getPanelGridFields.do?formId=<%=formId %>"> |
|
217 |
<thead> |
|
218 |
<tr> |
|
219 |
<th field="fieldid" width="90" align="center">字段名</th> |
|
220 |
<th field="fieldname" width="150" align="center">字段描述</th> |
|
221 |
<th field="width" width="55" align="center">列宽</th> |
|
222 |
<th field="sort" width="63" align="center">排列顺序</th> |
|
223 |
<th field="align" width="63" align="center">对齐方式</th> |
|
224 |
<th field="linkformid" width="63" align="center">链接表号</th> |
|
225 |
<th field="opt" width="120" align="center" formatter="opt">操作</th> |
|
226 |
</tr> |
|
227 |
</thead> |
|
228 |
</table> |
|
229 |
</div> |
a6a76f
|
230 |
</div> |
F |
231 |
</body> |
|
232 |
</html> |