hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 <?xml version="1.0" encoding="UTF-8"?>
A 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:c="http://java.sun.com/jsp/jstl/core"
5 xmlns:h="http://java.sun.com/jsf/html"
6 xmlns:f="http://java.sun.com/jsf/core"
7 xmlns:ui="http://java.sun.com/jsf/facelets">
8 <ui:composition template="/template/nit/tmp_brief.xhtml">
9     <ui:define name="acss">
10         <style>
11         #searchBtn {
12             height: 34px;
13         }
14         p.error {
15             color: #D9534F
16         }
17         input.error {
18             border: 1px solid #D9534F;
19         }
20         #simple-table th,#simple-table td{
21             text-align: center;
22             padding: 2px 8px;
23         }
24         .bigger-95{
25         font-size: 95% !important;
26         }
27         .btn-xs, .btn-group-xs > .btn{
28           padding-top: 0px;
29           padding-bottom: 0px;
30         }
31         #form .control-label {
32             margin-right: -14px
33         }
34         .t-error{
35             color: red;
36             position: relative;
37             right: 2px;
38             top: 3px;
39         }
40         </style>
41     </ui:define>
42     <ui:define name="acontent">
43         <input type="hidden" value="#{param.page}" id="p" />
44         <input type="hidden" value="#{param.keyword}" id="k" />
45         <div class="row">
46             <div class="col-xs-5">
47                 <div class="input-group">
48                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
49                     <span class="input-group-btn">
50                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
51                             <i class="ace-icon fa fa-search bigger-110"></i>
52                             搜索
53                         </button>
54                     </span>
55                 </div>
56             </div>
57             <div class="col-xs-7" style="text-align: right;">
58                 <!--<button class="btn btn-sm btn-info" type="button" id="newObj">
59                     <i class="ace-icon fa fa-plus bigger-110"></i>
60                     新编号配置
61                 </button>-->
62             </div>
63             <div class="col-xs-12" style="margin-top: 8px;">
64                 <table id="simple-table" class="table  table-bordered table-hover">
65                     <thead>
66                         <tr>
67                             <th class="detail-col">序号</th>
68                             <th style="min-width: 70px; width: 70px">操作</th>
69                             <th>名称</th>
70                             <th>前缀</th>
71                             <th>后缀</th>
72                             <th>位数</th>
73                             <th>级别</th>
74                             <th>当前号</th>
75                             <th>备注</th>
76                         </tr>
77                     </thead>
78
79                     <tbody data-bind="foreach: list">
80                         <tr>
81                             <td class="center" data-bind="text: $index() + 1"></td>
82                             <td>
83                                 <div class="btn-group">
84                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
85                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
86                                         编辑
87                                     </button>
88
89                                     <!--<button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
90                                         <i class="ace-icon fa fa-trash-o bigger-95"></i>
91                                     </button>-->
92                                 </div>
93                             </td>
94                             <td data-bind="text: name"></td>
95                             <td data-bind="text: prefix"></td>
96                             <td data-bind="text: surfix"></td>
97                             <td data-bind="text: bitnum"></td>
98                             <td data-bind="text: leveling"></td>
99                             <td data-bind="text: currents"></td>
100                             <td data-bind="text: note"></td>
101                         </tr>
102                     </tbody>
103                 </table>
104                 <div id="pagdiv"></div>
105             </div>
106         </div>
107         <div class="modal fade" id="modal">
108             <div class="modal-dialog">
109                 <div class="modal-content">
110                     <div class="modal-header">
111                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
112                         <h4 class="modal-title">编辑编号</h4>
113                     </div>
114                     <div class="modal-body">
115                         <form class="form-horizontal" id="form">
116                             <div class="form-body">
117                                 <div class="form-group">
118                                     <label class="col-md-3 control-label"><span class="t-error">*</span>名称</label>
119                                     <div class="col-md-6">
120                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
121                                     </div>
122                                     <div class="col-md-3">
123                                         <p class="form-control-static text-error"></p>
124                                     </div>
125                                 </div>
126                                 <div class="form-group">
127                                     <label class="col-md-3 control-label">业务类型</label>
128                                     <div class="col-md-6">
129                                         <select name="" id="" class="form-control" data-bind="value: o().title, options: tList, optionsText: 'name', optionsValue: 'value', enable: false"></select>
130                                     </div>
131                                 </div>
132                                 <div class="form-group">
133                                     <label class="col-md-3 control-label">级别</label>
134                                     <div class="col-md-6">
135                                         <select name="" id="" class="form-control" data-bind="value: o().leveling">
136                                             <option value="0">不分级别</option>
137                                             <option value="1">1</option>
138                                             <option value="2">2</option>
139                                             <option value="3">3</option>
140                                             <option value="4">4</option>
141                                             <option value="5">5</option>
142                                         </select>
143                                     </div>
144                                 </div>
145                                 <div class="form-group">
146                                     <label class="col-md-3 control-label">启用日期</label>
147                                     <div class="col-md-6" style="padding-top: 7px">
148                                        <input id="objDatestr" type="checkbox" data-bind="checked: o().datestr()" class="ace ace-switch ace-switch-4" />
149                                         <span class="lbl middle"></span>
150                                     </div>
151                                     <div class="col-md-3">
152                                         <p class="form-control-static text-error"></p>
153                                     </div>
154                                 </div>
155                                 <div class="form-group">
156                                     <label class="col-md-3 control-label">启用层级</label>
157                                     <div class="col-md-6" style="padding-top: 7px">
158                                        <input id="objLvl" type="checkbox" data-bind="checked: o().lvl()" class="ace ace-switch ace-switch-4" />
159                                         <span class="lbl middle"></span>
160                                     </div>
161                                     <div class="col-md-3">
162                                         <p class="form-control-static text-error"></p>
163                                     </div>
164                                 </div>
165                                 <div class="form-group">
166                                     <label class="col-md-3 control-label">接上级编码</label>
167                                     <div class="col-md-6" style="padding-top: 7px">
168                                        <input id="objConcatupper" type="checkbox" data-bind="checked: o().concatupper()" class="ace ace-switch ace-switch-4" />
169                                         <span class="lbl middle"></span>
170                                     </div>
171                                     <div class="col-md-3">
172                                         <p class="form-control-static text-error"></p>
173                                     </div>
174                                 </div>
175                                 <div class="form-group">
176                                     <label class="col-md-3 control-label">前缀</label>
177                                     <div class="col-md-6">
178                                         <input type="text" class="form-control" name="prefix" placeholder="" data-bind="value: o().prefix"/>
179                                     </div>
180                                     <div class="col-md-3">
181                                         <p class="form-control-static text-error"></p>
182                                     </div>
183                                 </div>
184                                 <div class="form-group">
185                                     <label class="col-md-3 control-label">后缀</label>
186                                     <div class="col-md-6">
187                                         <input type="text" class="form-control" name="surfix" placeholder="" data-bind="value: o().surfix"/>
188                                     </div>
189                                     <div class="col-md-3">
190                                         <p class="form-control-static text-error"></p>
191                                     </div>
192                                 </div>
193                                 <div class="form-group">
194                                     <label class="col-md-3 control-label"><span class="t-error">*</span>位数</label>
195                                     <div class="col-md-6">
196                                         <input type="text" class="form-control" name="bitnum" placeholder="" data-bind="value: o().bitnum"/>
197                                     </div>
198                                     <div class="col-md-3">
199                                         <p class="form-control-static text-error"></p>
200                                     </div>
201                                 </div>
202                                 <div class="form-group">
203                                     <label class="col-md-3 control-label">当前编号</label>
204                                     <div class="col-md-6">
205                                         <span style="line-height: 34px" data-bind="text: o().currents"></span>
206                                     </div>
207                                     <div class="col-md-3">
208                                         <p class="form-control-static text-error"></p>
209                                     </div>
210                                 </div>
211                                 <div class="form-group">
212                                     <label class="col-md-3 control-label">备注</label>
213                                     <div class="col-md-6">
214                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
215                                     </div>
216                                 </div>
217                             </div>
218                         </form>
219                     </div>
220                     <div class="modal-footer">
221                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
222                         <button type="button" class="btn btn-primary" id="save">保存</button>
223                     </div>
224                 </div>
225             </div>
226         </div>
227         <div id="dialog-confirm" class="hide">
228             <div class="alert alert-info bigger-110" id="modalContent">
229             </div>
230         </div>
231     </ui:define>
232     <ui:define name="myscript">
233         <script src="js/prefix.js"></script>
234     </ui:define>
235 </ui:composition>
236 </html>