123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page import ="java.util.*"%>
- <%@ page language="java"
- import="com.sysmodel.XFormModelImpl,
- com.sysmodel.xformmodel.impl.*"%>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <script type="text/javascript" src="../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <link rel="stylesheet" href="../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <script type="text/javascript" src="../../../scripts/ext20/ext-all.js"></script>
-
-
- <script type="text/javascript">
- Ext.onReady(function(){
- Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
- var myData = [
- <% ArrayList regExps=XFormModelImpl.getInstance().getRegExps();
- for(int j = 0; j<regExps.size(); j++){
- RegExpImpl RegExpImpl=(RegExpImpl)regExps.get(j);
- String code= RegExpImpl.getCode();
- String name= RegExpImpl.getName();
- String value=RegExpImpl.getValue();
- String Description=RegExpImpl.getDescription();
- out.print("['"+code+"','"+value+"','"+name+"','"+Description+"']");
- if (j != regExps.size() - 1) out.print(",\n");
- }%>
-
- ];
-
- var store = new Ext.data.SimpleStore({
- fields: [
- {name: 'code', type: 'int'},
- {name: 'value'},
- {name: 'name'},
- {name: 'description'}
- ]
- });
- store.loadData(myData);
-
- var grid = new Ext.grid.GridPanel({
- store: store,
- columns: [new Ext.grid.RowNumberer(),
- {header: "编号", width: 75, sortable: true,dataIndex: 'code'},
- {header: "对应的value", width: 75, sortable: true,dataIndex: 'value'},
- {header: "名称", width: 75, sortable: true,dataIndex: 'name'},
- {header: "描述", width: 85, sortable: true,dataIndex: 'description'}
- ],
- stripeRows: true,
- height:500,
- width:750,
- title:'页面中政则表达式配置'
- });
-
- grid.render('report');
- grid.getSelectionModel().selectFirstRow();
- });
- </script>
- </head>
- <body>
- <div id="report"></div>
- </body>
- </html>
|