| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>流程列表</title>
- <!-- <script type="text/javascript" src="/shares/js/yw/ams/flow/amsflow.js"></script> -->
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.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}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- var borrowType = ${borrowType};
- $(function() {
- initList();
- });
- function searchByKword(s) {
- var p = $("#p").val();
- var pSize = getPize();
- var param = {
- "p" : p,
- "pSize" : pSize
- };
- // url : 'amsBorrowMgrAction.do?task=borrowCheckList&time='+ new Date().getTime(),
- sendAsyncAjax(
- param,
- "mtAmsBorrowMgrAction.do?task=borrowCheckList" + s + "&time="
- + new Date().getTime(),
- "json",
- function(data) {
- var num = data.Total;
- page(num, pSize, p);
- var archiveList = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if (archiveList.length == 0) {
- html = notquery();
- } else {
- var j = 0;
- for (var i = 0; i < archiveList.length; i++) {
- var arr = archiveList[i];
- var bdiv = 1;
- bdiv = 1 + j;
- if (j < 7) {
- j++;
- } else {
- j = 0;
- }
- ;
- html += '<div class="tr_cont_new mar4 f5_new">';
- html += ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html += ' <div class="tr_rw_d_new fl">';
- html += '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
- html += arr.archive_num;
- html += " "+arr.archive_name;
- var borrow_type = "";
- for (var k = 0; k < borrowType.length; k++) {
- if (borrowType[k]['dvalue'] == arr.borrow_type)
- borrow_type = borrowType[k]['dname'];
- }
- if (borrow_type == "") {
- html += " --";
- } else {
- html += " " + borrow_type;
- }
- html += " 借阅" + arr.borrow_days + "天";
- if (null != arr.borrow_hours) {
- html += arr.borrow_hours + " 小时 ";
- }
- html += " 剩余天数:";
- if (arr["residue_days"] == null) {
- if (arr["au_state"] == "2") {
- if (arr["borrow_type"] != "3") {
- var residueDays = "";
- $
- .ajax({
- url : 'amsMyBorrowAction.do?task=checkResidueDays',
- async : false,
- type : 'post',
- data : {
- "return_time" : arr["return_time"]
- },
- cache : false,
- error : function(obj) {
- },
- success : function(obj) {
- if (obj != "") {
- residueDays = obj;
- }
- }
- });
- if (residueDays < 0) {
- html += '<FONT COLOR=\"red\">'
- + residueDays + ' 天</FONT>';
- } else {
- html += '<FONT COLOR=\"GREEN\">'
- + residueDays + ' 天</FONT>';
- }
- } else {
- html += '--';
- }
- } else {
- html += '--';
- }
- } else {
- if (s < 0) {
- html += '<FONT COLOR=\"red\">'
- + arr["residue_days"] + ' 天</FONT>';
- } else {
- html += '<FONT COLOR=\"GREEN\">'
- + arr["residue_days"] + ' 天</FONT>';
- }
- }
- html += " 审核状态:";
- if (arr.au_state == "0") {
- html += '未审核';
- } else if (arr.au_state == "1") {
- html += "审核中";
- } else if (arr.au_state == "2") {
- html += "审核成功";
- } else if (arr.au_state == "3") {
- html += "驳回";
- }
- html += " 借阅状态:";
- if (arr.au_state == "0") {
- html += '未申请';
- } else {
- if (arr.borrow_state == "1") {
- html += '申请中';
- } else if (arr.borrow_state == "2") {
- html += '借阅中';
- } else if (arr.borrow_state == "3") {
- html += '已归还';
- }
- }
- html += ' </p>';
- html += '<p class="mar5">借阅人:' + arr.name;
- html += " 申请时间:";
- html += subDate(arr.create_date);
- html += " 借阅时间:";
- if (arr.start_borrow_time != null)
- html += subDate(arr.start_borrow_time);
- else
- html += "--";
- html += " 实际归还时间:";
- if (arr.actual_return_time != null)
- html += subDate(arr.actual_return_time);
- else
- html += "--";
- html += '</p></div>';
- html += ' <div class="tr_rw_btn_new fr">';
- html += '<div class="div_btn"></div>';
- html += ' </div>';
- html += '</div>';
- }
- }
- $(item_name).html(html);
- });
- }
- function subDate(d) {
- var s = "";
- if (d != null && d.length > 10) {
- return s = d.substring(0, 10);
- } else {
- return s;
- }
- ;
- }
- function initList() {
- var s = "";
- var archiveName = searchBox.getValue();
- var archiveNum = $("#archiveNum").val();
- var borrowType = $("#borrowType").val();
- var borrowState = $("#borrowState").val();
- if (archiveName != "" && typeof (archiveName) != "undefined") {
- s += "&archiveName=" + encodeURI(encodeURI(archiveName));
- }
- if (archiveNum != "" && typeof (archiveNum) != "undefined") {
- s += "&archiveNum=" + encodeURI(encodeURI(archiveNum));
- }
- if (borrowType != "" && typeof (borrowType) != "undefined") {
- s += "&borrowType=" + borrowType;
- }
- if (borrowState != "" && typeof (borrowState) != "undefined") {
- s += "&borrowState=" + borrowState;
- }
- // grid.set("parms", [ {
- // name : "archiveNum",
- // value : encodeURI($("#archiveNum").val())
- // },{
- // name : "archiveName",
- // value : encodeURI($("#archiveName").val())
- // }, {
- // name : "borrowUser",
- // value : encodeURI($("#borrowUser").val())
- // }, {
- // name : "startCreateDate",
- // value : $("#startCreateDate").val()
- // }, {
- // name : "endCreateDate",
- // value : $("#endCreateDate").val()
- // }, {
- // name : "borrowType",
- // value : $("#borrowType").val()
- // }, {
- // name : "auState",
- // value : $("#auState").val()
- // }, {
- // name : "borrowState",
- // value : $("#borrowState").val()
- // }, {
- // name : "isOverDue",
- // value : $("#isOverDue").val()
- // }]);
- searchByKword(s);
- }
- </script>
- </head>
- <body>
- <div class="tc_b">
- <div id="left" style="float: left; width: 100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl f4">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 借阅查询
- </div>
- <div class="fl ">
- <div class="fl mar2">档案编号:</div>
- <div class="fl mar2 mar6">
- <input type="text" name="archiveNum" id="archiveNum" value="" />
- </div>
- <div class="fl mar2">借阅类型:</div>
- <div class="fl mar2 mar6">
- <select id="borrowType" name="borrowType" onchange="initList();">
- <option value="" selected="selected">-全部-</option>
- <c:forEach items="${borrow_types }" var="types">
- <option value="${types.dvalue }">${types.dname }</option>
- </c:forEach>
- </select>
- </div>
- <div class="fl mar2">借阅状态:</div>
- <div class="fl mar2 mar6">
- <!-- <select id="borrow_statue" name="borrow_type" onchange="initList()"> -->
- <!-- <option value="1" selected="selected">申请中</option> -->
- <!-- <option value="2">借阅中</option> -->
- <!-- <option value="3">已归还</option> -->
- <!-- </select> -->
- <select id="borrowState" name="borrowState" onchange="initList();">
- <option value="">-选择-</option>
- <c:forEach items="${borrow_borrow_state}" var="borrowStates">
- <option value="${borrowStates.dvalue }">${borrowStates.dname }</option>
- </c:forEach>
- </select>
- </div>
- </div>
- <div class="div_ck_k fr">
- <input class="div_cx fl" name="archiveName" id="archiveName" type="text" />
- <input class="btn_ck fl" type="button" onclick="initList();" id="button" />
- </div>
- </div>
- <div class="tr_right_bg fl">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="initList" />
- <jsp:param name="p" value="1" />
- <jsp:param name="pSize" value="7" />
- </jsp:include>
- </div>
- </div>
- </div><%@ include file="/yw/master1_ams/borrowMgr/leftBorrowMgr.jsp"%>
- </div>
- </body>
- </html>
|