<%@ page contentType="text/html;charset=GBK" import="java.util.*,com.sungoal.dbsearch.dbconfig.model.Table"%> <%
@page import="com.opensymphony.xwork2 .ActionContext"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@include file="/commons/include/header.jsp"%>
<%@include file="/webmanagement/include/check_login.jsp"%>
<link href="../webmanagement/css_js/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/autocomplete/jquery-1.7.2.min.js"></script>
<Körper>
<s:form method="POST" action="polyisomerism_*" οnsubmit="">
<s:submit id="btn_Submit" method="assgin" cssStyle="display:none;"/>
<!-- Gibt alle Datentabellen zurück (Status ist normal), einschließlich Datenquelleninformationen und Funktionsinformationen -->
<s:action name="findAllTable" id="action_Table" namespace="/classify"ignoreContextParams="true"/>
<!-- Alle klassifizierten Domains abrufen -->
<table width="95%" border="0" cellpacing="0" cellpadding="0" align="center" bgcolor="#0099FF" background="../webmanagement/images/dllh.gif" height= "29">
<tr>
<td width="2" background="../webmanagement/images/dllh2. gif"></td>
<td>
<table width="100%" border="0" cellpacing="0" cellpadding="0"> <tr>
<
td height="27" width="12%" >
<div align="center"><strong>分配字段归类</strong>:</div>
</td>
<td width="88%" height="27" align="right"></ td>
</tr>
</table>
</td>
<td width="1" valign="top"><img src="../webmanagement/images/dllh3.gif" width="14" height="30"></td> </tr>
<
/ Tabelle>
<!-- 默认第一个项的ID -->
<s:hidden name="matrixId" id="matrixId" value="%{matrixId}"></s:hidden>
<s:hidden name=" result" id="result" value="%{result}"></s:hidden>
<table width="95%" border="0" align="center" cellpadding="4" cellpacing="1" bgcolor="#C4BEB3">
<tr>
<td colspan="4" bgcolor="#FFFFFF" style="padding: 0;" >
<div id="recognize" class="tdiv" ><b>Konfiguration mehrerer Analysesuchelemente</b></div>
</td>
</tr>
<tr>
<td width="24" valign="top" bgcolor="#FFFFFF" rowspan="2">
<!-- Zeigt die in jeder Fachsuche enthaltenen Felder links grau an -->
<s:iterator value="matrixFields" >
<s:set name="aa" value="%{description}"></s:set>
<s:set name="bb" value="%{highlightName}"></s:set>
<s:if test="#aa==#bb">
<div id="ralating" style="background-color:red;margin:2px 5px 15px 2px" >
<a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
<s:property value="description" />
<br/>
</a>
<s:hidden name="highlightName" value="%{description}"></s:hidden>
<s:hidden name="condi_id" id="condi_id" value="%{condi_id}"></s:hidden>
<s:hidden name="objectId" id="objectId" value="%{objectId}"></s:hidden>
</div>
</s:if><s:else>
<div id="ralating" style="background-color:orange;margin:2px 5px 15px 2px" >
<a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
<s:property value="description" />
<br/>
</a>
</div>
</s:else>
</s:iterator>
</td>
<td bgcolor="#FFFFFF" colspan="3" align="center">
<strong>当前模板<font color="red">[< s:property value="%{matrixName}"/>]</font></strong>
<span style="width:30px"></span>
<strong>当前归类为<font color="red" >[<s:property value="%{highlightName}"/>]</font></strong>
<span style="width:30px"></span>
<s:set name="tableSize" value= "assignTables.size"></s:set>
<s:
Wenn test ="#tableSize==0"> <font color="red"><strong><s:property value="%{matrixName}"/>Die Tabelle nicht gemäß der Vorlage zugewiesen wurde, weisen Sie die Tabelle bitte zu zuerst</strong ></font>
</s:if><s:else>
Bitte wählen Sie eine Datentabelle aus: <s:select list="assignTables" name="selectTable" value="objectId" listKey="objectId" listValue="tableName+tableZhName" οnchange="document.getElementById('btn_Submit').click ( );" />
<span style="width:30px"></span>
<a href='../dbconfig/polyisomerism_allAssginColumn.action?matrixId=<s:property value="matrixId"/>&condi_id=< s :property value="condi_id"/>&highlightName=<s:property value="highlightName"/>&tableId=<s:property value="objectId"/>' >Ansicht klassifiziert als [<s:property value=" Alle Felder von %{highlightName}"/>]</a>
</s:else>
<span style="width:30px"></span>
<a href='../dbconfig/polyisomerism_assginTable.action?matrixId=<s:property value="matrixId"/>'>Tabelle der <s:property value="%{matrixName}"/>Vorlage zuweisen</a >
</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor= „#66BEFF“>
<tr>
<td colspan="4" bgcolor="#D4F4FF"><strong>Der Tabelle sind keine Felder zugewiesen</strong></td>
</tr>
<s:if test="#notAssginColumns.size()==0">
<tr>
<td colspan="4" bgcolor="#FFFFFF">
Keine Aufzeichnungen
</td>
</tr>
</s:if>
<s:else>
<tr>
<td width="30px" align="center" bgcolor="#C4F1FF">Anzeige</td>
<td width="30px" align="center" bgcolor="#C4F1FF">Bild</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Chinesischer Feldname</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Ursprünglicher Name des Feldes</td>
</tr>
<s:iterator value="notAssginColumns" status="iteratorStauts">
<tr>
<td align="center" bgcolor="#FFFFFF">
<input οnclick="shiftSelectCheckBox(this);"
id='addColumnIds<s:property value="#iteratorStauts.index" />'
type="checkbox" name="addColumnIds"
value='<s:property value="objectId" />' /></td>
<td align="center" width="30" bgcolor="#FFFFFF"><s:property value="#iteratorStauts. index+1" /></td>
<td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td> <
td bgcolor="#FFFFFF"><s:property value=" ColumnName" /></td>
</tr>
</s:iterator>
</s:else>
</table>
</td>
<td valign="top" align="center" bgcolor="#FFFFFF" style="padding-top:50px;">
<s: send type="image" οnclick="return activateAdd(); " src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_r.gif" method="addColumn" cssStyle= "margin-bottom:25px;"/>
<br/>
<s:submit type="image" οnclick="returnvalidateRemove();" src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_l.gif" method="deleteColumn" cssStyle="margin-bottom:25px;"/></td>
< td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor="#66BEFF">
<tr>
<td colspan="4" bgcolor="#D4F4FF"><strong>Diese Tabelle wurde als <font color="red">[<s:property value="%{highlightName}"/>]</font klassifiziert >Felder</strong></td>
</tr>
<s:if test="#assginColumns.size()==0">
<tr>
<td colspan="4" bgcolor="#FFFFFF">
Keine Aufzeichnungen
</td>
</tr>
</s:if>
<s:else>
<tr>
<td width="30px" align="center" bgcolor="#C4F1FF">Anzeige</td>
<td width="30px" align="center" bgcolor="#C4F1FF">Bild</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Chinesischer Feldname</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Ursprünglicher Name des Feldes</td>
</tr>
<s:iterator value="assginColumns" status="iteratorStauts">
<tr>
<td align="center" bgcolor="#FFFFFF">
<input οnclick="shiftSelectCheckBox(this);"
id='removeColumnIds<s:property value="#iteratorStauts.index" />'
type="checkbox" name="removeColumnIds"
value='<s:property value="objectId" />' /></td>
<td align="center" bgcolor="#FFFFFF"><s:property value="#iteratorStauts.index+1" / ></td>
<td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td>
<td bgcolor="#FFFFFF">p<s:property value="columnName" /> </td>
</tr>
</s:iterator>
</s:else>
</table></td>
</tr>
</table>
</s:form>
<script type="text/javascript ">
Funktion validierenAdd(){
var arr = document.getElementsByName('addColumnIds');
var result=document.getElementById('result').value;
var n=0;
if(result=="false"){
Alert('Ein Suchbegriff kann nur in ein Feld einer Tabelle klassifiziert werden');
falsch zurückgeben;
}
for(var i=0;i<arr.length;i++){
if(arr[i].checked){
n++;
}
}
if(n>1){
Alert('Ein Suchbegriff kann nur in ein Feld einer Tabelle klassifiziert werden');
falsch zurückgeben;
}
if(n==0){
Alert('Bitte wählen Sie die Felder aus, die hinzugefügt werden sollen');
falsch zurückgeben;
}
return true;
}
Funktion validierenRemove(){
var arr = document.getElementsByName('removeColumnIds');
for(var i=0;i<arr.length;i++){
if(arr[i].checked){
return true;
}
}
Alert('Bitte wählen Sie das zu löschende Feld aus');
falsch zurückgeben;
}
</script>
</body>
</html>
@page import="com.opensymphony.xwork2 .ActionContext"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@include file="/commons/include/header.jsp"%>
<%@include file="/webmanagement/include/check_login.jsp"%>
<link href="../webmanagement/css_js/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/autocomplete/jquery-1.7.2.min.js"></script>
<Körper>
<s:form method="POST" action="polyisomerism_*" οnsubmit="">
<s:submit id="btn_Submit" method="assgin" cssStyle="display:none;"/>
<!-- Gibt alle Datentabellen zurück (Status ist normal), einschließlich Datenquelleninformationen und Funktionsinformationen -->
<s:action name="findAllTable" id="action_Table" namespace="/classify"ignoreContextParams="true"/>
<!-- Alle klassifizierten Domains abrufen -->
<table width="95%" border="0" cellpacing="0" cellpadding="0" align="center" bgcolor="#0099FF" background="../webmanagement/images/dllh.gif" height= "29">
<tr>
<td width="2" background="../webmanagement/images/dllh2. gif"></td>
<td>
<table width="100%" border="0" cellpacing="0" cellpadding="0"> <tr>
<
td height="27" width="12%" >
<div align="center"><strong>分配字段归类</strong>:</div>
</td>
<td width="88%" height="27" align="right"></ td>
</tr>
</table>
</td>
<td width="1" valign="top"><img src="../webmanagement/images/dllh3.gif" width="14" height="30"></td> </tr>
<
/ Tabelle>
<!-- 默认第一个项的ID -->
<s:hidden name="matrixId" id="matrixId" value="%{matrixId}"></s:hidden>
<s:hidden name=" result" id="result" value="%{result}"></s:hidden>
<table width="95%" border="0" align="center" cellpadding="4" cellpacing="1" bgcolor="#C4BEB3">
<tr>
<td colspan="4" bgcolor="#FFFFFF" style="padding: 0;" >
<div id="recognize" class="tdiv" ><b>Konfiguration mehrerer Analysesuchelemente</b></div>
</td>
</tr>
<tr>
<td width="24" valign="top" bgcolor="#FFFFFF" rowspan="2">
<!-- Zeigt die in jeder Fachsuche enthaltenen Felder links grau an -->
<s:iterator value="matrixFields" >
<s:set name="aa" value="%{description}"></s:set>
<s:set name="bb" value="%{highlightName}"></s:set>
<s:if test="#aa==#bb">
<div id="ralating" style="background-color:red;margin:2px 5px 15px 2px" >
<a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
<s:property value="description" />
<br/>
</a>
<s:hidden name="highlightName" value="%{description}"></s:hidden>
<s:hidden name="condi_id" id="condi_id" value="%{condi_id}"></s:hidden>
<s:hidden name="objectId" id="objectId" value="%{objectId}"></s:hidden>
</div>
</s:if><s:else>
<div id="ralating" style="background-color:orange;margin:2px 5px 15px 2px" >
<a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
<s:property value="description" />
<br/>
</a>
</div>
</s:else>
</s:iterator>
</td>
<td bgcolor="#FFFFFF" colspan="3" align="center">
<strong>当前模板<font color="red">[< s:property value="%{matrixName}"/>]</font></strong>
<span style="width:30px"></span>
<strong>当前归类为<font color="red" >[<s:property value="%{highlightName}"/>]</font></strong>
<span style="width:30px"></span>
<s:set name="tableSize" value= "assignTables.size"></s:set>
<s:
Wenn test ="#tableSize==0"> <font color="red"><strong><s:property value="%{matrixName}"/>Die Tabelle nicht gemäß der Vorlage zugewiesen wurde, weisen Sie die Tabelle bitte zu zuerst</strong ></font>
</s:if><s:else>
Bitte wählen Sie eine Datentabelle aus: <s:select list="assignTables" name="selectTable" value="objectId" listKey="objectId" listValue="tableName+tableZhName" οnchange="document.getElementById('btn_Submit').click ( );" />
<span style="width:30px"></span>
<a href='../dbconfig/polyisomerism_allAssginColumn.action?matrixId=<s:property value="matrixId"/>&condi_id=< s :property value="condi_id"/>&highlightName=<s:property value="highlightName"/>&tableId=<s:property value="objectId"/>' >Ansicht klassifiziert als [<s:property value=" Alle Felder von %{highlightName}"/>]</a>
</s:else>
<span style="width:30px"></span>
<a href='../dbconfig/polyisomerism_assginTable.action?matrixId=<s:property value="matrixId"/>'>Tabelle der <s:property value="%{matrixName}"/>Vorlage zuweisen</a >
</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor= „#66BEFF“>
<tr>
<td colspan="4" bgcolor="#D4F4FF"><strong>Der Tabelle sind keine Felder zugewiesen</strong></td>
</tr>
<s:if test="#notAssginColumns.size()==0">
<tr>
<td colspan="4" bgcolor="#FFFFFF">
Keine Aufzeichnungen
</td>
</tr>
</s:if>
<s:else>
<tr>
<td width="30px" align="center" bgcolor="#C4F1FF">Anzeige</td>
<td width="30px" align="center" bgcolor="#C4F1FF">Bild</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Chinesischer Feldname</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Ursprünglicher Name des Feldes</td>
</tr>
<s:iterator value="notAssginColumns" status="iteratorStauts">
<tr>
<td align="center" bgcolor="#FFFFFF">
<input οnclick="shiftSelectCheckBox(this);"
id='addColumnIds<s:property value="#iteratorStauts.index" />'
type="checkbox" name="addColumnIds"
value='<s:property value="objectId" />' /></td>
<td align="center" width="30" bgcolor="#FFFFFF"><s:property value="#iteratorStauts. index+1" /></td>
<td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td> <
td bgcolor="#FFFFFF"><s:property value=" ColumnName" /></td>
</tr>
</s:iterator>
</s:else>
</table>
</td>
<td valign="top" align="center" bgcolor="#FFFFFF" style="padding-top:50px;">
<s: send type="image" οnclick="return activateAdd(); " src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_r.gif" method="addColumn" cssStyle= "margin-bottom:25px;"/>
<br/>
<s:submit type="image" οnclick="returnvalidateRemove();" src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_l.gif" method="deleteColumn" cssStyle="margin-bottom:25px;"/></td>
< td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor="#66BEFF">
<tr>
<td colspan="4" bgcolor="#D4F4FF"><strong>Diese Tabelle wurde als <font color="red">[<s:property value="%{highlightName}"/>]</font klassifiziert >Felder</strong></td>
</tr>
<s:if test="#assginColumns.size()==0">
<tr>
<td colspan="4" bgcolor="#FFFFFF">
Keine Aufzeichnungen
</td>
</tr>
</s:if>
<s:else>
<tr>
<td width="30px" align="center" bgcolor="#C4F1FF">Anzeige</td>
<td width="30px" align="center" bgcolor="#C4F1FF">Bild</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Chinesischer Feldname</td>
<td align="center" width="80px" bgcolor="#C4F1FF">Ursprünglicher Name des Feldes</td>
</tr>
<s:iterator value="assginColumns" status="iteratorStauts">
<tr>
<td align="center" bgcolor="#FFFFFF">
<input οnclick="shiftSelectCheckBox(this);"
id='removeColumnIds<s:property value="#iteratorStauts.index" />'
type="checkbox" name="removeColumnIds"
value='<s:property value="objectId" />' /></td>
<td align="center" bgcolor="#FFFFFF"><s:property value="#iteratorStauts.index+1" / ></td>
<td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td>
<td bgcolor="#FFFFFF">p<s:property value="columnName" /> </td>
</tr>
</s:iterator>
</s:else>
</table></td>
</tr>
</table>
</s:form>
<script type="text/javascript ">
Funktion validierenAdd(){
var arr = document.getElementsByName('addColumnIds');
var result=document.getElementById('result').value;
var n=0;
if(result=="false"){
Alert('Ein Suchbegriff kann nur in ein Feld einer Tabelle klassifiziert werden');
falsch zurückgeben;
}
for(var i=0;i<arr.length;i++){
if(arr[i].checked){
n++;
}
}
if(n>1){
Alert('Ein Suchbegriff kann nur in ein Feld einer Tabelle klassifiziert werden');
falsch zurückgeben;
}
if(n==0){
Alert('Bitte wählen Sie die Felder aus, die hinzugefügt werden sollen');
falsch zurückgeben;
}
return true;
}
Funktion validierenRemove(){
var arr = document.getElementsByName('removeColumnIds');
for(var i=0;i<arr.length;i++){
if(arr[i].checked){
return true;
}
}
Alert('Bitte wählen Sie das zu löschende Feld aus');
falsch zurückgeben;
}
</script>
</body>
</html>