| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <%@ 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();
- });
- $(document).ready(function(){
- var aa=window.frameElement;
- var html="<a href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
- var ams=$("div[id$='method=contractAlert']",parent.document);
- var sx=$(ams).find("div[class=sx]");
- var leng=$(sx).children();
- if(leng.size()==1){
- sx.append(html);
- }
- });
- 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(), "我借阅的合同", "contractMyBorrowAction.do?task=toMyList", true);
- }else if(b[1]==2){
- addTab(new Date().getTime(), "借阅历史查询", "contractBorrowManageAction.do?task=toBorrowSearchList", true);
- }else {
- addTab(new Date().getTime(), "合同增改", "contractEntry.do?task=toList", true);
- }
- }
-
- //归还合同
- var initDialog;
- function paperLoan(universalid,detail_id){
- parent.$.ligerDialog.open({
- title : '借阅人确认',
- width : 450,
- height : 200,
- url : 'contractBorrowManageAction.do?task=borrowConfirm&detail_id='+detail_id+'&universalid='+universalid+'',
- 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 detail_id = dialog.frame.f_select3();
- if (user_password == "" || user_password == null){
- parent.$.ligerDialog.warn('请输入借阅人密码!');
- return;
- }
- $.ajax({
- type : "POST",
- url : "contractBorrowManageAction.do?task=confirmOperation&type=return&time=" + new Date().getTime(),
- data : {"detail_id":detail_id,"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 myborrow(){
- addTab(new Date().getTime(), "我借阅的合同", "${pageContext.request.contextPath }/contractMyBorrowAction.do?task=toMyList", true);
- }
- //查看合同
- var tabid = "${param.iname}";
- function viewContractEntry(id){
- addTab(new Date().getTime(), "查看合同", "${pageContext.request.contextPath }/contractEntry.do?task=viewContractEntry&id="+id, true);
- // window.parent.f_addTab(new Date().getTime(), '查看合同', '${pageContext.request.contextPath }/contractMyBorrowAction.do?task=viewContractEntry&id='+id+'&tabid=' + tabid);
- }
- //预警查看
- function viewContractMyLaunch(id){
- addTab(new Date().getTime(), '查看合同信息', '${pageContext.request.contextPath }/contractMyLaunch.do?task=viewContractMyLaunch&id='+id+'&tabid=' + getCurrentTabId());
- }
- //纸质类型显示借阅中 归还只有提示 linww 20150326 begin
- function prompt(){
- parent.$.ligerDialog.alert(''+'该借阅类型是纸质借阅,需合同管理员办理归还业务!','提示', 'question');
- }
- //纸质类型显示借阅中 归还只有提示 linww 201501263 end
- </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;
- }
- .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%; overflow: hidden; margin-top: 0px;">
- <!-- 借阅的档案 -->
- <h:isAuthor key="/contractMyBorrowAction?task=toMyList">
- <div title="借阅的合同(${map.count1 })" class="test1">
- <div id="maingrid1" style="margin: 0; height: 200px;" class="forum-container">
- <ul>
- <li>
- <table class="index-table line" width="100%">
- <tr class="${(i.index+1)%2==0?'two':'one'}">
- <th width="50%"> 合同名称</th>
- <th width="30%"> 到期时间</th>
- <th width="20%"> 操作</th>
- </tr>
- <c:if test="${empty map.list1}">
- <tr>
- <td colspan="3">没有查询到相关信息……</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">
- <a href="#" onclick="myborrow()">
- ${list1.contract_name}
- </a>
- </span>
- </td>
- <td style="text-align: left;" >
- <c:if test="${list1.gotime=='0'}"><font class="fontred">今天到期</font></c:if>
- <c:if test="${list1.gotime!='0'}"><font class="fontred">${list1.gotime}天后到期</font></c:if>
- </td>
- <td >
- <c:if test="${list1.borrow_type==3 }">
- <%-- <a href="#" onclick="paperLoan('${list1.universalid}','${list1.detail_id}')"> --%>
- <a href="#" onclick="prompt()">
- <font style=" color: blue;">
- 归还
- </font>
- </a>
- </c:if>
- <c:if test="${list1.borrow_type!=3 }">
- <!-- 自动归还 -->
- </c:if>
- <a href="#" onclick="myborrow()">
- <font style=" color: blue;">
- 查看
- </font>
- </a>
- </td>
- </tr>
- </c:forEach>
- </table>
- </li>
- </ul>
- </div>
- </div>
- </h:isAuthor>
- <h:isAuthor key="/contractBorrowManageAction?task=toBorrowSearchList">
- <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">没有查询到相关信息……</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.contract_name}</a>
- </span>
- </td>
- <td style="text-align: left;">${list2.name}</td>
- <td style="text-align: left;">
- <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>
- <!-- 预警都去掉 这是“预警日志查看” 菜单 linww 20150312 begin-->
- <%-- <h:isAuthor key="/contractEntry?task=toList"> --%>
- <%-- <div title="合同预警(${map.count3 })" class="test1"> --%>
- <!-- <div id="maingrid1" style="margin: 0; height: 200px;" class="forum-container"> -->
- <!-- <ul> -->
- <!-- <li> -->
- <!-- <table class="index-table line" width="100%"> -->
- <!-- <tr> -->
- <!-- <th width="50%"> 合同名称</th> -->
- <!-- <th width="15%"> 里程碑</th> -->
- <!-- <th width="20%"> 到期时间</th> -->
- <!-- <th width="20%"> 操作</th> -->
- <!-- </tr> -->
- <%-- <c:if test="${empty map.list3}"> --%>
- <!-- <tr> -->
- <!-- <td colspan="4">没有查询到相关信息……</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="viewContractMyLaunch(${list3.contract_id})"> --%>
- <%-- ${list3.contract_name } --%>
- <!-- </a> -->
- <!-- </span> -->
- <!-- </td> -->
- <!-- <td style="text-align: left;"> -->
-
- <%-- <c:forEach items="${map.cdList }" var="cdList"> --%>
- <%-- <c:if test="${cdList.dvalue==list3.status_name }">${ cdList.dname}</c:if> --%>
- <%-- </c:forEach> --%>
-
- <!-- </td> -->
- <!-- <td style="text-align: left;"> -->
- <%-- <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> -->
- <%-- <td style="text-align: left;"><a href="#" onclick="viewContractMyLaunch(${list3.contract_id})"><font class="fontblue">查看</font></a></td> --%>
- <!-- </tr> -->
- <%-- </c:forEach> --%>
- <!-- </table> -->
- <!-- </li> -->
- <!-- </ul> -->
- <!-- </div> -->
- <!-- </div> -->
- <%-- </h:isAuthor> --%>
- <!-- 预警都去掉 这是“预警日志查看” 菜单 linww 20150312 end-->
- </div>
- </body>
- </html>
|