93 lines
3.2 KiB
Plaintext
93 lines
3.2 KiB
Plaintext
<%@ page import="java.io.*, java.util.*"%>
|
|
<%@ page language="java" contentType="text/html;charset=euc-kr"%>
|
|
<%@ page import="com.eactive.eai.batch.eventscheduler.holiday.HolidayManager"%>
|
|
<%@ page import="com.eactive.eai.batch.eventscheduler.holiday.HolidayVO"%>
|
|
<%@ page import="com.eactive.eai.batch.common.StringUtil"%>
|
|
|
|
<%
|
|
|
|
String day = StringUtil.nvlTrim(request.getParameter("day" ), "");
|
|
HolidayManager manager = HolidayManager.getInstance();
|
|
|
|
ArrayList<HolidayVO> holiday = manager.getAllHoliday();
|
|
|
|
boolean isHoly = false;
|
|
boolean isAllHoly = false;
|
|
if (day != null && day.length() >0){
|
|
isHoly = manager.isHoliday(day);
|
|
isAllHoly = manager.isAllHoliday(day);
|
|
}
|
|
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<title>
|
|
휴일 정보 Informations
|
|
</title>
|
|
<script>
|
|
function doAction() {
|
|
|
|
document.frm.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p style="font-size:12pt;">
|
|
<b>휴일 Informations</b> <br><br>
|
|
</p>
|
|
|
|
<form name="frm" action="" method="POST">
|
|
<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">날짜 : </td>
|
|
<td><input type="text" name="day" size="10" class="form1" value="<%=day%>"></td>
|
|
<td align="right"><input type="button" class="form1" value=" 확인 " onclick="doAction();"></td>
|
|
</tr>
|
|
<tr bgcolor='white'>
|
|
<td align='right' width='180' bgcolor="#ccccff">IS휴일 : </td>
|
|
<td><input type="text" name="isholy" size="10" class="form1" value="<%=isHoly %>"></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr bgcolor='white'>
|
|
<td align='right' width='180' bgcolor="#ccccff">IS ALL휴일 : </td>
|
|
<td><input type="text" name="isAllholy" size="10" class="form1" value="<%=isAllHoly %>"></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table><br>
|
|
|
|
<%
|
|
if (holiday !=null && holiday.size() > 0) {
|
|
HolidayVO hvo = null;
|
|
for (int j=0; j <holiday.size(); j++) {
|
|
hvo = (HolidayVO) holiday.get(j);
|
|
%>
|
|
|
|
<table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
|
|
<tr bgcolor='white'>
|
|
<td align='right' width='350' bgcolor="#ccccff"> 휴일일자 : </td>
|
|
<td align='left'> <input type="text" name="batchCode" size='60' value="<%=hvo.getHoliday()%>"></td>
|
|
</tr>
|
|
<tr bgcolor='white'>
|
|
<td align='right' width='350' bgcolor="#ccccff"> 휴일유형 : </td>
|
|
<td align='left'> <input type="text" name="status" size='60' value="<%=hvo.getHolidayType()%>"></td>
|
|
</tr>
|
|
<tr bgcolor='white'>
|
|
<td align='right' width='350' bgcolor="#ccccff"> 설명 : </td>
|
|
<td align='left'> <input type="text" name="type" size='60' value="<%=hvo.getDescription()%>"></td>
|
|
</tr>
|
|
|
|
</table><br>
|
|
<%
|
|
}
|
|
}
|
|
%>
|
|
</form>
|
|
</body>
|
|
</html> |