hjg
2024-10-30 8cf23534166c07e711aac2a25911ada317ba01f0
提交 | 用户 | 时间
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: 1px 8px;
23         }
24         #form .control-label {
25             margin-right: -14px
26         }
27         .t-error{
28             color: red;
29             position: relative;
30             right: 2px;
31             top: 3px;
32         }
33         </style>
34     </ui:define>
35     <ui:define name="acontent">
36         <input type="hidden" value="#{param.page}" id="p" />
37         <input type="hidden" value="#{param.keyword}" id="k" />
38         <div class="row">
39             <div class="col-xs-5">
40                 <div class="input-group">
41                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
42                     <span class="input-group-btn">
43                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
44                             <i class="ace-icon fa fa-search bigger-110"></i>
45                             搜索
46                         </button>
47                     </span>
48                 </div>
49             </div>
50             <div class="col-xs-7" style="text-align: right;">
51                 <button class="btn btn-sm btn-info" type="button" id="newObj">
52                     <i class="ace-icon fa fa-plus bigger-110"></i>
53                     新物料类型
54                 </button>
55             </div>
56             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
57                 <table id="simple-table" class="table  table-bordered table-hover">
58                     <thead>
59                         <tr>
60                             <th class="detail-col" style="min-width: 48px">序号</th>
61                             <th style="min-width: 200px">类型名称</th>
62                             <th style="min-width: 100px">助记码</th>
63                             <th style="min-width: 255px">备注</th>
64                             <th style="min-width: 150px">操作</th>
65                         </tr>
66                     </thead>
67
68                     <tbody data-bind="foreach: list">
69                         <tr>
70                             <td class="center">
71                                 <span data-bind="text: $index() + 1"></span>
72                             </td>
73
74                             <td data-bind="text: name"></td>
75                             <td data-bind="text: helpcode"></td>
76                             <td data-bind="text: note"></td>
77
78                             <td>
79                                 <div class="btn-group">
80                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
81                                         <!--<i class="ace-icon fa fa-pencil bigger-120"></i>-->
82                                         编辑
83                                     </button>
84
85                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
86                                         <!--<i class="ace-icon fa fa-trash-o bigger-120"></i>-->
87                                         删除
88                                     </button>
89                                 </div>
90                             </td>
91                         </tr>
92                     </tbody>
93                 </table>
94                 <div id="pagdiv"></div>
95             </div>
96         </div>
97         <div class="modal fade" id="modal">
98             <div class="modal-dialog">
99                 <div class="modal-content">
100                     <div class="modal-header">
101                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
102                         <h4 class="modal-title">编辑物料类型</h4>
103                     </div>
104                     <div class="modal-body">
105                         <form class="form-horizontal" id="form">
106                             <div class="form-body">
107                                 <div class="form-group">
108                                     <label class="col-md-3 control-label"><span class="t-error">*</span>物料类型名称</label>
109                                     <div class="col-md-6">
110                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
111                                     </div>
112                                     <div class="col-md-3">
113                                         <p class="form-control-static text-error"></p>
114                                     </div>
115                                 </div>
116                             </div>
117                             <div class="form-body">
118                                 <div class="form-group">
119                                     <label class="col-md-3 control-label">助记码</label>
120                                     <div class="col-md-6">
121                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().helpcode"/>
122                                     </div>
123                                     <div class="col-md-3">
124                                         <p class="form-control-static text-error"></p>
125                                     </div>
126                                 </div>
127                             </div>
128                             <div class="form-body">
129                                 <div class="form-group">
130                                     <label class="col-md-3 control-label">备注</label>
131                                     <div class="col-md-6">
132                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
133                                     </div>
134                                 </div>
135                             </div>
136                         </form>
137                     </div>
138                     <div class="modal-footer">
139                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
140                         <button type="button" class="btn btn-primary" id="save">保存</button>
141                     </div>
142                 </div>
143             </div>
144         </div>
145         <div id="dialog-confirm" class="hide">
146             <div class="alert alert-info bigger-110" id="modalContent">
147             </div>
148         </div>
149     </ui:define>
150     <ui:define name="myscript">
151         <script src="js/materialType.js"></script>
152     </ui:define>
153 </ui:composition>
154 </html>