123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <% request.setCharacterEncoding("GBK");
- String name = request.getParameter("name") == null ? "0" : request.getParameter("name");
- if(name.equals("")){
- out.print("请先填写基本信息!");
- return;}
- %>
- <HTML>
- <HEAD>
- <TITLE></TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <link rel="stylesheet" href="../../../../../../styles/css.css" type="text/css">
- <LINK rel="stylesheet" href="../../../../../../styles/sortabletable.css" type="text/css">
- <script type="text/javascript" src="../../../../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
- <script type="text/javascript">
- dojo.require("dijit.form.Form");
- dojo.require("dijit.form.ValidationTextBox");
- dojo.require("dijit.form.ComboBox");
- dojo.require("dijit.form.FilteringSelect");
-
-
- dojo.require("dijit.form.NumberSpinner");
-
-
-
- dojo.require("dijit.form.Button");
- dojo.require("dijit.Tooltip");
-
- </script>
- <style type="text/css">
- @import "../../../../../../scripts/dojo/dojo/resources/dojo.css";
- @import "../../../../../../scripts/dojo/dijit/themes/tundra/tundra.css";
- @import "../../../../../../scripts/dojo/dijit/themes/tundra/tundra_rtl.css";
- @import "../../../../../../scripts/dojo/dijit/tests/css/dijitTests.css";
- .formQuestion {
- background-color:#d0e3f5;
- padding:0.3em;
- font-weight:900;
- font-family:Verdana, Arial, sans-serif;
- font-size:0.8em;
- color:#5a5a5a;
- }
- .formAnswer {
- background-color:#f5eede;
- padding:0.3em;
- margin-bottom:1em;
- width: 100%;
- }
- .pageSubContentTitle {
- color:#8e8e8e;
- font-size:1em;
- font-family:Verdana, Arial, sans-serif;
- margin-bottom:0.75em;
- }
- .small INPUT {
- width: 2.5em;
- }
- .medium INPUT {
- width: 10em;
- }
- .long INPUT {
- width: 20em;
- }
- .firstLabel {
- display: inline-block;
- display: -moz-inline-box;
- width: 10em;
- min-width: 10em;
- }
- .secondLabel {
- width: auto;
- margin-left: 5em;
- margin-right: 1em;
- }
- fieldset label {
- margin-right: 1em;
- }
- .noticeMessage {
- display: block;
- float: right;
- font-weight: normal;
- font-family:Arial, Verdana, sans-serif;
- color:#663;
- font-size:0.9em;
- }
- </style>
- <link rel="stylesheet" href="../../../../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <script type="text/javascript" src="../../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="../../../../../../scripts/ext20/ext-all.js"></script>
- <SCRIPT LANGUAGE="JavaScript">
- Ext.onReady(function(){
- function toggleDetails(btn, pressed){
- var view = grid.getView();
- view.showPreview = pressed;
- view.refresh();
- }
-
-
- var ds= new Ext.data.Store({
- proxy: new Ext.data.ScriptTagProxy({url:'listCols.jsp?name=<%=name%>'}),
-
- reader: new Ext.data.JsonReader( {root:'root'},
- [{name: 'Name'},
- {name: 'Description'},
- {name: 'DataType'},
- {name: 'Length'},
- {name: 'Scale'},
- {name: 'ReferenceParentName'},
- {name: 'isDisplay'},
- {name: 'isUnique'},
- {name: 'del'}
- ])});
-
- var cm=new Ext.grid.ColumnModel(
- [ new Ext.grid.RowNumberer(),
- {header: '英文名称', dataIndex: 'Name',sortable: true},
- {header: '中文描述', dataIndex: 'Description',sortable: true},
- {header: '类型', dataIndex: 'DataType'},
- {header: '长度', dataIndex: 'Length',width: 40},
- {header: '格式化类型', dataIndex: 'Scale',width: 40},
- {header: '上级节点', dataIndex: 'ReferenceParentName',width: 40},
- {header: '显示', dataIndex: 'isDisplay',width: 40},
- {header: '重复', dataIndex: 'isUnique',width: 40},
- {header: '删除', dataIndex: 'del'}
- ]);
-
- var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
- width:690,
- height:440,
- title:'常量模版',
- store: ds
- });
- grid.render();
- ds.load({params:{start:1, limit:2}});
- });
- </SCRIPT>
- </HEAD>
- <body class="tundra">
- <div id="report">
-
- </div>
- <div class="btmbox">
- <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),location.href="edit.jsp?templateName=<%=name%>"' iconClass="plusIcon">
- 添加
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">添加按钮</span>
- </div>
- </BODY>
- </HTML>
|