| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <!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>
- <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/ligerui.all.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- $(function() {
- loadArchiveList();
- });
- var grid;
- function loadArchiveList(param1,param2) {
- var jsonObject;
- $(function() {
- grid = $("#archiveGrid").ligerGrid({columns :
- [{display : '档案编号',name : 'archive_num',width : 120},
- {display : '档案名称',name : 'archive_name',width : 220,render: function(a,b){
- var archive_name = a["archive_name"];
- var universalid = a["universalid"];
- return '<a href=\"#\" onclick=\"addTab(\''+new Date().getTime()+'\', \'查看档案信息\', \'amsArchiveMgr.do?method=toDetailArchive&archiveInfo.universalid='+ universalid+ '\');\">'+archive_name+'</a>';
- }},
- {display : '档案类目',name : 'archive_type',width : 120,
- render : function(row){
- if(null !=row.archive_type){
- var archiveType = "";
- $.ajax({
- url:'amsMyBorrowAction.do?task=checkArchiveType',
- async: false,
- type: 'post',
- data: {"archive_type":row.archive_type},
- cache: false,
- error: function(obj){},
- success: function(obj){if(obj!=""){archiveType = obj;}}
- });
- return '<a href=\"#\" onclick=\"addTab(\''+new Date().getTime()+'\', \'查看档案类目\', \'amsCategory.do?method=toCategory&archive_type='+ row.archive_type+ '\');\">'+archiveType+'</a>';;
- }
- }},
- {display : '档案介质',name : 'archive_medium',width : 120,
- render : function(row){
- if(null !=row.archive_medium){
- var archiveMedium = "";
- $.ajax({
- url:'amsApplicationBorrowAction.do?task=checkArchiveMedium',
- async: false,
- type: 'post',
- data: {"archive_medium":row.archive_medium},
- cache: false,
- error: function(obj){},
- success: function(obj){if(obj!=""){archiveMedium = obj;}}
- });
- return archiveMedium;
- }
- }},
- {display : '档案密级',name : 'archive_rank',width : 120,
- render : function(row){
- if(null !=row.archive_rank){
- var archiveRank = "";
- $.ajax({
- url:'amsApplicationBorrowAction.do?task=checkArchiveRank',
- async: false,
- type: 'post',
- data: {"archive_rank":row.archive_rank},
- cache: false,
- error: function(obj){},
- success: function(obj){if(obj!=""){archiveRank = obj;}}
- });
- return archiveRank;
- }
- }}],
- pageSizeOptions: [5,10, 20, 30, 40, 50],
- url : 'amsApplicationBorrowAction.do?task=archoveListChoose&time='+ new Date().getTime()+param1+param2,
- parms :jsonObject,
- pageParmName : 'p',
- pagesizeParmName : 'pSize',
- width : '99.5%',
- height : '99%',
- onError:function(err){
- alert("获取数据失败,请刷新页面后重试!");
- }
- });
- $("#pageloading").hide();
- //$(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- $(".l-grid-hd-cell-btn-checkbox").css("readonly", "true");
- });
-
- }
- //选择选中的行
- function f_select1() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- function searchByKword() {
- grid.set("newPage","1");
- var archive_name= document.getElementById("archive_name");//档案名称
- var s1 = "";
- if (archive_name.value != "" && typeof (archive_name.value) != "undefined") {
- s1 += "&archive_name=" + encodeURI(encodeURI(archive_name.value));
- }
- //var descriptor= document.getElementById("descriptor");//主题词
- //var s2 = "";
- //if (descriptor.value != "" && typeof (descriptor.value) != "undefined") {
- // s2 += "&descriptor=" + encodeURI(encodeURI(descriptor.value));
- //}
- var archive_num= document.getElementById("archive_num");//档案编号
- var s3 = "";
- if (archive_num.value != "" && typeof (archive_num.value) != "undefined") {
- s3 += "&archive_numbers=" + encodeURI(encodeURI(archive_num.value));
- }
- loadArchiveList(s1,s3);
- }
- function searchAll() {
- $("#archive_name").val("");
- //$("#descriptor").val("");
- $("#archive_num").val("");
- loadArchiveList();
- }
- </script>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <form action="" method="post">
- <div class="container">
- <div class="default_search" style="margin: 0;">
- <ul class="list_search" style="width:250px;">
- <li class="title">档案编号:</li>
- <li class="text">
- <input type="text" name="archive_num" id="archive_num" style="width: 110px;">
- </li>
- </ul>
- <ul class="list_search" style="width:250px;">
- <li class="title">档案名称:</li>
- <li class="text">
- <input type="text" name="archive_name" id="archive_name" style="width: 110px;">
- </li>
- </ul>
- <!-- <ul class="list_search" style="width:250px;">
- <li class="title">主题词:</li>
- <li class="text">
- <input type="text" name="descriptor" id="descriptor" style="width: 110px;">
- </li>
- </ul> -->
- <div>
- </div>
- <ul>
- <li class="search-button">
-
- <input type="button" class='l-button'name="search" onclick="searchByKword()" value="搜索" />
- <input type="button" class='l-button'name="search" onclick="searchAll()" value="搜索全部" />
- </li>
- </ul>
- </div>
- <div style="clear:both;"></div>
- <div style="overflow: hidden; clear: both;">
- <div id="archiveGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </form>
- </body>
- </html>
|