<%--
MosP - Mind Open Source Project         http://www.mosp.jp/
Copyright (C) 1987-2008 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.human.vo.HumanKihonCardVo"
import = "jp.mosp.common.vo.MosPVo"
%><%
HumanKihonCardVo vo = (HumanKihonCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%= HtmlUtility.getHeader(vo) %>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_HUMAN) %>
<div class="Body" id="humanBasis">
	<%=HtmlUtility.getMessages(vo)%>
	<jsp:include page="humanCard.jsp" />
	<div class="Select">
		<table id="tblKCode">
			<tbody>
				<tr>
					<td>
						<%= HumanKihonCardVo.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<%= MosPVo.getTextBox("UserIdText", HumanKihonCardVo.PRM_TXT_K_CODE, vo.getEscTxtKCode(), vo.getMode() == HumanKihonCardVo.MODE_INSERT ? true : false) %>
					</td>
					<td>
						<%= HumanKihonCardVo.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<input type="text" class="TextBox" id="<%= HumanKihonCardVo.PRM_TXT_K_NAME %>" name="<%= HumanKihonCardVo.PRM_TXT_K_NAME %>" value="<%= vo.getEscTxtKName() %>" />
					</td>
					<td>
						<%= HumanKihonCardVo.NAM_K_KANA %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<input type="text" class="TextBox" id="<%= HumanKihonCardVo.PRM_TXT_K_KANA %>" name="<%= HumanKihonCardVo.PRM_TXT_K_KANA %>" value="<%= vo.getEscTxtKKana() %>" />
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
	<div id="divTitle"><%= CommonConst.NAM_EDIT_HUMAN_BASIC %>&nbsp;<span id="spnMode"></span></div>
		<table id="tblHistory">
			<tbody>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_OFFICE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="DataTd">
						<%= vo.getEscLblOffice() %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_SECTION %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="DataTd">
						<%= vo.getEscLblSection() %>
					</td>
				</tr>				
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_POSITION %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<%= vo.getEscLblPosition() %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_ENTRANCE_DATE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<%= vo.getEscLblEntranceDate() %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_RETIREMENT_TYPE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<%= vo.getEscLblRetirement() %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_RETIREMENT_DATE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<%= vo.getEscLblRetirementDate() %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_E_MAIL %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<%= vo.getEscLblEMail() %>
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblArrow">
			<tbody>
				<tr>
					<td>
						<span><%= CommonConst.STR_ARROW %></span>
					</td>
				</tr>
			</tbody>
		</table>
		<table id="tblBasis">
			<tbody>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_OFFICE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="InputTd">
						<select class="OfficeSelect" id="<%= HumanKihonCardVo.PRM_PLT_OFFICE %>" name="<%= HumanKihonCardVo.PRM_PLT_OFFICE %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltOfficeAll, vo.getPltOffice()) %>
						</select>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_SECTION %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td class="InputTd">
						<select class="SectionSelect" id="<%= HumanKihonCardVo.PRM_PLT_SECTION %>" name="<%= HumanKihonCardVo.PRM_PLT_SECTION %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltSection, vo.getPltSection()) %>
						</select>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_POSITION %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td>
						<select id="<%= HumanKihonCardVo.PRM_PLT_POSITION %>" name="<%= HumanKihonCardVo.PRM_PLT_POSITION %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltPosition, vo.getPltPosition()) %>
						</select>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_ENTRANCE_DATE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<select id="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_YEAR %>" name="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_YEAR %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltEntranceYear()) %>
						</select><%= CommonConst.NAM_YEAR %>
						<select id="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_MONTH %>" name="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_MONTH %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltEntranceMonth()) %>
						</select><%= CommonConst.NAM_MONTH %>
						<select id="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_DAY %>" name="<%= HumanKihonCardVo.PRM_PLT_ENTRANCE_DAY %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltDay, vo.getPltEntranceDay()) %>
						</select><%= CommonConst.NAM_DAY %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_RETIREMENT_TYPE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<select id="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT %>" name="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT %>">
							<%= HtmlUtility.getSelectOption(vo.aryPltRetirement, vo.getPltRetirement()) %>
						</select>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_RETIREMENT_DATE %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<select id="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_YEAR %>" name="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_YEAR %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltYear, vo.getPltRetirementYear()) %>
						</select><%= CommonConst.NAM_YEAR %>
						<select id="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_MONTH %>" name="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_MONTH %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltMonth, vo.getPltRetirementMonth()) %>
						</select><%= CommonConst.NAM_MONTH %>
						<select id="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_DAY %>" name="<%= HumanKihonCardVo.PRM_PLT_RETIREMENT_DAY %>">
							<option value=""></option>
							<%= HtmlUtility.getSelectOption(vo.aryPltDay, vo.getPltRetirementDay()) %>
						</select><%= CommonConst.NAM_DAY %>
					</td>
				</tr>
				<tr>
					<td class="Title1Td">
						<%= HumanKihonCardVo.NAM_E_MAIL %><%= CommonConst.STR_TITLE_SEPARATOR %>
					</td>
					<td >
						<input type="text" class="CodeTextBox" id="<%= HumanKihonCardVo.PRM_TXT_E_MAIL %>" name="<%= HumanKihonCardVo.PRM_TXT_E_MAIL %>" value="<%= vo.getEscTxtEMail() %>" />
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<table id="tblButton">
		<tbody>
			<tr>
				<td>
						<button type="button" class="ExecuteButton" id="btnRegist" onclick="submitForm(document.form)"><%= CommonConst.NAM_REGIST %></button>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_K_NAME			%>" name="<%= HumanKihonCardVo.PRM_HID_K_NAME			%>" value="<%= vo.getEscHidKName()			%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_K_KANA			%>" name="<%= HumanKihonCardVo.PRM_HID_K_KANA			%>" value="<%= vo.getEscHidKKana()			%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_OFFICE			%>" name="<%= HumanKihonCardVo.PRM_HID_OFFICE			%>" value="<%= vo.getEscHidOffice()			%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_SECTION			%>" name="<%= HumanKihonCardVo.PRM_HID_SECTION			%>" value="<%= vo.getEscHidSection()		%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_POSITION			%>" name="<%= HumanKihonCardVo.PRM_HID_POSITION			%>" value="<%= vo.getEscHidPosition()		%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_RETIREMENT		%>" name="<%= HumanKihonCardVo.PRM_HID_RETIREMENT		%>" value="<%= vo.getEscHidRetirement()		%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_YEAR		%>" name="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_YEAR	%>" value="<%= vo.getEscHidEntranceYear()	%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_MONTH	%>" name="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_MONTH	%>" value="<%= vo.getEscHidEntranceMonth()	%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_DAY		%>" name="<%= HumanKihonCardVo.PRM_HID_ENTRANCE_DAY		%>" value="<%= vo.getEscHidEntranceDay()	%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_YEAR	%>" name="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_YEAR	%>" value="<%= vo.getEscHidRetirementYear()	%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_MONTH	%>" name="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_MONTH	%>" value="<%= vo.getEscHidRetirementMonth()%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_DAY	%>" name="<%= HumanKihonCardVo.PRM_HID_RETIREMENT_DAY	%>" value="<%= vo.getEscHidRetirementDay()	%>" />
<input type="hidden" id="<%= HumanKihonCardVo.PRM_HID_E_MAIL			%>" name="<%= HumanKihonCardVo.PRM_HID_E_MAIL			%>" value="<%= vo.getEscHidEMail()			%>" />
<%= HtmlUtility.getFooter(vo) %>
