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
<!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" /]
[#include "/component/newsel.html" /]
[#include "/component/DatePicker.html" /]
<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">
                            [#if dateList?size>0]
                                [#list dateList as date]
                                    ${DateUtil.format("yyyy-MM-dd",date.PLAN_DATE)}
                                [/#list]
                            [/#if]
                        </span></td>
                    </tr>
                    <tr>
                        <th><label>总指挥:</label></th>
                        <td colspan="3"><span class="infotxt">${info.COMMAND}</span></td>
                    </tr>
                    <tr>
                        <th><label>参与人:</label></th>
                        <td colspan="3"><span class="infotxt">${info.PARTAKE}</span></td>
                    </tr>
                </table>
            </div>
 
            <!-- 执行 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                  <form id="search">
                <div class="fs_main clearfix">
                    <div class="event_fill list_common_select">
                    <table><tr><th width="85%">
                        <div class="fill_item">
                            <label>工单单号:</label>
                                <input  class="general" type="text" name="order_code" id="order_code"/>
                           </div>
                        <div class="fill_item"><label>开始时间:</label>[@datepicker id="startDate" value=""/]</div>
                        <div class="fill_item"><label>结束时间:</label>[@datepicker id="endDate" value=""/]</div>
                    </th><td width="15%">
                        <a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" onclick="query();">查询</a>
                    </td></tr></table>
                    </div>
                </div>
                </form>
                <div class="fs_main clearfix">
                    <div id="main"></div>   
                    <div class="paging clearfix" id="pagination"></div>
                </div>
            </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 query(){
        var order_code = $("#order_code").val();
        var startDate=$("#startDate").val();
        var endDate=$("#endDate").val();
        var plan_id='${info.ID}';
        var type=1;
        if(startDate!="" && endDate!=""){
            if(startDate>endDate){
                popupTips("开始时间应小于等于结束时间!");
                return;
            }
        }
        var params = {"plan_startDate":startDate,"plan_endDate":endDate,"order_code":order_code,"type":type,"plan_id":plan_id};
        pagination("${base}/business/pages/emergencyPlan/emergencyDrillData.html","${base}/business/pages/emergencyPlan/emergencyDrillCount.html","main","pagination",{psize:10},params);
    }
    
    $(function() {
        query();
        $("#reset").click(function () {
            $("#search")[0].reset();
            $("#sub_customer_id").val("");
            $("#_startDate").val("");
            $("#_endDate").val("");
            $("#startDate").val("");
            $("#endDate").val("");
        });
    });
    function details(planId,dateId,drillId){
        window.top.openDialog("2","详情",
                             {},
                             {"width":"70","height":"80"},
                             [],
                             "${base}/business/pages/emergencyPlan/drillDetail.html?planId="+planId+"&dateId="+dateId+"&drillId="+drillId);    
    }
</script>
</body>
</html>