Administrator
2023-04-15 4c64dca2491f0ae298ee160c1e8df22448a588ae
提交 | 用户 | 时间
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         #simple-table th,#simple-table td{
27             text-align: center;
28             padding: 1px 8px;
29         }
30         .bigger-95{
31         font-size: 95% !important;
32         }
33         .btn-xs, .btn-group-xs > .btn{
34           padding-top: 0px;
35           padding-bottom: 0px;
36         }
37         #form .control-label {
38             margin-right: -14px
39         }
40         .t-error{
41             color: red;
42             position: relative;
43             right: 2px;
44             top: 3px;
45         }
46         </style>
47     </ui:define>
48     <ui:define name="acontent">
49         <input type="hidden" value="#{param.page}" id="p" />
50         <input type="hidden" value="#{param.keyword}" id="k" />
51         <div class="row">
52             <div class="col-xs-5">
53                 <div class="input-group">
54                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
55                     <span class="input-group-btn">
56                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
57                             <i class="ace-icon fa fa-search bigger-110"></i>
58                             搜索
59                         </button>
60                     </span>
61                 </div>
62             </div>
63             <div class="col-xs-7" style="text-align: right;">
64                 <button class="btn btn-sm btn-info" type="button" id="newObj">
65                     <i class="ace-icon fa fa-plus bigger-110"></i>
66                     新增单位
67                 </button>
68             </div>
69             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
70                 <table id="simple-table" class="table  table-bordered table-hover">
71                     <thead>
72                         <tr>
73                             <th class="detail-col" style="min-width: 48px">序号</th>
74                             <th style="min-width: 100px">单位编号</th>
75                             <th style="min-width: 200px">单位名称</th>
76                             <th style="min-width: 75px">单位类型</th>
77                             <th style="min-width: 100px">助记码</th>
78                             <th style="min-width: 100px">联系方式</th>
79                             <th style="min-width: 48px" class="detail-col">使用</th>
80                             <th style="min-width: 60px">法人</th>
81                             <th style="min-width: 100px">信用号</th>
82                             <th style="min-width: 150px">操作</th>
83                             <th style="min-width: 255px">地址</th>
84                             <th style="min-width: 255px">备注</th>
85                         </tr>
86                     </thead>
87
88                     <tbody data-bind="foreach: list">
89                         <tr>
90                             <td class="center">
91                                 <span data-bind="text: $index() + 1">1</span>
92                             </td>
93
94                             <td data-bind="text: companyNo"></td>
95                             <td data-bind="text: name"></td>
96                             <td data-bind="text: ptype"></td>
97                             <td data-bind="text: helpcode"></td>
98                             <td data-bind="text: phone"></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: legalperson"></td>
104                             <td data-bind="text: creditno"></td>
105                             <td>
106                                 <div class="btn-group">
107                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
108                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
109                                         编辑
110                                     </button>
111
112                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
113                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
114                                         删除
115                                     </button>
116                                 </div>
117                             </td>
118                             <td data-bind="text: address"></td>
119                             <td data-bind="text: note"></td>
120                         </tr>
121                     </tbody>
122                 </table>
123                 <div id="pagdiv"></div>
124             </div>
125         </div>
126         <div class="modal fade" id="modal">
127             <div class="modal-dialog">
128                 <div class="modal-content">
129                     <div class="modal-header">
130                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
131                         <h4 class="modal-title">编辑单位</h4>
132                     </div>
133                     <div class="modal-body">
134                         <form class="form-horizontal" id="form">
135                             <div class="form-body">
136                                 <div class="form-group">
137                                     <label class="col-md-3 control-label">单位类型</label>
138                                     <div class="col-md-6">
139                                         <select name="" id="" class="form-control" data-bind="value: o().ptype, options: tList"></select>
140                                     </div>
141                                 </div>
142                             </div>
143                             <div class="form-body">
144                                 <div class="form-group">
145                                     <label class="col-md-3 control-label"><span class="t-error">*</span>单位编号</label>
146                                     <div class="col-md-6">
147                                         <!--<span style="line-height: 34px" data-bind="text: o().companyNo"></span>-->
148                                         <input type="text" class="form-control" placeholder="" name="companyNo" data-bind="value: o().companyNo"/>
149                                     </div>
150                                     <div class="col-md-3">
151                                         <p class="form-control-static text-error"></p>
152                                     </div>
153                                 </div>
154                             </div>
155                             <div class="form-body">
156                                 <div class="form-group">
157                                     <label class="col-md-3 control-label"><span class="t-error">*</span>单位名称</label>
158                                     <div class="col-md-6">
159                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
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">
168                                         <input type="text" class="form-control" name="helpcode" placeholder="" data-bind="value: o().helpcode"/>
169                                     </div>
170                                     <div class="col-md-3">
171                                         <p class="form-control-static text-error"></p>
172                                     </div>
173                                 </div>
174                             </div>
175                             <div class="form-body">
176                                 <div class="form-group">
177                                     <label class="col-md-3 control-label">联系人</label>
178                                     <div class="col-md-6">
179                                         <input type="text" class="form-control" name="contactor" placeholder="" data-bind="value: o().contactor"/>
180                                     </div>
181                                     <div class="col-md-3">
182                                         <p class="form-control-static text-error"></p>
183                                     </div>
184                                 </div>
185                             </div>
186                             <div class="form-body">
187                                 <div class="form-group">
188                                     <label class="col-md-3 control-label">手机号码</label>
189                                     <div class="col-md-6">
190                                         <input type="text" class="form-control" name="phone" placeholder="" data-bind="value: o().phone"/>
191                                     </div>
192                                     <div class="col-md-3">
193                                         <p class="form-control-static text-error"></p>
194                                     </div>
195                                 </div>
196                             </div>
197                             <div class="form-body">
198                                 <div class="form-group">
199                                     <label class="col-md-3 control-label">公司地址</label>
200                                     <div class="col-md-6">
201                                         <input type="text" class="form-control" name="address" placeholder="" data-bind="value: o().address"/>
202                                     </div>
203                                     <div class="col-md-3">
204                                         <p class="form-control-static text-error"></p>
205                                     </div>
206                                 </div>
207                             </div>
208                             <div class="form-body">
209                                 <div class="form-group">
210                                     <label class="col-md-3 control-label">法人</label>
211                                     <div class="col-md-6">
212                                         <input type="text" class="form-control" name="legalperson" placeholder="" data-bind="value: o().legalperson"/>
213                                     </div>
214                                     <div class="col-md-3">
215                                         <p class="form-control-static text-error"></p>
216                                     </div>
217                                 </div>
218                             </div>
219                             <div class="form-body">
220                                 <div class="form-group">
221                                     <label class="col-md-3 control-label">信用号</label>
222                                     <div class="col-md-6">
223                                         <input type="text" class="form-control" name="creditno" placeholder="" data-bind="value: o().creditno"/>
224                                     </div>
225                                     <div class="col-md-3">
226                                         <p class="form-control-static text-error"></p>
227                                     </div>
228                                 </div>
229                             </div>
230                            <div class="form-body">
231                                 <div class="form-group">
232                                     <label class="col-md-3 control-label">启用</label>
233                                     <div class="col-md-6" style="padding-top: 7px">
234                                         <input id="objUsed" type="checkbox" data-bind="checked: o().used()" class="ace ace-switch ace-switch-4" />
235                                         <span class="lbl middle"></span>
236                                     </div>
237                                     <div class="col-md-3">
238                                         <p class="form-control-static text-error"></p>
239                                     </div>
240                                 </div>
241                             </div>
242                             <div class="form-body">
243                                 <div class="form-group">
244                                     <label class="col-md-3 control-label">备注</label>
245                                     <div class="col-md-6">
246                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
247                                     </div>
248                                 </div>
249                             </div>
250                         </form>
251                     </div>
252                     <div class="modal-footer">
253                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
254                         <button type="button" class="btn btn-primary" id="save">保存</button>
255                     </div>
256                 </div>
257             </div>
258         </div>
259         <div id="dialog-confirm" class="hide">
260             <div class="alert alert-info bigger-110" id="modalContent">
261             </div>
262         </div>
263     </ui:define>
264     <ui:define name="myscript">
265         <script src="js/company.js"></script>
266     </ui:define>
267 </ui:composition>
268 </html>