<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib uri="/WEB-INF/taglib.tld" prefix="x"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<x:base include="layout,dialog,grid,tree,dateTime,combox,attachment,commonTree,comboDialog" />

<script type="text/javascript">
var name="${name}";
var dataGridManager = null;
$(document).ready(function () {
        initUI();
        initDataListGrid();
    }
);


function initUI() {
    UICtrl.initDefaultLayout();
}

function initDataListGrid() {
    //var toolbarOptions = [];
  
    dataGridManager = UICtrl.grid('#viewDataGrid', {
            columns: [{
                display: "行数", name: "line", width: "10%", minWidth: "60",align: "center",type: "string"}
            
                ,{display: "内容", name: "text", width: "88%", minWidth: "540", align: "left", type: "string"}
                 ],
            dataAction: 'server',
            url: web_app.name + '/safFormslist/slicedQueryFormFunctionOrProcduceContent.load?name='+name,
           // toolbar: toolbarOptions,
            width: '99.8%',
            height: '80%',
            heightDiff: -4,
            sortName: 'line',
            sortOrder: 'asc',
            checkbox: true,
            usePager: true,
            pageSize:50,
            rownumbers: false,
            enabledEdit: false,
            fixedCellHeight: false,
            selectRowButtonOnly: true
          }
    );
    UICtrl.setSearchAreaToggle(dataGridManager);
}

</script>
</head>
 <body>
 <div class="container-fluid">
     <div id="layout">
         <div position="center" title="">

	<div id="viewDataGrid" style="margin:2px;height:500px"></div>
    </div>
    </div>
    </div>
 </body>
</html>

