<%--
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       = "256kb"
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.system.vo.YakusyokuMasterCardVo"
%><%
YakusyokuMasterCardVo vo = (YakusyokuMasterCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryAllowance = vo.getAryAllowance();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=HtmlUtility.getSubTitle(vo)%>
<div class="Body" id="yakusyokuMasterCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table >
			<tr>
				<td colspan="3" id="tdMsg1">
					<div class="msgInput"><%= CommonConst.MSG_POSITION_INPUT1 %></div>
					<div class="msgInput"><%= CommonConst.MSG_POSITION_INPUT2 %></div>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_YCODE %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="CodeTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_YCODE %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_YCODE %>" value="<%= vo.getEscTxtYCode() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_TOKYU %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_TOKYU%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_TOKYU %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltTokyu , vo.getEscPltTokyu())%>
					</select>
				</td>
				<td>
					<span id="msgInput2"><%= CommonConst.MSG_POSITION_INPUT3 %></span>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%= vo.NAM_YNAME %><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2">
					<input type="text" class="TextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_YNAME %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_YNAME %>" value="<%= vo.getEscTxtYName() %>" />
				</td>
			</tr>
<!--	2008/10/23	m.yoshida	次期Verにて対応 -->
<%--
			<tr>
				<td class="TitleTd">&nbsp;</td>
				<td >&nbsp;</td>
				<td class="AllowanceTd"><%= CommonConst.NAM_FIXED %><%= CommonConst.NAM_UNIT_COST %></td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[5][1]%><%=CommonConst.NAM_DEDUCTION %><%=CommonConst.NAM_EXISTENCE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_KEKKIN%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_KEKKIN %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence1 , vo.getEscPltKekkin())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[6][1]%><%=CommonConst.NAM_DEDUCTION %><%=CommonConst.NAM_EXISTENCE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_TIJI%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_TIJI %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence1 , vo.getEscPltTiJi())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[0][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_ZAJI%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_ZAJI %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence1 , vo.getEscPltZaJi())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[1][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_KSJI%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_KSJI %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence1 , vo.getEscPltKsJi())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[2][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_SNJI%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_SNJI %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence1 , vo.getEscPltSnJi())%>
					</select>
				</td>
			</tr>
--%>
			<tr>
				<td class="TitleTd"><%=aryAllowance[7][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
<!--	2008/10/23	m.yoshida	次期Verにて対応 -->
<%--
				<td >
--%>
				<td colspan="2" >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_KAIKIN%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_KAIKIN %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence2 , vo.getEscPltKaikin())%>
					</select>
				</td>
<!--	2008/10/23	m.yoshida	次期Verにて対応 -->
<%--
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_KAIKINTAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_KAIKINTAN %>" value="<%= vo.getEscTxtKaikinTan() %>" />
				</td>
--%>
			</tr>
<!--	2008/10/23	m.yoshida	次期Verにて対応 -->
<%--
			<tr>
				<td class="TitleTd"><%=aryAllowance[8][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_SYOKUJI%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_SYOKUJI %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence2 , vo.getEscPltSyokuji())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_SYOKUJITAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_SYOKUJITAN %>" value="<%= vo.getEscTxtSyokuJiTan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[9][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU1%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU1 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence2 , vo.getEscPltCyoku1())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU1TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU1TAN %>" value="<%= vo.getEscTxtCyoku1Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[10][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU2%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU2 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence2 , vo.getEscPltCyoku2())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU2TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU2TAN %>" value="<%= vo.getEscTxtCyoku2Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[11][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU3%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_CYOKU3 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence2 , vo.getEscPltCyoku3())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU3TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU3TAN %>" value="<%= vo.getEscTxtCyoku3Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[12][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA1%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA1 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence3 , vo.getEscPltHoka1())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA1TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA1TAN %>" value="<%= vo.getEscTxtHoka1Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[13][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA2%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA2 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence3 , vo.getEscPltHoka2())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA2TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA2TAN %>" value="<%= vo.getEscTxtHoka2Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[14][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA3%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA3 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence3 , vo.getEscPltHoka3())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA3TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA3TAN %>" value="<%= vo.getEscTxtHoka3Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[15][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA4%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA4 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence3 , vo.getEscPltHoka4())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA4TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA4TAN %>" value="<%= vo.getEscTxtHoka4Tan() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=aryAllowance[16][1]%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td >
					<select id="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA5%>" name="<%= YakusyokuMasterCardVo.PRM_PLT_HOKA5 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltExistence3 , vo.getEscPltHoka5())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA5TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA5TAN %>" value="<%= vo.getEscTxtHoka5Tan() %>" />
				</td>
			</tr>
--%>
		</table>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKIN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKIN %>" 	value="<%=vo.getEscHidTKekkin() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKIN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKIN %>" 	value="<%=vo.getEscHidSKekkin() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKINTAN %>" 	value="<%=vo.getEscHidTKekkinTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_KEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_KEKKINTAN %>" 	value="<%=vo.getEscHidKekkinTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKINTAN %>" 	value="<%=vo.getEscHidSKekkinTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TIJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_TIJITAN %>" 	value="<%=vo.getEscHidTiJiTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_ZAJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_ZAJITAN %>" 	value="<%=vo.getEscHidZaJiTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_KSJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_KSJITAN %>" 	value="<%=vo.getEscHidKsJiTan() %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SNJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_SNJITAN %>" 	value="<%=vo.getEscHidSnJiTan() %>" 	/>		
	</div>
</div>
<div class="Footer">
	<button type="button" class="ExecuteButton" onclick="submitForm(document.form)"><%= CommonConst.NAM_REGIST %></button>
	<button type="button" class="ExecuteButton" id="btnDelete" onclick="doSubmitMessage(document.form, 'S2209','QC0002' ,'')"><%= CommonConst.NAM_DELETE %></button>
	<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'S2202')"><%= CommonConst.NAM_TO_LIST %></button>
	<button type="button" class="ExecuteButton" id="btnNewData" onclick="doSubmit(document.form, 'S2205')"><%= CommonConst.NAM_MAKE_NEW_DATA %></button>	
</div>
<%= HtmlUtility.getFooter(vo) %>
