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

<div style="width:500px;">
<div style=" border-bottom:solid 1px #999999; background-color:#E7E7E7;">
    &nbsp;<asp:Image ID="img_title_branchCd" ImageAlign="AbsMiddle" Width="15" runat="server" ImageUrl="~/img/title_point.png"/>
    <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" ImageUrl="~/img/search.png" />
    <asp:Label ID="lbl_検索条件"　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:HiddenField ID="hf_BankCd" runat="server" />
                    <asp:TextBox ID="txt_検索銀行CD" runat="server" style="display:none;" />
                    <asp:TextBox ID="txt_検索_支店" runat="server" CssClass="input"/>
                </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='<%# Bind("支店CD") & "," & Bind("支店名") & Bind("銀行CD") %>'   />
             </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>
