多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
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
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <meta name="viewport" charset="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>创建流程</title>
    <!--[if !IE]><!-->
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!--[if gt IE 8]>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
 
    <!-- 弹窗加载组件 -->
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
    <!-- wcp组件 -->
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <style>
        .combobox-group {
            clear: both;
        }
 
        html {
            overflow: hidden;
        }
 
        html, body {
            height: 100%;
        }
    </style>
 
</head>
<body>
<div class="margin-lr">
    <div class="pt-main-top2">
        <span class="pt-title-icon pt-title-icon2"><i class="fa fa-sliders"></i></span>
        <h4>创建流程</h4>
        <div class="pt-nav-tab2 easyui-tabs" style="width:100%;" data-options="plain:true">
            <div title="全部流程" class="pt-nav-list">
                <div class="lc_margin">
                    <div class="lc_iconlist">
                        <c:forEach items="${flowCategoryVOList}" var="flowCategory" varStatus="staturs">
                            <div class="lc_list_title">
                                <span>${flowCategory.flowCategoryName}</span>
                            </div>
                            <c:set var="flow" value="${flowCategory.flowDefinitionList}"/>
                            <ul class="clear">
                                <c:forEach var="flow" items="${flow}">
                                    <c:set var="favoriteFlowScriptStr"
                                           value='${favoriteFlowScriptStr}initFavoriteFlow("${flow.flowId}","d_${flow.flowId}");'/>
                                    <li>
                                        <a style="padding-left:20px"
                                           href="javascript:addFlow('${flow.formId}','${flow.moduleId}','${flow.flowId}','${flow.flowName}');">
                                            <i class="${flow.flowIcon.concat(" ").concat(flow.flowCss)}"></i>
                                                ${flow.flowName}</a>
                                        <em id="em_${flow.flowId}" class="hot" style="margin-left:-5px"><i
                                                class="fa fa-star"></i><span
                                                id="d_${flow.flowId}" onclick="favoriteFlow('${flow.flowId}',this.id);">收藏</span></em>
                                    </li>
                                </c:forEach>
                            </ul>
 
                        </c:forEach>
                    </div>
                </div>
            </div>
            <div title="我的收藏" class="pt-nav-list">
                <div class="lc_margin">
                    <div class="lc_iconlist">
                        <c:forEach items="${favoriteCategoryVOList}" var="flowCategory" varStatus="staturs">
                            <div class="lc_list_title">
                                <span>${flowCategory.flowCategoryName}</span>
                            </div>
                            <c:set var="flow" value="${flowCategory.flowDefinitionList}"/>
                            <ul class="clear">
                                <c:forEach var="flow" items="${flow}">
                                    <li>
                                        <a style="padding-left:20px"
                                           ref="javascript:addFlow('${flow.formId}','${flow.moduleId}','${flow.flowId}','${flow.flowName}');">
                                            <i class="${flow.flowIcon.concat(" ").concat(flow.flowCss)}"></i>
                                                ${flow.flowName}</a>
                                        <em style="margin-left:-5px"><i class="fa fa-star"></i><span
                                                id="f_${flow.flowId}"
                                                onclick="favoriteFlow('${flow.flowId}',this.id);">取消收藏</span></em>
                                    </li>
                                </c:forEach>
                            </ul>
 
                        </c:forEach>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
<script>
    //窗口参数,用于弹窗传递
    var params = {
        callBack: null
    };
 
    $(function () {
        ${favoriteFlowScriptStr}
        new ResizeScroll({
            "id": ".lc_margin",
            fun: function () {
                var wh = $(window).height();
                return (wh - 5 - 62);
            }
        });
 
    });
 
 
    //新建流程
    function addFlow(formId, moduleId, flowDefinitionId, flowDefinitionName) {
        var url = "general/editFormData?formId=" + formId + "&moduleId=" + moduleId + "&flowDefinitionId=" + flowDefinitionId + "&keyId=0";
        var title = "新增" + flowDefinitionName + "流程";
        top.addPanel(url, title);
        var curTabWin = null;
        var curTab = top.$('#tt').tabs('getSelected');
        if (curTab && curTab.find('iframe').length > 0) {
            curTabWin = curTab.find('iframe')[0].contentWindow;
            //将回调函数传给子页面
            $(curTabWin).load(function () {
 
            });
        }
 
 
    }
 
    //初始化收藏流程
    function initFavoriteFlow(flowId, id) {
        wcp.ajax({
            url: "management/favorite/getFavorite?flowId=" + flowId,
        }).done(function (result) {
            var str;
            if (result.index == 0) {
                $("#em_" + flowId).removeClass("hot");
                str = "取消收藏";
            } else {
                str = "收藏";
                $("#em_" + flowId).addClass("hot");
            }
            $("#" + id).html(str);
        });
 
    }
 
    function favoriteFlow(flowId, id) {
        var text = $("#" + id).text();
        var url;
        if (text == "取消收藏") {
            // $(obj).parent("em").removeClass("hot");
            url = "management/favorite/deleteFavorite";
        } else {
            //$(obj).parent("em").addClass("hot");
            url = "management/favorite/saveFavorite";
 
        }
        wcp.ui.setBusy("body", wcp.ajax({
            url: url + "?flowId=" + flowId,
        }).done(function (result) {
            location.reload();
        }));
 
    }
</script>
</html>