contractAlert.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. $(document).ready(function(){
  27. var aa=window.frameElement;
  28. var html="<a href=\"javascript:;\" onclick=\"window.frames[\'"+aa.name+"\'].tomore()\">更多</a>";
  29. var ams=$("div[id$='method=contractAlert']",parent.document);
  30. var sx=$(ams).find("div[class=sx]");
  31. var leng=$(sx).children();
  32. if(leng.size()==1){
  33. sx.append(html);
  34. }
  35. });
  36. function tomore(){
  37. var a=$("#tab5").find("li[class=l-selected]").attr("tabid");
  38. var b=a.split("tabitem");
  39. if(b[1]==1){
  40. addTab(new Date().getTime(), "我借阅的合同", "contractMyBorrowAction.do?task=toMyList", true);
  41. }else if(b[1]==2){
  42. addTab(new Date().getTime(), "借阅历史查询", "contractBorrowManageAction.do?task=toBorrowSearchList", true);
  43. }else {
  44. addTab(new Date().getTime(), "合同增改", "contractEntry.do?task=toList", true);
  45. }
  46. }
  47. //归还合同
  48. var initDialog;
  49. function paperLoan(universalid,detail_id){
  50. parent.$.ligerDialog.open({
  51. title : '借阅人确认',
  52. width : 450,
  53. height : 200,
  54. url : 'contractBorrowManageAction.do?task=borrowConfirm&detail_id='+detail_id+'&universalid='+universalid+'',
  55. buttons : [ {text : '确定',onclick : f_importOK}, {text : '取消',onclick : f_importCancel}]
  56. });
  57. }
  58. //取消选择
  59. function f_importCancel(item, dialog){
  60. dialog.close();
  61. }
  62. function f_importOK(item, dialog){
  63. var user_name = dialog.frame.f_select1();
  64. var user_password = dialog.frame.f_select2();
  65. var detail_id = dialog.frame.f_select3();
  66. if (user_password == "" || user_password == null){
  67. parent.$.ligerDialog.warn('请输入借阅人密码!');
  68. return;
  69. }
  70. $.ajax({
  71. type : "POST",
  72. url : "contractBorrowManageAction.do?task=confirmOperation&type=return&time=" + new Date().getTime(),
  73. data : {"detail_id":detail_id,"user_name":user_name,"user_password" : user_password},
  74. timeout : 10000,
  75. cache : false,
  76. dataType : "json",
  77. success : function(data) {
  78. var success = data.success;
  79. if (success != undefined) {
  80. parent.$.ligerDialog.success(success);
  81. location.reload();
  82. dialog.close();
  83. }else{
  84. window.top.$.ligerDialog.error(data.error);
  85. }
  86. },
  87. error : showAjaxError
  88. });
  89. }
  90. //借阅的档案查看
  91. function myborrow(){
  92. addTab(new Date().getTime(), "我借阅的合同", "${pageContext.request.contextPath }/contractMyBorrowAction.do?task=toMyList", true);
  93. }
  94. //查看合同
  95. var tabid = "${param.iname}";
  96. function viewContractEntry(id){
  97. addTab(new Date().getTime(), "查看合同", "${pageContext.request.contextPath }/contractEntry.do?task=viewContractEntry&id="+id, true);
  98. // window.parent.f_addTab(new Date().getTime(), '查看合同', '${pageContext.request.contextPath }/contractMyBorrowAction.do?task=viewContractEntry&id='+id+'&tabid=' + tabid);
  99. }
  100. //预警查看
  101. function viewContractMyLaunch(id){
  102. addTab(new Date().getTime(), '查看合同信息', '${pageContext.request.contextPath }/contractMyLaunch.do?task=viewContractMyLaunch&id='+id+'&tabid=' + getCurrentTabId());
  103. }
  104. //纸质类型显示借阅中 归还只有提示 linww 20150326 begin
  105. function prompt(){
  106. parent.$.ligerDialog.alert(''+'该借阅类型是纸质借阅,需合同管理员办理归还业务!','提示', 'question');
  107. }
  108. //纸质类型显示借阅中 归还只有提示 linww 201501263 end
  109. </script>
  110. <style type="text/css">
  111. .index-bottom {
  112. padding-top: 5px;
  113. padding-left: 5px;
  114. float-left: right;
  115. }
  116. #msgTitle {
  117. width: 300px;
  118. -o-text-overflow: ellipsis;
  119. text-overflow: ellipsis;
  120. white-space: nowrap;
  121. overflow: hidden;
  122. text-align: left;
  123. }
  124. .read {
  125. color: gray;
  126. }
  127. .unread {
  128. color: #1f58a5;
  129. }
  130. .forum-container td {
  131. text-align: center
  132. }
  133. .forum-container th {
  134. text-align: center
  135. }
  136. .fontblue {
  137. color: blue;
  138. }
  139. .fontred {
  140. color: red;
  141. }
  142. .overhidden{
  143. display:block; height:37px;line-height:37px;max-width:210px;
  144. overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width:210px;
  145. }
  146. </style>
  147. </head>
  148. <body>
  149. <div id="tab5" style="width: 99.5%; overflow: hidden; margin-top: 0px;">
  150. <!-- 借阅的档案 -->
  151. <h:isAuthor key="/contractMyBorrowAction?task=toMyList">
  152. <div title="借阅的合同(${map.count1 })" class="test1">
  153. <div id="maingrid1" style="margin: 0; height: 200px;" class="forum-container">
  154. <ul>
  155. <li>
  156. <table class="index-table line" width="100%">
  157. <tr class="${(i.index+1)%2==0?'two':'one'}">
  158. <th width="50%">&nbsp;&nbsp;合同名称</th>
  159. <th width="30%">&nbsp;&nbsp;到期时间</th>
  160. <th width="20%">&nbsp;&nbsp;操作</th>
  161. </tr>
  162. <c:if test="${empty map.list1}">
  163. <tr>
  164. <td colspan="3">没有查询到相关信息……</td>
  165. </tr>
  166. </c:if>
  167. <c:forEach items="${map.list1 }" var="list1" varStatus="i">
  168. <tr class="${(i.index+1)%2==0?'two':'one'}">
  169. <td style="text-align: left;">
  170. <span class="overhidden">
  171. <a href="#" onclick="myborrow()">
  172. ${list1.contract_name}
  173. </a>
  174. </span>
  175. </td>
  176. <td style="text-align: left;" >
  177. <c:if test="${list1.gotime=='0'}"><font class="fontred">今天到期</font></c:if>
  178. <c:if test="${list1.gotime!='0'}"><font class="fontred">${list1.gotime}天后到期</font></c:if>
  179. </td>
  180. <td >
  181. <c:if test="${list1.borrow_type==3 }">
  182. <%-- <a href="#" onclick="paperLoan('${list1.universalid}','${list1.detail_id}')"> --%>
  183. <a href="#" onclick="prompt()">
  184. <font style=" color: blue;">
  185. 归还
  186. </font>
  187. </a>
  188. </c:if>
  189. <c:if test="${list1.borrow_type!=3 }">
  190. <!-- 自动归还 -->
  191. </c:if>
  192. <a href="#" onclick="myborrow()">
  193. <font style=" color: blue;">
  194. 查看
  195. </font>
  196. </a>
  197. </td>
  198. </tr>
  199. </c:forEach>
  200. </table>
  201. </li>
  202. </ul>
  203. </div>
  204. </div>
  205. </h:isAuthor>
  206. <h:isAuthor key="/contractBorrowManageAction?task=toBorrowSearchList">
  207. <div title="借出的合同(${map.count2 })" class="test1">
  208. <div id="maingrid1" style="margin: 0;" class="forum-container">
  209. <ul>
  210. <li>
  211. <table class="index-table line" width="100%">
  212. <tr>
  213. <th width="50%">&nbsp;&nbsp;合同名称</th>
  214. <th width="15%">&nbsp;&nbsp;借阅人</th>
  215. <th width="30%">&nbsp;&nbsp;到期时间</th>
  216. </tr>
  217. <c:if test="${empty map.list2}">
  218. <tr>
  219. <td colspan="3">没有查询到相关信息……</td>
  220. </tr>
  221. </c:if>
  222. <c:forEach items="${map.list2 }" var="list2" varStatus="i">
  223. <tr class="${(i.index+1)%2==0?'two':'one'}">
  224. <td style="text-align: left;">
  225. <span class="overhidden">
  226. <a href="#" onclick="tomore()">${list2.contract_name}</a>
  227. </span>
  228. </td>
  229. <td style="text-align: left;">${list2.name}</td>
  230. <td style="text-align: left;">
  231. <font class="fontred">
  232. <c:if test="${list2.gotime=='0'}">今天到期</c:if>
  233. <c:if test="${list2.gotime!='0'}">${list2.gotime}天后到期</c:if>
  234. </font>
  235. </td>
  236. </tr>
  237. </c:forEach>
  238. </table>
  239. </li>
  240. </ul>
  241. </div>
  242. </div>
  243. </h:isAuthor>
  244. <!-- 预警都去掉 这是“预警日志查看” 菜单 linww 20150312 begin-->
  245. <%-- <h:isAuthor key="/contractEntry?task=toList"> --%>
  246. <%-- <div title="合同预警(${map.count3 })" class="test1"> --%>
  247. <!-- <div id="maingrid1" style="margin: 0; height: 200px;" class="forum-container"> -->
  248. <!-- <ul> -->
  249. <!-- <li> -->
  250. <!-- <table class="index-table line" width="100%"> -->
  251. <!-- <tr> -->
  252. <!-- <th width="50%">&nbsp;&nbsp;合同名称</th> -->
  253. <!-- <th width="15%">&nbsp;&nbsp;里程碑</th> -->
  254. <!-- <th width="20%">&nbsp;&nbsp;到期时间</th> -->
  255. <!-- <th width="20%">&nbsp;&nbsp;操作</th> -->
  256. <!-- </tr> -->
  257. <%-- <c:if test="${empty map.list3}"> --%>
  258. <!-- <tr> -->
  259. <!-- <td colspan="4">没有查询到相关信息……</td> -->
  260. <!-- </tr> -->
  261. <%-- </c:if> --%>
  262. <%-- <c:forEach items="${map.list3 }" var="list3" varStatus="i"> --%>
  263. <%-- <tr class="${(i.index+1)%2==0?'two':'one'}"> --%>
  264. <!-- <td style="text-align: left;"> -->
  265. <!-- <span class="overhidden"> -->
  266. <%-- <a href="#" onclick="viewContractMyLaunch(${list3.contract_id})"> --%>
  267. <%-- ${list3.contract_name } --%>
  268. <!-- </a> -->
  269. <!-- </span> -->
  270. <!-- </td> -->
  271. <!-- <td style="text-align: left;"> -->
  272. <%-- <c:forEach items="${map.cdList }" var="cdList"> --%>
  273. <%-- <c:if test="${cdList.dvalue==list3.status_name }">${ cdList.dname}</c:if> --%>
  274. <%-- </c:forEach> --%>
  275. <!-- </td> -->
  276. <!-- <td style="text-align: left;"> -->
  277. <%-- <c:if test="${list3.gotime=='0'}"><font class="fontred">今天到期</font></c:if> --%>
  278. <%-- <c:if test="${list3.gotime!='0'}"><font class="fontred">${list3.gotime}天后到期</font></c:if> --%>
  279. <!-- </td> -->
  280. <%-- <td style="text-align: left;"><a href="#" onclick="viewContractMyLaunch(${list3.contract_id})"><font class="fontblue">查看</font></a></td> --%>
  281. <!-- </tr> -->
  282. <%-- </c:forEach> --%>
  283. <!-- </table> -->
  284. <!-- </li> -->
  285. <!-- </ul> -->
  286. <!-- </div> -->
  287. <!-- </div> -->
  288. <%-- </h:isAuthor> --%>
  289. <!-- 预警都去掉 这是“预警日志查看” 菜单 linww 20150312 end-->
  290. </div>
  291. </body>
  292. </html>