2018-06-24 22:05:45 +08:00

61 lines
2.7 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ include file="/IncludeBegin.jsp"%>
<html>
<head>
<title>公告信息</title>
<link rel="stylesheet" href="<%=sWebRootPath%>/AppMain/resources/css/notice.css">
<script type="text/javascript">
function openFile(boardno,title){
parent.AsDialog.PopView("/AppMain/Welcome/ShowBankNotice.jsp", "BoardNo="+boardno, "dialogWidth=730px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",null,title);
}
$(function(){
return; // 若不要滚动,请打开这段注释
var time = null;
var container = $(".container").mouseover(function(){
clearTimeout(time);
}).mouseleave(function(){
notice();
});
$(".space", container).height("100%");
notice();
function notice(){
var top = container.scrollTop();
container.scrollTop(top+1);
if(container.scrollTop() == top)
container.scrollTop(0);
time = setTimeout(notice, 15);
}
});
</script>
</head>
<body>
<div class="container">
<div class="space"></div>
<div style="float:left;width:20%"><%
com.amarsoft.are.jbo.BizObjectManager boardM = com.amarsoft.are.jbo.JBOFactory.getBizObjectManager("jbo.sys.BOARD_LIST");
boardM.getQueryProperties().setProperty("largeResultWarn", "2000");
//String sql = "select O.BoardNo, O.BoardTitle, O.IsNew, O.IsEject, O.DocNo from O where O.IsPublish = 'Y' and (O.ShowToRoles is null or O.ShowToRoles in (select UR.RoleID from jbo.sys.USER_ROLE UR where UR.UserID=:UserID)) order by O.BoardNo desc";
String sql = "select O.BoardNo, O.BoardTitle, O.IsNew, O.IsEject, O.relative_id from O where O.IsPublish = 'Y' order by O.BoardNo desc";
com.amarsoft.are.jbo.BizObjectQuery boardQ = boardM.createQuery(sql);
boardQ.setParameter("orgID", "%"+CurUser.getOrgID().substring(0, 5)+"%");
List<com.amarsoft.are.jbo.BizObject> boardBos = boardQ.getResultList(false);
if(boardBos.size()==0){
return;
}
DecimalFormat format = new DecimalFormat(String.valueOf(boardBos.size()).replaceAll("\\d", "0"));
for(int i = 0; i < boardBos.size(); i++){
%><a onclick="<%if("Y".equals(boardBos.get(i).getAttribute("IsEject").getString())){%>openFile('<%=boardBos.get(i).getAttribute("boardno").getString()%>','<%=boardBos.get(i).getAttribute("BoardTitle").getString()%>');<%
}%>return false;" hidefocus href="javascript:void(0)"><span><%=format.format(i+1)%>、</span><%=boardBos.get(i).getAttribute("BoardTitle").getString()%><%
if("Y".equals(boardBos.get(i).getAttribute("IsNew").getString())){%><span class="icon_new">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><%}%></a><%
}%>
</div>
<div class="space"></div>
<div style="float:right;width:20%">
<img style="width:70%;margin-top:10%" alt="" src="<%=sWebRootPath%>/AppMain/AppLogo/downLoad.png">
</div>
</div>
</body>
</html>
<%@ include file="/IncludeEnd.jsp"%>