selectTranDetailList.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <head>
  5. <title>调拨单详细列表</title>
  6. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  8. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  10. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript">
  15. var grid = null;
  16. $(document).ready(function(){
  17. searchByKword();
  18. });
  19. function loadTranDetailList(params) {
  20. grid = $("#tranDetailGrid")
  21. .ligerGrid(
  22. {
  23. columns : [
  24. {
  25. display : '调拨明细id',
  26. name : 'universalid',
  27. width : 120,
  28. hide:true
  29. },
  30. {
  31. display : '调拨id',
  32. name : 'tran_id',
  33. width : 220,
  34. hide:true
  35. },
  36. {
  37. display : '存货id',
  38. name : 'product_id',
  39. width : 120,
  40. hide:true
  41. },
  42. {
  43. display : '材料编号',
  44. name : 'product_num',
  45. width : 120
  46. },
  47. {
  48. display : '材料名称',
  49. name : 'product_name',
  50. width : 120
  51. },
  52. {
  53. display : '材料规格',
  54. name : 'product_stand_model',
  55. width : 120
  56. },
  57. {
  58. display : '数量(吨)',
  59. name : 'product_count',
  60. width : 120
  61. },
  62. {
  63. display : '已调拨数量(吨)',
  64. name : 'traned_count',
  65. width : 120
  66. },
  67. {
  68. display : '发料仓库',
  69. name : 'depot_id',
  70. width : 120,
  71. hide:true
  72. },
  73. {
  74. display : '发料仓库',
  75. name : 'depot_name',
  76. width : 120
  77. }],
  78. usePager : false,
  79. checkbox: true,
  80. url : 'erpTransferAction.do?task=getTranDetailList&lookup=${lookup}&tran_id=${tran_id}'+params
  81. + '&time='
  82. + new Date().getTime(),
  83. width : '99.9%',
  84. height : '99.9%'
  85. });
  86. $("#pageloading").hide();
  87. }
  88. function searchByKword(){
  89. if(grid!=null){
  90. grid.set("newPage","1");
  91. }
  92. var params="";
  93. var product_num=$("#product_num").val();
  94. params=params+"&product_num="+encodeURI(encodeURI(product_num));
  95. var product_name=$("#product_name").val();
  96. params=params+"&product_name="+encodeURI(encodeURI(product_name));
  97. loadTranDetailList(params);
  98. }
  99. function f_select() {
  100. var rows = grid.getCheckedRows();
  101. return rows;
  102. }
  103. </script>
  104. </head>
  105. <BODY>
  106. <%@ include file="/include/button.jsp"%>
  107. <%@ include file="/include/message.jsp"%>
  108. <div class="container">
  109. <div class="default_search" style="margin: 0;">
  110. <ul class="list_search" style="width:300px;">
  111. <li class="title">材料编号:</li>
  112. <li class="text" >
  113. <input type="text" name="product_num" id="product_num" value=""/>
  114. </li>
  115. </ul>
  116. <ul class="list_search" style="float:left;width:300px">
  117. <li class="title">材料名称:</li>
  118. <li class="text" style="width:190px;">
  119. <input type="text" name="product_name" id="product_name" value=""/>
  120. </li>
  121. </ul>
  122. <ul>
  123. <li class="search-button"><input type="button" class='l-button'
  124. name="search" onclick="searchByKword()" value="查询" /></li>
  125. </ul>
  126. </div>
  127. <div style="overflow: hidden; clear: both;">
  128. <div id="tranDetailGrid" style="margin: 0; padding: 0"></div>
  129. </div>
  130. </div>
  131. </BODY>
  132. </HTML>