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