<%--
/*
 * MosP - Mind Open Source Project         http://www.mosp.jp/
 * Copyright (C) 1987-2009 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                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  companyBankBranch                                --%>
<%--      プログラム名  ：  銀行・支店マスタ画面	                         --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>

<%@ 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.payroll.payment.vo.CompanyBankBranchEditVo"
%><%
CompanyBankBranchEditVo vo = (CompanyBankBranchEditVo)request.getAttribute(MospConst.ATT_VO);
String[] aryBankCode    = vo.getEscAryBankCode();
String[] aryBankName    = vo.getEscAryBankName();
String[] aryBankKana    = vo.getEscAryBankKana();
String[] aryBranchCode  = vo.getEscAryBranchCode();
String[] aryBranchName  = vo.getEscAryBranchName();
String[] aryBranchKana  = vo.getEscAryBranchKana();
%>

<%=HtmlUtility.getHeader(vo)%>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="companyBankBranchEdit">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table id="tblEdit">
			<tr>
				<td id="tdBankCode">
					<span><%=CompanyBankBranchEditVo.NAM_BANK_CODE%><%= vo.getName("C_SEPARATOR") %></span>
				</td>
				
				<td id="tdBankName">
					<span><%=CompanyBankBranchEditVo.NAM_BANK_NAME%><%= vo.getName("C_SEPARATOR") %></span>
				</td>

				<td id="tdBankKana">
					<span><%=CompanyBankBranchEditVo.NAM_BANK_KANA%><%= vo.getName("C_SEPARATOR") %></span>
				</td>
				<td class="ButtonTd" id="thButton">
					<button type="button" id="btn1" onclick="submitForm1(document.form)"></button>
				</td>
			</tr>
			<tr>
				<td>
					<input type="text" class="UserIdText" id="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_CODE %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_CODE %>" value="<%= vo.getEscTxtBankCode() %>" />
				</td>
				<td>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_NAME %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_NAME %>" value="<%= vo.getEscTxtBankName() %>" />
				</td>
				<td>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_KANA %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BANK_KANA %>" value="<%= vo.getEscTxtBankKana() %>" />
				</td>
				<td class="ButtonTd" id="thButton">
					<button type="button" id="btn2" onclick="submitForm2(document.form)"></button>
				</td>
			</tr>
			<tr>
				<td id="tdBranchCode">
					<span><%=CompanyBankBranchEditVo.NAM_BRANCH_CODE%><%= vo.getName("C_SEPARATOR") %></span>
				</td>
				<td id="tdBranchName">
					<span><%=CompanyBankBranchEditVo.NAM_BRANCH_NAME%><%= vo.getName("C_SEPARATOR") %></span>
				</td>
				<td id="tdBranchKana">
					<span><%=CompanyBankBranchEditVo.NAM_BRANCH_KANA%><%= vo.getName("C_SEPARATOR") %></span>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btn3" onclick="submitForm3(document.form)"></button>
				</td>
			</tr>
			<tr>
				<td>
					<input type="text" class="UserIdText" id="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_CODE %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_CODE %>" value="<%= vo.getEscTxtBranchCode() %>" />
				</td>
				<td>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_NAME %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_NAME %>" value="<%= vo.getEscTxtBranchName() %>" />
				</td>
				<td>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_KANA %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_BRANCH_KANA %>" value="<%= vo.getEscTxtBranchKana() %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" id="btn4" onclick="submitForm4(document.form)"></button>
				</td>
			</tr>
		</table>
		<br />
		<hr/>
		<br />
		<table id="tblSearch">
			<tr>
				<td id="tdSearchBankCode">
					<%= vo.getName("C_SEARCH") %><%=CompanyBankBranchEditVo.NAM_BANK_CODE%><%= vo.getName("C_SEPARATOR") %>
					<input type="text" class="CodeTextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BANK_CODE %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BANK_CODE %>" value="<%= vo.getEscTxtSearchBankCode() %>" />
				</td>
				<td>
					<%= vo.getName("C_SEARCH") %><%=CompanyBankBranchEditVo.NAM_BANK_KANA%><%= vo.getName("C_SEPARATOR") %>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BANK_KANA %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BANK_KANA %>" value="<%= vo.getEscTxtSearchBankKana() %>" />
				</td>
				<td id="tdSearchBranchCode">
					<%= vo.getName("C_SEARCH") %><%=CompanyBankBranchEditVo.NAM_BRANCH_CODE%><%= vo.getName("C_SEPARATOR") %>
					<input type="text" class="CodeTextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BRANCH_CODE %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BRANCH_CODE %>" value="<%= vo.getEscTxtSearchBranchCode() %>" />
				</td>
				<td>
					<%= vo.getName("C_SEARCH") %><%=CompanyBankBranchEditVo.NAM_BRANCH_KANA%><%= vo.getName("C_SEPARATOR") %>
					<input type="text" class="TextBox" id="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BRANCH_KANA %>" name="<%= CompanyBankBranchEditVo.PRM_TXT_SEARCH_BRANCH_KANA %>" value="<%= vo.getEscTxtSearchBranchKana() %>" />
				</td>
				<td id="tdButton">
					<button type="button" id="btn6" onclick="submitForm6(document.form)"><%= vo.getName("C_SEARCH") %></button>
				</td>
			</tr>
		</table>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thButton">
						<button type="button" id="btn5" onclick="doSubmit(document.form, 'U5286')">新規</button>
					</th>
					<th id="thBankCode"  ><%= CompanyBankBranchEditVo.NAM_BANK_CODE   %> </th>
					<th id="thBranchCode"><%= CompanyBankBranchEditVo.NAM_BRANCH_CODE %> </th>
					<th id="thBankName"  ><%= CompanyBankBranchEditVo.NAM_BANK_NAME   %> </th>
					<th id="thBankKana"  ><%= CompanyBankBranchEditVo.NAM_BANK_KANA   %> </th>
					<th id="thBranchName"><%= CompanyBankBranchEditVo.NAM_BRANCH_NAME %> </th>
					<th id="thBranchKana"><%= CompanyBankBranchEditVo.NAM_BRANCH_KANA %> </th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, 'U5285','<%= aryBankCode[i] %>','<%= aryBranchCode[i] %>', '')"><%= vo.getName("C_SELECT") %></button>
					</td>
					<td id="tdBankCode"   ><%= aryBankCode    [i] %></td>
					<td id="tdBranchCode" ><%= aryBranchCode  [i] %></td>
					<td id="tdBankName"   ><%= aryBankName    [i] %></td>
					<td id="tdBankKana"   ><%= aryBankKana    [i] %></td>
					<td id="tdBranchName" ><%= aryBranchName  [i] %></td>
					<td id="tdBranchKana" ><%= aryBranchKana  [i] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
