<%--
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.
--%>
<%-- 乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂--%>
<%--      僐儞僺儏乕僞丒儅僀儞僪丒僔儕乕僘乛MosP                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      僾儘僌儔儉俬俢丗  OutPutMasterList	丂                           --%>
<%--      僾儘僌儔儉柤  丗  CSV弌椡儅僗僞曐庣堦棗夋柺                    	 --%>
<%--      廋惓棜楌      丗                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂乣丂--%>
<%@ 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.OutPutMasterListVo"
%><%
OutPutMasterListVo vo = (OutPutMasterListVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryOutPutMaster		= vo.getEscAryOutPutMaster();
%>
<%=HtmlUtility.getHeader(vo)%>
<%= vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL)%>
<div class="Body" id="outPutMasterList">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td id="tdCode">
					<span><%=OutPutMasterListVo.NAM_CODE%><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="CodeTextBox" id="<%= OutPutMasterListVo.PRM_TXT_CODE %>" name="<%= OutPutMasterListVo.PRM_TXT_CODE %>" value="<%= vo.getEscTxtCode() %>" />
				</td>
				<td id="tdName">
					<span><%=OutPutMasterListVo.NAM_NAME%><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="TextBox" id="<%= OutPutMasterListVo.PRM_TXT_NAME %>" name="<%= OutPutMasterListVo.PRM_TXT_NAME %>" value="<%= vo.getEscTxtName() %>" />
				</td>
				<td id="tdScope">
					<span><%=OutPutMasterListVo.NAM_SCOPE%><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<select class="Select" id="<%= OutPutMasterListVo.PRM_PLT_SCOPE %>" name="<%= OutPutMasterListVo.PRM_PLT_SCOPE %>">
						<option value=""></option>
						<%= HtmlUtility.getSelectOption(vo.aryPltScope, vo.getPltScope()) %>
					</select>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitKey(document.form, 'S1221', '')"><%= CommonConst.NAM_SEARCH %></button>
				</td>
			</tr>
		</table>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thCode" 	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_CODE %>', '')"	>&nbsp;<%=OutPutMasterListVo.NAM_CODE%> &nbsp;<%=vo.getSortMark(vo.KEY_CODE)%> </th>
					<th id="thName" 	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_NAME %>', '')"	>&nbsp;<%=OutPutMasterListVo.NAM_NAME%> &nbsp;<%=vo.getSortMark(vo.KEY_NAME)%> </th>					
					<th id="thScope"	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_SCOPE %>', '')">&nbsp;<%=OutPutMasterListVo.NAM_SCOPE%>&nbsp;<%=vo.getSortMark(vo.KEY_SCOPE)%></th>					
					<th id="thIndex"	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_INDEX %>', '')">&nbsp;<%=OutPutMasterListVo.NAM_INDEX%>&nbsp;<%=vo.getSortMark(vo.KEY_INDEX)%></th>					
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td><%= aryOutPutMaster[i][0] %></td>
					<td><%= aryOutPutMaster[i][1] %></td>
					<td><%= aryOutPutMaster[i][2] %></td>
					<td><%= aryOutPutMaster[i][3] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
