mtAttachedLog.jsp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>流程列表</title>
  8. <!-- <script type="text/javascript" src="/shares/js/yw/ams/flow/amsflow.js"></script> -->
  9. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  18. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  19. <script type="text/javascript">
  20. $(function() {
  21. $("#beginDate").ligerDateEditor({
  22. showTime : true,
  23. labelAlign : 'left',
  24. width : 130,
  25. height : 21
  26. });
  27. $("#endDate").ligerDateEditor({
  28. showTime : true,
  29. labelAlign : 'left',
  30. width : 130,
  31. height : 21
  32. });
  33. initList();
  34. });
  35. function searchByKword(s) {
  36. var p = $("#p").val();
  37. var pSize = getPize();
  38. var param = {
  39. "p" : p,
  40. "pSize" : pSize
  41. };
  42. // url : 'amsAttachedLog.do?method=attachedLogData&time='+ new Date().getTime()+s,
  43. sendAsyncAjax(
  44. param,
  45. "mtAmsAttachedLog.do?method=attachedLogData" + s + "&time="
  46. + new Date().getTime(),
  47. "json",
  48. function(data) {
  49. var num = data.Total;
  50. page(num, pSize, p);
  51. var archiveList = data.Rows;
  52. var item_name = $('#contentDiv');
  53. $(item_name).empty();//初始化table,清空table
  54. var html = '';
  55. if (archiveList.length == 0) {
  56. html = notquery();
  57. } else {
  58. var j = 0;
  59. for (var i = 0; i < archiveList.length; i++) {
  60. var arr = archiveList[i];
  61. var bdiv = 1;
  62. bdiv = 1 + j;
  63. if (j < 7) {
  64. j++;
  65. } else {
  66. j = 0;
  67. }
  68. ;
  69. html += '<div class="tr_cont_new mar4 f5_new">';
  70. html += ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
  71. html += ' <div class="tr_rw_d_new fl">';
  72. html += '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
  73. html += "【";
  74. html += arr.category_name;
  75. html += "】";
  76. html += "&nbsp;&nbsp;&nbsp;&nbsp;部门:";
  77. if (null == arr.groupname) {
  78. html += "&nbsp;&nbsp;--";
  79. } else {
  80. html += "&nbsp;&nbsp;" + arr.groupname;
  81. }
  82. html += "&nbsp;&nbsp;&nbsp;&nbsp;档案名称:";
  83. html += '&nbsp;&nbsp;' + arr.archive_name;
  84. html += "&nbsp;&nbsp;&nbsp;&nbsp;附件名称:";
  85. html += '&nbsp;&nbsp;' + arr.srcfile;
  86. html += "&nbsp;&nbsp;&nbsp;&nbsp;操作类型:";
  87. html += '&nbsp;&nbsp;';
  88. if (arr.op_type == 'V')
  89. html += '附件在线预览';
  90. else if (arr.op_type == 'A')
  91. html += '新增';
  92. else if (arr.op_type == 'M')
  93. html += '修改';
  94. else if (arr.op_type == 'D')
  95. html += '下载附件';
  96. else if (arr.op_type == 'R')
  97. html += '删除';
  98. html += '&nbsp;&nbsp; </p>';
  99. html += '<p class="mar5">操作人:' + arr.op_username;
  100. html += '&nbsp;&nbsp;&nbsp;&nbsp;操作时间:'
  101. + arr.op_time;
  102. html += '</p></div>';
  103. html += ' <div class="tr_rw_btn_new fr">';
  104. html += '<div class="div_btn"></div>';
  105. html += ' </div>';
  106. html += '</div>';
  107. }
  108. }
  109. $(item_name).html(html);
  110. });
  111. }
  112. function subDate(d) {
  113. var s = "";
  114. if (d != null && d.length > 10) {
  115. return s = d.substring(0, 10);
  116. } else {
  117. return s;
  118. }
  119. ;
  120. }
  121. function initList() {
  122. var archive_name = searchBox.getValue();
  123. var s = "";
  124. s += "&op_type=" + encodeURI(encodeURI($("#op_type").val()));
  125. s += "&category_name="
  126. + encodeURI(encodeURI($("#category_name").val()));
  127. // s += "&beginCreateDate="
  128. // + encodeURI(encodeURI($("#beginCreateDate").val()));
  129. // s += "&endCreateDate="
  130. // + encodeURI(encodeURI($("#endCreateDate").val()));
  131. if (archive_name != "" && typeof (archive_name) != "undefined") {
  132. s += "&archive_name=" + encodeURI(encodeURI(archive_name));
  133. }
  134. searchByKword(s);
  135. }
  136. </script>
  137. </head>
  138. <body>
  139. <div class="tc_b">
  140. <div id="left" style="float: left; width: 100%;">
  141. <div class="tc_r">
  142. <div class="tr_con b5 f4">
  143. <div class="fl f4">
  144. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;附件日志查看
  145. </div>
  146. <div class="fl ">
  147. <div class="fl mar2">档案类目:</div>
  148. <div class="fl mar2 mar6">
  149. <input type="text" id="category_name" name="map.category_name">
  150. </div>
  151. <!-- <div class="fl mar2">操作时间:</div> -->
  152. <!-- <div class="fl mar2 mar6"> -->
  153. <!-- <input type="text" id="beginCreateDate" name="startCreateDate" > -->
  154. <!-- </div> -->
  155. <!-- <div class="fl mar2">至:</div> -->
  156. <!-- <div class="fl mar2 mar6"> -->
  157. <!-- <input type="text" id="endCreateDate" name="endCreateDate" > -->
  158. <!-- </div> -->
  159. <div class="fl mar2">操作类型:</div>
  160. <div class="fl mar2 mar6">
  161. <select id="op_type" onchange="initList()">
  162. <option value="">全部</option>
  163. <option value="V">附件在线预览</option>
  164. <option value="D">下载附件</option>
  165. </select>
  166. </div>
  167. </div>
  168. <div class="div_ck_k fr">
  169. <input class="div_cx fl" name="archive_name" id="archive_name" type="text" />
  170. <input class="btn_ck fl" type="button" onclick="initList();" id="button" />
  171. </div>
  172. </div>
  173. <div class="tr_right_bg fl">
  174. <div id="contentDiv"></div>
  175. <jsp:include page="/yw/master1/page.jsp">
  176. <jsp:param name="functionName" value="initList" />
  177. <jsp:param name="p" value="1" />
  178. <jsp:param name="pSize" value="7" />
  179. </jsp:include>
  180. </div>
  181. </div>
  182. </div><%@ include file="/yw/master1_ams/statistical/leftStatistical.jsp"%>
  183. </div>
  184. </body>
  185. </html>