<%--
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.OverTimeAgreementCardVo"
%><%
OverTimeAgreementCardVo vo = (OverTimeAgreementCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%=HtmlUtility.getHeader(vo)%>
<%=HtmlUtility.getSubTitle(vo)%>
<div class="Body" id="overTimeAgreementCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table >
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_OVER_TIME_CODE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="CodeTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_OVER_TIME_CODE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_OVER_TIME_CODE %>" value="<%= vo.getEscTxtOverTimeCode() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_WORK_TYPE_NAME %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="TextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_WORK_TYPE_NAME %>" name="<%= OverTimeAgreementCardVo.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 colspan="2">
					<input type="text" class="TextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_CAUSE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_CAUSE %>" value="<%= vo.getEscTxtCause() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_AGREE_TYPE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
			 		<select class="DeleteFlagSelect" id="<%= OverTimeAgreementCardVo.PRM_PLT_AGREE_TYPE %>" name="<%= OverTimeAgreementCardVo.PRM_PLT_AGREE_TYPE %>"> 
                   	    <%= HtmlUtility.getSelectOption(vo.aryPltAgreeType, vo.getPltAgreeType()) %> 
					</select> 
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_LIMIT_CODE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
			 		<select class="" id="<%= OverTimeAgreementCardVo.PRM_PLT_LIMIT_CODE %>" name="<%= OverTimeAgreementCardVo.PRM_PLT_LIMIT_CODE %>"> 
                   	    <%= HtmlUtility.getSelectOption(vo.aryPltLimitCode, vo.getPltLimitCode()) %> 
					</select>
 				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_CAUTION_MONTH %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_CAUTION_MONTH_HOUR %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_CAUTION_MONTH_HOUR %>" value="<%= vo.getEscTxtCautionMonthHour() %>" />
					<%= CommonConst.NAM_COMMON_TIME	%>
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_CAUTION_MONTH_MIN %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_CAUTION_MONTH_MIN %>" value="<%= vo.getEscTxtCautionMonthMin() %>" />
					<%= CommonConst.NAM_MINUTES	%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd">
					<span id="spnPremium">
						<%= CommonConst.NAM_PREMIUM %><%= CommonConst.NAM_WAGE_RATE %>
					</span>
				</td>
				<td colspan="2">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_OVER_TIME_RATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_OVER_TIME_RATE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_OVER_TIME_RATE %>" value="<%= vo.getEscTxtOverTimeRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_MONTHLY_OVER_TIME_RATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_MONTHLY_OVER_TIME_RATE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_MONTHLY_OVER_TIME_RATE %>" value="<%= vo.getEscTxtMonthlyOverTimeRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_SUB_ACQUIRE_RATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_ACQUIRE_RATE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_ACQUIRE_RATE %>" value="<%= vo.getEscTxtSubAcquireRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_SUB_ACQUIRE_HOLIDAY_RATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_ACQUIRE_HOLIDAY_RATE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_ACQUIRE_HOLIDAY_RATE %>" value="<%= vo.getEscTxtSubAcquireHolidayRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_SUB_QUIT_RATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_QUIT_RATE %>" name="<%= OverTimeAgreementCardVo.PRM_TXT_SUB_QUIT_RATE %>" value="<%= vo.getEscTxtSubQuitRate() %>" />
					<%= CommonConst.NAM_PERCENT %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_START_DATE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select class="YearSelect" id="<%= OverTimeAgreementCardVo.PRM_PLT_START_DATE_YEAR %>" name="<%= OverTimeAgreementCardVo.PRM_PLT_START_DATE_YEAR %>"> 
                        <%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltStartDateYear()) %> 
                   	</select>
                   	<%= CommonConst.NAM_YEAR %>
					<select class="MonthSelect" id="<%= OverTimeAgreementCardVo.PRM_PLT_START_DATE_MONTH %>" name="<%= OverTimeAgreementCardVo.PRM_PLT_START_DATE_MONTH %>"> 
                        <%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltStartDateMonth()) %> 
                   	</select>
                   	<%= CommonConst.NAM_MONTH %>
					<select class="DaySelect" id="<%= OverTimeAgreementCardVo.PRM_PLT_START_DATE_DAY %>" name="<%= OverTimeAgreementCardVo.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_FLAG %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
				   <select class="DeleteFlagSelect" id="<%= OverTimeAgreementCardVo.PRM_PLT_DELETE_FLAG %>" name="<%= OverTimeAgreementCardVo.PRM_PLT_DELETE_FLAG %>"> 
                        <%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltDeletFlag()) %> 
                   </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, 'S2522')"><%= CommonConst.NAM_TO_LIST %></button>
	<button type="button" class="ExecuteButton" id="btnNewData" onclick="doSubmit(document.form, 'S2525')"><%= CommonConst.NAM_MAKE_NEW_DATA %></button>
</div>
<%= HtmlUtility.getFooter(vo) %>
