원격 브랜치에서 eapim-online jsp 관련 파일 가져오기

This commit is contained in:
jaewohong
2025-12-05 16:11:36 +09:00
parent 12d8f157cc
commit e37b181b1c
44 changed files with 6926 additions and 5 deletions
+214
View File
@@ -0,0 +1,214 @@
<%--
<%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.transformer.layout.Layout"%>
<%@ page import="com.eactive.eai.transformer.transform.Transform"%>
<%@ page import="com.eactive.eai.transformer.transform.TransformItem"%>
<%@ page import="com.eactive.eai.transformer.transform.TransformManager"%>
<%@ page import="com.eactive.eai.transformer.util.TransformKeys"%>
<%@ page import="java.util.HashMap"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
%>
<%
TransformManager manager = TransformManager.getManager();
String key[] = manager.getAllTransformName();
String selected = request.getParameter("transformName");
if(selected == null && key.length>=1) {
selected = key[0];
}
Transform transform = null;
ArrayList itemList = new ArrayList();
Layout target = null;
Iterator it = null;
if(selected!=null) {
transform = manager.getTransform(selected);
target = transform.getTargetLayout();
itemList = (ArrayList) transform.getTransformItemList();
it = transform.getSourceLayoutNames();
}
int sourceCount = transform.getSourceLayoutCount();
String sourceName = "";
for (int i=0; i < sourceCount; i++) {
if ("".equals(sourceName))
sourceName = (String)it.next();
else
sourceName = sourceName+" , " + (String)it.next();
}
%>
<html>
<head>
<title>
Transform 변환규칙 Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>Transform 변환규칙 Configuration</b> <br><br>
</p>
<form name="frm" action="">
<table border='0' width="800" >
<tr>
<td align='left'>
<table width="450" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' width='180' bgcolor="#ccccff"><label value="변환명 : "/>&nbsp;</td>
<td align='left'>&nbsp;<select name="transformName" onchange="doAction();">
<%
for(int i=0;i<key.length;i++) {
%>
<option value="<%=key[i]%>" <%= (key[i].equals(selected)) ? "selected" : "" %>><%=key[i]%>
<%
}
%></select>
</td>
</tr>
</table>
</td>
</tr>
</table><br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='250' bgcolor="#003366">&nbsp; <font color="yellow"><b>변환규칙정보</b> &nbsp;</font></td>
</tr>
<%
if(transform != null ){
%>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="#ccccff">&nbsp; 변환규칙명 : &nbsp;</td>
<td align='left'>&nbsp;<%=transform.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="#ccccff">&nbsp; 변환규칙설명 : &nbsp;</td>
<td align='left'>&nbsp;<%=checkNull(transform.getDescription())%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 변환규칙 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='250' bgcolor="#003366">&nbsp; <font color="yellow"><b>변환소스결과레이아웃 정보</b> &nbsp;</font></td>
</tr>
<%
if (target != null || it.hasNext()) {
%>
<tr bgcolor='white'>
<td align='center' width='' bgcolor="#ccccff">&nbsp; 소스레이아웃(2개이상일경우 콤마(,)로 구분) &nbsp;</td>
<td align='center' width='' bgcolor="#ccccff">&nbsp; 결과 레이아웃 &nbsp;</td>
</tr>
<tr bgcolor='white'>
<td align='center'>&nbsp;<%=sourceName%></td>
<td align='center'>&nbsp;<%=target.getName()%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 변환소스결과레이아웃 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='250' bgcolor="#003366">&nbsp; <font color="yellow"><b>변환아이템 정보</b> &nbsp;</font></td>
</tr>
<%
if (itemList != null && itemList.size() > 0) {
int nCount = 0;
String[] aBgColor = {"#ccccff" , "#e9e1fd"};
for (int i = 0; i < itemList.size(); i++) {
TransformItem item = (TransformItem) itemList.get(i);
%>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환항목일련번호 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getSeqNo()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환결과항목경로명 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getResultItemPath()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환명령명 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getInstruction()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환항목기본값 : &nbsp;</td>
<td align='left'>&nbsp;<%=checkNull(item.getDefaultValue())%></td>
</tr>
<%
nCount++;
}
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 변환규칙 아이템 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html>
--%>
@@ -0,0 +1,186 @@
<%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.transformer.function.FunctionDefinition"%>
<%@ page import="com.eactive.eai.transformer.function.FunctionManager"%>
<%@ page import="com.eactive.eai.transformer.function.ParameterDefinition"%>
<%@ page import="com.eactive.eai.transformer.util.TransformKeys"%>
<%@ page import="java.util.HashMap"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
%>
<%
FunctionManager manager = FunctionManager.getInstance();
String[] alls = manager.getAllFunctionNames();
String selectedKey = request.getParameter("selectedKey");
if(selectedKey == null && alls.length>=1) {
selectedKey = alls[0];
}
FunctionDefinition vo = null;
ArrayList paramList = new ArrayList();
if(selectedKey!=null) {
vo = manager.getFunctionDefinition(selectedKey);
paramList = (ArrayList) vo.getParameterList();
}
%>
<html>
<head>
<title>
Transform 변환함수 Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
function doSearch(){
var searchValue = document.frm.searchTxt.value;
document.frm.selectedKey.value = searchValue;
document.frm.submit();
}
function enterEvent(){
if(window.event.keyCode==13){
doSearch();
}
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>변환함수 관리</b> <br><br>
</p>
<form name="frm" action="">
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td rowspan=2 align='right' width='350' bgcolor="#ccccff">변환함수명 :&nbsp;&nbsp;</td>
<td align='left'><select name="selectedKey" onchange="doAction();"style="width:98%">
<%
for(int i=0;i<alls.length;i++) {
%>
<option value="<%=alls[i]%>" <%= (alls[i].equals(selectedKey)) ? "selected" : "" %>><%=alls[i]%>
<%
}
%></select>
</td>
<td rowspan=2 align="center"><input type="button" name="search" value="search" onClick="doSearch()" /></td>
</tr>
<tr bgcolor='white'>
<td align='left' ><input type="edit" name="searchTxt" onkeydown="enterEvent()" value="<%=selectedKey%>" style="width:98%" /></td>
</tr>
</table><br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='350' bgcolor="#003366">&nbsp; <font color="yellow"><b>변환함수정보</b> &nbsp;</font></td>
</tr>
<%
if(vo != null ){
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 변환함수명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 변환함수설명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getDescription()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 변환함수반환유형 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=TransformKeys.getType(vo.getReturnTypeId())%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 변환함수클래스명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getFunctionClass()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 변환함수유형 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=TransformKeys.getFunctionType(vo.getFunctionTypeId())%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 변환함수 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='350' bgcolor="#003366">&nbsp; <font color="yellow"><b>LayoutItem 정보</b> &nbsp;</font></td>
</tr>
<%
if (paramList != null && paramList.size() > 0) {
int nCount = 0;
String[] aBgColor = {"#ccccff", "#e9e1fd"};
for (int i = 0; i < paramList.size(); i++) {
ParameterDefinition param = (ParameterDefinition) paramList.get(i);
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환함수파라미터일련번호 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=param.getSeqNo()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환함수파라미터명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=param.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환함수파라미터설명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=param.getDescription()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="<%= aBgColor[nCount%2] %>">&nbsp; 변환함수파라미터유형 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=TransformKeys.getType(param.getTypeId())%></td>
</tr>
<%
nCount++;
}
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 변환함수 파라메터 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html>
+218
View File
@@ -0,0 +1,218 @@
<%--
<%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.transformer.layout.Layout"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutItem"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutManager"%>
<%@ page import="com.eactive.eai.transformer.util.TransformKeys"%>
<%@ page import="java.util.HashMap"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-compat-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui-compat"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-compat-template"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
StringBuffer html = new StringBuffer();
private void makeItem(LayoutItem item)
{
makeHTML(item);
try{
if (!item.isField() && (item.getChildCount() != 0)) {
for (int i = 0; i < item.getChildCount(); i++) {
if (item.getChild(i).getIndex() == -1) {
makeItem(item.getChild(i));
}
}
}
}catch (Exception e) {
e.printStackTrace();
System.out.println("LayoutEdit.jsp error");
}
}
private void makeHTML(LayoutItem item) {
if(item.isMessage())
html.append("<TR align=\'center' height=25 bgcolor='#e9e1fd' onmouseover=this.style.background='#F6F6F6' onmouseout=this.style.background='#e9e1fd'>");
else if (item.isGroup())
html.append("<TR align=\'center' height=25 bgcolor='#cbf1f8' onClick=\"javascript:goto('"+checkNull(item.getLayoutName())+"', '"+checkNull(item.getName())+"');\" onmouseover=this.style.background='#F6F6F6' onmouseout=this.style.background='#cbf1f8'>");
else
html.append("<TR align=\'center' height=25 bgcolor='#ffffff' onClick=\"javascript:goto('"+checkNull(item.getLayoutName())+"', '"+checkNull(item.getName())+"');\" onmouseover=this.style.background='#F6F6F6' onmouseout=this.style.background='#FFFFFF'>");
html.append(" <TD class='txt' align=\'center'>"+item.getSeqNo()+"</td>");
html.append(" <td class='txt' align='left' style=\"PADDING-LEFT: 10px\">&nbsp;"+checkNull(item.getName())+"</td>");
html.append(" <td class='txt' style=\"PADDING-LEFT: 10px\">"+TransformKeys.getLoutItemNodePtrnID(item.getNodeTypeId())+"</td>");
html.append(" <td class='txt' style=\"PADDING-LEFT: 10px\">"+TransformKeys.getType(item.getItemTypeId())+"</td>");
html.append(" <td class='txt' style=\"PADDING-LEFT: 10px\">"+checkNull(item.getRefInfo())+"</td> ");
html.append(" <td class='txt' align=\'center' style=\"PADDING-LEFT: 10px\">"+checkNull(item.getOccType())+"</td>");
html.append(" <td class='txt' align=\'center' style=\"PADDING-LEFT: 10px\">"+item.getOccMax()+"</td>");
html.append(" <td class='txt' align=\'center' style=\"PADDING-LEFT: 10px\">"+item.getOccMin()+"</td>");
html.append(" </TR> ");
}
%>
<%
LayoutManager manager = LayoutManager.getManager();
String key[] = manager.getAllLayoutName();
String selected = request.getParameter("layoutNames");
if(selected == null && key.length>=1) {
selected = key[0];
}
Layout layout = null;
if(selected!=null) {
layout = manager.getLayoutByName(selected);
}
LayoutItem root = null;
if (layout != null)
root = layout.getRootItem();
String str = "";
if (root != null ){
makeItem(root);
str = html.toString();
html = new StringBuffer();
}
%>
<html>
<head>
<title>
Transform Layout Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
function goto(layoutName, itemName) {
var one = document.frm;
one.layoutName.value = layoutName;
one.itemName.value = itemName;
one.action = "<%=request.getContextPath()%>/mgr/transformer/layoutItem.jsp";
one.submit();
//var url = 'layoutItem.jsp?layoutName='+layoutName+'&itemName='+itemName;
//msgWindow=window.open(url);
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>Transform Layout Configuration</b> <br><br>
</p>
<form name="frm" action="">
<input type=hidden name="layoutName" value="">
<input type=hidden name="itemName" value="">
<table border='0' width="800" >
<tr>
<td align='left'>
<table width="450" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' width='180' bgcolor="#ccccff"><label value="레이아웃명 : "/>&nbsp;</td>
<td align='left'>&nbsp;<select name="layoutNames" onchange="doAction();">
<%
for(int i=0;i<key.length;i++) {
%>
<option value="<%=key[i]%>" <%= (key[i].equals(selected)) ? "selected" : "" %>><%=key[i]%>
<%
}
%></select>
</td>
</tr>
</table>
</td>
</tr>
</table><br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='350' bgcolor="#003366">&nbsp; <font color="yellow"><b>Layout정보</b> &nbsp;</font></td>
</tr>
<%
if(layout != null ){
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃유형명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getLayoutType().getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃설명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getDescription()%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 Layout 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align="center" bgcolor="#ccccff">일련번호</td>
<td align="center" bgcolor="#ccccff">레이아웃항목명</td>
<td align="center" bgcolor="#ccccff">노드타입</td>
<td align="center" bgcolor="#ccccff">항목유형</td>
<td align="center" bgcolor="#ccccff">참조정보</td>
<td align="center" bgcolor="#ccccff">발생유형</td>
<td align="center" bgcolor="#ccccff">최대발생</td>
<td align="center" bgcolor="#ccccff">최소발생</td>
</tr>
<tr bgcolor='white'>
<td align='right' colspan='8' width='350' bgcolor="#003366">
&nbsp;
<font color="yellow"><b>LayoutItem 정보</b> &nbsp;</font></td>
</tr>
<%=str%>
</table>
</form>
</body>
</html>
--%>
+211
View File
@@ -0,0 +1,211 @@
<%--
<%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.transformer.layout.Layout"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutItem"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutManager"%>
<%@ page import="com.eactive.eai.transformer.util.TransformKeys"%>
<%@ page import="java.util.HashMap"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-compat-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui-compat"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-compat-template"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
%>
<%
String layoutName = (String)request.getParameter("layoutName");
String itemName = (String)request.getParameter("itemName");
LayoutManager manager = LayoutManager.getManager();
Layout layout = manager.getLayoutByName(layoutName);
LayoutItem item = null;
if(layout != null ) {
layout.updateItemNameMap();
item = layout.getItemByPath(itemName);
} else {
System.out.println("layoutItem.jsp ] layout is null - " +layoutName);
}
if(item == null ) {
System.out.println("layoutItem.jsp ] layoutItem is null - " +itemName);
}
%>
<html>
<head>
<title>
Transform LayoutItem Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
function goto(name) {
var one = document.frm;
one.layoutNames.value = name;
one.action = "<%=request.getContextPath()%>/mgr/transformer/layout.jsp";
one.submit();
//var url = 'layout.jsp?layoutName='+name;
//msgWindow=window.open(url);
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>Transform LayoutItem Configuration</b> <br><br>
</p>
<form name="frm" action="">
<input type="hidden" name="layoutNames" value="">
<table border='0' width="800" >
<tr>
<td align='right'>
<input name="back Layout" value="back Layout" type="button" onclick="javascript:goto('<%=layoutName%>');">
</td>
</tr>
</table><br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='350' bgcolor="#003366">&nbsp; <font color="yellow"><b>Layout정보</b> &nbsp;</font></td>
</tr>
<%
if(layout != null ){
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃유형명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getLayoutType().getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃설명 : &nbsp;</td>
<td align='left'>&nbsp;<%=layout.getDescription()%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 Layout 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
<br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='350' bgcolor="#003366">&nbsp; <font color="yellow"><b>LayoutItem 정보</b> &nbsp;</font></td>
</tr>
<%
if (item != null ) {
%>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목일련번호 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getSeqNo()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목명 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 부모레이아웃항목 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getParent().getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목설명 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getDescription()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목노드유형 : &nbsp;</td>
<td align='left'>&nbsp;<%=TransformKeys.getLoutItemNodePtrnID(item.getNodeTypeId())%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목유형명 : &nbsp;</td>
<td align='left'>&nbsp;<%=TransformKeys.getType(item.getItemTypeId())%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목경로명 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getPath()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목길이수 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getLength()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목참조정보 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getRefInfo()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목참조정보2 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getRefOcc()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목발생유형구분코드 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getOccType()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목최대발생건수 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getOccMax()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목최소발생건수 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getOccMin()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목기본값 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getDefaultValue()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='350' bgcolor="#ccccff">&nbsp; 레이아웃항목마스킹여부 : &nbsp;</td>
<td align='left'>&nbsp;<%=item.getMask()%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 LayoutItem 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html>
--%>
+149
View File
@@ -0,0 +1,149 @@
<%@ page import="java.io.*, java.util.*"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutType"%>
<%@ page import="com.eactive.eai.transformer.layout.LayoutTypeManager"%>
<%@ page import="com.eactive.eai.transformer.util.TransformKeys"%>
<%@ page import="java.util.HashMap"%>
<%!
/**
* <pre>
* 문자열을 받아서 널이면 제로스트링을, 아니면 트림된 문자열을 리턴.
* </pre>
* @param String 변환 대상
* @return 'String'
*/
public static String checkNull( String str ) {
String sResult = new String();
if ( str == null ) {
sResult = "";
}
else {
sResult = str.trim();
}
return sResult;
}
%>
<%
LayoutTypeManager manager = LayoutTypeManager.getInstance();
String [] alls = manager.getAllLayoutTypeName();
String action = request.getParameter("actionType");
String selectedKey = request.getParameter("selectedKey");
if(selectedKey == null && alls.length>=1) {
selectedKey = alls[0];
}
if ("reload".equals(action)){
manager.reload(selectedKey);
}else if ("reloadAll".equals(action)){
manager.reload();
}else {
;
}
LayoutType vo = null;
if(selectedKey!=null) {
vo = manager.getLayoutType(selectedKey);
}
%>
<html>
<head>
<title>
Transform LayoutType Manager
</title>
<script>
function doAction() {
document.frm.submit();
}
function managerReload(){
document.frm.actionType.value="reload";
document.frm.submit();
}
function managerReloadAll(){
document.frm.actionType.value="reloadAll";
document.frm.submit();
}
function doSearch(){
var searchValue = document.frm.searchTxt.value;
document.frm.selectedKey.value = searchValue;
document.frm.submit();
}
function enterEvent(){
if(window.event.keyCode==13){
doSearch();
}
}
</script>
</head>
<body>
<p style="font-size:12pt;">
<b>레이아웃 유형 관리</b> <br><br>
</p>
<form name="frm" action="">
<input type="hidden" name="actionType" value="">
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td rowspan=2 align='right' width='250' bgcolor="#ccccff">레이아웃유형명 :&nbsp;&nbsp;</td>
<td align='left'>&nbsp;<select name="selectedKey" onchange="doAction();"style="width:98%">
<%
for(int i=0;i<alls.length;i++) {
%>
<option value="<%=alls[i]%>" <%= (alls[i].equals(selectedKey)) ? "selected" : "" %>><%=alls[i]%>
<%
}
%></select>
</td>
<td width='50'><input type="button" name="reload" value="reload" onClick="managerReload()" /></td>
<td width='70'><input type="button" name="reloadAll" value="reloadAll" onClick="managerReloadAll()" /></td>
</tr>
<tr bgcolor='white'>
<td align='left' >&nbsp;<input type="edit" style="width:98%;" name="searchTxt" onkeydown="enterEvent()" value="<%=selectedKey%>" style="width:98%" /></td>
<td colspan=2 align="center"><input type="button" name="search" value="search" onClick="doSearch()" /></td>
</tr>
</table><br>
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
<tr bgcolor='white'>
<td align='right' colspan='2' width='250' bgcolor="#003366">&nbsp; <font color="yellow"><b>LayoutType정보</b> &nbsp;</font></td>
</tr>
<%
if(vo != null ){
%>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="#ccccff">&nbsp; 레이아웃유형명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getName()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="#ccccff">&nbsp; 레이아웃유형설명 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getDescription()%></td>
</tr>
<tr bgcolor='white'>
<td align='right' width='250' bgcolor="#ccccff">&nbsp; 메시지레이아웃생성클래스 : &nbsp;</td>
<td align='left' style="height:40px;">&nbsp;<%=vo.getGenClass()%></td>
</tr>
<%
} else {
%>
<tr bgcolor='white'>
<td align='center' colspan="2" >&nbsp; 요청하신 LayoutType 정보가 없습니다. &nbsp;</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html>