<%--
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.common.common.BaseVo"
import = "jp.mosp.kintai.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="<%= BaseVo.escapeHTML(vo.getTxtYCode()) %>" />
				</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.getPltTokyu())%>
					</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="<%= BaseVo.escapeHTML(vo.getTxtYName()) %>" />
				</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.getPltKekkin())%>
					</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.getPltTiJi())%>
					</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.getPltZaJi())%>
					</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.getPltKsJi())%>
					</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.getPltSnJi())%>
					</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.getPltKaikin())%>
					</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.getTxtKaikinTan() %>" />
				</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.getPltSyokuji())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_SYOKUJITAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_SYOKUJITAN %>" value="<%= vo.getTxtSyokuJiTan() %>" />
				</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.getPltCyoku1())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU1TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU1TAN %>" value="<%= vo.getTxtCyoku1Tan() %>" />
				</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.getPltCyoku2())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU2TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU2TAN %>" value="<%= vo.getTxtCyoku2Tan() %>" />
				</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.getPltCyoku3())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU3TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_CYOKU3TAN %>" value="<%= vo.getTxtCyoku3Tan() %>" />
				</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.getPltHoka1())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA1TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA1TAN %>" value="<%= vo.getTxtHoka1Tan() %>" />
				</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.getPltHoka2())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA2TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA2TAN %>" value="<%= vo.getTxtHoka2Tan() %>" />
				</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.getPltHoka3())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA3TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA3TAN %>" value="<%= vo.getTxtHoka3Tan() %>" />
				</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.getPltHoka4())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA4TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA4TAN %>" value="<%= vo.getTxtHoka4Tan() %>" />
				</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.getPltHoka5())%>
					</select>
				</td>
				<td class="AllowanceTd">
					<input type="text" class="NumberTextBox" id="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA5TAN %>" name="<%= YakusyokuMasterCardVo.PRM_TXT_HOKA5TAN %>" value="<%= vo.getTxtHoka5Tan() %>" />
				</td>
			</tr>
--%>
		</table>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKIN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKIN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidTKekkin()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKIN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKIN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidSKekkin()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_TKEKKINTAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidTKekkinTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_KEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_KEKKINTAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidKekkinTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKINTAN %>" 	name="<%= YakusyokuMasterCardVo.PRM_HID_SKEKKINTAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidSKekkinTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_TIJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_TIJITAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidTiJiTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_ZAJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_ZAJITAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidZaJiTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_KSJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_KSJITAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidKsJiTan()) %>" 	/>
		<input type="hidden" id="<%= YakusyokuMasterCardVo.PRM_HID_SNJITAN %>" 		name="<%= YakusyokuMasterCardVo.PRM_HID_SNJITAN %>" 	value="<%= BaseVo.escapeHTML(vo.getHidSnJiTan()) %>" 	/>		
	</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) %>
