123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page
- import ="java.util.*"%>
- <%@ page language="java"
- import="com.sysmodel.XFormFactory,
- com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
- com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.listmodel.xmlmodel.impl.PramFieldImpl"%>
- <%
- String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
- if(listid.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.FilteringSelect");
- 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?listid=<%=listid%>'}),
- reader: new Ext.data.JsonReader( {root:'root'},
- [{name: 'Name'},
- {name: 'Classid'},
- {name: 'Valuefrom'},
- {name: 'isInput'},
- {name: 'del'}
- ])});
-
- var cm=new Ext.grid.ColumnModel(
- [ new Ext.grid.RowNumberer(),
- {header: '参数名', dataIndex: 'Name', sortable: true},
- {header: 'FROM表', dataIndex: 'Classid'},
- {header: 'FROM字段', dataIndex: 'Valuefrom'},
- {header: '是否提交用', dataIndex: 'isInput'},
- {header: 'del', dataIndex: 'del'}
- ]);
- var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
- width:645,
- height:400,
- title:'列表参数定义',
- store: ds
- });
- grid.render();
- ds.load({params:{start:1, limit:2}});
- });
- </SCRIPT>
- </HEAD>
- <body class="tundra">
- <form action="editExc.jsp" method="post">
- <input type="hidden" name="action" value="edit">
- <div id="report">
- </div>
- <div class="btmbox">
- <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),location.href="edit.jsp?listid=<%=listid %>"' iconClass="plusIcon">
- 添加
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">添加按钮</span>
- </div>
- </form>
- </BODY>
- </HTML>
|