<%--
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       = "128kb"
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.kintai.schedule.vo.ScheduleInputCardVo"
%><%
ScheduleInputCardVo vo = (ScheduleInputCardVo) request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="scheduleInputCard">
	<%=HtmlUtility.getMessages(vo)%>
<!--	2008/11/14	m.yoshida	選択情報表示	-->
	<div class="Select">
		<table>
			<tr>
				<td id="tdKCode">
					<%= CommonConst.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKCode() %>
				</td>
				<td id="tdKName">
					<%= CommonConst.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKName() %>
				</td>
				<td id="tdStation">
					<%= CommonConst.NAM_STATION %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblSectionName() %>
				</td>
				<td class="ButtonTd">
					&nbsp;
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmit(document.form, 'K1242')"><%= CommonConst.TTL_SCHEDULE_EDIT %></button>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmit(document.form, 'K1232')"><%= CommonConst.TTL_SCHEDULE_CONFIRM %></button>
				</td>
			</tr>
		</table>
	</div>
	<div class="Card">
		<table id="tblSchedule">
			<thead>
				<tr>
					<th id="thTime" colspan="2">
						<%= vo.getSubTitle() %>
					</th>
				</tr>
			</thead>
<!--	2008/11/14	m.yoshida	予定登録機能追加対応	-->
			<tbody>
				<tr>
					<td class="TitleTd">
						<%= vo.NAM_SCHEDULE_START %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<select id="<%= ScheduleInputCardVo.PRM_PLT_YEAR %>" name="<%= ScheduleInputCardVo.PRM_PLT_YEAR %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltScheduleYear, vo.getPltYear()) %>
						</select><%= CommonConst.NAM_YEAR %>
						<select id="<%= ScheduleInputCardVo.PRM_PLT_MONTH %>" name="<%= ScheduleInputCardVo.PRM_PLT_MONTH %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltScheduleMonth, vo.getPltMonth()) %>
						</select><%= CommonConst.NAM_MONTH %>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
							<%= vo.NAM_ROTATION_TYPE %><%=CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<div class="divSelect">
							<%= ScheduleInputCardVo.getCheckBoxWithJs(
									ScheduleInputCardVo.PRM_CKB_SELECT_WORK_TYPE,
									ScheduleInputCardVo.PRM_CKB_SELECT_WORK_TYPE,
									vo.getCheckBoxChecked(vo.getCkbSelectWorkType()),
									"onclick",
									"changeVisibility('" + ScheduleInputCardVo.PRM_CKB_SELECT_WORK_TYPE + "','divWorkType','divRotation');") %>
							<span class="msgSelect">
								<%= CommonConst.MSG_SCHEDULE_ROTATION_SPECIFIED %>
							</span>
							<div id="divWorkType" class="divTarget">
								<select class="TypeSelect" id="<%= ScheduleInputCardVo.PRM_PLT_WORK_TYPE_CODE %>" name="<%= ScheduleInputCardVo.PRM_PLT_WORK_TYPE_CODE %>">
									<%=HtmlUtility.getSelectOption(vo.aryPltWorkType, vo.getPltWorkTypeCode())%>
								</select>
							</div>
							<div id="divRotation" class="divTarget">
								<select class="TypeSelect" id="<%= ScheduleInputCardVo.PRM_PLT_ROTATION_CODE %>" name="<%= ScheduleInputCardVo.PRM_PLT_ROTATION_CODE %>">
									<%=HtmlUtility.getSelectOption(vo.aryPltRotation, vo.getPltRotationCode())%>
								</select>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td class="TitleTd">
						<%= CommonConst.NAM_NUMBER_OF_DAYS %><%= CommonConst.STR_TITLE_SEPARATOR%>
					</td>
					<td class="InputTd">
						<div class="divSelect">
							<%= ScheduleInputCardVo.getCheckBoxWithJs(
									ScheduleInputCardVo.PRM_CKB_SELECT_PERIOD,
									ScheduleInputCardVo.PRM_CKB_SELECT_PERIOD,
									vo.getCheckBoxChecked(vo.getCkbSelectPeriod()),
									"onclick",
									"changeVisibility('" + ScheduleInputCardVo.PRM_CKB_SELECT_PERIOD + "','divMonthly','divDaily');") %>
							<span class="msgSelect">
								<%= CommonConst.MSG_SCHEDULE_PERIOD_SPECIFIED %>
							</span>
							<div id="divMonthly" class="divTarget">
								<span class="msgTarget">
									<%= CommonConst.MSG_SCHEDULE_PERIOD %>
								</span>
							</div>
							<div id="divDaily" class="divTarget">
								<select id="<%= ScheduleInputCardVo.PRM_PLT_SCHEDULE_DAY %>" name="<%= ScheduleInputCardVo.PRM_PLT_SCHEDULE_DAY %>">
									<%= HtmlUtility.getSelectOption(vo.aryPltScheduleDay, vo.getPltScheduleDay()) %>
								</select><%= CommonConst.NAM_DAY %>
								<span class="msgTarget">
									<%= CommonConst.MSG_FROM %>
								</span>
								<select id="<%= ScheduleInputCardVo.PRM_PLT_ROTATION_DAYS %>" name="<%= ScheduleInputCardVo.PRM_PLT_ROTATION_DAYS %>">
									<%=HtmlUtility.getSelectOption(vo.aryPltDays, vo.getPltRotationDays())%>
								</select><%= CommonConst.NAM_ROTATION_DAYS %>
							</div>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" id="<%= ScheduleInputCardVo.PRM_HID_SELECT_K_CODE %>" name="<%= ScheduleInputCardVo.PRM_HID_SELECT_K_CODE %>" value="<%= vo.getEscSelectKCode() %>">
	</div>
	<div class="Footer">
		<button type="button" class="ExecuteButton" id="btnRegist" onclick="submitForm(document.form)"><%=CommonConst.NAM_REGIST%></button>
	</div>
</div>
<%=HtmlUtility.getFooter(vo)%>
