amsAlert.jsp 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib prefix="tms" uri="http://fzywtx.com/jsp/yw/tms"%>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  6. <%@ taglib prefix="h" uri="/WEB-INF/tlds/author.tld" %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <title>档案管理提醒信息 </title>
  11. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  12. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  13. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerAccordion.js"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  19. <script type="text/javascript" src="/shares/js/constant.js"></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/tms/tms-common.js"></script>
  22. <script type="text/javascript">
  23. $(function() {
  24. $("#tab5").ligerTab();
  25. });
  26. function tomore(){
  27. var a=$("#tab5").find("li[class=l-selected]").attr("tabid");
  28. var b=a.split("tabitem");
  29. if(b[1]==1){
  30. addTab(new Date().getTime(), "我借阅的档案", "amsMyBorrowAction.do?task=toMyList", true);
  31. }else if(b[1]==2){
  32. addTab(new Date().getTime(), "借阅历史查询", "amsBorrowMgrAction.do?task=borrowCheck", true);
  33. }else {
  34. addTab(new Date().getTime(), "档案管理", "amsCategory.do?method=toCategory", true);
  35. }
  36. }
  37. $(document).ready(function(){
  38. var aa=window.frameElement;
  39. var html="<a href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
  40. var ams=$("div[id$='method=amsAlert']",parent.document);
  41. var sx=$(ams).find("div[class=sx]");
  42. var leng=$(sx).children();
  43. if(leng.size()==1){
  44. sx.append(html);
  45. }
  46. });
  47. function look(universalid){
  48. addTab(new Date().getTime(), "查看档案", "amsArchiveMgr.do?method=toDetailArchive&archiveInfo.universalid=" + universalid, true);
  49. }
  50. //借阅档案
  51. //归还档案
  52. var initDialog2;
  53. function returnArchive(id,universalid){
  54. $(function() {
  55. initDialog2 = parent.$.ligerDialog({content:"是否归还档案?", title:"系统提示",type:"question",width:300,height:70,allowClose : false,
  56. buttons:[ { text:"是",onclick:function(){gaveBack(id,universalid);} } ,
  57. {text:"否",onclick:function(btn){initDialog2.close();} }
  58. ]
  59. });
  60. });
  61. }
  62. function gaveBack(id,universalid){
  63. initDialog2.close();
  64. parent.$.ligerDialog.waitting('正在归还中,请稍候...');
  65. $.ajax({
  66. type : "POST",
  67. url : "amsMyBorrowAction.do?task=gaveBack&time=" + new Date().getTime(),
  68. data : {"borrow_id" : id,"universalid":universalid},
  69. timeout : 10000,
  70. cache : false,
  71. dataType : "json",
  72. success : function(data) {
  73. var success = data.success;
  74. if (success != undefined) {
  75. parent.$.ligerDialog.success(success);
  76. parent.$.ligerDialog.closeWaitting();
  77. location.reload();
  78. }else{
  79. window.top.$.ligerDialog.error(data.error);
  80. }
  81. },
  82. error : showAjaxError
  83. });
  84. }
  85. function prompt(){
  86. parent.$.ligerDialog.alert(''+'您借阅的是纸质档案,需档案管理员办理归还业务!','提示', 'question');
  87. }
  88. function lookborrow(){
  89. addTab(new Date().getTime(), "我借阅的档案","amsMyBorrowAction.do?task=toMyList", true);
  90. }
  91. </script>
  92. <style type="text/css">
  93. .index-bottom {
  94. padding-top: 5px;
  95. padding-left: 5px;
  96. float-left: right;
  97. }
  98. #msgTitle {
  99. width: 300px;
  100. -o-text-overflow: ellipsis;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. overflow: hidden;
  104. text-align: left;
  105. }
  106. .read {
  107. color: gray;
  108. }
  109. .unread {
  110. color: #1f58a5;
  111. }
  112. .forum-container td {
  113. text-align: center
  114. }
  115. .forum-container th {
  116. text-align: center
  117. }
  118. .fontblue {
  119. color: blue;
  120. }
  121. .fontred {
  122. color: red;
  123. }
  124. .displaynone{
  125. display: none
  126. }
  127. .overhidden{
  128. display:block; height:37px;line-height:37px;max-width:210px;
  129. overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width:210px;
  130. }
  131. </style>
  132. </head>
  133. <body>
  134. <div id="tab5" style="width: 99.5%; margin-top: 0px;">
  135. <!-- 借阅的档案 -->
  136. <h:isAuthor key="/amsMyBorrowAction?task=toMyList">
  137. <div title="借阅的档案(${map.count1})" class="test1 ">
  138. <div id="maingrid1" style="margin: 0; " class="forum-container">
  139. <ul>
  140. <li>
  141. <table class="index-table line" width="100%">
  142. <tr>
  143. <th width="50%">&nbsp;&nbsp;档案名称</th>
  144. <th width="25%">&nbsp;&nbsp;到期时间</th>
  145. <th width="40%">&nbsp;&nbsp;操作</th>
  146. </tr>
  147. <c:if test="${empty map.list1}">
  148. <tr>
  149. <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
  150. </tr>
  151. </c:if>
  152. <c:forEach items="${map.list1 }" var="list1" varStatus="i">
  153. <tr class="${(i.index+1)%2==0?'two':'one'}">
  154. <td style="text-align: left;">
  155. <span class="overhidden">
  156. <c:if test="${list1.borrow_type!=3}" >
  157. ${list1.archive_name}
  158. </c:if>
  159. <c:if test="${list1.borrow_type==3}" >
  160. <a href="#" onclick="prompt()"> ${list1.archive_name}</a>
  161. </c:if>
  162. </span>
  163. </td>
  164. <td style="text-align: left;">
  165. <font class="fontred">
  166. <c:if test="${list1.gotime==0}">今天到期</c:if>
  167. <c:if test="${list1.gotime!=0}">${list1.gotime}天后到期</c:if>
  168. </font>
  169. </td>
  170. <td style="text-align: left;">
  171. <c:if test="${list1.borrow_type!=3}" >
  172. <!-- 使用自动归还 linww 220150326begin-->
  173. <%-- <a href="#" onclick="returnArchive('${list1.borrow_id}','${list1.universalid}')"><font class="fontblue">归还</font></a> --%>
  174. <!-- 使用自动归还 linww 220150326 end-->
  175. </c:if>
  176. <c:if test="${list1.borrow_type==3}" >
  177. <a href="#" onclick="prompt()"><font class="fontblue">归还</font></a>
  178. </c:if>
  179. <a href="#" onclick="lookborrow()"><font style=" color: blue;">查看</font></a>
  180. </td>
  181. </tr>
  182. </c:forEach>
  183. </table>
  184. </li>
  185. </ul>
  186. </div>
  187. </div>
  188. </h:isAuthor>
  189. <h:isAuthor key="/amsBorrowMgrAction?task=borrowCheck">
  190. <div title="借出的档案(${map.count2 })" class="test1 ">
  191. <div id="maingrid1" style="margin: 0;" class="forum-container">
  192. <ul>
  193. <li>
  194. <table class="index-table line" width="100%">
  195. <tr>
  196. <th width="50%">&nbsp;&nbsp;档案名称</th>
  197. <th width="15">&nbsp;&nbsp;借阅人</th>
  198. <th width="30%">&nbsp;&nbsp;到期时间</th>
  199. </tr>
  200. <c:if test="${empty map.list2}">
  201. <tr>
  202. <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
  203. </tr>
  204. </c:if>
  205. <c:forEach items="${map.list2 }" var="list2" varStatus="i">
  206. <tr class="${(i.index+1)%2==0?'two':'one'}">
  207. <td style="text-align: left;">
  208. <span class="overhidden">
  209. <a href="#" onclick="tomore()" >${list2.archive_name}</a>
  210. </span>
  211. </td>
  212. <td >${list2.name}</td>
  213. <td >
  214. <font class="fontred">
  215. <c:if test="${list2.gotime==0}">今天到期</c:if>
  216. <c:if test="${list2.gotime!=0}">${list2.gotime}天后到期</c:if>
  217. </font>
  218. </td>
  219. </tr>
  220. </c:forEach>
  221. </table>
  222. </li>
  223. </ul>
  224. </div>
  225. </div>
  226. </h:isAuthor>
  227. <h:isAuthor key="/amsCategory?method=toCategory">
  228. <div title="到期的档案(${map.count3})" class="test1 ${is_show_ALREADY_RCHIVE==true?'':displaynone }">
  229. <div id="maingrid1" style="margin: 0; " class="forum-container">
  230. <ul>
  231. <li>
  232. <table class="index-table line" width="100%">
  233. <tr>
  234. <th width="50%">档案名称</th>
  235. <th width="20%">到期时间</th>
  236. </tr>
  237. <c:if test="${empty map.list3}">
  238. <tr>
  239. <td colspan="3"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
  240. </tr>
  241. </c:if>
  242. <c:forEach items="${map.list3 }" var="list3" varStatus="i">
  243. <tr class="${(i.index+1)%2==0?'two':'one'}">
  244. <td style="text-align: left;">
  245. <span class="overhidden">
  246. <a href="#" onclick="look(${list3.universalid})">
  247. ${list3.archive_name }
  248. </a>
  249. </span>
  250. </td>
  251. <td >
  252. <c:if test="${list3.gotime==0}"><font class="fontred">今天到期</font></c:if>
  253. <c:if test="${list3.gotime!=0}"><font class="fontred">${list3.gotime}天后到期</font></c:if>
  254. </td>
  255. </tr>
  256. </c:forEach>
  257. </table>
  258. </li>
  259. </ul>
  260. </div>
  261. </div>
  262. </h:isAuthor>
  263. </div>
  264. </body>
  265. </html>