<%--
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.common.BaseVo"
import = "jp.mosp.common.CommonConst"
import = "jp.mosp.kintai.system.vo.WorkSystemCardVo"
%><%
WorkSystemCardVo vo = (WorkSystemCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="WorkSystemCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table >
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_CALCULATION %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select id="<%= WorkSystemCardVo.PRM_PLT_CALCULATION_MONTH %>" name="<%= WorkSystemCardVo.PRM_PLT_CALCULATION_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltCalcMonth, vo.getPltCalcMonth()) %>
					</select>
					<%=CommonConst.MSG_OF%>
					&nbsp;
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_CALCULATION_DAYS %>"  name="<%= WorkSystemCardVo.PRM_TXT_CALCULATION_DAYS %>"  value="<%= vo.getEscTxtCalcDays() %>"  />
					<%=CommonConst.MSG_PERIOD_DATE1%>
					&nbsp;
					<%=CommonConst.MSG_PERIOD_DATE2%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_PROVIDED %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select id="<%= WorkSystemCardVo.PRM_PLT_PROVIDED_MONTH %>" name="<%= WorkSystemCardVo.PRM_PLT_PROVIDED_MONTH %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltProvidedMonth, vo.getPltProvidedMonth()) %>
					</select>
					<%=CommonConst.MSG_OF%>
					&nbsp;
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_PROVIDED_DAYS %>"  name="<%= WorkSystemCardVo.PRM_TXT_PROVIDED_DAYS %>"  value="<%= vo.getEscTxtProvidedDays() %>"  />
					<%=CommonConst.MSG_PROVIDED_DATE%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_INPUT_UNIT_TIMES %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_INPUT_UNIT_TIMES %>" name="<%= WorkSystemCardVo.PRM_TXT_INPUT_UNIT_TIMES %>" value="<%= vo.getEscTxtInputUnit() %>" />
					<%=CommonConst.NAM_MINUTES%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_AUTOMATIC_CALCULATION %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select id="<%= WorkSystemCardVo.PRM_PLT_AUTOMATIC_CALCULATION %>" name="<%= WorkSystemCardVo.PRM_PLT_AUTOMATIC_CALCULATION %>" onchange="changeProcessView()">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltAutoCalc()) %>
					</select>
					<select id="<%= WorkSystemCardVo.PRM_PLT_CALCULATION_PROCESS %>" name="<%= WorkSystemCardVo.PRM_PLT_CALCULATION_PROCESS %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltProcess, vo.getPltCalcProcess()) %>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_HOLIDAY_HOURS_ALL %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_ALL_HOLIDAY_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_ALL_HOLIDAY_HOUR %>" value="<%= vo.getEscTxtAllHolidayHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_ALL_HOLIDAY_MIN %>"  name="<%= WorkSystemCardVo.PRM_TXT_ALL_HOLIDAY_MIN %>"  value="<%= vo.getEscTxtAllHolidayMin() %>"  />
					<%=CommonConst.NAM_MINUTES%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_HOLIDAY_HOURS_HALF %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_HALF_HOLIDAY_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_HALF_HOLIDAY_HOUR %>" value="<%= vo.getEscTxtHalfHolidayHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_HALF_HOLIDAY_MIN %>"  name="<%= WorkSystemCardVo.PRM_TXT_HALF_HOLIDAY_MIN %>"  value="<%= vo.getEscTxtHalfHolidayMin() %>"  />
					<%=CommonConst.NAM_MINUTES%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_LATE_NIGHT_START %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_START_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_START_HOUR %>" value="<%= vo.getEscTxtLateNightStartHour() %>" />
					<%=CommonConst.STR_TIME_SEPARATOR%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_START_MIN %>"  name="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_START_MIN %>"  value="<%= vo.getEscTxtLateNightStartMin() %>"  />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_LATE_NIGHT_HOURS %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_TIME_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_TIME_HOUR %>" value="<%= vo.getEscTxtLateNightTimeHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_TIME_MIN %>"  name="<%= WorkSystemCardVo.PRM_TXT_LATE_NIGHT_TIME_MIN %>"  value="<%= vo.getEscTxtLateNightTimeMin() %>"  />
					<%=CommonConst.NAM_MINUTES%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_PASSWORD_TERM %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_PASSWORD_TERM %>" name="<%= WorkSystemCardVo.PRM_TXT_PASSWORD_TERM %>" value="<%= vo.getEscTxtPasswordTerm() %>" />
					<%=CommonConst.NAM_ROTATION_DAYS%>
					&nbsp;
					<%=CommonConst.MSG_PASSWORD_TERM%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_BEFORE_OVER_TIME %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_BEFORE_OVER_TIME_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_BEFORE_OVER_TIME_HOUR %>" value="<%= vo.getEscTxtBeforeOverTimeHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_BEFORE_OVER_TIME_MIN %>" name="<%= WorkSystemCardVo.PRM_TXT_BEFORE_OVER_TIME_MIN %>" value="<%= vo.getEscTxtBeforeOverTimeMin() %>" />
					<%= CommonConst.NAM_MINUTES %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_OVER_TIME_INTERVAL %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_UNIT_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_UNIT_HOUR %>" value="<%= vo.getEscTxtOverTimeUnitHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_UNIT_MIN %>" name="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_UNIT_MIN %>" value="<%= vo.getEscTxtOverTimeUnitMin() %>" />
					<%= CommonConst.NAM_MINUTES %>
					<%= CommonConst.MSG_PER_TARGET %>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_INTERVAL_HOUR %>" name="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_INTERVAL_HOUR %>" value="<%= vo.getEscTxtOverTimeIntervalHour() %>" />
					<%=CommonConst.NAM_COMMON_TIME%>
					<input type="text" class="NumberTextBox" id="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_INTERVAL_MIN %>" name="<%= WorkSystemCardVo.PRM_TXT_OVER_TIME_INTERVAL_MIN %>" value="<%= vo.getEscTxtOverTimeIntervalMin() %>" />
					<%= CommonConst.NAM_MINUTES %>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_ROUND_NUMBER %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select id="<%= WorkSystemCardVo.PRM_PLT_ROUND_NUMBER %>" name="<%= WorkSystemCardVo.PRM_PLT_ROUND_NUMBER %>">
						<%= HtmlUtility.getSelectOption(vo.aryPltRoundNumber, vo.getPltRoundNumber()) %>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_HOUR_PAID_HOLIDAY_FUNCTION %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= WorkSystemCardVo.PRM_PLT_HOUR_HOLIDAY_FUNCTION %>" name="<%= WorkSystemCardVo.PRM_PLT_HOUR_HOLIDAY_FUNCTION %>" onchange="changeHourUnitView()">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltHourHolidayFunction()) %>
					</select>
				</td>
				<td>
					<div id="divHourUnit">
						<%= vo.NAM_HOUR_PAID_HOLIDAY_UNIT %><%=CommonConst.STR_TITLE_SEPARATOR%>
						<select id="<%= WorkSystemCardVo.PRM_PLT_HOUR_HOLIDAY_UNIT %>" name="<%= WorkSystemCardVo.PRM_PLT_HOUR_HOLIDAY_UNIT %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltHourUnit, vo.getPltHourHolidayUnit()) %>
						</select><%= CommonConst.NAM_COMMON_TIME %>
					</div>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_OVER_TIME_60_HOUR %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<select id="<%= WorkSystemCardVo.PRM_PLT_OVER_TIME_60_HOUR %>" name="<%= WorkSystemCardVo.PRM_PLT_OVER_TIME_60_HOUR %>" onchange="changeSubstituteView()">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltOverTime60Hour()) %>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%= vo.NAM_SUBSTITUTE_HOLIDAY %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_HOLIDAY %>" name="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_HOLIDAY %>" onchange="changeSubstituteFunctionView()">
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltSubstituteHoliday()) %>
					</select>
				</td>
				<td id="tdSubstitute">
					<div id="divPeriod">
						<%= vo.NAM_SUBSTITUTE_PERIOD %><%=CommonConst.STR_TITLE_SEPARATOR%>
						<select id="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_PERIOD %>" name="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_PERIOD %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltSubHolidayPeriod, vo.getPltSubstitutePeriod()) %>
						</select>
					</div>
					<div id="divPriority">
						<%= vo.NAM_SUBSTITUTE_PRIORITY %><%=CommonConst.STR_TITLE_SEPARATOR%>
						<select id="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_PRIORITY %>" name="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_PRIORITY %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltSubHolidayPriority, vo.getPltSubstitutePriority()) %>
						</select>
					</div>
<%--  			
					<div id="divAmendment">
						<%= vo.NAM_SUBSTITUTE_AMENDMENT %><%=CommonConst.STR_TITLE_SEPARATOR%>
						<select id="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_AMENDMENT %>" name="<%= WorkSystemCardVo.PRM_PLT_SUBSTITUTE_AMENDMENT %>">
							<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltSubstituteAmendment()) %>
						</select>
					</div>
--%>	
				</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="MenuButton" onclick="doSubmit(document.form, 'S2030')"><%= CommonConst.NAM_RE_SEARCH %></button>
	<button type="button" class="MenuButton" onclick="doSubmit(document.form, 'S2910')"><%= CommonConst.NAM_TO_MENU %></button>
</div>
<%= HtmlUtility.getFooter(vo) %>
