<%--
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                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  ExportCard                                		 --%>
<%--      プログラム名  ：  エクスポート画面                        		 --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%@ 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.ExportCardVo"
%><%
ExportCardVo vo = (ExportCardVo)request.getAttribute(MospConst.ATT_VO);
String[] aryEName		= vo.getEscAryEName();
String[] aryEFile		= vo.getEscAryEFile();
/*						
 *  	2009/02/20	m.yoshida	エラー対応
 */
String[] aryENameKey = vo.getEscAryENameKey();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_PAYROLL)%>
<div class="Body" id="ExportCard">
	<%=HtmlUtility.getMessages(vo) %>
	<div class="Card">
		<table id="info">
			<tr>
				<td class="TitleTd">
					<%=ExportCardVo.NAM_KINTAI_INFO%><%= CommonConst.STR_TITLE_SEPARATOR %>
				</td>
				<td id="tdYearMonth">
					<select id="<%= ExportCardVo.PRM_PLT_YEAR%>" name="<%= ExportCardVo.PRM_PLT_YEAR %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltYear , vo.getPltYear())%>
					</select><%=ExportCardVo.NAM_PLT_YEAR%>
					<select id="<%= ExportCardVo.PRM_PLT_MONTH%>" name="<%= ExportCardVo.PRM_PLT_MONTH %>">
						<%=HtmlUtility.getSelectOption(vo.aryPltMonth , vo.getPltMonth())%>
					</select><%=ExportCardVo.NAM_PLT_MONTH%>
				</td>
			</tr>
		</table>		
	</div>
	<%= HtmlUtility.getListInfo(vo) %>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thButton"></th>
					<th id="thName"><%= ExportCardVo.NAM_E_NAME %></th>
					<th id="thFile"><%= ExportCardVo.NAM_E_FILE %></th>
					<th id="thExport"></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
<!--	2009/02/20	m.yoshida	エラー対応	-->
<%-- 
						<button type="button" onclick="doSubmitKey(document.form, 'S1216', '<%= aryEName[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.NAM_CHANGE %></button>
--%>
						<button type="button" onclick="doSubmitKey(document.form, 'S1216', '<%= aryENameKey[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.NAM_CHANGE %></button>
					</td>
					<td id="tdName"><%= aryEName [i] %></td>
					<td id="tdFile"><%= aryEFile [i] %></td>
					<td id="tdExport">
			            <input type="hidden" id="<%= ExportCardVo.PRM_TXT_E_NAME %>" name="<%= ExportCardVo.PRM_TXT_E_NAME %>" value="<%= aryEName[i] %>">
						<button type="button" class="ExportButton" onclick="doSubmitFileKey(document.form, 'S1206', '<%= aryEName[i] %>', '<%= aryEFile[i] %>')"><%= CommonConst.TTL_EXPORT_MASTER %></button>
					</td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<div class="ButtonDiv">
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'S1215', '<%= CommonConst.CODE_TABLE_M_KIHON %>')">		<%= CommonConst.NAM_MAKE_NEW_DATA %><%= CommonConst.NAM_NEW_DATA_M_KIHON %>		</button>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'S1215', '<%= CommonConst.CODE_TABLE_M_KINTAI %>')">	<%= CommonConst.NAM_MAKE_NEW_DATA %><%= CommonConst.NAM_NEW_DATA_M_KINTAI %>	</button>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'S1215', '<%= CommonConst.CODE_TABLE_M_SYUKKINBO %>')">	<%= CommonConst.NAM_MAKE_NEW_DATA %><%= CommonConst.NAM_NEW_DATA_M_SYUKKINBO %>	</button>
		<button type="button" class="ExecuteButton" onclick="doSubmitKey(document.form, 'S1215', '<%= CommonConst.CODE_TABLE_M_YUKYU %>')">		<%= CommonConst.NAM_MAKE_NEW_DATA %><%= CommonConst.NAM_NEW_DATA_M_YUKYU %>		</button>
	</div>
</div>
<%=HtmlUtility.getFooter(vo) %>	
