<%--
MosP - Mind Open Source Project    http://www.mosp.jp/
Copyright (C) MIND Co., Ltd.       http://www.e-mind.co.jp/

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
--%>
<%@ page
language     = "java"
pageEncoding = "Windows-31J"
buffer       = "16kb"
autoFlush    = "false"
errorPage    = "/jsp/common/error.jsp"
%><%@ page
import = "jp.mosp.common.common.MospConst"
import = "jp.mosp.common.common.HtmlUtility"
import = "jp.mosp.common.CommonConst"
import = "jp.mosp.mospcommon.system.vo.WorkOnHolidayAgreementCardVo"
%><%
WorkOnHolidayAgreementCardVo vo = (WorkOnHolidayAgreementCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="agreementCard">
	<%= HtmlUtility.getMessages(vo) %>
	<div class="Card">
		<table>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_WORK_ON_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="CodeTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_WORK_ON_CODE %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_WORK_ON_CODE %>" value="<%= vo.getEscTxtWorkOnCode() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_WORK_TYPE_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="TextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_WORK_TYPE_NAME %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_WORK_TYPE_NAME %>" value="<%= vo.getEscTxtWorkTypeName() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_CAUSE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="TextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_CAUSE %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_CAUSE %>" value="<%= vo.getEscTxtCause() %>" />
				</td>
			</tr>
			<tr>
				<td rowspan="7" class="TitleTd"><%= vo.NAM_STANDARD_WEEK_HOLIDAY %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<%= CommonConst.NAM_SUNDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_SUN, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_SUN, vo.getEscCkbStandardWeekHolidaySun()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_MONDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_MON, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_MON, vo.getEscCkbStandardWeekHolidayMon()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_TUESDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_TUE, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_TUE, vo.getEscCkbStandardWeekHolidayTue()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_WEDNESDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_WED, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_WED, vo.getEscCkbStandardWeekHolidayWed()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_THURSDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_THU, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_THU, vo.getEscCkbStandardWeekHolidayThu()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_FRIDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_FRI, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_FRI, vo.getEscCkbStandardWeekHolidayFri()) %>
				</td>
			</tr>
			<tr>
				<td>
					<%= CommonConst.NAM_SATURDAY %><%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %><%= CommonConst.STR_TITLE_SEPARATOR %>
					<%= WorkOnHolidayAgreementCardVo.getCheckBox(WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_SAT, WorkOnHolidayAgreementCardVo.PRM_CKB_STANDARD_WEEK_HOLIDAY_SAT, vo.getEscCkbStandardWeekHolidaySat()) %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_OFFICIAL_HOLIDAY %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<select id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_OFFICIAL_HOLIDAY %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_OFFICIAL_HOLIDAY %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltDayOfWeek, vo.getPltOfficialHoliday()) %>
					</select>
					<%= CommonConst.NAM_DAY_OF_WEEK %><%= CommonConst.NAM_DAY %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_JAPANESE_HOLIDAY %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<select class="DeleteFlagSelect" id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_JAPANESE_HOLIDAY_FLAG %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_JAPANESE_HOLIDAY_FLAG %>">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltJapaneseHolidayFlag()) %>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_HOLIDAY_MASTER %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<select class="DeleteFlagSelect" id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_HOLIDAY_MASTER_FLAG %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_HOLIDAY_MASTER_FLAG %>">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltHolidayMasterFlag()) %>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_STANDARD_HOLIDAY_RATE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_STANDARD_HOLIDAY_RATE %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_STANDARD_HOLIDAY_RATE %>" value="<%= vo.getEscTxtStandardHolidayRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_OFFICIAL_HOLIDAY_RATE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_OFFICIAL_HOLIDAY_RATE %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_OFFICIAL_HOLIDAY_RATE %>" value="<%= vo.getEscTxtOfficialHolidayRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
<%--  
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_NUMBER_OF_WORK_ON %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_NUMBER_OF_WORK_ON %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_NUMBER_OF_WORK_ON %>" value="<%= vo.getEscTxtNumberOfWorkOn() %>" />
					<%= CommonConst.NAM_DAY %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_START_TIME %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_START_TIME_HOUR %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_START_TIME_HOUR %>" value="<%= vo.getEscTxtStartTimeHour() %>" />
					<%= CommonConst.NAM_HOUR %>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_START_TIME_MIN %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_START_TIME_MIN %>" value="<%=vo.getEscTxtStartTimeMin() %>" />
					<%= CommonConst.NAM_MINUTES %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_END_TIME %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_END_TIME_HOUR %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_END_TIME_HOUR %>" value="<%= vo.getEscTxtEndTimeHour() %>" />
					<%= CommonConst.NAM_HOUR %>
					<input type="text" class="NumberTextBox" id="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_END_TIME_MIN %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_TXT_END_TIME_MIN %>" value="<%=vo.getEscTxtEndTimeMin() %>" />
					<%= CommonConst.NAM_MINUTES %>
				</td>
			</tr>
--%>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_START_DATE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<select id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_YEAR %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_YEAR %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltStartDateYear()) %>
					</select>
					<%= CommonConst.NAM_YEAR %>
					<select id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_MONTH %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltStartDateMonth()) %>
					</select>
					<%= CommonConst.NAM_MONTH %>
					<select id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_DAY %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_START_DATE_DAY %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltDay, vo.getPltStartDateDay()) %>
					</select>
					<%= CommonConst.NAM_DAY %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= HtmlUtility.getRequiredMark() %><%= vo.NAM_DELETE %><%= CommonConst.STR_TITLE_SEPARATOR %></td>
				<td>
					<select class="DeleteFlagSelect" id="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_DELETE %>" name="<%= WorkOnHolidayAgreementCardVo.PRM_PLT_DELETE %>">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltDelete()) %>
					</select>
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="Footer">
	<button type="button" class="ExecuteButton" onclick="submitForm(document.form)"><%= CommonConst.NAM_REGIST %></button>
	<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'S2532')"><%= CommonConst.NAM_TO_LIST %></button>
	<button type="button" class="ExecuteButton" id="btnNewData" onclick="doSubmit(document.form, 'S2535')"><%= CommonConst.NAM_MAKE_NEW_DATA %></button>
</div>
<%= HtmlUtility.getFooter(vo) %>
