xinyb
2023-01-03 904c9dd32232915b7a3a6885fac002e0959ff4a1
提交 | 用户 | age
4a551f 1 
a7ad61 2 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
X 3 <%@page import="com.yc.service.personalized.CustomHomeGroupIfc" %>
4 <%@page import="com.yc.factory.FactoryBean" %>
5 <%@page import="com.yc.service.personalized.CustomHomePanelPositionIfc" %>
6 <%@page import="java.util.List" %>
7 <%@page import="java.util.Map" %>
8 <%@page import="com.yc.utils.SessionKey" %>
9 <%@page import="java.util.Random" %>
10 <%@page import="com.yc.service.userconfig.SysUserMenuConfigIfc" %>
11 <%@page import="com.yc.service.impl.DBHelper" %>
12 <%@page import="com.yc.service.demo.DemoIfc" %>
13 <%@page import="com.yc.multiData.SpObserver" %>
14 <%@page import="com.yc.sdk.weixincp.util.RandomString" %>
15 <%@page import="com.yc.sdk.shopping.util.SettingKey" %>
16 <%@page import="com.yc.entity.DataSourceEntity" %>
17 <%@page import="com.yc.multiData.MultiDataSource" %>
dff633 18 <%@ page import="com.yc.MaintenanceFee.service.MaintainService" %>
a6d530 19 <%@ page import="java.text.SimpleDateFormat" %>
a6a76f 20 <%@ page trimDirectiveWhitespaces="true" %>
a7ad61 21 <% String hostUrl = SettingKey.getHostUrl(request);
X 22     Map<String, Map<String, Object>> perssion = (Map<String, Map<String, Object>>) session.getAttribute(SessionKey.PERSSION);
23     String dbid = (String) session.getAttribute(SessionKey.DATA_BASE_ID);
24     DataSourceEntity dataSourceEntity = MultiDataSource.getDataSourceMap(dbid);
65b8d9 25     String isSuperUser = (String) session.getAttribute(SessionKey.USERTYPE);
F 26     if("DeveloperUser".equalsIgnoreCase(isSuperUser)){
27         isSuperUser="1";
28     }
a7ad61 29     //--------------------菜单选项配置
X 30     SysUserMenuConfigIfc mcf = (SysUserMenuConfigIfc) FactoryBean.getBean("SysUserMenuConfigImpl");
dff633 31     MaintainService maintainService=(MaintainService) FactoryBean.getBean("maintainServiceImpl");
a7ad61 32     Map<String, Object> menuConfigInfo = null;
dff633 33     boolean hasMaintain=false;//是维护费提醒人员
X 34     String userCode = (String) session.getAttribute(SessionKey.USERCODE);
a6d530 35     //系统过期剩余天数 xin 2022-2-11 17:53:30
X 36     Integer expireDay=maintainService.getSystemExpireDay(dataSourceEntity.getExpiredDate());
6e94d5 37     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
a6d530 38     String dayStr=(expireDay>0?sdf.format(dataSourceEntity.getExpiredDate()):null);
31b3e3 39     String expireText="<span class=\"iconfont icon-guanbi\"></span>您好,您的系统将于<span style=\"color: #f35d22;\">"+expireDay+
a6d530 40             "</span>天后<span style=\"color: #f35d22\">("+dayStr+")</span>到期," +
30d340 41             "到期后系统将自动停止使用,请及时续费!(如果已经续费请联系技术人员处理)";
a6d530 42     //-----------------系统过期剩余天数end------------
a7ad61 43     try {
X 44         SpObserver.setDBtoInstance("_" + dbid);//切换数据源
45         menuConfigInfo = mcf.getMenuConfig((String) session.getAttribute(SessionKey.HRCODE));
dff633 46         //这里获取当前用户是否为维护费提醒人员
4257cf 47         List<Map<String, Object>> maintainList = maintainService.selectMaintenanceFeeNotification(userCode);
X 48         if (maintainList != null && maintainList.size() > 0) {
49             hasMaintain = true;
50         }
a7ad61 51     } catch (Exception e) {
X 52         e.printStackTrace();
53         out.println(e.getCause() != null ? e.getCause().getMessage() : e.getMessage());
54         return;
55     } finally {
56         SpObserver.setDBtoInstance();
57     }
58     int menuConfig = 158;//等于0表示默认都中(158)
59     int menuFold = 0;
60     if (menuConfigInfo.get("menuconfig") != null) {
61         menuConfig = Integer.parseInt(menuConfigInfo.get("menuconfig").toString());
62     }
63     if (menuConfigInfo.get("navigationMenuIsFold") != null) {
64         menuFold = Integer.parseInt(menuConfigInfo.get("navigationMenuIsFold").toString());
65     }
66     //--------------------菜单选项配置
67     long rand = new Random().nextLong();
68 %>
69 <%!
70     boolean checkBoxIsChecked(int config, int configValue) {
71         if ((config & configValue) > 1) {
72             return true;
73         }
74         return false;
75     }
a6a76f 76 %>
4a551f 77 <!DOCTYPE html>
a6a76f 78 <html>
F 79 <head>
a7ad61 80     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
X 81     <!--ie10,ie11不支持这样
82     <meta http-equiv="X-UA-Compatible" content="IE=7">
83     -->
84     <title><%=SettingKey.getTitle(request)%> 主界面</title>
85     <link rel="stylesheet" type="text/css"
86           href="<%=hostUrl%>/style/iconfont/main.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/iconfont/main.css")%>">
87     <link rel="stylesheet" type="text/css"
88           href="<%=hostUrl%>/style/iconfont/iconfont.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/iconfont/iconfont.css")%>">
89     <link rel="stylesheet" type="text/css"
90           href="<%=hostUrl%>/style/icon.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/icon.css")%>">
91     <link rel="stylesheet" type="text/css"
92           href="<%=hostUrl%>/style/default/easyui.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/default/easyui.css")%>">
93     <link rel="stylesheet" type="text/css"
94           href="<%=hostUrl%>/shopping/view/javascript/toast/jquery.toast.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toast/jquery.toast.css")%>">
95     <link rel="stylesheet" type="text/css"
96           href="<%=hostUrl%>/js/bootstrap-upload/css/rotationscaling.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap-upload/css/rotationscaling.css")%>">
97     <link rel="stylesheet" type="text/css"
b9982b 98           href="<%=hostUrl%>/js/bootstrap-upload/css/bootstrap.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap-upload/css/bootstrap.css")%>">
a7ad61 99     <link rel="stylesheet" type="text/css"
b9982b 100           href="<%=hostUrl%>/js/bootstrap-upload/css/fileinput.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap-upload/css/fileinput.css")%>">
a7ad61 101     <link href="<%=hostUrl%>/shopping/view/javascript/toastmessage/css/jquery.toastmessage.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toastmessage/css/jquery.toastmessage.css")%>"
X 102           type="text/css" rel="stylesheet"/>
dff633 103     <link rel="stylesheet" href="<%=hostUrl%>/style/iconfont/tixingtb/iconfont.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/iconfont/tixingtb/iconfont.css")%>">
6ac0ba 104     <script type="text/javascript"
F 105             src="<%=hostUrl%>/js/jquery-1.4.4.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jquery-1.4.4.min.js")%>"></script>
106     <script type="text/javascript"
107             src="<%=hostUrl%>/js/index/jquery.easyui.min-1.6.10.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/jquery.easyui.min-1.6.10.js")%>"></script>
108     <script type="text/javascript"
109             src="<%=hostUrl%>/js/locale/easyui-lang-zh_CN.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/locale/easyui-lang-zh_CN.js")%>"></script>
110     <script type="text/javascript"
111             src="<%=hostUrl%>/js/index/index.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/index.js")%>"></script>
112     <script type="text/javascript"
113             src="<%=hostUrl%>/js/index/deskTop.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/deskTop.js")%>"></script>
114     <script type="text/javascript"
115             src="<%=hostUrl%>/shopping/view/javascript/toast/jquery.toast.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toast/jquery.toast.js")%>"></script>
116     <script type="text/javascript"
117             src="<%=hostUrl%>/js/index/maintaince.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/maintaince.js")%>"></script>
118     <script type="text/javascript"
119             src="<%=hostUrl%>/js/index/funcLink.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/funcLink.js")%>"></script>
120     <script type="text/javascript"
121             src="<%=hostUrl%>/js/encode.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/encode.js")%>"></script>
122     <script type="text/javascript"
123             src="<%=hostUrl%>/js/jquery.cookie.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jquery.cookie.min.js")%>"></script>
124     <script type="text/javascript"
125             src="<%=hostUrl%>/js/index/indexRefresh.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/indexRefresh.js")%>"></script>
126     <script type="text/javascript"
127             src="<%=hostUrl%>/js/config/config.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/config/config.js")%>"></script>
128     <script type="text/javascript"
129             src="<%=hostUrl%>/js/messageTip/jquery.messager.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/messageTip/jquery.messager.js")%>"></script>
130     <script type="text/javascript"
131             src="<%=hostUrl%>/js/iscroll5.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/iscroll5.js")%>"></script>
132     <script type="text/javascript"
133             src="<%=hostUrl%>/js/index/jQueryRotate.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/jQueryRotate.js")%>"></script>
134     <script type="text/javascript"
135             src="<%=hostUrl%>/js/index/rotate.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/rotate.js")%>"></script>
136     <script type="text/javascript"
137             src="<%=hostUrl%>/js/bootstrap-upload/js/fileinput.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap-upload/js/fileinput.js")%>"></script>
138     <script type="text/javascript"
139             src="<%=hostUrl%>/js/bootstrap-upload/js/locales/zh.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/bootstrap-upload/js/locales/zh.js")%>"></script>
140     <script type="text/javascript"
141             src="<%=hostUrl%>/shopping/view/javascript/bootstrap/js/bootstrap.min.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/bootstrap/js/bootstrap.min.js")%>"></script>
142     <script src="<%=hostUrl%>/shopping/view/javascript/toastmessage/jquery.toastmessage.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/shopping/view/javascript/toastmessage/jquery.toastmessage.js")%>"
143             type="text/javascript"></script>
144     <script src="<%=hostUrl %>/layui/layui.all.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/layui/layui.all.js")%>"
145             type="text/javascript"></script>
146     <script src="<%=hostUrl%>/js/index/WebSocketMessage.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/index/WebSocketMessage.js")%>"
147             type="text/javascript"></script>
148     <script src="<%=hostUrl%>/js/jqmeter.js?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/js/jqmeter.js")%>"
149             type="text/javascript"></script>
a7ad61 150     <style type="text/css">
X 151         body {
152             overflow: hidden;
153             font-family: 'Verdana', '宋体';
a6a76f 154         }
F 155
a7ad61 156         .hidden {
X 157             display: none;
158         }
a6a76f 159
a7ad61 160         .layout-browser {
X 161             height: 30px;
162             border: 0px;
163             border-bottom: 7px solid #DEEDF7;
164             background: linear-gradient(to bottom, #7da0d0, #223e67 70%);
165         <%--background:url('<%=hostUrl%>/style/default/images/layout-browser-hd-bg.gif') #7f99be repeat-x center 50%;--%> line-height: 30px;
166             color: #fff;
167             vertical-align: middle;
168             overflow: hidden;
169         }
a6a76f 170
a7ad61 171         #home_north .l-btn-text {
X 172             color: #EBEBEB;
b9982b 173         }
X 174         .popover{
175             position: fixed;
a6d530 176             color: black;
X 177             font-size: 13px;
178             /*left: 280.025px!important;*/
179             left: 254px!important;
180         }
181         .popover-content{
182             line-height: 20px;
dff633 183         }
X 184         .icon-tixing:hover{
185             font-size: 16px;
186             cursor: pointer;
187             font-weight: bold;
188         }
189         .tixings{
190             background: red;
191             padding: 2px;
192             background: red;
193             padding: 0px;
194             margin-top: -16px;
195             font-weight: 100;
196             margin-left: -12px;
197         }
198         .jq-toast-single{
199             margin-top: 10px;
a7ad61 200         }
e0f3d5 201         .menu{
X 202             border-radius: 5px;
31b3e3 203         }
X 204         .icon-guanbi{
205             cursor: pointer;
206             font-size: 12px;
207             margin-top: -12px;
208             margin-right: -12px;
209             float: right;
e0f3d5 210         }
a7ad61 211     </style>
X 212 </head>
213 <body class="easyui-layout" fit="true" loadingMessage="loading......">
214 <div id="wd" class="easyui-window" title="Modal Window"
215      maximizable="false" minimizable="false" closed="true" resizable="false" modal="true" iconCls="icon-save"
216      style="width:500px;height:200px;padding:10px;display: none">请点击下载&nbsp;&nbsp;<span id='doa'></span>
217 </div>
218 <div id="picDiv" class="easyui-window" title="附件选项"
219      maximizable="false" minimizable="false" closed="true" collapsible="false" resizable="false" modal="true"
220      iconCls="icon-info"
221      style="width:500px;height:200px;padding:10px;display: none">
222     <iframe src="" id="picIframe" style="width:100%;height:100%;" frameborder="no"></iframe>
223 </div>
224 <div id="er_show" class="easyui-window" title="数据检查--请认真检查以下信息:" maximizable="false" minimizable="false" closed="true"
225      resizable="false" modal="true" iconCls="icon-save"
226      style="width:600px;height:380px;padding:5px;background: #fafafa;display: none;">
a6a76f 227
a7ad61 228     <div style="padding:0px;background:#fff;border:1px solid #ccc;height:300px;overflow:auto;">
X 229         <span id="err_mess"></span>
a6a76f 230     </div>
a7ad61 231     <div style="text-align:right;height:30px;line-height:30px;">
X 232         <a id="er_queding" class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)"
233            onclick="errShow.erClose('ok');">确定</a>
234         <a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)"
235            onclick="errShow.erClose('');">取消</a>
236     </div>
a6a76f 237
F 238 </div>
a7ad61 239 <div id="w" class="easyui-window" title="文本信息" closed="true" modal="true" resizable="false" maximizable="false"
X 240      iconCls="icon-save" style="width:500px;height:400px;padding:5px;background: #fafafa;display: none;">
241
242     <div style="background:#fff;border:1px solid #ccc;">
243         <textarea id="w_content" onkeyup="isChinese(this)" ; style="width: 465px;height: 315px;"></textarea>
244         <input type="hidden" id="w_show_id" value=""/>
245     </div>
246     <div style="text-align:right;;line-height:30px;">
247         <a class="easyui-linkbutton" id="w_show_ok" iconCls="icon-ok" href="javascript:void(0)"
248            onclick="errShow.showOk()">确定</a>
249         <a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#w').window('close')">取消</a>
250     </div>
251
a6a76f 252 </div>
7f7112 253 <%--<!-- 格线上传控件 模态框(Modal) -->--%>
X 254 <%--<div class="modal fade" id="picModal" data-backdrop="true" role="dialog">  <!-- data-backdrop控制遮罩层黑影 -->--%>
255 <%--    <div class="modal-dialog modal-lg" role="document">--%>
256 <%--        <div class="modal-content">--%>
257 <%--            <div class="modal-header"> <!-- align="right" -->--%>
258 <%--                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&nbsp;&nbsp;X&nbsp;&nbsp;--%>
259 <%--                </button>--%>
260 <%--                <h4 class="modal-title" id="myModalLabel">附件信息</h4>--%>
261 <%--                <button type="button" class="btn btn-kv btn-default btn-outline-secondary" data-toggle="button"--%>
262 <%--                        aria-pressed="false" autocomplete="off">--%>
263 <%--                    <img src="/images/pictool/tright.gif" width="20" height="20" style="cursor:hand"--%>
264 <%--                         onClick="trighthome();" title="右旋转"></button>--%>
265 <%--                <button type="button" class="btn btn-kv btn-default btn-outline-secondary" data-toggle="button"--%>
266 <%--                        aria-pressed="false" autocomplete="off">--%>
267 <%--                    <img src="/images/pictool/tleft.gif" width="20" height="20" style="cursor:hand"--%>
268 <%--                         onClick="tlefthome();" title="左旋转"></button>--%>
269 <%--                <button type="button" class="btn btn-kv btn-default btn-outline-secondary" data-toggle="button"--%>
270 <%--                        aria-pressed="false" autocomplete="off">--%>
271 <%--                    <img src="/images/pictool/piczoom_in.gif" width="20" height="20" style="cursor:hand"--%>
272 <%--                         onClick="bigit();" title="放大"></button>--%>
273 <%--                <button type="button" class="btn btn-kv btn-default btn-outline-secondary" data-toggle="button"--%>
274 <%--                        aria-pressed="false" autocomplete="off">--%>
275 <%--                    <img src="/images/pictool/piczoom_out.gif" width="20" height="20" style="cursor:hand"--%>
276 <%--                         onClick="smallit();" title="缩小"></button>--%>
277 <%--            </div>--%>
278 <%--            <div class="modal-body" style="z-index:1;text-align: center;">--%>
279 <%--                <form enctype="multipart/form-data" id="uploadForm">--%>
280 <%--                    <input id="fileUpload_up" name="classFile" type="file" multiple class="file-loading">--%>
281 <%--                    <input id="fileUpload" name="fileUpload" value="" type="hidden"/>--%>
282 <%--                </form>--%>
283 <%--                <img id="bimg" onload="AutoSize(this,600,400)" alt="" src="" style="display:none;">--%>
284 <%--            </div>--%>
285 <%--        </div>--%>
286 <%--    </div>--%>
287 <%--</div>--%>
a7ad61 288 <div id="loading"
X 289      style="position:fixed !important;position:absolute;top:0;left:0;height:100%; width:100%; z-index:999; background:#99BBE8 url(/style/icons/load.gif) no-repeat center center; font-size:14px;line-height:20px;filter: alpha(opacity=80);opacity:0.8;">
290     <p id="loading-one"
291        style="color:#fff;position:absolute; top:50%; left:50%; margin:20px 0 0 -50px; padding:3px 10px;">页面载入中....</p>
292 </div>
293 <div data-options="region:'north'" class="layout-browser" split="false" id="home_north">
a6a76f 294               <span style="float: left;padding-left: 20px;font-weight: bold;font-size:14px;">
a7ad61 295                     <input class="easyui-searchbox" data-options="prompt:'功能号/单号',searcher:openFormidButton"
X 296                            style="width:130px;height:24px;"></input>&nbsp;
a6a76f 297                     <a class="easyui-menubutton" id="shortcuts" menu="#shortcutsM" iconCls="icon-edit">快捷</a>
168a15 298                     <a class="easyui-menubutton" id="homehelp" menu="#mm2" iconCls="icon-help">帮助</a>
b9982b 299                     <a  id="downloadAPP" style="cursor:pointer;padding-left: 15px;margin-left: 5px;" class="icon-applogo"><label style="cursor:pointer;font-size: 13px">下载APP</label></a>
a6d530 300                    <% if(expireDay>0){%>
X 301                     <a  id="expireId" style="cursor:pointer;padding-left: 20px;margin-left: 5px;" class="icon-expire"><label style="cursor:pointer;font-size: 13px;color: white">系统<%=expireDay%>天后到期</label></a>
302                    <%}%>
a6a76f 303                   <span style="padding-left:20px;color: #EBEBEB">
F 304                        <%
a7ad61 305                            if ("1".equals(isSuperUser)) {
X 306                        %>
307                       <a style="cursor:pointer;padding-left: 20px" class="icon-cat"
308                          onclick="window.open('/shopping/');">商城</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
309                   <%} else {%>
310                         <a style="cursor:pointer;padding-left: 20px">&nbsp;&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
311     <%}%>
b456cd 312 <%--    <a style="cursor:pointer"--%>
X 313 <%--       onclick="addTab('浏览器缓存','','','','/help/chrome.html','',{isFlowChart:true});">清除谷歌浏览器缓存步骤</a>--%>
a7ad61 314     <%
X 315         if (dataSourceEntity.isShowAttendanceButton()) {
316     %>
317     <input type="button" value="考勤打卡" onclick="deskTopShow('考勤','/attend.do?m=load',550,400)" style="display:none;"/>
318     <%
319         }
320     %>
321     </span>
322     <% String nickName = (session.getAttribute("NickName") == null ? "" : (String) session.getAttribute("NickName"));   //昵称
323         String headimgurl = (session.getAttribute("headimgurl") == null ? "" : (String) session.getAttribute("headimgurl"));  //头像
324         if (headimgurl != null && !"".equals(headimgurl) && nickName != null && !"".equals(nickName)) {
325     %>
326     <span style="float: left;padding-left: 30px;font-size:12px;">
327                 <%
328                     if (headimgurl != null && !"".equals(headimgurl)) {
329                         out.print("<a href=\"" + headimgurl + "\" target=\"_blank\"><img src=\"" + headimgurl + "\" width=\"24\" height=\"24\" style=\"padding-top: 2px;\"/></a>");
330                     }
331                     if (nickName != null && !"".equals(nickName)) {
332                         out.print("<span style=\"padding-top: -2px;\">&nbsp;" + nickName.trim().replaceAll(" ", "") + "</span>");
333                     }
334                 %></span>
335     <% } %>
336     <span style="float:left; padding-right:20px;color: red"
337           id="liSpan"><%=com.yc.license.InitLicense.getInstance().getInfo()%></span>
338
dff633 339
a7ad61 340     <span style="float:right; padding-right:20px;color: #EBEBEB">
dff633 341         <%
X 342             if(hasMaintain){
343         %>
344         <span id="mtixing" style="padding-right:10px;">
345              <span class="iconfont icon-tixing" title="维护费通知">
346                  <span class="badge tixings"></span>
347                  <font style="font-size: 12px;margin-left: -3">维护费通知</font>
348              </span>
349         </span>
350         <%}%>
351         <span class="icon-logintime"
a7ad61 352                       style="padding-left: 20px;margin-right: 10px;">登录时间:<%=session.getAttribute(SessionKey.LOGIN_TIME) %></span>
dff633 353         <a class="icon-exit" style="padding-left: 20px; color: white" onclick="logout();" href="#">安全退出</a>
a7ad61 354                  &nbsp;&nbsp;欢迎&nbsp;<a class="userwh"
dff633 355                                        style="color: white;font-weight:900;"><%=session.getAttribute(SessionKey.USERNAME)%></a>
X 356     </span>
a6a76f 357 </div>
a7ad61 358 <div data-options="region:'west',split:true" id="home_west"
X 359      style="width:210px;padding1:1px;border:0px;overflow: hidden;">
360     <div class="easyui-tabs" id="nagigation" fit="true" border="false">
361         <%
362             if (checkBoxIsChecked(2, menuConfig)) {//显示树菜单
363         %>
25947e 364         <div id="home" title="主菜单"  <%=checkBoxIsChecked(4096,menuConfig)?"selected=\"true\"":""%> style="padding:0px;">
0ab603 365             <ul id="homePageTree" style="padding-top:10px;padding-left:10px;padding-bottom: 20px">
a7ad61 366             </ul>
X 367         </div>
368         <%
369             }
370         %>
ae86ad 371         <div id="home2" title="常用" <%=checkBoxIsChecked(8192,menuConfig)?"selected=\"true\"":
X 372                 (!checkBoxIsChecked(4096,menuConfig)&&!checkBoxIsChecked(8192,menuConfig)?"selected=\"true\"":"")%> fit="true" style="overflow: hidden;">
a7ad61 373             <div class="easyui-accordion" style="width: auto;" fit="true" border="false">
X 374                 <%
375                     if (checkBoxIsChecked(4, menuConfig)) {//小图标导航菜单
376                 %>
cdeccd 377                 <div id="divicon" title="图标菜单 " style="width:100%;height: 100%;overflow:hidden">
a7ad61 378                     <iframe id="iconMenu" name="iconMenu" src="/general/home/iconMenu.jsp" width="100%" height="100%"
X 379                             scrolling="no" frameborder="0"></iframe>
380                 </div>
381                 <%
382                     }
383                 %>
384                 <%
385                     if (checkBoxIsChecked(8, menuConfig)) {//树菜单
386                 %>
387                 <div title="树菜单 " style="width:100%;height: 100%;">
388                     <ul id="homePageTree2" style="padding-top:10px;padding-left:5px;">
389                     </ul>
390                 </div>
391                 <%
392                     }
393                 %>
394                 <%
395                     if (checkBoxIsChecked(32, menuConfig)) {//流程图菜单
396                 %>
397                 <div title="流程图菜单" style="width:100%;height: 100%;overflow:auto" id="divl">
398                     <iframe id="flowChartTree" name="recentlyBrowser" src="<%= hostUrl %>/mxgraph/TaskMenu.jsp"
399                             width="100%" height="100%" frameborder="0"></iframe>
400                 </div>
401                 <% } %>
cdeccd 402                 <div title="最近浏览" style="width:100%;height: 100%;overflow: hidden;" id="divn">
a7ad61 403                     <iframe id="recentlyBrowser" name="recentlyBrowser"
X 404                             src="<%= hostUrl %>/general/home/recentlyBrowser.jsp" width="100%" height="100%"
cdeccd 405                             frameborder="0" scrolling="no"></iframe>
a7ad61 406                 </div>
X 407             </div>
408         </div>
409     </div>
410 </div>
411 <div data-options="region:'center'" id="home_center" style="overflow:hidden;">
412     <div id="home-tabs" id="pages" class="easyui-tabs" data-options="fit:true" border="false">
413         <div id="desktop_div" title="桌面" style="padding:0px;overflow: hidden;">
414             <iframe id="desktopiframe" name="desktopiframe" src="/general/home/desktop.jsp" width="100%" height="100%"
415                     frameborder="0"></iframe>
416         </div>
41f737 417         <div id="Approval_div" title="审批导航" style="padding:0px;">
X 418             <iframe id="uui" name="uui" src="/general/home/ApprovalPage.jsp" width="100%" height="100%"
a7ad61 419                     frameborder="0"></iframe>
X 420         </div>
421         <%
422             if (checkBoxIsChecked(16, menuConfig)) {//图标导航菜单
423         %>
424         <div id="iconMenu_div" title="图标导航" style="padding:0px;">
425             <iframe id="iconMenuCenter" name="iconMenuCenter" src="/general/home/iconMenuCenter.jsp" width="100%"
426                     height="100%" frameborder="0" onload="toScrollFrame('#iconMenuCenter', '#iconMenu_div');"></iframe>
427         </div>
428         <%
429             }
430         %>
41f737 431         <% if (checkBoxIsChecked(256, menuConfig)) {//日历管理菜单%>
a7ad61 432         <div id="fullcalend_div" title="日历管理" style="padding:0px;">
X 433             <iframe id="iconMenuCenter" name="iconMenuCenter" src="/personalized/template/0/fullcalendarte.jsp"
434                     width="100%" height="100%" frameborder="0"></iframe>
435         </div>
436         <% } %>
437     </div>
438 </div>
439 <div id="shortcutsM" style="width:150px;" onclick="return false;">
e0f3d5 440 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 441     <div iconCls="icon-customizeDesktop">
a7ad61 442         <span>桌面相关设置</span>
X 443         <div style="width:150px;">
75fbdf 444             <div iconCls="icon-customizeDesktop" onclick="deskTopShow('定制桌面','/general/personalized/manager/personnalized.jsp',550,400,function(obj){if(obj)$('#desktopiframe').attr('src',$('#desktopiframe').attr('src'));})">
a7ad61 445                 定制桌面
X 446             </div>
25947e 447             <div iconCls="icon-MenuDisplay"onclick="deskTopShow('菜单显示设置','/general/menuConfig.jsp',450,500)">菜单显示设置</div>
a7ad61 448             <%
X 449                 /**********超级管理员显示桌面数据源列表start-jd65MRqYdG2ZjWn2bSytidmF-**************/
450                 if ("1".equals(isSuperUser)) {
451             %>
75fbdf 452             <div iconCls="icon-DesktopDataSource" onclick="deskTopShow('桌面数据源列表','/personalized/manager/desktopList.jsp',750,520,'',{modal:false})">
a7ad61 453                 桌面数据源列表
X 454             </div>
455             <%
456                 }
457                 /**********超级管理员显示桌面数据源列表end***********/
458             %>
459         </div>
460     </div>
461     <%
462         String loginType = (String) session.getAttribute(SessionKey.LOGIN_TYPE);
463         String isStopSystem = (String) session.getAttribute(SessionKey.isStopSystem);
464         if ("0".equalsIgnoreCase(loginType)) {
465     %>
75fbdf 466     <div iconCls="icon-ChangePassword" onclick="addTab('',301114,22)">修改登录号密码</div>
a7ad61 467     <%
X 468
469         if (!"1".equals(isSuperUser) && perssion.get("9910") != null) {
470     %>
75fbdf 471     <div iconCls="icon-ActingReviewer" onclick="addTab('',9910,22)">设置代理审核人</div>
a7ad61 472     <%
X 473         }
474     %>
475     <%} else if ("1".equalsIgnoreCase(loginType)) { %>
75fbdf 476     <div iconCls="icon-ChangePassword" onclick="addTab('',301114,22)">修改客户号密码</div>
a7ad61 477     <%} else { //301135是以前修改工号对应的功能号,现在修改为301134 /demo/demoList.jsp%>
37efc8 478 <%--    <div iconCls="icon-ChangePassword" onclick="addTab('',301134,22)">修改工号密码</div>--%>
X 479     <% //上面调用301134功能号的已经不用,现在统一改成301114功能号 xin 2022-5-19 14:38:12%>
480     <div iconCls="icon-ChangePassword" onclick="addTab('',301114,22)">修改工号密码</div>
7c0d2b 481
a7ad61 482     <%
X 483         }
7c0d2b 484         %>
F 485     <%
486         if("deli".equals(dataSourceEntity.getDockingSystem())){
487             String superUser = (String) session.getAttribute(SessionKey.SUPPER_USER);//管理员
488             if ("1".equals(isSuperUser)||"1".equals(superUser)) {
a7ad61 489     %>
193788 490     <div iconCls="icon-DataSourceSettings" onclick="addTab('德立账号绑定','','','','/general/deliauth.jsp','','');">
F 491         德立账号绑定
492     </div>
7c0d2b 493     <%}}%>
F 494     <%
495         if ("1".equals(isSuperUser)) {
496     %>
75fbdf 497     <div iconCls="icon-ActingReviewer" onclick="addTab('',9910,22)">设置代理审核人</div>
X 498     <div iconCls="icon-userManagement">
a7ad61 499         <span>用户管理设置</span>
X 500         <div style="width:150px;">
becc83 501             <div iconCls="icon-APPUserManagement" onclick="addTab('APP用户管理','','','','/app/<%=dbid%>/0/cnzh/9684/1/index.jsp','','');">APP用户管理</div>
75fbdf 502             <div iconCls="icon-SystemMessage"onclick="addTab('消息管理','','','','/public/staticform/9672/18/message.jsp','','');">系统消息管理</div>
a7ad61 503         </div>
X 504     </div>
75fbdf 505     <div iconCls="icon-OnlineUser">
a7ad61 506         <span>在线用户</span>
X 507         <div style="width:150px;">
75fbdf 508             <div iconCls="icon-OnlineUser" onclick="addTab('在线用户','','','','/general/userOnLineStatistic/onLineUser.jsp','',{isFlowChart:true});">
a7ad61 509                 在线用户
X 510             </div>
75fbdf 511             <div iconCls="icon-Numberofonlineusers" onclick="deskTopShow('onbus查询人数登录','/general/userOnLineStatistic/onBusLULogin.jsp',550,400,function(obj){if(obj)$('#desktopiframe').attr('src',$('#desktopiframe').attr('src'));})">
a7ad61 512                 系统在线人数
X 513             </div>
514         </div>
515     </div>
e0f3d5 516 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 517     <div iconCls="icon-DataSourceSettings" onclick="deskTopShow('数据源登录','/shujuLogin.jsp',550,400,function(obj){if(obj)$('#desktopiframe').attr('src',$('#desktopiframe').attr('src'));})">
a7ad61 518         数据源设置
X 519     </div>
520     <!-- <div onclick="versionUpdate()"> 版本升级</div> -->
75fbdf 521     <div iconCls="icon-VersionUpgrade" onclick="deskTopShow('版本升级','/versionUpdate/isupdate.jsp',550,520,'')">版本升级</div>
074b0e 522     <div iconCls="icon-GlobalSettings" onclick="addTab('选项','','','','/general/appSettings.jsp','',{isFlowChart:true});">选项</div>
75fbdf 523     <div iconCls="icon-GlobalSettings" onclick="addTab('全局配置','','','','/general/sysconfig.jsp','',{isFlowChart:true});">全局配置</div>
e0f3d5 524 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
X 525     <div iconCls="icon-hold-all">
526         <span>工具</span>
527         <div style="width:150px;">
528             <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
529             <div iconCls="icon-FlowChartDesign" onclick="window.open('/mxgraph/index.jsp');">流程图设计</div>
530             <div iconCls="icon-FlowChartDesignMun" onclick="addTab('流程图菜单权限配置','','','','/mxgraph/flowChartPermit_userList.jsp','',{isFlowChart:true});">
531                 流程图菜单权限配置
532             </div>
533             <div iconCls="icon-WatermarkImage"  onclick="addTab('水印图片管理','','','','/general/imageWaterMarkManager.jsp','',{isFlowChart:true});">水印图片管理</div>
534             <div iconCls="icon-InversePolish" onclick="addTab('逆波兰式','','','','/general/rpn.jsp','',{isFlowChart:true});">转换逆波兰式</div>
535             <div iconCls="icon-LogisticsTracking" onclick="addTab('物流跟踪','','','','/general/LogisticsTracking.jsp','',{isFlowChart:true});">物流跟踪</div>
536             <div iconCls="icon-cron-expression" onclick="addTab('Cron表达式生成器','','','','/general/cron.html','',{isFlowChart:true});">Cron表达式生成器</div>
537         </div>
538     </div>
539     <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 540     <div iconCls="icon-logs">
a7ad61 541         <span>日志</span>
X 542         <div style="width:150px;">
75fbdf 543             <div iconCls="icon-UserLoginLogs" onclick="addTab('',9798,18);">用户登录日志</div>
X 544             <div iconCls="icon-SystemErrorLogs" onclick="addTab('',9793,18);">系统错误日志</div>
545             <div iconCls="icon-ImportAndExportLogs" onclick="addTab('',9742,18);">导出导入日志</div>
546             <div iconCls="icon-QueryAuditLogs" onclick="addTab('',9647,18);">查询审计日志</div>
547             <div iconCls="icon-AttachmentDeleLogs" onclick="addTab('',9747,18);">附件删除日志</div>
548             <div iconCls="icon-SlowQueryLogs" onclick="addTab('',9966,18);">慢查询日志</div>
a7ad61 549         </div>
X 550     </div>
e0f3d5 551 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 552     <div iconCls="icon-InstallationCertificate" onclick="window.open('/dibang/InstallDiBangCert.jsp');">安装证书</div>
X 553     <div iconCls="icon-mailbox" onclick="addTab('邮箱主页','','','','/mail/index.jsp','','');">邮箱</div>
554     <div iconCls="icon-ShoppingGuide" onclick="window.open('/shopping/');">导购</div>
555     <div iconCls="icon-DeleteRecord" onclick="addTab('',9744,18);">删除记录回收站</div>
a7ad61 556     <%} %>
X 557     <%
558         if (!"1".equals(isSuperUser) && perssion.get("9744") != null) {
559     %>
75fbdf 560     <div iconCls="icon-DeleteRecord" onclick="addTab('',9744,18);">删除记录回收站</div>
a7ad61 561     <%
X 562         }
563     %>
29a053 564     <% if ("1".equals(isSuperUser)||(isStopSystem != null && "1".equals(isStopSystem))) { %>
e0f3d5 565 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 566     <div iconCls="icon-StartStopSystem" onclick="addTab('启停系统','','','','/shopping/maintaince/maintaince.jsp','','');">启停系统</div>
29a053 567     <% }
F 568      if("1".equals(isSuperUser)){%>
e0f3d5 569 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 570     <div iconCls="icon-SendSystemMessages" onclick="addTab('发送系统级消息','','','','/shopping/maintaince/messagelist.jsp','','');">发送系统级消息</div>
X 571     <div iconCls="icon-MaintenanceSystemConfiguration" onclick="addTab('维护系统配置','','','','/shopping/maintaince/systemconfig.jsp','','');">维护系统配置</div>
a7ad61 572     <% } %>
e0f3d5 573 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
75fbdf 574     <div iconCls="icon-ClearBrowserCache" onclick="addTab('浏览器缓存','','','','/help/chrome.html','',{isFlowChart:true});">清除谷歌浏览器缓存</div>
e0f3d5 575 <%--    <div class="menu-sep" id="fromIdSP"></div>--%>
a7ad61 576     <div iconCls="icon-undo" onclick="location='/general/loginOut.jsp';">安全退出</div>
X 577 </div>
578 <div id="mm2" style="width:100px;">
75fbdf 579     <div iconCls="icon-OperationManual" onclick="window.open('/help/help.html')">操作手册</div>
X 580     <div iconCls="icon-ViewVersionUpdates" onclick="addTab('版本更新','','','','/general/home/version.jsp','','');">版本更新</div>
a7ad61 581     <div iconCls="icon-help" onclick="addTab('关于巴士软件','','','','/general/about.jsp','','');">关于</div>
X 582 </div>
583 <div id="tabContextMenu" class="easyui-menu" style="width:150px;">
584     <div id="tabclose">关闭</div>
585     <div id="tabcloseall">全部关闭</div>
586     <div id="tabcloseother">除此之外全部关闭</div>
587     <div class="menu-sep"></div>
588     <div id="tabcloseleft">当前页左侧全部关闭</div>
589     <div id="tabcloseright">当前页右侧全部关闭</div>
590 </div>
a6a76f 591 <div class="help-container">
a7ad61 592     <div class="help-icon-container animate">
a6a76f 593     <span class="a">
F 594       <i class="iconfont icon-liaotian1" style="font-size: 40px;"></i>
595     </span>
596     </div>
a7ad61 597     <div class="ai-container">
a6a76f 598
a7ad61 599         <header>
X 600             <h3 class="h3">智能小助手</h3>
601             <div class="header-content">
602                 <i class="iconfont icon-guanbi close-dialog"></i>
603             </div>
604         </header>
605         <div class="ai-content">
606             <ul class="msgs-ul">
607                 <li class="msgs-li">
608                     <i class="iconfont icon-kefu1 avator"></i>
609                     <div class="msg-content">
610                         您是否遇到了页面排版错误,下拉菜单不显示等问题?
611                         <div class="ui-btn-group">
612                             <button id="repairLayout" class="ui-btn ui-btn-primary msg-li-btn">点我一键解决</button>
613                         </div>
493df4 614                         <div class="ui-btn-group">
F 615                             <button id="reloadLayout" class="ui-btn ui-btn-primary msg-li-btn">还原表格布局</button>
616                         </div>
a7ad61 617                     </div>
X 618                 </li>
619             </ul>
620         </div>
621     </div>
622 </div>
6ac0ba 623
a7ad61 624 <script type="text/javascript">
f7a431 625     var approvedDoc={
F 626         nextDoc:null,//跳转到下一单审核(功能号;类型;单号)
1e0051 627         excludeDocs:null,//通过下一单而打开的单据,用户不审核而是直接点下一单按钮时需要把当前的单号加到排除列表传回后台,避免循环输出前面的单号
7ea830 628         index:null//保存当前页卡的索引,用来刷新页卡标题,避免出现页面还没重新加载完就切换到其他页卡时,把标题更新到其他地方 by danaus 2022-11-15 下午 3:27
f7a431 629     };//下一单对象
1e0051 630     approvedDoc.getCurTabsIndex=function (){
F 631         var tab = $('#home-tabs').tabs('getSelected');
632         var index = $('#home-tabs').tabs('getTabIndex',tab);
633         this.index=index;
7ea830 634         //console.log("set-index:"+this.index);
1e0051 635     }
a7ad61 636     var expireDate = new Date();
X 637     expireDate.setTime(expireDate.getTime() + (100 * 60 * 60 * 1000));
638     $.cookie("dbid", '<%=session.getAttribute(SessionKey.DATA_BASE_ID)%>', {expires: 7});
639     $.cookie("dbstr", '<%=session.getAttribute(SessionKey.DATABASE_DIS)%>', {expires: 7});
640     var parent_open = "true";
f67fb2 641     hostUrlCopy = "<%=hostUrl%>/copyurl.do";
a7ad61 642     <%//添加hostUrl属性是为了在单据里面赋值链接需要到----2018-9-4 17:50:10 xin%>
X 643     var jsHRCode = "<%=session.getAttribute(SessionKey.HRCODE)%>";
644     var userType = "<%=session.getAttribute(SessionKey.SUPPER_USER)%>";
645     var spellPath = "/<%=session.getAttribute(SessionKey.DATA_BASE_ID)%>/<%=session.getAttribute(SessionKey.VERSION_ID)%>/<%=session.getAttribute(SessionKey.SYSTEM_LANGUAGE)%>/";
dff633 646     var userCode = "<%=userCode%>";
a7ad61 647     var menuConfig =<%=menuConfig%>;
X 648     var tranOk = false;
649     var maxl = 20;
7f7112 650     var isGridOpen=null;
a7ad61 651     var errShow = {
X 652         close: function (i) {
653             $('#' + i).window('close');
654         },
655         open: function (i) {
656             var $win;
657             $win = $('#' + i).window({
658                 top: ($(window).height() - 350) * 0.5,
659                 left: ($(window).width() - 680) * 0.5,
660                 shadow: true,
661                 modal: true,
662                 iconCls: 'icon-info',
663                 closed: true,
664                 minimizable: false,
665                 maximizable: false,
666                 collapsible: false
667             });
668             $win.window('open');
669             //    $('#'+i).window('open');
670             $('#' + i).css("display", "block");
671         },
672         d: function (i) {
673             return document.getElementById(i);
674         },
675         erClose: function (op) {
676             if (op == 'ok') {
677                 this.frame.commitIs(tranOk, 1);
678             }
679             this.frame.btn_OK(op);
680             this.close('er_show');
681         },
682         show_divErro: function (showIs, fl) {
683             if (typeof (showIs) == "boolean") {
684                 this.frame.closeLoading();
685                 return;
686             }
687             tranOk = fl;
688             this.frame.closeLoading();
689             var s_ = showIs.split(";pb#");
690             if (s_[0] == 1 || s_[0] == 0) {
2bf739 691                 //解决执行取消确认,撤回,弹出数据范围检查窗口,点确认当前执行是哪一个操作的状态丢失,增加了从后台返回相关状态
F 692                 // by danaus 2021/5/27 16:48
693                 if(s_[2]!=undefined&&s_[2]!=""){
694                     if(s_[2]=="canel"){
695                         this.frame.mygrid.iscanelProc=true;
696                     }else  if(s_[2]=="revoke"){
697                         this.frame.mygrid.isrevokeProc=true;
59226b 698                     }else  if(s_[2].indexOf("onlinePay")>-1){
5af59e 699                         var pay =s_[2].split("=");
F 700                         if(pay[1]==1) {
701                             //表示有在线支付的标记返回
702                             //onlinePay==1,表示需要弹出二维码,由于弹出二维码需要重新调用一次保存save(2)且dcFlag=1(跳过数据范围检查)
703                             tranOk = 2;//表示保存操作
704                         }
2bf739 705                     }
F 706                 }
a7ad61 707                 this.d('err_mess').innerHTML = s_[1];//s_[1];
X 708                 if (s_[0] == 1) {
709                     $('#er_queding').css("display", "none");
710                 } else {
711                     $('#er_queding').css("display", "inline-block");
712                 }
713                 this.open('er_show', 20, 30);
714             } else {
715                 this.frame.commitIs(tranOk, 1);
716                 $('#er_queding').css("display", "inline-block");
717                 //if($('#er_queding').css("display")=="none"){
718                 //$('#er_queding').css("display","inline-block");
719                 //}
720             }
721         },
722         show: function (id, max) {
723             var isv = this.frame.getDoc(id + 'Text', '.value');
724             maxl = max;
725             this.d('w_content').value = this.frame.doc(id).value;
726             this.d('w_show_id').value = id;
727             this.d('w_show_ok').style.display = (isv == "1") ? "" : "none";
728             this.open('w');
729         }, showOk: function () {
730             this.frame.doc(this.d('w_show_id').value).value = this.d('w_content').value;
731             this.close('w');
732         },
733         photoshow: function (id, pant, obj) {
7f7112 734             // if (obj.type == 40) {   //判断如果是40,类型就显示查看图片
X 735             //     if (!showModalImg(pant, 9,function(){
736             //         showModal(id, pant);
737             //         picevent('fileUpload', 'grid', obj);
738             //     })) {
739             //         return false;
740             //     }
741             // } else if (obj.type == 9 || obj.type == 19) {   //如果是9或19类型,就显示上传控件和功能键
742             //         showModal(id, pant);
743             //         picevent('fileUpload', 'grid', obj);
744             // }
745             // $('#picModal').modal('show');
746             // $('#picModal').on('hidden.bs.modal', function () {
747             //     //alert(mygrid);
748             // })
749             if(isGridOpen){
750                 return false;
a7ad61 751             }
7f7112 752             gridFileInputRow=obj;
X 753             gridFileInputVal=pant;
754             isGridOpen=layui.layer.open({
755                 type: 2,
756                 area :['calc(100% - 260px)','calc(100% - 120px)'],
757                 offset: ['100px', '220px'],
758                 title: false,
759                 move:true,
760                 moveOut:true,
761                 content: '/general/gridFileInput.jsp',
762                 cancel :function(index, layero){
763                     isGridOpen=null;
764                     layui.layer.close(index);
765                 }
766             });
a7ad61 767         }
X 768 //                 showOk:function(){
769 //                      this.frame.doc(this.d('w_show_id').value).value=this.d('w_content').value;
770 //                      this.close('w');}
771     };
772     var dibangBug = {isBug: "1"};
773     window.onunload = function ExecA() {
774         try {//关闭端口
775             if (ActiveXDrive) {
776                 if (dibangBug.isBug == "1") {
777                     if (confirm("正要关闭地磅端口,是否继续?")) {
778                         ActiveXDrive.CloseComm();
779                     }
780                 } else {
781                     ActiveXDrive.CloseComm();
782                 }
783             }
784         } catch (e) {
785         }
786     }
787
788     //
789     function setGridPic(val, obj) {
790         if (val != "" && val != undefined) {
791             var t = Grids[obj.id];
792             t.SetValue(obj.row, obj.col, val, 0);
793             t.RefreshCell(obj.row, obj.col);
794         }
795     }
796
797     //控件长大限制 2014-7-31 16:12:46
798     function isChinese(str) {
799         while (str.value.replace(/[^\x00-\xff]/g, '**').length > maxl) str.value = str.value.slice(0, -1);
800     }
801
802     function checkBoxIsChecked(config, configValue) {
803         if ((config & configValue) > 1) {
804             return true;
805         }
806         return false;
807     }
808     $(function () {
809         if (1 ==<%= ((request.getAttribute("reurl")!=null || request.getAttribute("wxUrl")!=null
810                    ||request.getParameter("wx")!=null || request.getAttribute("wx")!=null ) ? 1: menuFold) %>) {
811             $('body').layout('collapse', 'west');
812             $('body').layout('expand', 'west');
813             $('body').layout('collapse', 'west');
814         }
815         //维护用户管理
816         $('.userwh').on('click', function () {
dff633 817             addTab('维护【<%=session.getAttribute(SessionKey.USER_NAME)%>】用户', '9672', '16', 'usercode='+userCode+'&logontype=<%=session.getAttribute(SessionKey.LOGIN_TYPE)%>', '', '', '');
X 818         })
819         $(".icon-tixing").on("click",function(){
820             addTab('支付维护费','150371','5','','','','');
a7ad61 821         })
f67fb2 822 <%
X 823     //下面是重定向跳转的(包括复制链接) xin 2021-9-16 11:11:26
824     String redirect = request.getParameter(SettingKey.REDIRECT); //  getAttribute(SettingKey.REDIRECT)==null?"":(String)request.getAttribute(SettingKey.REDIRECT) ;
825     if (redirect != null) {
826         redirect = com.yc.utils.EncodeUtil.base64Decode(redirect);
827         redirect = redirect.replace("%2F", "/");
828         Map<String, Object> map = RandomString.getRequestParameters(redirect);
829         String formname = (String) map.get("formname");
830         if (formname == null){
831             formname = "";
832         }else{
d838c7 833             if(redirect.indexOf("&")!=-1){
X 834                  redirect=redirect.substring(0,redirect.indexOf("&"));
835             }
f67fb2 836         }
X 837         if (!"".equalsIgnoreCase(redirect)) {
838 %>
839             addTab("<%=formname%>", "", "", "", "<%=redirect%>");
840 <%
841         }
842     }
843     if (request.getAttribute("wxUrl") != null) {
844         String url = (String) request.getAttribute("wxUrl");
845         url = com.yc.utils.EncodeUtil.base64Decode(url);
846         String[] str = url.split("#p#");
847 %>
848         addTab("", <%=str[0]%>, <%=str[1]%>, "where=<%=str[2]%>");
849
850 <%  }%>
b9982b 851
X 852         $('#downloadAPP').popover({
853             trigger:'click',//'hover focus',//focus,click 触发方式
854             placement : 'bottom',//显示方向
855             html: 'true',   //显示内容可以写标签在里面
856             //title:'单据二维码',//设置 弹出框 的标题
857             content:'<img src="/images/login/appqr.jpg">'
858         });
a6d530 859         $('#expireId').popover({
31b3e3 860             trigger:'click',//'hover',
a6d530 861             placement : 'bottom',//显示方向
X 862             html: 'true',   //显示内容可以写标签在里面
863             content:'<%=expireText%>'
31b3e3 864         }).on('shown.bs.popover', function () {
X 865             $(".icon-guanbi").on('click',function () {
866                 $('#expireId').popover('hide');
867             })
a6d530 868         });
X 869         $('#expireId').popover('show');
31b3e3 870         // setTimeout(function () {
X 871         //     $('#expireId').popover('hide');
872         // },5000);
41f737 873
X 874         //页卡显示默认设置 xin 2022-5-20 10:14:58
875         let indexOpen = 0;
876         let tableOpen = "<%=menuConfig%>";
877         tableOpen = tableOpen != null ? parseInt(tableOpen) : 0;
878         if ((64 & tableOpen) > 0) {        //图标导航
879             if((16 & tableOpen) > 0){//图标导航有显示
880                 indexOpen = '图标导航';
881             }
882         } else if ((512 & tableOpen) > 0) {//审批导航
883             indexOpen = 1;
884         } else if ((1024 & tableOpen) > 0) {//日历管理
885             if((256 & tableOpen) > 0){//日历管理有显示
886                 indexOpen = '日历管理';
887             }
888         }else if ((2048 & tableOpen) > 0) {//桌面
889             indexOpen = 0;
890         }
891         $('#home-tabs').tabs('select',indexOpen);
a7ad61 892     });
X 893     //去除空格
894     String.prototype.Trim = function () {
895         var v_ = this.replace(/(^\s*)|(\s*$)/g, "");
896         v_ = v_.replace(/^v_.charAt(v_.length-1)*$/g, "");
897         var value = "";
898         for (var i = 0; i < v_.length; i++) {
899             if (v_.charAt(i) != v_.charAt(v_.length - 1)) {
900                 value += v_.charAt(i);
901             }
902         }
903         return value;
904     }
905     <%
906     if(session.getAttribute(SessionKey.DIBANG).toString().equals("1")){
907     %>
908     if (!$.browser.msie) { // 不是IE浏览器
909         alert('地磅需要用ie浏览器');
910     } else {
911         document.body.innerHTML += "<div id=\"dingbang_div\" style=\"position: absolute;z-index: 99;margin-top: 0px;margin-left: 300px;overflow:hidden;background-color: white;width: 650px;height: 30px;\"><OBJECT ID=\"ActiveXDrive\"  classid=\"clsid:4228D60E-D741-41AD-911C-4BB5A07FE1EF\" CODEBASE=\"DiBang.cab#version=1,0,0,26\"></OBJECT></div>";
912         var ActiveXDrive = document.getElementById("ActiveXDrive");
913         try {
914             ActiveXDrive.setWinFontSize(16);
915             ActiveXDrive.setWinHeight(200);
916             ActiveXDrive.setWinWidth(1600);
917             $.post("/getDiBang.do", {
918                 "ip": ActiveXDrive.getLocalIPAddress(),
919                 "MacAddress": ActiveXDrive.getLocalMacAddress(),
920                 "hostname": ActiveXDrive.getLocalHostName()
921             }, function (data) {
922                 var vsd = data.split(",");
923                 var map = {};
924                 var vs = null;
925                 for (var i = 0; i < vsd.length; i++) {
926                     vs = vsd[i].split(":");
927                     map[vs[0]] = vs[1];
928                 }
929                 if (map.hasParm == "1") {//有设置
930                     if (map.isdebug != "1") {
931                         dibangBug.isBug = "0";//非调试
932                         ActiveXDrive.style.width = '110px';
933                         ActiveXDrive.style.height = '30px';
934                         $("#dingbang_div").css({"margin-left": "600px", "width": "110px"});
935                     }
936                     //**********************以下参数需要从数据库中取出来设置上去**********************/
937                     ActiveXDrive.setDecimals(parseInt(map.decimals));          //小数位数: 1 表示1个小数位,2,表示2个小数位
938                     ActiveXDrive.setEloadPrebits(parseInt(map.eloadprebits));      //从第1个字符开始丢弃的字符个数
939                     ActiveXDrive.setEloadbits(parseInt(map.eloadbits));         //连续取字符串长度
940                     ActiveXDrive.setBufferLength(parseInt(map.bufferlength));    //缓冲区长度
941                     ActiveXDrive.setNewLineSepChar(parseInt(map.newlinesepchar));    //换行分隔符
942                     ActiveXDrive.setEnterkeySepChar(parseInt(map.enterkeysepchar));   //回车分隔符
943                     ActiveXDrive.setOtherSepChar(map.othersepchar);    //其它分隔符.
944                     ActiveXDrive.setIsReservChar(parseInt(map.isreservchar));      //是否反转显示字符串
945
946                     ActiveXDrive.setPortNum(parseInt(map.portnum));     //端口号 , 1 表示 com1 , 2 表示 com1 以此类推
947                     ActiveXDrive.setBandRate(parseInt(map.bandrate));  //设置波特率 , 缺省 2400
948                     ActiveXDrive.setDataBit(parseInt(map.databit));     //数据位 , 缺省 8
949                     ActiveXDrive.setParity(map.parity);    //奇偶校验 , n 表示NONE 无.
950                     ActiveXDrive.setStopBit(parseInt(map.stopbit));     //停止位 ,缺省 1
951                     if (map.isrndstart == "1") {
952                         ActiveXDrive.RndStart();//启动随机数
953                     }
954                     //************************结束设置参数 *************************************/
955                     ActiveXDrive.OpenComm();
956                 } else {
957                     alert("可能您的地磅参数未与本机\r\n\r\n\tIP: " + ActiveXDrive.getLocalIPAddress() + " 地址\r\n或\r\n\t主机名: " + ActiveXDrive.getLocalHostName().Trim() + "\r\n\r\n关联,请与系统管理员联系。");
958                 }
959             });
960         } catch (e) {
961         }
962     }
963     <%
964     }
965     %>
966
967     function logout() {
968         $.messager.confirm('提示', '是否退出系统?', function (r) {
969             if (r) {
970                 location = '/general/loginOut.jsp'
971             }
972         });
973     }
974
975     function toScrollFrameM(iFrame) {//解决ipad中iframe无滚动条问题
0c9a5e 976         if (treeTab.length > 0) {//解决特殊窗体的加载显示问题 xin 2022-4-18 14:53:19
X 977             let iF = $(iFrame);
978             if (iF != null && iF[0].clientHeight > 0 && iF[0].clientWidth > 0) {
979                 let index = $.inArray(iFrame.replace('#', ''), treeTab);
980                 if (index != -1) {
981                     treeTab.splice(index, 1);
982                 }
983             }
984         }
f7a431 985         try {
32ebda 986             if (($($($(iFrame + " >iframe"))[0]).attr("t_grid")!=undefined&&$($($(iFrame + " >iframe"))[0]).attr("t_grid")!="")
F 987                 ||($($($(iFrame + " >iframe"))[0]).attr("posttothis")!=undefined&&$($($(iFrame + " >iframe"))[0]).attr("posttothis")!="")) {
988                 //格线调用或面板调用
f7a431 989                 //表明当前页面是由三点弹出打开,需要显示选择按钮 by danaus 2022/7/25 17:23
F 990                 $($($(iFrame + " >iframe"))[0].contentWindow.document).find("#tpselect").show();
991             }
992         }catch (e){
993             console.log("tpselect:"+e);
994         }
a7ad61 995         return true;
X 996     }
997
998     //设置“桌面”,“图标导航”,“日历管理” 3个页卡的高度,如果不设置高度,遇到 chrome 低版本时(如 for xp )时页面只显示上半截 ,Added by Johns Wang,2018-12-04
999     function resizeiFrameHeight() {
1000         var iFrameHeight = $('#home-tabs').height();
1001         $("#desktopiframe,#iconMenuCenter,#iconMenuCenter").css("height", parseInt(iFrameHeight) - 40);
1002     }
1003
1004     $(window).resize(function () {
1005         resizeiFrameHeight();
1006     });
1007     $(document).ready(function () {
1008         // 选取id="nagigation"下的第一代class元素,将背景颜色设为#E0ECFF
1009         $('#nagigation >.tabs-header').css('backgroundColor', '#E0ECFF');
1010         resizeiFrameHeight();
1011     });
1012     $(function () {
6fe1e6 1013           initWebsocket('<%= hostUrl.replace("https", "wss").replace("http", "ws") %>','<%=session.getAttribute(SessionKey.HRCODE)%>',<%=dbid%>,'<%= session.getId() %>');
a7ad61 1014     });
X 1015 </script>
1016 </body>
1017 </html>