| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib prefix="tms" uri="http://fzywtx.com/jsp/yw/tms"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <%@ taglib prefix="h" uri="/WEB-INF/tlds/author.tld" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>档案管理提醒信息 </title>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerAccordion.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/tms/tms-common.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#tab5").ligerTab();
- });
-
- function tomore(){
- var a=$("#tab5").find("li[class=l-selected]").attr("tabid");
- var b=a.split("tabitem");
- if(b[1]==1){
- addTab(new Date().getTime(), "我借阅的档案", "amsMyBorrowAction.do?task=toMyList", true);
- }else if(b[1]==2){
- addTab(new Date().getTime(), "借阅历史查询", "amsBorrowMgrAction.do?task=borrowCheck", true);
- }else {
- addTab(new Date().getTime(), "档案管理", "amsCategory.do?method=toCategory", true);
- }
- }
-
- $(document).ready(function(){
- var aa=window.frameElement;
- var html="<a href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
- var ams=$("div[id$='method=amsAlert']",parent.document);
- var sx=$(ams).find("div[class=sx]");
- var leng=$(sx).children();
- if(leng.size()==1){
- sx.append(html);
- }
- });
-
- function look(universalid){
- addTab(new Date().getTime(), "查看档案", "amsArchiveMgr.do?method=toDetailArchive&archiveInfo.universalid=" + universalid, true);
- }
-
- //借阅档案
- //归还档案
- var initDialog2;
- function returnArchive(id,universalid){
- $(function() {
- initDialog2 = parent.$.ligerDialog({content:"是否归还档案?", title:"系统提示",type:"question",width:300,height:70,allowClose : false,
- buttons:[ { text:"是",onclick:function(){gaveBack(id,universalid);} } ,
- {text:"否",onclick:function(btn){initDialog2.close();} }
- ]
- });
- });
- }
- function gaveBack(id,universalid){
- initDialog2.close();
- parent.$.ligerDialog.waitting('正在归还中,请稍候...');
- $.ajax({
- type : "POST",
- url : "amsMyBorrowAction.do?task=gaveBack&time=" + new Date().getTime(),
- data : {"borrow_id" : id,"universalid":universalid},
- timeout : 10000,
- cache : false,
- dataType : "json",
- success : function(data) {
- var success = data.success;
- if (success != undefined) {
- parent.$.ligerDialog.success(success);
- parent.$.ligerDialog.closeWaitting();
- location.reload();
- }else{
- window.top.$.ligerDialog.error(data.error);
- }
- },
- error : showAjaxError
- });
- }
- function prompt(){
- parent.$.ligerDialog.alert(''+'您借阅的是纸质档案,需档案管理员办理归还业务!','提示', 'question');
- }
-
- function lookborrow(){
- addTab(new Date().getTime(), "我借阅的档案","amsMyBorrowAction.do?task=toMyList", true);
- }
- </script>
- <style type="text/css">
- .index-bottom {
- padding-top: 5px;
- padding-left: 5px;
- float-left: right;
- }
- #msgTitle {
- width: 300px;
- -o-text-overflow: ellipsis;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- text-align: left;
- }
- .read {
- color: gray;
- }
- .unread {
- color: #1f58a5;
- }
- .forum-container td {
- text-align: center
- }
- .forum-container th {
- text-align: center
- }
- .fontblue {
- color: blue;
- }
- .fontred {
- color: red;
- }
- .displaynone{
- display: none
- }
- .overhidden{
- display:block; height:37px;line-height:37px;max-width:210px;
- overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width:210px;
- }
- </style>
- </head>
- <body>
- <div id="tab5" style="width: 99.5%; margin-top: 0px;">
- <!-- 借阅的档案 -->
- <h:isAuthor key="/amsMyBorrowAction?task=toMyList">
- <div title="借阅的档案(${map.count1})" class="test1 ">
- <div id="maingrid1" style="margin: 0; " class="forum-container">
- <ul>
- <li>
- <table class="index-table line" width="100%">
- <tr>
- <th width="50%"> 档案名称</th>
- <th width="25%"> 到期时间</th>
- <th width="40%"> 操作</th>
- </tr>
- <c:if test="${empty map.list1}">
- <tr>
- <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
- </tr>
- </c:if>
- <c:forEach items="${map.list1 }" var="list1" varStatus="i">
- <tr class="${(i.index+1)%2==0?'two':'one'}">
- <td style="text-align: left;">
- <span class="overhidden">
- <c:if test="${list1.borrow_type!=3}" >
- ${list1.archive_name}
- </c:if>
- <c:if test="${list1.borrow_type==3}" >
- <a href="#" onclick="prompt()"> ${list1.archive_name}</a>
- </c:if>
- </span>
- </td>
- <td style="text-align: left;">
- <font class="fontred">
- <c:if test="${list1.gotime==0}">今天到期</c:if>
- <c:if test="${list1.gotime!=0}">${list1.gotime}天后到期</c:if>
- </font>
- </td>
- <td style="text-align: left;">
- <c:if test="${list1.borrow_type!=3}" >
- <!-- 使用自动归还 linww 220150326begin-->
- <%-- <a href="#" onclick="returnArchive('${list1.borrow_id}','${list1.universalid}')"><font class="fontblue">归还</font></a> --%>
- <!-- 使用自动归还 linww 220150326 end-->
-
- </c:if>
- <c:if test="${list1.borrow_type==3}" >
- <a href="#" onclick="prompt()"><font class="fontblue">归还</font></a>
- </c:if>
- <a href="#" onclick="lookborrow()"><font style=" color: blue;">查看</font></a>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
- </h:isAuthor>
- <h:isAuthor key="/amsBorrowMgrAction?task=borrowCheck">
- <div title="借出的档案(${map.count2 })" class="test1 ">
- <div id="maingrid1" style="margin: 0;" class="forum-container">
- <ul>
- <li>
- <table class="index-table line" width="100%">
- <tr>
- <th width="50%"> 档案名称</th>
- <th width="15"> 借阅人</th>
- <th width="30%"> 到期时间</th>
- </tr>
- <c:if test="${empty map.list2}">
- <tr>
- <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
- </tr>
- </c:if>
- <c:forEach items="${map.list2 }" var="list2" varStatus="i">
- <tr class="${(i.index+1)%2==0?'two':'one'}">
- <td style="text-align: left;">
- <span class="overhidden">
- <a href="#" onclick="tomore()" >${list2.archive_name}</a>
- </span>
- </td>
- <td >${list2.name}</td>
- <td >
- <font class="fontred">
- <c:if test="${list2.gotime==0}">今天到期</c:if>
- <c:if test="${list2.gotime!=0}">${list2.gotime}天后到期</c:if>
- </font>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
-
- </h:isAuthor>
- <h:isAuthor key="/amsCategory?method=toCategory">
- <div title="到期的档案(${map.count3})" class="test1 ${is_show_ALREADY_RCHIVE==true?'':displaynone }">
- <div id="maingrid1" style="margin: 0; " class="forum-container">
- <ul>
- <li>
- <table class="index-table line" width="100%">
- <tr>
- <th width="50%">档案名称</th>
- <th width="20%">到期时间</th>
- </tr>
- <c:if test="${empty map.list3}">
- <tr>
- <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
- </tr>
- </c:if>
- <c:forEach items="${map.list3 }" var="list3" varStatus="i">
- <tr class="${(i.index+1)%2==0?'two':'one'}">
- <td style="text-align: left;">
- <span class="overhidden">
- <a href="#" onclick="look(${list3.universalid})">
- ${list3.archive_name }
- </a>
- </span>
- </td>
- <td >
- <c:if test="${list3.gotime==0}"><font class="fontred">今天到期</font></c:if>
- <c:if test="${list3.gotime!=0}"><font class="fontred">${list3.gotime}天后到期</font></c:if>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
- </h:isAuthor>
- </div>
- </body>
- </html>
|