amsWait.jsp 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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 rc="${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 src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  20. <script type="text/javascript" src="/shares/js/constant.js"></script>
  21. <script type="text/javascript" src="/shares/js/common.js"></script>
  22. <script type="text/javascript" src="/shares/js/yw/tms/tms-common.js"></script>
  23. <%-- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script> --%>
  24. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  25. <script type="text/javascript">
  26. $(function() {
  27. $("#tab5").ligerTab();
  28. });
  29. function tomore(){
  30. var a=$("#tab5").find("li[class=l-selected]").attr("tabid");
  31. var b=a.split("tabitem");
  32. if(b[1]==1){
  33. //借阅审批 更多
  34. var url="amsApplicationBorrowAction.do?task=toApplicationBorrowCheckList";
  35. addTab(new Date().getTime(), '借阅审批',url, true);
  36. }else{
  37. //纸质借出 更多
  38. var url="amsBorrowMgrAction.do?task=paperLoan";
  39. addTab(new Date().getTime(), '纸质借出',url, true);
  40. }
  41. }
  42. $(document).ready(function(){
  43. var a=$("#tab5").find("li[tabid=tabitem2]");
  44. $(a).css("width","150px");
  45. var aa=window.frameElement;
  46. var html="<a class=\"\" href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
  47. var ams=$("div[id$='method=amsWait']",parent.document);
  48. var sx=$(ams).find("div[class=sx]");
  49. var leng=$(sx).children();
  50. if(leng.size()==1){
  51. sx.append(html);
  52. }
  53. });
  54. //审批
  55. var tabid = "${param.iname}";
  56. function processflow(tinsId,flow_ins_name){
  57. var dialogId =tinsId+new Date().getTime();
  58. var url='${pageContext.request.contextPath }/workFlowAction.do?type=1&task=toProcess&tinsId='+tinsId+'&tabid='+tabid+'&dialogId='+dialogId;
  59. openODialog(url, flow_ins_name, dialogId);
  60. }
  61. //页面要刷新,必须这个方法名
  62. function onLoad(){
  63. location.reload();
  64. }
  65. //纸质借出
  66. var initDialog;
  67. function paperLoan(borrowid,universalid,borrow_user){
  68. window.top.$.ligerDialog.open({
  69. title : '借阅人确认',
  70. width : 450,
  71. height : 200,
  72. url : 'amsBorrowMgrAction.do?task=borrowConfirm&borro_id='+borrowid+'&universalid='+universalid+'&borrow_user='+borrow_user+'',
  73. buttons : [ {text : '确定',onclick : f_importOK}, {text : '取消',onclick : f_importCancel}]
  74. });
  75. }
  76. //取消选择
  77. function f_importCancel(item, dialog){
  78. dialog.close();
  79. }
  80. function f_importOK(item, dialog){
  81. var user_name = dialog.frame.f_select1();
  82. var user_password = dialog.frame.f_select2();
  83. var universalid = dialog.frame.f_select3();
  84. if (user_password == "" || user_password == null){
  85. parent.$.ligerDialog.warn('请输入借阅人密码!');
  86. return;
  87. }
  88. $.ajax({
  89. type : "POST",
  90. url : "amsBorrowMgrAction.do?task=confirmOperation&type=loan&time=" + new Date().getTime(),
  91. data : {"universalid":universalid,"user_name":user_name,"user_password" : user_password},
  92. timeout : 10000,
  93. cache : false,
  94. dataType : "json",
  95. success : function(data) {
  96. var success = data.success;
  97. if (success != undefined) {
  98. parent.$.ligerDialog.success(success);
  99. location.reload();
  100. dialog.close();
  101. }else{
  102. window.top.$.ligerDialog.error(data.error);
  103. }
  104. },
  105. error : showAjaxError
  106. });
  107. }
  108. function lookpage(){
  109. addTab(new Date().getTime(), "查看档案", "amsBorrowMgrAction.do?task=paperLoan", true);
  110. }
  111. </script>
  112. <style type="text/css">
  113. .index-bottom {
  114. padding-top: 5px;
  115. padding-left: 5px;
  116. float-left: right;
  117. }
  118. #msgTitle {
  119. width: 300px;
  120. -o-text-overflow: ellipsis;
  121. text-overflow: ellipsis;
  122. white-space: nowrap;
  123. overflow: hidden;
  124. text-align: left;
  125. }
  126. .read {
  127. color: gray;
  128. }
  129. .unread {
  130. color: #1f58a5;
  131. }
  132. .forum-container td {
  133. text-align: center
  134. }
  135. .forum-container th {
  136. text-align: center
  137. }
  138. .fontblue {
  139. color: blue;
  140. }
  141. .displaynone{
  142. display: none
  143. }
  144. .overhidden{
  145. display:block; height:37px;line-height:37px;max-width:210px;
  146. overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width:210px;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div id="tab5" style="width: 99.5%; margin-top: 0px;">
  152. <h:isAuthor key="/amsApplicationBorrowAction?task=toApplicationBorrowCheckList">
  153. <div title="借阅审批(${map.count1})" class="test1 ${is_show_APPROVAL?'':displaynone }" style="overflow:auto; height: 300px;">
  154. <div id="maingrid1" style="margin: 0; " class="forum-container">
  155. <ul>
  156. <li>
  157. <table class="index-table line" width="100%">
  158. <tr>
  159. <th width="50%">&nbsp;&nbsp;借阅目的</th>
  160. <th width="20%">&nbsp;&nbsp;借阅人</th>
  161. <th width="10%">&nbsp;&nbsp;借阅时间</th>
  162. <th width="19%">&nbsp;&nbsp;操作</th>
  163. </tr>
  164. <c:if test="${empty map.list1}">
  165. <tr>
  166. <td colspan="4">
  167. <a href="#" onclick="tomore()">没有查询到相关信息……</a>
  168. </td>
  169. </tr>
  170. </c:if>
  171. <c:forEach items="${map.list1 }" var="list1" varStatus="i">
  172. <tr style="cursor: pointer" class="${(i.index+1)%2==0?'two':'one'}">
  173. <td style="text-align: left;">
  174. <span class="overhidden">
  175. <a href="#" onclick="processflow('${list1.current_tins_id}','${list1.flow_ins_name }','${list1.name }')">
  176. ${list1.borrow_aim }
  177. </a>
  178. </span>
  179. </td>
  180. <td>${list1.name }</td>
  181. <td>
  182. <fmt:formatDate value="${list1.apply_date}" pattern="yyyy/MM/dd" />
  183. </td>
  184. <td style="text-align: left;">
  185. <a href="#" onclick="processflow('${list1.current_tins_id}','${list1.flow_ins_name }','${list1.name }')">
  186. <font color="blue">审核</font>
  187. </a>
  188. </td>
  189. </tr>
  190. </c:forEach>
  191. </table>
  192. </li>
  193. </ul>
  194. </div>
  195. </div>
  196. </h:isAuthor>
  197. <!-- 纸质合同借出 -->
  198. <h:isAuthor key="/amsBorrowMgrAction?task=paperLoan">
  199. <div title="纸质档案借出(${map.count2 })" class="test1 " style="overflow:auto; height: 240px;">
  200. <div id="maingrid1" style="margin: 0; " class="forum-container">
  201. <ul>
  202. <li>
  203. <table class="index-table line" width="100%">
  204. <tr>
  205. <th width="45%">&nbsp;&nbsp;档案名称</th>
  206. <th width="20%">&nbsp;&nbsp;借阅人</th>
  207. <th width="10%">&nbsp;&nbsp;借阅时间</th>
  208. <th width="20%">&nbsp;&nbsp;操作</th>
  209. </tr>
  210. <c:if test="${empty map.list2}">
  211. <tr>
  212. <td colspan="4"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
  213. </tr>
  214. </c:if>
  215. <c:forEach items="${map.list2 }" var="list2" varStatus="i">
  216. <tr style="cursor: pointer" class="${(i.index+1)%2==0?'two':'one'}">
  217. <td style="text-align: left;">
  218. <span class="overhidden">
  219. <a href="#" onclick="paperLoan('${list2.borrow_id}','${list2.universalid }','${list2.name }')">${list2.archive_name}
  220. </a>
  221. </span>
  222. </td>
  223. <td style="text-align: left;">${list2.name}</td>
  224. <td style="text-align: left;">
  225. <fmt:formatDate value="${list2.create_date }"pattern="yyyy/MM/dd" />
  226. </td>
  227. <td width="19%">
  228. <a href="#" onclick="paperLoan('${list2.borrow_id}','${list2.universalid }','${list2.name }')"><font color="blue">借出</font> </a>
  229. <a href="#" onclick="lookpage()"><font color="blue">查看</font> </a>
  230. </td>
  231. </tr>
  232. </c:forEach>
  233. </table>
  234. </li>
  235. </ul>
  236. </div>
  237. </div>
  238. </h:isAuthor>
  239. </div>
  240. </body>
  241. </html>