Administrator
2023-03-15 c7bbfa1c4c448f703dd9b93de18cd7c93f16fc55
提交 | 用户 | 时间
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         i.fa.danger {
21             color: #D15B47
22         }
23         i.fa.success {
24             color: #87B87F
25         }
26         .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
27             height: 25px;
28         }
29         .chosen-container {
30             width: 100% !important;
31         }
32         #simple-table th,#simple-table td{
33             text-align: center;
34             padding: 2px 8px;
35         }
36         .bigger-95{
37         font-size: 95% !important;
38         }
39         .btn-xs, .btn-group-xs > .btn{
40           padding-top: 0px;
41           padding-bottom: 0px;
42         }
43         #form .control-label {
44             margin-right: -14px
45         }
46         .t-error{
47             color: red;
48             position: relative;
49             right: 2px;
50             top: 3px;
51         }
52         </style>
53     </ui:define>
54     <ui:define name="acontent">
55         <input type="hidden" value="#{param.page}" id="p" />
56         <input type="hidden" value="#{param.keyword}" id="k" />
57         <div class="row">
58             <div class="col-xs-5">
59                 <div class="input-group">
60                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
61                     <span class="input-group-btn">
62                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
63                             <i class="ace-icon fa fa-search bigger-110"></i>
64                             搜索
65                         </button>
66                     </span>
67                 </div>
68             </div>
69             <div class="col-xs-7" style="text-align: right;">
70                 <button class="btn btn-sm btn-info" type="button" id="newObj">
71                     <i class="ace-icon fa fa-plus bigger-110"></i>
72                     新厂区
73                 </button>
74             </div>
75             <div class="col-xs-12 table-responsive" style="margin-top: 8px; ''">
76                 <table id="simple-table" class="table  table-bordered table-hover">
77                     <thead>
78                         <tr>
79                             <th class="detail-col" style="min-width: 48px">序号</th>
80                             <th style="min-width: 100px">编号</th>
81                             <th style="min-width: 150px">厂区名称</th>
82                             <th style="min-width: 100px">助记码</th>
83                             <th style="min-width: 48px" class="hidden-480">启用</th>
84                             <th style="min-width: 150px">备注</th>
85                             <th style="min-width: 80px">门禁配置</th>
86                             <th style="min-width: 100px">操作</th>
87                         </tr>
88                     </thead>
89
90                     <tbody data-bind="foreach: list">
91                         <tr>
92                             <td class="center">
93                                 <span data-bind="text: $index() + 1"></span>
94                             </td>
95
96                             <td data-bind="text: shipmentNo"></td>
97                             <td data-bind="text: name"></td>
98                             <td data-bind="text: helpcode"></td>
99                             <td>
100                                 <a href="javascript:;" title="启用中"><i class="fa fa-check success" data-bind="click: $parent.used, visible: used(),css: {danger: !used(), success: used()}"></i></a>
101                                 <a href="javascript:;" title="禁用中"><i class="fa fa-close danger" data-bind="click: $parent.used, visible: !used(),css: {danger: !used(), success: used()}"></i></a>
102                             </td>
103                             <td data-bind="text: note"></td>
104
105                             <td>
106                                 <div class="btn-group">
107                                     <button class="btn btn-xs btn-info" title="门禁配置" data-bind="click: $parent.gates">
108                                         <!--<i class="ace-icon fa fa-external-link-square bigger-95"></i>-->
109                                         门禁配置
110                                     </button>
111                                 </div>
112                             </td>
113                             <td>
114                                 <div class="btn-group">
115                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
116                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
117                                         编辑
118                                     </button>
119                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
120                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
121                                         删除
122                                     </button>
123                                 </div>
124                             </td>
125                         </tr>
126                     </tbody>
127                 </table>
128                 <div id="pagdiv"></div>
129             </div>
130         </div>
131         <div class="modal fade" id="modal">
132             <div class="modal-dialog">
133                 <div class="modal-content">
134                     <div class="modal-header">
135                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
136                         <h4 class="modal-title">编辑厂区</h4>
137                     </div>
138                     <div class="modal-body">
139                         <form class="form-horizontal" id="form">
140                             <div class="form-body">
141                                 <div class="form-group">
142                                     <label class="col-md-3 control-label"><span class="t-error">*</span>厂区名称</label>
143                                     <div class="col-md-6">
144                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
145                                     </div>
146                                     <div class="col-md-3">
147                                         <p class="form-control-static text-error"></p>
148                                     </div>
149                                 </div>
150                                 <div class="form-group">
151                                     <label class="col-md-3 control-label">助记码</label>
152                                     <div class="col-md-6">
153                                         <input type="text" class="form-control" name="helpcode" placeholder="" data-bind="value: o().helpcode"/>
154                                     </div>
155                                     <div class="col-md-3">
156                                         <p class="form-control-static text-error"></p>
157                                     </div>
158                                 </div>
159                                 <div class="form-group">
160                                     <label class="col-md-3 control-label">备注</label>
161                                     <div class="col-md-6">
162                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
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="objUsed" type="checkbox" data-bind="checked: o().used()" 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>
176                         </form>
177                     </div>
178                     <div class="modal-footer">
179                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
180                         <button type="button" class="btn btn-primary" id="save">保存</button>
181                     </div>
182                 </div>
183             </div>
184         </div>
185         <div class="modal fade" id="gatesModal">
186             <div class="modal-dialog">
187                 <div class="modal-content">
188                     <div class="modal-header">
189                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
190                         <h4 class="modal-title">门禁配置</h4>
191                     </div>
192                     <div class="modal-body">
193                         <div class="row">
194                             <div class="col-md-12">
195                                 <select data-placeholder="请选择门禁……"  id="dp" style="height: 34px; width: 100%;" multiple="multiple" class="chosen-select form-control tag-input-style" data-bind="selectedOptions: rList, options: gList, optionsText: 'name', optionsValue: 'id'">
196                                 </select>
197                             </div>
198                         </div>
199                     </div>
200                     <div class="modal-footer">
201                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
202                         <button type="button" class="btn btn-primary" id="saveGid">保存</button>
203                     </div>
204                 </div>
205             </div>
206         </div>
207         <div id="dialog-confirm" class="hide">
208             <div class="alert alert-info bigger-110" id="modalContent">
209             </div>
210         </div>
211     </ui:define>
212     <ui:define name="myscript">
213         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
214         <script src="js/shipmentgarea.js"></script>
215     </ui:define>
216 </ui:composition>
217 </html>