<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%--      コンピュータ・マインド・シリーズ／MosP                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  companyCoBank                                    --%>
<%--      プログラム名  ：  会社銀行保画面		　                           --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%@ 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.CompanyCoBankVo"
%><%
CompanyCoBankVo vo = (CompanyCoBankVo)request.getAttribute(MospConst.ATT_VO);
String[] aryCoBankCode  = vo.getEscAryCoBankCode();
String[] aryBankCode    = vo.getEscAryBankCode();
String[] aryBranchCode  = vo.getEscAryBranchCode();
String[] aryAccountType = vo.getEscAryAccountType();
String[] aryAccountNo   = vo.getEscAryAccountNo();
String[] aryDelete      = vo.getEscAryDelete();
String[] aryBankName    = vo.getEscAryBankName();
String[] aryBranchName  = vo.getEscAryBranchName();
%>
<%=HtmlUtility.getHeader(vo)%>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="companyCoBank">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td id="tdCoBankCode">
					<span><%=CompanyCoBankVo.NAM_CO_BANK_CODE%><%= vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="UserIdText" id="<%= CompanyCoBankVo.PRM_TXT_CO_BANK_CODE %>" name="<%= CompanyCoBankVo.PRM_TXT_CO_BANK_CODE %>" value="<%= vo.getEscTxtCoBankCode() %>" />
				</td>
				<td id="tdBankCode">
					<span><%=CompanyCoBankVo.NAM_BANK_CODE%><%= vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="NumberTextBox" id="<%= CompanyCoBankVo.PRM_TXT_BANK_CODE %>" name="<%= CompanyCoBankVo.PRM_TXT_BANK_CODE %>" value="<%= vo.getEscTxtBankCode() %>" />
					<span id="<%= CompanyCoBankVo.PRM_LBL_BANK_NAME %>"><%=vo.getEscLblBankName()%></span>
				</td>
				<td id="tdBranchCode">
					<span><%=CompanyCoBankVo.NAM_BRANCH_CODE%><%= vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="NumberTextBox" id="<%= CompanyCoBankVo.PRM_TXT_BRANCH_CODE %>" name="<%= CompanyCoBankVo.PRM_TXT_BRANCH_CODE %>" value="<%= vo.getEscTxtBranchCode() %>" />
					<span id="<%= CompanyCoBankVo.PRM_LBL_BRANCH_NAME %>"><%=vo.getEscLblBranchName()%></span>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btn1" onclick="submitForm(document.form)"><%= vo.getName("C_REGIST") %></button>
				</td>
			</tr>
			<tr>
				<td>
					<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=CompanyCoBankVo.TNM_ACCOUNT_TYPE%><%= vo.getName("C_SEPARATOR") %></span>
					<select class="RetirementSelect" id="<%= CompanyCoBankVo.PRM_PLT_ACCOUNT_TYPE %>" name="<%= CompanyCoBankVo.PRM_PLT_ACCOUNT_TYPE %>">
						<option value=""></option>
						<%=HtmlUtility.getSelectOption(vo.aryPltAccountType, vo.getPltAccountType())%>
					</select>
				</td>
				<td>
					<span>&nbsp;&nbsp;<%=CompanyCoBankVo.NAM_ACCOUNT_NO%><%= vo.getName("C_SEPARATOR") %></span>
					<input type="text" class="NumberTextBox" id="<%= CompanyCoBankVo.PRM_TXT_ACCOUNT_NO %>" name="<%= CompanyCoBankVo.PRM_TXT_ACCOUNT_NO %>" value="<%= vo.getEscTxtAccountNo() %>" />
				</td>
				<td id="tdDelete">
					<span>&nbsp;<%=CompanyCoBankVo.NAM_DELETE%><%= vo.getName("C_SEPARATOR") %></span>
					<select class="DeleteFlagSelect" id="<%= CompanyCoBankVo.PRM_PLT_DELETE %>" name="<%= CompanyCoBankVo.PRM_PLT_DELETE %>">
						<option value=""></option>
						<%= HtmlUtility.getDeleteFlagSelectOption(vo.getPltDelete()) %>
					</select>
				</td>
				<td class="ButtonTd">
					<button type="button" id="btn2" onclick="submitForm(document.form)">更新</button>
				</td>
			</tr>
		</table>
	</div>
	<hr/>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th><button type="button" id="btn3" onclick="doSubmit(document.form, 'U5255')">新規</button></th>
					<th><%= CompanyCoBankVo.NAM_CO_BANK_CODE      %></th>
					<th><%= CompanyCoBankVo.NAM_BANK_CODE   %>       </th>
					<th><%= CompanyCoBankVo.NAM_BRANCH_CODE %>       </th>
					<th><%= CompanyCoBankVo.TNM_ACCOUNT_TYPE      %>       </th>
					<th><%= CompanyCoBankVo.NAM_ACCOUNT_NO        %>       </th>
					<th><%= CompanyCoBankVo.NAM_BANK_NAME   %>       </th>
					<th><%= CompanyCoBankVo.NAM_BRANCH_NAME %>       </th>
					<th><%= CompanyCoBankVo.NAM_DELETE      %>       </th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, 'U5253', '<%= aryCoBankCode[i] %>', '')"><%= vo.getName("C_SELECT") %></button>
					</td>
					<td                   ><%= aryCoBankCode  [i] %></td>
					<td id="tdBankCode"   ><%= aryBankCode    [i] %></td>
					<td id="tdBranchCode" ><%= aryBranchCode  [i] %></td>
					<td id="tdAccountType"><%= aryAccountType [i] %></td>
					<td id="tdAccountNo"  ><%= aryAccountNo   [i] %></td>
					<td id="tdBankName"   ><%= aryBankName    [i] %></td>
					<td id="tdBranchName" ><%= aryBranchName  [i] %></td>
					<td id="tdDelete"     ><%= aryDelete      [i] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>