<%--
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       = "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.CommonConst"
import = "jp.mosp.workflow.vo.ApprovalRouteCardVo"
%><%
ApprovalRouteCardVo vo = (ApprovalRouteCardVo)request.getAttribute(MospConst.ATT_VO);
%>
<%=HtmlUtility.getHeader(vo)%>
<%=vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_SYSTEM2, vo.CMD_APPROVAL_MENU ,vo.TTL_APPROVAL_MENU)%>
<div class="Body" id="UnitCard">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table >
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=ApprovalRouteCardVo.NAM_ROUTE_CODE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<input type="text" class="CodeTextBox" id="<%= ApprovalRouteCardVo.PRM_TXT_ROUTE_CODE %>" name="<%= ApprovalRouteCardVo.PRM_TXT_ROUTE_CODE %>" value="<%= vo.getEscTxtRouteCode() %>" />
				</td>
			</tr>
			<tr>
				<td class="TitleTd">
					&nbsp;
				</td>
				<td class="InputTd">
					<%=CommonConst.MSG_APPROVAL_UNIT%>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=ApprovalRouteCardVo.NAM_LAYER1%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAYER1 %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAYER1 %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLayer1())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=ApprovalRouteCardVo.NAM_LAYER2%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAYER2 %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAYER2 %>">
						<option value=""></option>					
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLayer2())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=ApprovalRouteCardVo.NAM_LAYER3%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAYER3 %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAYER3 %>">
						<option value=""></option>					
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLayer3())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=ApprovalRouteCardVo.NAM_LAYER4%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAYER4 %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAYER4 %>">
						<option value=""></option>					
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLayer4())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=ApprovalRouteCardVo.NAM_LAYER5%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAYER5 %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAYER5 %>">
						<option value=""></option>					
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLayer5())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=ApprovalRouteCardVo.NAM_LAST_LAYER%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select id="<%= ApprovalRouteCardVo.PRM_PLT_LAST_LAYER %>" name="<%= ApprovalRouteCardVo.PRM_PLT_LAST_LAYER %>">
						<option value=""></option>					
						<%=HtmlUtility.getSelectOption(vo.aryPltUnit, vo.getPltLastLayer())%>
					</select>
				</td>
			</tr>
			<tr>
				<td class="TitleTd"><%=HtmlUtility.getRequiredMark()%><%=ApprovalRouteCardVo.NAM_DELETE%><%=CommonConst.STR_TITLE_SEPARATOR%></td>
				<td class="InputTd">
					<select class="DeleteFlagSelect" id="<%= ApprovalRouteCardVo.PRM_PLT_DELETE %>" name="<%= ApprovalRouteCardVo.PRM_PLT_DELETE %>">
						<%=HtmlUtility.getDeleteFlagSelectOption(vo.getPltDelete())%>
					</select>
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="Footer">
	<button type="button" id="btnRegist" class="ExecuteButton" onclick="submitForm(document.form)"><%= CommonConst.NAM_REGIST %></button>
	<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'S2822')"><%= CommonConst.NAM_TO_LIST %></button>
	<button type="button" class="ExecuteButton" id="btnNewData" onclick="doSubmit(document.form, 'S2825')"><%= CommonConst.NAM_MAKE_NEW_DATA %></button>
</div>
<%= HtmlUtility.getFooter(vo) %>
