cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>应急预案计划</title>
 
</head>
 
<body>
[#include "/business/pages/include/static.html" /]
[#include "/component/select.html" /]
<script type="text/javascript">
    $(function () {
        $.formValidator.initConfig({
            formID: "myform", onError: function (msg) {
                popupTips(msg)
            }, onSuccess: function () {
                document.getElementById("myform").target = window.top.openDialog("1", "操作",
                        {},
                        {"width": 40, "height": 40}, [{btnId: "tipBtnSure", btnName: "确定", btnStyle: "bluebtn"}]);
                return true;
            }
        });
 
        $("#depart").formValidator({empty: true, onFocus: "请输入组织部门"}).inputValidator({min: 0, max: 100, onError: "组织部门为0到50汉字"});
        $("#command").formValidator({empty: false, onFocus: "请输入总指挥"}).inputValidator({min: 1, max: 200, onError: "总指挥为1到100汉字"});
        $("#partake").formValidator({empty: false, onFocus: "请输入参与人"}).inputValidator({min: 1, max: 200, onError: "参与人为1到100汉字"});
        $("#situation").formValidator({empty: false, onFocus: "请输入场景人员及准备情况"}).inputValidator({min: 1, onError: "场景人员及准备情况不能为空"});
        $("#process").formValidator({empty: false, onFocus: "请输入演练过程"}).inputValidator({min: 1, onError: "演练过程不能为空"});
        $("#summary").formValidator({empty: false, onFocus: "请输入应急演练总结"}).inputValidator({min: 1, onError: "应急演练总结不能为空"});
    })
</script>
<div class=" clearfix">
    <div class="nopadding" id="fsmCenter">
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span><em>基本信息</em></span></a>
                <a class="dealrem"><span><em>演练任务</em></span></a>
            </div>
        </div>
 
        <div class="deal_switch_wrap">
            <div class="deal_switch_con iframecon" style="display:block;">
                <table class="basicinfo2" width="100%">
                    <tr>
                        <th><label>创建人:</label></th>
                        <td><span class="infotxt">${info.USER_NAME}</span></td>
                        <th><label>创建时间:</label></th>
                        <td><span class="infotxt">${DateUtil.format("yyyy-MM-dd",info.CREATE_TIME)}</span></td>
                    </tr>
                    <tr>
                        <th><label>计划名称:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PLAN_NAME}</span></td>
                    </tr>
                    <tr>
                        <th><label>项目:</label></th>
                        <td><span class="infotxt">${info.CUSTOMER_NAME}</span></td>
                        <th><label>子项目:</label></th>
                        <td><span class="infotxt">${info.SUB_CUSTOMER_NAME}</span></td>
                    </tr>
                    <tr>
                        <th><label>编制目的:</label></th>
                        <td colspan="3"><span class="infotxt">${info.INTENT}</span></td>
                    </tr>
                    <tr>
                        <th><label>使用范围:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PLAN_RANGE}</span></td>
                    </tr>
                    <tr>
                        <th><label>启动标准:</label></th>
                        <td colspan="3"><span class="infotxt">${info.STANDARD}</span></td>
                    </tr>
                    <tr>
                        <th><label>预案级别:</label></th>
                        <td colspan="3"><span class="infotxt">${info.LEVEL}</span></td>
                    </tr>
                    <tr>
                        <th><label>应急机构及职责:</label></th>
                        <td colspan="3"><span class="infotxt">${info.DUTY}</span></td>
                    </tr>
                    <tr>
                        <th><label>预案描述:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PLAN_DESCRIBE}</span></td>
                    </tr>
                    <tr>
                        <th><label>解决方案:</label></th>
                        <td colspan="3"><span class="infotxt">${info.SOLVE}</span></td>
                    </tr>
                    <tr>
                        <th><label>风险预防:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PREVENTION}</span></td>
                    </tr>
                    <tr>
                        <th><label>演练日期:</label></th>
                        <td colspan="3"><span class="infotxt">${DateUtil.format("yyyy-MM-dd",info.plan_date)}</span></td>
                    </tr>
                    <tr>
                        <th><label>总指挥:</label></th>
                        <td colspan="3"><span class="infotxt">${info.COMMAND_TWO}</span></td>
                    </tr>
                    <tr>
                        <th><label>参与人:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PARTAKE_TWO}</span></td>
                    </tr>
                </table>
            </div>
 
            <!-- 执行 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                <form action="${base}/business/pages/emergencyPlan/saveDrill.html" method="post" id="myform" name="myform">
                    <input type="hidden" name="id" value="${id}"/>
                    <table class="edit_layout" width="99%">
                        <tr>
                            <th><label>组织部门:</label></th>
                            <td colspan="3"><input class="general" type="text" name="depart" id="depart" style="width:360px"/>
                                <div id="departTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                        <tr>
                            <th><label class="required">总指挥:</label></th>
                            <td colspan="3">
                                <input class="general" type="text" name="command" id="command" style="width:360px"/>
                                <div id="commandTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                        <tr>
                            <th><label class="required">参与人:</label></th>
                            <td colspan="3">
                                <input class="general" type="text" name="partake" id="partake" style="width:360px"/>
                                <div id="partakeTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                        <tr>
                            <th><label>演练类型:</label></th>
                            <td>
                                <select class="mysel" id="drillType" name="drill_type">
                                    [#if FreeMarkerUtil.isSimpleHash(drillTypes)]
                                        [#list drillTypes?keys as key]
                                            <option value="${key}">${drillTypes[key]}</option>
                                        [/#list]
                                    [/#if]
                                </select>
                            </td>
                            <th><label>预案类型:</label></th>
                            <td>
                                <select class="mysel" id="planType" name="plan_type">
                                    [#if FreeMarkerUtil.isSimpleHash(planTypes)]
                                        [#list planTypes?keys as key]
                                            <option value="${key}">${planTypes[key]}</option>
                                        [/#list]
                                    [/#if]
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th><label class="required">场景人员及准备情况:</label></th>
                            <td colspan="3">
                                <textarea class="general" style="width:360px;" id="situation" name="situation"/></textarea>
                                <div id="situationTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                        <tr>
                            <th><label class="required">演练过程:</label></th>
                            <td colspan="3">
                                <textarea class="general" style="width:360px;" id="process" name="process"/></textarea>
                                <div id="processTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                        <tr>
                            <th><label>回退方法及步骤:</label></th>
                            <td colspan="3">
                                <textarea class="general" style="width:360px;" id="step" name="step"/></textarea>
                            </td>
                        </tr>
                        <tr>
                            <th><label class="required">应急演练总结:</label></th>
                            <td colspan="3">
                                <textarea class="general" style="width:360px;" id="summary" name="summary"/></textarea>
                                <div id="summaryTip" style="display:inline-block;"></div>
                            </td>
                        </tr>
                    </table>
                    <div class="edit_title"><h3>预案适宜性充分性评审</h3></div>
                     <table class="edit_layout" width="99%">
                         <tr>
                            <th><label>适宜性:</label></th>
                            <td colspan="3">
                                [#if FreeMarkerUtil.isSimpleHash(suitables)]
                                    [#list suitables?keys as key]
                                        <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="suitable_type" />${suitables[key]}
                                    [/#list]
                                [/#if]
                            </td>
                        </tr>
                        <tr>
                            <th><label>充分性:</label></th>
                            <td colspan="3">
                                [#if FreeMarkerUtil.isSimpleHash(fullTypes)]
                                    [#list fullTypes?keys as key]
                                        <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="full_type" />${fullTypes[key]}
                                    [/#list]
                                [/#if]
                            </td>
                        </tr>
                     </table>
                     <div class="edit_title "><h3>应急演练情况评审</h3></div>
                     <div class="fs_navtitle">
                         <table class="display_form common_list_table">
                             <tr>
                                 <td class="bg" rowspan="2">人员到位情况:</td>
                                 <td class="bg"></td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(personOnes)]
                                        [#list personOnes?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="person_one_type" />${personOnes[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg"></td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(personTwos)]
                                        [#list personTwos?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="person_two_type" />${personTwos[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg" rowspan="2">演练准备情况:</td>
                                 <td class="bg">现场物资</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(materials)]
                                        [#list materials?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="material_type" />${materials[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg">个人防护</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(protects)]
                                        [#list protects?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="protect_type" />${protects[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg" rowspan="2">协调组织情况:</td>
                                 <td class="bg">整体组织</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(ztzzs)]
                                        [#list ztzzs?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="ztzz_type" />${ztzzs[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg">应急组分工</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(yjfgs)]
                                        [#list yjfgs?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="yjfg_type" />${yjfgs[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg">实战效果评价:</td>
                                 <td class="bg"></td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(pjs)]
                                        [#list pjs?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="pj_type" />${pjs[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg" rowspan="2">外部支援部门和协作有效性:</td>
                                 <td class="bg">报告上级</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(bgs)]
                                        [#list bgs?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="bg_type" />${bgs[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                             <tr>
                                 <td class="bg">应急车支援</td>
                                 <td>
                                     [#if FreeMarkerUtil.isSimpleHash(zys)]
                                        [#list zys?keys as key]
                                            <input type="radio" [#if key=='1']checked="checked"[/#if] value="${key}" name="zy_type" />${zys[key]}
                                        [/#list]
                                    [/#if]
                                 </td>
                             </tr>
                         </table>
                     </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
 
        $("#dlsBtn>a").click(function () {
            var index = $("#dlsBtn>a").index(this);
            $("#dlsBtn>a").removeClass("focus");
            $(this).addClass("focus");
 
            var $dom = $("div.deal_switch_con:eq(" + index + ")");
            $("div.deal_switch_con").hide();
            $dom.show();
        })
    })
    function onDialogBtnClick(btnID, dialogID, config) {
        if (btnID == "btnSure") {
            $("#myform").submit();
        }
    }
</script>
</body>
</html>