112 lines
2.9 KiB
Plaintext
112 lines
2.9 KiB
Plaintext
<%@ page language="java" contentType="text/html;charset=euc-kr"%>
|
|
<%@ page import="java.util.HashMap"%>
|
|
<%@ page import="java.util.Arrays"%>
|
|
<%@ page import="java.util.ArrayList"%>
|
|
<%@ page import="java.util.Iterator"%>
|
|
|
|
<%@ page import="com.eactive.eai.batch.rule.phaseinfo.PhaseInfoManager"%>
|
|
<%@ page import="com.eactive.eai.batch.rule.phaseinfo.PhaseInfoVO"%>
|
|
|
|
|
|
<%
|
|
|
|
PhaseInfoManager manager = PhaseInfoManager.getInstance();
|
|
|
|
|
|
HashMap<String, ArrayList<PhaseInfoVO>> all = manager.getAllData();
|
|
|
|
Iterator<String> it = all.keySet().iterator();
|
|
String[] phaseinfoList = new String[all.size()];
|
|
for(int i=0;it.hasNext();i++) {
|
|
phaseinfoList[i] = (String)it.next();
|
|
}
|
|
Arrays.sort(phaseinfoList);
|
|
|
|
String selectedName = request.getParameter("phaseinfoName");
|
|
if (selectedName == null && phaseinfoList.length > 1)
|
|
selectedName = (String)phaseinfoList[0];
|
|
|
|
ArrayList<PhaseInfoVO> al = all.get(selectedName);
|
|
|
|
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<title>
|
|
Phase Informations
|
|
</title>
|
|
<script>
|
|
function doAction() {
|
|
document.frm.submit();
|
|
}
|
|
|
|
function doUpdate() {
|
|
document.frm.flag.value="U";
|
|
document.frm.submit();
|
|
}
|
|
|
|
function doRemove() {
|
|
document.frm.flag.value="D";
|
|
document.frm.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p style="font-size:12pt;">
|
|
<b>Phase Informations</b> <br><br>
|
|
</p>
|
|
|
|
<form name="frm" action="">
|
|
<table border='0'>
|
|
<tr>
|
|
<td align='left'>
|
|
<table border=0 bgcolor='black' cellpadding="1" cellspacing="1">
|
|
<tr bgcolor='white'>
|
|
<td align='right' bgcolor="#ccccff">È帧±ÔÄ¢ÄÚµå : </td>
|
|
<td align='left'> <select name="phaseinfoName" onchange="doAction();">
|
|
<%
|
|
for(int i=0;i < phaseinfoList.length; i++) {
|
|
%>
|
|
<option value="<%= phaseinfoList[i] %>" <%= (phaseinfoList[i].equals(selectedName)) ? "selected" : "" %>><%= phaseinfoList[i] %>
|
|
<%
|
|
}
|
|
%></select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table><br>
|
|
|
|
<%
|
|
if (selectedName != null) {
|
|
%>
|
|
|
|
<%
|
|
}
|
|
%>
|
|
|
|
<table border=0 bgcolor='black' cellpadding="1" cellspacing="1">
|
|
<tr bgcolor='white'>
|
|
<td bgcolor="#003366"> <font color="yellow">List</font></td>
|
|
</tr>
|
|
<%
|
|
if (al != null) {
|
|
for ( int inx=0; inx < al.size(); inx++){
|
|
PhaseInfoVO vo = al.get(inx);
|
|
%>
|
|
|
|
<tr bgcolor='white'>
|
|
<td align='left'><%=vo.toString()%></td>
|
|
</tr>
|
|
|
|
<%
|
|
}
|
|
}
|
|
%>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html> |