123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <link href="../../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="../../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="../../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="../../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
-
- <script src="../AllProductData.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function () {
- $("#maingrid").ligerGrid({
- columns: [
- { display: '主键', name: 'ProductID', type: 'int', totalSummary:
- {
- type: 'count'
- }
- },
- { display: '产品名', name: 'ProductName', align: 'left', width: 200 },
- { display: '单价', name: 'UnitPrice', align: 'right', type:'float',
- totalSummary:
- {
- render: function (suminf, column, cell)
- {
- return '<div>最大值:' + suminf.max + '</div>';
- },
- align: 'left'
- }
- },
- { display: '仓库数量', name: 'UnitsInStock', align: 'right', type: 'float',
- totalSummary:
- {
- type: 'sum'
- }
- }
- ], dataAction: 'local',
- data: AllProductData, sortName: 'ProductID',
- showTitle: false, totalRender: f_totalRender,
- width: '100%', height: '100%',heightDiff:-10
- });
- $("#pageloading").hide();
- });
- function f_totalRender(data, currentPageData)
- {
- return "总仓库数量:"+data.UnitsInStockTotal;
- }
- </script>
- </head>
- <body style="padding:6px; overflow:hidden; ">
-
- <div id="maingrid" style="margin:0; padding:0"></div>
-
- <div style="display:none;">
- <!-- g data total ttt -->
- </div>
-
- </body>
- </html>
|