unitQuery3.jsp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  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. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  11. <link href="${pageContext.request.contextPath}/main.css"
  12. rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. $(function() {
  17. loadUnitList();
  18. $("#unit_type").ligerComboBox();
  19. });
  20. var grid = null;
  21. function loadUnitList(params1) {
  22. grid = $("#dictionaryList")
  23. .ligerGrid({columns : [
  24. {display : '单位名称',name : 'unit_name',width : 120},
  25. {display : '单位类型' ,name : 'unit_type',width : 120,
  26. render :function(a,b){
  27. var s = a["unit_type"];
  28. if(s=="1"){
  29. return '保险公司';
  30. }else if(s=="2"){
  31. return '油气站';
  32. }else if(s=="3"){
  33. return '车管所';
  34. }else if(s=="4"){
  35. return '4S店';
  36. }else{
  37. return '其它';
  38. }}},
  39. {display : '单位地址',name : 'unit_place',width : 120},
  40. {display : '联系人',name : 'unit_contact',width : 120},
  41. {display : '电话',name : 'unit_phone',width : 120}
  42. ],
  43. pageSizeOptions: [5,10, 20, 30, 40, 50, 100],
  44. url : 'carDealingsUnitAction.do?task=toUnitList&unit_type=1&time='
  45. + new Date().getTime() + params1,
  46. pageParmName : 'p', //页索引参数名,(提交给服务器)
  47. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  48. width : '99.5%',
  49. height : '99%',
  50. checkbox : true});
  51. $("#pageloading").hide();
  52. }
  53. function searchByKword() {
  54. grid.set("newPage","1");
  55. var unit_name = document.getElementById("unit_name");//
  56. var s1 = "";
  57. if (unit_name.value != "" && typeof (unit_name.value) != "undefined") {
  58. s1 += "&unit_name=" + encodeURI(encodeURI(unit_name.value));
  59. }
  60. $(function() {
  61. loadUnitList(s1);
  62. });
  63. }
  64. //获取行信息
  65. function f_select(){
  66. var rows = grid.getCheckedRows();
  67. return rows;
  68. }
  69. $(document).ready(function() {
  70. $("[name='unit_name']").focus();
  71. });
  72. </script>
  73. </head>
  74. <body>
  75. <%@ include file="/include/message.jsp"%>
  76. <form action="carDeclarationAction.do" method="post">
  77. <input type="hidden" id="tabid" name="tabid" value="getCurrentTabId()">
  78. <input type="hidden" id="user_id" name="user_id" value="">
  79. <input type="hidden" id="task" name="task" value="exportExcel">
  80. <div class="container">
  81. <div class="default_search" style="margin: 0;">
  82. <ul class="list_search">
  83. <li class="title">单位名称:</li>
  84. <li class="text"><input type="text" name="unit_name" id="unit_name">
  85. </li>
  86. </ul>
  87. <ul class="list_search">
  88. <li class="title">单位类型:</li>
  89. <li class="text">
  90. <select name="unit_type" id="unit_type" disabled="disabled">
  91. <option value="1">保险公司</option>
  92. <option value="2">油气站</option>
  93. <option value="3">车管所</option>
  94. <option value="4">4S店</option>
  95. <option value="5">其它</option>
  96. </select>
  97. </li>
  98. </ul>
  99. <ul>
  100. <li class="search-button"><input type="button" class='l-button'
  101. name="search" onclick="searchByKword()" value="查询" /></li>
  102. </ul>
  103. </div>
  104. <div style="clear:both;"></div>
  105. <div style="overflow: hidden; clear: both;">
  106. <div id="dictionaryList" style="margin: 0; padding: 0"></div>
  107. </div>
  108. </div>
  109. </form>
  110. </body>
  111. </html>