feiyu02
2024-07-08 b212ef0208cb094f63ea8a239a1361f8e859c839
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!--_meta 作为公共模版分离出去-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/js/html5shiv.js"></script>
    <script type="text/javascript" src="/js/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="/js/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/style.css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="/js/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!--/meta 作为公共模版分离出去-->
 
    <title>添加考核规范</title>
</head>
<body>
<article class="page-container">
    <!--/*@thymesVar id="evaluationrule" type="cn.flightfeather.supervision.domain.ds1.entity.Evaluationrule"*/-->
    <form method="post" action="/menu/evaluationrule-add" class="form form-horizontal" id="form-member-add"
          th:object="${evaluationrule}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>规范名称:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" id="name" name="name" th:field="*{rulename}">
                <input type="hidden" th:field="*{guid}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>规范类别:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="ruletype" size="1">
                    <option value=""></option>
                    <!--/*@thymesVar id="ruletype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="ruletype:${ruletypes}">
                        <option value="0" th:value="${ruletype.value}"
                                th:selected="${ruletype.value==evaluationrule.ruletype}">
                            <span th:text="${ruletype.text}">省份</span>
                        </option>
                    </th:block>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>任务类型:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="tasktypeid" size="1"
                        onchange="tasktypeOnchange(this.options[this.options.selectedIndex])">
                    <option value=""></option>
                    <!--/*@thymesVar id="tasktype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="tasktype:${tasktypes}">
                        <option value="0" th:value="${tasktype.value}"
                                th:selected="${tasktype.text==evaluationrule.tasktype}">
                            <span th:text="${tasktype.text}">省份</span>
                        </option>
                    </th:block>
                </select>
                <input type="hidden" id="tasktype" name="tasktype" th:value="*{tasktype}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景类型名称:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="scensetypeid" size="1"
                        onchange="scensetypeOnchange(this.options[this.options.selectedIndex])">
                    <option value=""></option>
                    <!--/*@thymesVar id="scensetype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="scensetype:${scensetypes}">
                        <option value="0" th:value="${scensetype.value}"
                                th:selected="${scensetype.text==evaluationrule.scensetype}">
                            <span th:text="${scensetype.text}">省份</span>
                        </option>
                    </th:block>
                </select>
                <input type="hidden" id="scensetype" name="scensetype" th:value="*{scensetype}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景细分类型名称:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="scensesubtypeid" size="1"
                        onchange="scensesubtypeOnchange(this.options[this.options.selectedIndex])">
                    <option value=""></option>
                    <!--/*@thymesVar id="scensesubtype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="scensesubtype:${scensesubtypes}">
                        <option value="0" th:value="${scensesubtype.value}"
                                th:selected="${scensesubtype.text==evaluationrule.scensesubtype}">
                            <span th:text="${scensesubtype.text}">省份</span>
                        </option>
                    </th:block>
                </select>
                <input type="hidden" id="scensesubtype" name="scensesubtype" th:value="*{scensesubtype}">
            </div>
        </div>
 
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">省份名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <!--/*@thymesVar id="process" type="cn.flightfeather.supervision.domain.ds1.entity.Province"*/-->
            <select class="select" name="provincecode" size="1"
                    onchange="provincenameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <th:block th:each="process:${processlist}">
                    <option value="0" th:value="${process.provincecode}"
                            th:selected="${process.provincecode==evaluationrule.provincecode}">
                        <span th:text="${process.provincename}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="provincename" name="provincename" th:value="*{provincename}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">地市名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="citycode" size="1"
                    onchange="citynameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="city" type="cn.flightfeather.supervision.domain.ds1.entity.City"*/-->
                <th:block th:each="city:${citylist}">
                    <option value="0" th:value="${city.citycode}" th:selected="${city.citycode==evaluationrule.citycode}">
                        <span th:text="${city.cityname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="cityname" name="cityname" th:value="*{cityname}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">区县名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="districtcode" size="1"
                    onchange="districtnameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="district" type="cn.flightfeather.supervision.domain.ds1.entity.District"*/-->
                <th:block th:each="district:${districtlist}">
                    <option value="0" th:value="${district.districtcode}"
                            th:selected="${district.districtcode==evaluationrule.districtcode}">
                        <span th:text="${district.districtname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="districtname" name="districtname" th:value="*{districtname}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">街镇名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="towncode" size="1"
                    onchange="townnameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="town" type="cn.flightfeather.supervision.domain.ds1.entity.Town"*/-->
                <th:block th:each="town:${townlist}">
                    <option value="0" th:value="${town.towncode}" th:selected="${town.towncode==evaluationrule.towncode}">
                        <span th:text="${town.townname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="townname" name="townname" th:value="*{townname}">
            </span></div>
        </div>
 
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
 
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
 
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/js/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/js/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/js/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/js/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    $(function () {
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
 
        $("#form-member-add").validate({
            rules: {
                name: {
                    required: true,
                    minlength: 2,
                    maxlength: 16
                },
                capacity: {
                    required: true,
                },
                version: {
                    required: true,
                }
 
            },
            onkeyup: false,
            focusCleanup: true,
            success: "valid",
            submitHandler: function (form) {
                $(form).submit();
                var index = parent.layer.getFrameIndex(window.name);
                //parent.$('.btn-refresh').click();
                parent.layer.close(index);
            }
        });
    });
</script>
 
<script>
 
    function scensesubtypeOnchange(v) {
        $("#scensesubtype").val(v.text);
    }
 
    function tasktypeOnchange(v) {
        $("#tasktype").val(v.text);
    }
 
    function scensetypeOnchange(v) {
        $("#scensetype").val(v.text);
    }
 
    function typenameOnchange(v) {
        $("#typename").val(v.text);
    }
 
    function citynameOnchange(v) {
        $("#cityname").val(v.text);
    }
 
    function districtnameOnchange(v) {
        $("#districtname").val(v.text);
    }
 
    function townnameOnchange(v) {
        $("#townname").val(v.text);
    }
 
    function provincenameOnchange(v) {
        $("#provincename").val(v.text);
    }
</script>
 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>