| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <%@ 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 rc="${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 src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.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 src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script> --%>
- <script type="text/javascript" src="/shares/js/yw/bpm/oa.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){
- //借阅审批 更多
- var url="amsApplicationBorrowAction.do?task=toApplicationBorrowCheckList";
- addTab(new Date().getTime(), '借阅审批',url, true);
- }else{
- //纸质借出 更多
- var url="amsBorrowMgrAction.do?task=paperLoan";
- addTab(new Date().getTime(), '纸质借出',url, true);
- }
- }
- $(document).ready(function(){
- var a=$("#tab5").find("li[tabid=tabitem2]");
- $(a).css("width","150px");
- var aa=window.frameElement;
- var html="<a class=\"\" href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
- var ams=$("div[id$='method=amsWait']",parent.document);
- var sx=$(ams).find("div[class=sx]");
- var leng=$(sx).children();
- if(leng.size()==1){
- sx.append(html);
- }
- });
- //审批
- var tabid = "${param.iname}";
- function processflow(tinsId,flow_ins_name){
- var dialogId =tinsId+new Date().getTime();
- var url='${pageContext.request.contextPath }/workFlowAction.do?type=1&task=toProcess&tinsId='+tinsId+'&tabid='+tabid+'&dialogId='+dialogId;
- openODialog(url, flow_ins_name, dialogId);
- }
- //页面要刷新,必须这个方法名
- function onLoad(){
- location.reload();
- }
-
- //纸质借出
- var initDialog;
- function paperLoan(borrowid,universalid,borrow_user){
- window.top.$.ligerDialog.open({
- title : '借阅人确认',
- width : 450,
- height : 200,
- url : 'amsBorrowMgrAction.do?task=borrowConfirm&borro_id='+borrowid+'&universalid='+universalid+'&borrow_user='+borrow_user+'',
- buttons : [ {text : '确定',onclick : f_importOK}, {text : '取消',onclick : f_importCancel}]
- });
- }
-
- //取消选择
- function f_importCancel(item, dialog){
- dialog.close();
- }
- function f_importOK(item, dialog){
- var user_name = dialog.frame.f_select1();
- var user_password = dialog.frame.f_select2();
- var universalid = dialog.frame.f_select3();
- if (user_password == "" || user_password == null){
- parent.$.ligerDialog.warn('请输入借阅人密码!');
- return;
- }
- $.ajax({
- type : "POST",
- url : "amsBorrowMgrAction.do?task=confirmOperation&type=loan&time=" + new Date().getTime(),
- data : {"universalid":universalid,"user_name":user_name,"user_password" : user_password},
- timeout : 10000,
- cache : false,
- dataType : "json",
- success : function(data) {
- var success = data.success;
- if (success != undefined) {
- parent.$.ligerDialog.success(success);
- location.reload();
- dialog.close();
- }else{
- window.top.$.ligerDialog.error(data.error);
- }
- },
- error : showAjaxError
- });
- }
-
-
- function lookpage(){
- addTab(new Date().getTime(), "查看档案", "amsBorrowMgrAction.do?task=paperLoan", 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;
- }
- .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="/amsApplicationBorrowAction?task=toApplicationBorrowCheckList">
- <div title="借阅审批(${map.count1})" class="test1 ${is_show_APPROVAL?'':displaynone }" style="overflow:auto; height: 300px;">
- <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>
- <th width="10%"> 借阅时间</th>
- <th width="19%"> 操作</th>
- </tr>
- <c:if test="${empty map.list1}">
- <tr>
- <td colspan="4">
- <a href="#" onclick="tomore()">没有查询到相关信息……</a>
- </td>
- </tr>
- </c:if>
- <c:forEach items="${map.list1 }" var="list1" varStatus="i">
- <tr style="cursor: pointer" class="${(i.index+1)%2==0?'two':'one'}">
- <td style="text-align: left;">
- <span class="overhidden">
- <a href="#" onclick="processflow('${list1.current_tins_id}','${list1.flow_ins_name }','${list1.name }')">
- ${list1.borrow_aim }
- </a>
- </span>
- </td>
- <td>${list1.name }</td>
- <td>
- <fmt:formatDate value="${list1.apply_date}" pattern="yyyy/MM/dd" />
- </td>
- <td style="text-align: left;">
- <a href="#" onclick="processflow('${list1.current_tins_id}','${list1.flow_ins_name }','${list1.name }')">
- <font color="blue">审核</font>
- </a>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
- </h:isAuthor>
- <!-- 纸质合同借出 -->
- <h:isAuthor key="/amsBorrowMgrAction?task=paperLoan">
- <div title="纸质档案借出(${map.count2 })" class="test1 " style="overflow:auto; height: 240px;">
- <div id="maingrid1" style="margin: 0; " class="forum-container">
- <ul>
- <li>
- <table class="index-table line" width="100%">
- <tr>
- <th width="45%"> 档案名称</th>
- <th width="20%"> 借阅人</th>
- <th width="10%"> 借阅时间</th>
- <th width="20%"> 操作</th>
- </tr>
- <c:if test="${empty map.list2}">
- <tr>
- <td colspan="4"><a href="#" onclick="tomore()">没有查询到相关信息……</a></td>
- </tr>
- </c:if>
-
- <c:forEach items="${map.list2 }" var="list2" varStatus="i">
- <tr style="cursor: pointer" class="${(i.index+1)%2==0?'two':'one'}">
- <td style="text-align: left;">
- <span class="overhidden">
- <a href="#" onclick="paperLoan('${list2.borrow_id}','${list2.universalid }','${list2.name }')">${list2.archive_name}
- </a>
- </span>
- </td>
- <td style="text-align: left;">${list2.name}</td>
- <td style="text-align: left;">
- <fmt:formatDate value="${list2.create_date }"pattern="yyyy/MM/dd" />
- </td>
- <td width="19%">
- <a href="#" onclick="paperLoan('${list2.borrow_id}','${list2.universalid }','${list2.name }')"><font color="blue">借出</font> </a>
- <a href="#" onclick="lookpage()"><font color="blue">查看</font> </a>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
- </h:isAuthor>
- </div>
- </body>
- </html>
|