123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <%@ 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.impl.MdpClassImpl,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.listmodel.xmlmodel.impl.PramFieldImpl"%>
- <%@page import="com.sysmodel.datamodel.xmlmanager.xmlobjdll.SysModeldllable"%>
- <%
- String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
- FormListImpl FormList =(FormListImpl)XFormFactory.getXFormModel().getFormList(listid);
- ArrayList tableList = FormList.getQueryTables();
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <HTML>
- <HEAD>
- <TITLE></TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <link rel="stylesheet" href="../../../../../styles/css.css" type="text/css">
- <script language="JavaScript">
- var XMLHttpReq;
- var currentSort;
-
- function createXMLHttpRequest() {
- if(window.XMLHttpRequest) {
- XMLHttpReq = new XMLHttpRequest();
- }
- else if (window.ActiveXObject) {
- try {
- XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {}
- }
- }
- }
-
- function sendRequest(url) {
- createXMLHttpRequest();
- XMLHttpReq.open("GET", url, true);
- XMLHttpReq.onreadystatechange = processResponse;
- XMLHttpReq.send(null);
- }
- function processResponse() {
- if (XMLHttpReq.readyState == 4) {
- if (XMLHttpReq.status == 200) {
- updateMenu();
- } else {
- alert("您所请求的页面有异常。");
- }
- }
- }
- function getTable(obj, selectName){
- if(obj.value=="")return;
- var strA = "";
- createXMLHttpRequest();
- axo = new ActiveXObject("Microsoft.XMLDOM");
- XMLHttpReq.open("POST","getAttributeXml.jsp?classid="+obj.getValue()+"",false);
- XMLHttpReq.setRequestHeader("Content-Length",strA.length);
- XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
- XMLHttpReq.send(strA);
- axo.loadXML(XMLHttpReq.responseText);
- n1 = axo.selectNodes("/root/name");
- n2 = axo.selectNodes("/root/description");
-
- BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
- }
- function BuildSel(str,sel,id,name) {
- sel.options.length=0;
- if(id.length == 0) {
- sel.options[sel.options.length] = new Option('')
- return;
- }
- var arrstr = new Array();
- arrstr = str.split(",");
-
- for(var i=0;i<id.length;i++) {
- sel.options[sel.options.length] = new Option(name(i).text,id(i).text);
- }
- }
- </script>
- <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>
- </HEAD>
- <body class="tundra">
- <form action="editExc.jsp" method="post">
- <input type="hidden" value="add" name="action">
- <input type="hidden" value="<%= listid%>" name="listid">
- <div id=total>
- <div class="whiteborder">
- <div class="titback">
- <div class="floatleft"><img src="../../../../../images/index/arrow1.gif" width="20" height="24"/></div>
- <div class="dropshadow">列表参数定义</div>
- <div class="clear"></div>
- </div>
- <div class="report">
- <table align="center" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="40%" align="right">参数名 <span class="redcolor">*</span> </td>
- <td width="60%" align="left">
- <input type="text" id="name" name="name" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="true"
- ucfirst="true"/>
- </td>
- </tr>
- <tr>
- <td align="right">FROM表 <span class="redcolor">*</span> </td>
- <td align="left">
- <select name="classid" onChange="getTable(this, dojo.byId('valuefrom'))"
- dojoType="dijit.form.FilteringSelect"
- required="true" id="classid" autocomplete="true">
- <option value="0"></option>
- <%
-
- for(int i = 0 ; i < tableList.size(); i ++){
- String classid = (String)tableList.get(i);
- int iclassid = Integer.parseInt(classid);
- SysModel sysmodel = ModelFactory.getSysmodel();
- MdpClassImpl MdpClass = (MdpClassImpl)sysmodel.getMdpClassByClassID(iclassid);
- %>
- <option value="<%=classid %>"><%=MdpClass.getDescription()%></option>
- <%
- }
- %>
- </select></td>
- </tr>
- <tr>
- <td align="right">FROM字段 <span class="redcolor">*</span> </td>
- <td align="left">
- <select name="valuefrom" id="valuefrom">
- </select></td>
- </tr>
- <tr >
- <td align="right">是否提交用 </td>
- <td align="left">
- <select name="isinput"
- dojoType="dijit.form.FilteringSelect"
- required="true" id="isinput" autocomplete="true">
- <option value="true">true</option>
- <option value="false">false</option>
- </select></td>
-
- </tr>
- </table>
- </div>
- <div class="btmbox">
- <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple")' type="submit" iconClass="plusIcon">
- 保存
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>
- </div
- ></div>
- </div>
- </form>
- </BODY>
- </HTML>
|