archiveLookUpSearch.jsp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>档案检索</title>
  7. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  8. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  10. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  11. <script type="text/javascript" src="/shares/js/constant.js"></script>
  12. <script type="text/javascript" src="/shares/js/common.js"></script>
  13. <script type="text/javascript">
  14. $(function() {
  15. loadArchiveList();
  16. });
  17. var grid;
  18. function loadArchiveList(param1,param2) {
  19. var jsonObject;
  20. $(function() {
  21. grid = $("#archiveGrid").ligerGrid({columns :
  22. [{display : '档案编号',name : 'archive_num',width : 120},
  23. {display : '档案名称',name : 'archive_name',width : 220,render: function(a,b){
  24. var archive_name = a["archive_name"];
  25. var universalid = a["universalid"];
  26. return '<a href=\"#\" onclick=\"addTab(\''+new Date().getTime()+'\', \'查看档案信息\', \'amsArchiveMgr.do?method=toDetailArchive&archiveInfo.universalid='+ universalid+ '\');\">'+archive_name+'</a>';
  27. }},
  28. {display : '档案类目',name : 'archive_type',width : 120,
  29. render : function(row){
  30. if(null !=row.archive_type){
  31. var archiveType = "";
  32. $.ajax({
  33. url:'amsMyBorrowAction.do?task=checkArchiveType',
  34. async: false,
  35. type: 'post',
  36. data: {"archive_type":row.archive_type},
  37. cache: false,
  38. error: function(obj){},
  39. success: function(obj){if(obj!=""){archiveType = obj;}}
  40. });
  41. return '<a href=\"#\" onclick=\"addTab(\''+new Date().getTime()+'\', \'查看档案类目\', \'amsCategory.do?method=toCategory&archive_type='+ row.archive_type+ '\');\">'+archiveType+'</a>';;
  42. }
  43. }},
  44. {display : '档案介质',name : 'archive_medium',width : 120,
  45. render : function(row){
  46. if(null !=row.archive_medium){
  47. var archiveMedium = "";
  48. $.ajax({
  49. url:'amsApplicationBorrowAction.do?task=checkArchiveMedium',
  50. async: false,
  51. type: 'post',
  52. data: {"archive_medium":row.archive_medium},
  53. cache: false,
  54. error: function(obj){},
  55. success: function(obj){if(obj!=""){archiveMedium = obj;}}
  56. });
  57. return archiveMedium;
  58. }
  59. }},
  60. {display : '档案密级',name : 'archive_rank',width : 120,
  61. render : function(row){
  62. if(null !=row.archive_rank){
  63. var archiveRank = "";
  64. $.ajax({
  65. url:'amsApplicationBorrowAction.do?task=checkArchiveRank',
  66. async: false,
  67. type: 'post',
  68. data: {"archive_rank":row.archive_rank},
  69. cache: false,
  70. error: function(obj){},
  71. success: function(obj){if(obj!=""){archiveRank = obj;}}
  72. });
  73. return archiveRank;
  74. }
  75. }}],
  76. pageSizeOptions: [5,10, 20, 30, 40, 50],
  77. url : 'amsApplicationBorrowAction.do?task=archoveListChoose&time='+ new Date().getTime()+param1+param2,
  78. parms :jsonObject,
  79. pageParmName : 'p',
  80. pagesizeParmName : 'pSize',
  81. width : '99.5%',
  82. height : '99%',
  83. onError:function(err){
  84. alert("获取数据失败,请刷新页面后重试!");
  85. }
  86. });
  87. $("#pageloading").hide();
  88. //$(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  89. $(".l-grid-hd-cell-btn-checkbox").css("readonly", "true");
  90. });
  91. }
  92. //选择选中的行
  93. function f_select1() {
  94. var rows = grid.getCheckedRows();
  95. return rows;
  96. }
  97. function searchByKword() {
  98. grid.set("newPage","1");
  99. var archive_name= document.getElementById("archive_name");//档案名称
  100. var s1 = "";
  101. if (archive_name.value != "" && typeof (archive_name.value) != "undefined") {
  102. s1 += "&archive_name=" + encodeURI(encodeURI(archive_name.value));
  103. }
  104. //var descriptor= document.getElementById("descriptor");//主题词
  105. //var s2 = "";
  106. //if (descriptor.value != "" && typeof (descriptor.value) != "undefined") {
  107. // s2 += "&descriptor=" + encodeURI(encodeURI(descriptor.value));
  108. //}
  109. var archive_num= document.getElementById("archive_num");//档案编号
  110. var s3 = "";
  111. if (archive_num.value != "" && typeof (archive_num.value) != "undefined") {
  112. s3 += "&archive_numbers=" + encodeURI(encodeURI(archive_num.value));
  113. }
  114. loadArchiveList(s1,s3);
  115. }
  116. function searchAll() {
  117. $("#archive_name").val("");
  118. //$("#descriptor").val("");
  119. $("#archive_num").val("");
  120. loadArchiveList();
  121. }
  122. </script>
  123. </head>
  124. <body>
  125. <%@ include file="/include/message.jsp"%>
  126. <form action="" method="post">
  127. <div class="container">
  128. <div class="default_search" style="margin: 0;">
  129. <ul class="list_search" style="width:250px;">
  130. <li class="title">档案编号:</li>
  131. <li class="text">
  132. <input type="text" name="archive_num" id="archive_num" style="width: 110px;">
  133. </li>
  134. </ul>
  135. <ul class="list_search" style="width:250px;">
  136. <li class="title">档案名称:</li>
  137. <li class="text">
  138. <input type="text" name="archive_name" id="archive_name" style="width: 110px;">
  139. </li>
  140. </ul>
  141. <!-- <ul class="list_search" style="width:250px;">
  142. <li class="title">主题词:</li>
  143. <li class="text">
  144. <input type="text" name="descriptor" id="descriptor" style="width: 110px;">
  145. </li>
  146. </ul> -->
  147. <div>
  148. </div>
  149. <ul>
  150. <li class="search-button">
  151. &nbsp;&nbsp;&nbsp;&nbsp;
  152. <input type="button" class='l-button'name="search" onclick="searchByKword()" value="搜索" />
  153. <input type="button" class='l-button'name="search" onclick="searchAll()" value="搜索全部" />
  154. </li>
  155. </ul>
  156. </div>
  157. <div style="clear:both;"></div>
  158. <div style="overflow: hidden; clear: both;">
  159. <div id="archiveGrid" style="margin: 0; padding: 0"></div>
  160. </div>
  161. </div>
  162. </form>
  163. </body>
  164. </html>