datagrid 生成动态列(一) 页面部分

一、效果图

二、页面部分

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<base href="<%=basePath%>">
<meta charset="UTF-8">
    <title>Column Group - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="resources/js/easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="resources/js/easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="resources/js/easyui-1.5.2/demo.css">
    <script type="text/javascript" src="resources/js/easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="resources/js/easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="resources/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="resources/js/dwView.js?time=<%=new Date().getTime()%>"></script>
    <!–[if lt IE 7]>
    <script  type="text/JavaScript" src="resources/js/json2.js"></script>
    <![endif]–>
<title>客户池</title>
<body>
      <div id="searchtb" style="padding:6px;height:auto">
           <table>
            <tr>
                  <td>
                     <input class="easyui-textbox" id="pstxt"
                     value="客户名称、物料编码" style="width: 350px;color:#A4A4A4""></input>
                    </td>
                    <td>
                          <input id="d4311" type="text" class="easyui-datebox" size="13px;" >到
                         <input id="d4312" type="text" class="easyui-datebox"   size="13px;"></input>
                    </td>
              <td>
                  <input  type="button" onclick="search()" value="查询" />
             </td>
            </tr>
        </table>
    </div>
    <table id="dwDatagrid">
    </table>
</body>
</html>

 

posted @ 2017-06-16 16:12  albert_think  阅读(165)  评论(0编辑  收藏  举报