| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <head>
- <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/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(document).ready(function(){
- searchByKword();
- });
- function loadTranDetailList(params) {
- grid = $("#tranDetailGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '调拨明细id',
- name : 'universalid',
- width : 120,
- hide:true
- },
- {
- display : '调拨id',
- name : 'tran_id',
- width : 220,
- hide:true
- },
- {
- display : '存货id',
- name : 'product_id',
- width : 120,
- hide:true
- },
- {
- display : '材料编号',
- name : 'product_num',
- width : 120
- },
- {
- display : '材料名称',
- name : 'product_name',
- width : 120
- },
- {
- display : '材料规格',
- name : 'product_stand_model',
- width : 120
- },
- {
- display : '数量(吨)',
- name : 'product_count',
- width : 120
- },
- {
- display : '已调拨数量(吨)',
- name : 'traned_count',
- width : 120
- },
- {
- display : '发料仓库',
- name : 'depot_id',
- width : 120,
- hide:true
- },
- {
- display : '发料仓库',
- name : 'depot_name',
- width : 120
- }],
- usePager : false,
- checkbox: true,
- url : 'erpTransferAction.do?task=getTranDetailList&lookup=${lookup}&tran_id=${tran_id}'+params
- + '&time='
- + new Date().getTime(),
- width : '99.9%',
- height : '99.9%'
- });
- $("#pageloading").hide();
- }
-
- function searchByKword(){
- if(grid!=null){
- grid.set("newPage","1");
- }
- var params="";
- var product_num=$("#product_num").val();
- params=params+"&product_num="+encodeURI(encodeURI(product_num));
- var product_name=$("#product_name").val();
- params=params+"&product_name="+encodeURI(encodeURI(product_name));
- loadTranDetailList(params);
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- </script>
- </head>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="container">
- <div class="default_search" style="margin: 0;">
- <ul class="list_search" style="width:300px;">
- <li class="title">材料编号:</li>
- <li class="text" >
- <input type="text" name="product_num" id="product_num" value=""/>
- </li>
- </ul>
- <ul class="list_search" style="float:left;width:300px">
- <li class="title">材料名称:</li>
- <li class="text" style="width:190px;">
- <input type="text" name="product_name" id="product_name" value=""/>
- </li>
- </ul>
- <ul>
- <li class="search-button"><input type="button" class='l-button'
- name="search" onclick="searchByKword()" value="查询" /></li>
- </ul>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="tranDetailGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </BODY>
- </HTML>
|