123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <%@ page contentType="text/html; charset=UTF-8" language="java"%>
- <%@ page import="java.util.*"%>
- <%@ page
- import="com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.impl.MdpModuleImpl,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl"%>
- <%
- SysModel sysmodel = ModelFactory.getSysmodel();
- ArrayList list = sysmodel.getMdpModules();
- ArrayList mdpClasses = sysmodel.getMdpClasses();
- %>
- <HTML>
- <HEAD>
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <TITLE></TITLE>
- <link rel="stylesheet" href="../../../../../styles/style.css" type="text/css"></link>
- <link rel="stylesheet" href="../../../../../styles/css.css" type="text/css"></link>
- <script type="text/javascript" src="../../../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
-
- <link rel="stylesheet" type="text/css" href="../../../../../scripts/ext20/resources/css/ext-all.css" />
- <script type="text/javascript" src="../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="../../../../../scripts/ext20/ext-all.js"></script>
- <link rel="stylesheet" href="../../../../../scripts/ext20/examples/examples.css" type="text/css"></link>
- <script type="text/javascript" src="../../../../../scripts/ext20/examples/examples.js"></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>
- <script language="JavaScript">
- function ChooseModule(Code, selectName){
- var strA = "";
- if(Code == "root") Code = "";
- createXMLHttpRequest();
- axo = new ActiveXObject("Microsoft.XMLDOM");
- XMLHttpReq.open("POST","../getClassids.jsp?type="+Code+"",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/classid");
- n2 = axo.selectNodes("/root/description");
- BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
- }
- </script>
- <script type="text/javascript">
- Ext.onReady(function(){
- Ext.BLANK_IMAGE_URL = '../../../../../scripts/ext20/resources/images/default/s.gif';
- var Tree = Ext.tree;
- var tree = new Tree.TreePanel({
- el:'tree-div',
- autoScroll:true,
- animate:true,//是否动画
- enableDD:true,// 是否支持拖放
- containerScroll:true,
- lines:true,
- loader:new Tree.TreeLoader({dataUrl:"../../../../getModuleJson.jsp"})
- });
-
- var root = new Tree.AsyncTreeNode({
- text: '全部系统模块',
- draggable:false,
- id:'root'
- });
-
- tree.on('click', function(node){
- ChooseModule(node.id, dojo.byId('role1'))
- });
- tree.setRootNode(root);
- tree.render();
- root.expand();
- });
- </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>
- <script language="JavaScript">
- function getTable(obj, selectName){
- var strA = "";
- createXMLHttpRequest();
- axo = new ActiveXObject("Microsoft.XMLDOM");
- XMLHttpReq.open("POST","../getClassids.jsp?type="+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/classid");
- n2 = axo.selectNodes("/root/description");
- BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
- }
- </script>
- <script type="text/javascript" src="../../select.js"></script>
- </HEAD>
- <body class="tundra">
- <form dojoType="dijit.form.Form" name="form1" method="post" action="">
- <div id=total>
- <div class="whiteborder">
- <div class="titback">
- <div class="floatleft"><img src="../../../../../images/index/arrow1.gif" alt="1"
- 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="60%" valign="top"><table align="center" width="100%" border="0" cellpadding="1"
- cellspacing="1" class="ltab2">
- <tr class="TableBgColorAsh">
- <td align="left" valign="top">
- <div id="tree-div" style="z-index:9999;overflow:auto; height:100%; width:100%;border:1px solid #c3daf9;">
- </div>
- </td>
- <td width="30%" align="center"><select name="select2" size="15" class="SelectScroll" multiple id="role1" style="width:80%">
- <%
- for (int i = 0; i < mdpClasses.size(); i++) {
- MdpClassImpl mdpClass = (MdpClassImpl) mdpClasses.get(i);
- %>
- <option value="<%=mdpClass.getClassid()%>"> <%=mdpClass.getDescription()%> </option>
- <%
- }
- %>
- </select></td>
- <td width="5%" align="center"><input name="button" type="button" class="button2"
- style="cursor:hand" onClick="move(this.form.role1,this.form.role2);"
- value=" >> " />
- <br>
- <br>
- <input name="button" type="button" class="button2"
- style="cursor:hand" onClick="move(this.form.role2,this.form.role1);"
- value=" << " /> </td>
- <td width="30%" align="center" valign="middle"><select name="select" size="15" multiple class="SelectScroll" id="role2" style="width:80%">
- </select> </td>
- </tr>
- <tr class="TableBgColorBlack">
- <td colspan="4">
- <button id="save" dojoType="dijit.form.Button" onClick='console.log("clicked simple"),checkConfig();' type="button" iconClass="plusIcon">
- 开始验证 </button>
- <span dojoType="dijit.Tooltip" connectId="save">开始验证 </span>
- </td>
- </table></td>
- </tr>
- </table>
- <div id="boxIdea" align="left" style="width:98%;height:98%;border:1px solid #999999;"> </div>
- </div>
- </div>
- </div>
- </form>
- <script language="JavaScript">
- var indexOfCheck = 0;
- var role2=document.all.item("role2");
- function checkConfig() {
- indexOfCheck = 0
- var boxIdea=document.all.item("boxIdea");
- boxIdea.innerHTML = "";
-
- if(role2.options.length == 0){
- alert("请选则进行验证的表对象!");
- return;
- }
-
- var classid = role2.options[0].value;
- checkOneObj(classid)
- }
- function checkOneObj(classid){
- if(classid=="") return;
- createXMLHttpRequest();
- var strA = "";
- XMLHttpReq.open("POST","checkExc.jsp?classid=" + classid,false);
- XMLHttpReq.setRequestHeader("Content-Length",strA.length);
- XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
- XMLHttpReq.send(strA);
- var boxIdea=document.all.item("boxIdea");
- boxIdea.innerHTML = boxIdea.innerHTML + XMLHttpReq.responseText;
-
- indexOfCheck = indexOfCheck + 1;
- if(indexOfCheck < role2.options.length){
- checkOneObj(role2.options[indexOfCheck].value);
- }else{
- return;
- }
- }
- // End -->
- </script>
- </BODY>
- </HTML>
|