<%@ Control Language="VB" AutoEventWireup="false" CodeFile="uc_SearchBankCd.ascx.vb" inherits="uc_SearchBankCd" %>

<asp:SqlDataSource ID="sql_銀行" runat="server" />
<asp:HiddenField ID="hf_Type" runat="server" />

<div style="width:500px;">
<div style=" border-bottom:solid 1px #999999; background-color:#E7E7E7;">
    &nbsp;<asp:Image ID="img_title_bankCd" ImageAlign="AbsMiddle" Width="15" runat="server" />
    <asp:Label ID="lbl_title" Text="銀行CDの検索" style="font-size:9pt;" runat="server" />
</div>
<div style=" border-bottom:solid 1px #999999; background-color:#E7E7E7;">
    &nbsp;<asp:Image ID="img_title_search" ImageAlign="AbsMiddle" Width="15" runat="server" />
    <asp:Label ID="Label2"　Text="検索条件" style="font-size:9pt;" runat="server" />
</div>
    <div style="vertical-align:middle; border:solid 1px #EEEEEE; padding-left:10px;background-color:#ffffff;">
        <table style="font-size:9pt;">
            <colgroup>
                <col style="width:20%;" />
                <col style="width:30%;" />
                <col style="width:50%;" />
            </colgroup>
            <tr>
                <td style="text-align:right;">
                    銀行名：
                </td>
                <td>
                    <asp:TextBox ID="txt_検索_銀行" runat="server" DataValueField="銀行CD" DataTextField="銀行名" CssClass="input" AppendDataBoundItems="true"/>
                </td>
                <td style="text-align:left;">
                    <asp:Button ID="btn_検索" runat="server" CssClass="button" Text="検&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;索" OnClick="btn_検索_Click" />
                </td>
            </tr>
        </table>
    </div>

    <%-- 研修一覧 Start --%>
    <asp:GridView
    ID="gv_銀行一覧" AutoGenerateColumns="False"
    EnableModelValidation="True" AllowPaging="True" PageSize="10"
    CssClass="list gridViewRow" GridLines="Vertical" Width="100%"
    EnableViewState="False" ShowFooter="True" runat="server"
>
    <Columns>
        <%-- 銀行CD --%>
        <asp:TemplateField HeaderText="銀行CD" ItemStyle-Width="8%">
            <HeaderStyle Font-Bold="False" HorizontalAlign="Center"/>
            <ItemTemplate>
                <asp:Label ID="lbl_銀行CD" runat="server" Text='<%# Bind("銀行CD")%>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center"/>
        </asp:TemplateField>
        <%-- 銀行名 --%>
        <asp:TemplateField HeaderText="銀行名" ItemStyle-Width="20%">
            <HeaderStyle Font-Bold="False" HorizontalAlign="Center"/>
            <ItemTemplate>
                    <asp:Label ID="lbl_銀行名" runat="server" Text='<%# Bind("銀行名")%>'/>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <%-- 選択ボタン --%>
        <asp:TemplateField HeaderText="" ItemStyle-Width="8%">
            <HeaderStyle Font-Bold="False"/>
            <ItemTemplate>
                    <asp:Button ID="btn_選択" runat="server" Text="選択" CommandName="Select" 
                        CommandArgument='<%# Eval("銀行CD") & "," & Eval("銀行名") %>' />
             </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
    <AlternatingRowStyle CssClass="alt-row" />
    <SelectedRowStyle CssClass="sel-row" />
    <FooterStyle BackColor="#E8E8E8" BorderStyle="None" />
    <PagerSettings Mode="NumericFirstLast" Position="Top" PageButtonCount="5" />    
    <PagerStyle CssClass ="GridViewPager" HorizontalAlign="Center" />
    <EmptyDataTemplate>
        <asp:Label ID="lbl_empty" class="accent" Text="該当する銀行はありません。" runat="server" />
    </EmptyDataTemplate>
    <EmptyDataRowStyle HorizontalAlign="Center" />
</asp:GridView>
<asp:HiddenField ID="HiddenFieldSelectedValue" runat="server" />
<div style="height:40px; padding:5px 0px; text-align:center;">
    <asp:Button ID="btn_close" runat="server" Text="閉じる" cssclass="button_blue" Height="30px" />
</div>
</div>
