2024-12-05 14:34:51 +08:00

131 lines
6.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.tenwa.httpclient.resources.QuartzPropertiesUtil" %>
<%
request.setAttribute("as_main", new com.amarsoft.awe.ui.layout.ASMain(CurPage).init(null).setTitle(PG_TITLE).setContentTitle(PG_CONTENT_TITLE).setContnetText(PG_CONTNET_TEXT).setLeftWidth(PG_LEFT_WIDTH));
boolean bFlag = false;
List<String> roles = CurUser.getRoleTable();
String distributorRole = QuartzPropertiesUtil.get("distributor_role");
distributorRole = distributorRole == null ? "" : distributorRole;
for (String role : roles) {
if (distributorRole.indexOf(role) != -1) {
bFlag = true;
break;
}
}
%><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${as_main.title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<%@
include file="/Frame/page/jspf/include/jsp_head_res.jspf"
%>
<script type="text/javascript" src="${as_main.page.application}/js/jquery-ui/external/jquery/jquery.js"></script>
<script type="text/javascript" src="${as_main.page.application}/js/jquery-ui/jquery-ui.js"></script>
<script type='text/javascript' src='${as_main.page.application}/Frame/resources/js/jquery/plugins/jquery.bgiframe.js'></script>
<script type="text/javascript" src="${as_main.page.application}/Frame/resources/js/dialog/dialog-min.js"></script>
<script type="text/javascript" src="${as_main.page.application}/Frame/page/js/widget/main.js"></script>
<link rel="stylesheet" type="text/css" href="${as_main.page.application}/Frame/page/resources/css/comp_dialog.css">
<link rel="stylesheet" type="text/css" href="${as_main.page.application}${as_main.page.user.skin.path}/css/comp_dialog.css">
<link rel="stylesheet" type="text/css" href="${as_main.page.application}/Frame/page/resources/css/widget/main.css"/>
<link rel="stylesheet" type="text/css" href="${as_main.page.application}${as_main.page.user.skin.path}/css/widget/main.css"/>
<link rel="stylesheet" type="text/css" href="${as_main.page.application}/Frame/page/resources/css/message.css"/>
</head>
<body>
<div id="main_top" class="main_top"${as_main.topStyle}>
<div class="main_logo"></div>
<div id="main_menu">${as_main.menuHtml}</div>
<div id="main_sys" class="main_sys">
<ul>
<li>${as_main.homeHtml}</li>
<%-- <li class="main_skin">${as_main.skinHtml}</li> --%>
<li id="main_userinfo">${as_main.userHtml}</li>
<%
if (!bFlag) {%>
<li><a href="javascript:void(0)"
onclick="setFlowOperatorUser();return false;">&nbsp;<%=LanguageManager.getLanguage("awe/system", CurPage.getUser().getLanguage(), "ί<><CEAF>")%>&nbsp;</a>
</li>
<%
}
%>
<!-- <20><>ʱ<EFBFBD><CAB1><EFBFBD>ṩվ<E1B9A9><D5BE><EFBFBD><EFBFBD> by zhulh 2018/07/17 -->
<%-- <li><a href="javascript:void(0)" id="messageNumber" onclick="showMesssage();return false;">&nbsp;<%=LanguageManager.getLanguage("awe/system",CurPage.getUser().getLanguage(),"<22><>Ϣ")%>&nbsp;</a></li> --%>
<li>${as_main.outHtml}</li>
</ul>
</div>
</div>
<div id="main_bottom" class="main_bottom">
<div class="main_right">${as_main.rightTitle}
<iframe name="right" frameborder="0" width="100%" height="100%"></iframe>
</div>
</div>
<div id="main_board" class="main_board">
<div></div>
</div>
<div class="main_allmenu">
<div>
<div>${as_main.menuHtml}</div>
</div>
</div>
<%@include file="/Frame/page/jspf/include/jsp_debug.jspf" %>
</body>
<script type="text/javascript">
$(document).ready(function () {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱɾ<CAB1><C9BE><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD>д<EFBFBD><D0B4><EFBFBD>
var trs = $("#main_userinfo").find("tr:last");
var user = $($('#main_userinfo td').eq(3).html()).val();
var card = "";
card = '<a href="javascript:void(0)" onclick="return false;">' + user + '</a>';
var but = "&nbsp;<a onclick=gotowork()><3E>ϰ<EFBFBD></a>&nbsp;<a onclick=afterwork()><3E>°<EFBFBD></a>";
//var button = "<button style=background-color:#DDFFFF; type='button' onclick='AsButton.run(this, function(){ModifyPass();}, event);return false;'><3E>ϰ<EFBFBD></button><button style=background-color:#00FF00; type='button' onclick='AsButton.run(this, function(){ModifyPass();}, event);return false;'><3E>°<EFBFBD></button>"
// $('#main_userinfo a').remove();
$('#main_userinfo').children().first().remove();
$('#main_userinfo').append(card).append(but);
trs.css("display", "none");
ASMain(window.MenuJson =${as_main.json});
});
function setFlowOperatorUser() {
AsDialog.PopView("/Tenwa/Core/Entrusteduserinfo/EntrustedInfoList.jsp", "", "dialogWidth=900px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;", function (sReturn) {
}, "ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
function showMesssage() {
var height = $(window).height() - 40;
var width = $(window).width() - 100;
AsDialog.PopView("/Tenwa/Core/BaseMessage/MessageView.jsp", "", "dialogWidth=" + width + "px;dialogHeight=" + height + "px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;", function (sReturn) {
//getMessageNumber()
}, "վ<><D5BE><EFBFBD><EFBFBD>Ϣ");
}
function getMessageNumber() {
var sParams = "curUserID=<%=CurUser.getUserID()%>";
var cnumber = RunJavaMethodTrans("com.tenwa.comm.basemessage.BaseMessageService", "getMessageNumber", sParams);
if (cnumber != "") {
$("#messageNumber").text("<22><>Ϣ(" + cnumber + ")");
}
}
function gotowork() {
var res = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.CommutingToWork", "CommutingToWorkMethod", "userid=<%=CurUser.getUserID()%>,type = 1");
if (res == "true") {
alert("<22><>ʼ<EFBFBD>ϰ<EFBFBD>");
return;
}
}
function afterwork() {
var res = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.CommutingToWork", "CommutingToWorkMethod", "userid=<%=CurUser.getUserID()%>,type = 2");
if (res == "true") {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
return;
}
}
<!-- <20><>ʱ<EFBFBD><CAB1><EFBFBD>ṩվ<E1B9A9><D5BE><EFBFBD><EFBFBD> by zhulh 2018/07/17 -->
/* $(function(){
setInterval("getMessageNumber()",10000);
}) */
</script>
</html>