<%@ Control Language="VB" AutoEventWireup="false" CodeFile="applylist.ascx.vb" Inherits="training_uc_applylist" %>

<div style="width:700px;">
    <%-- 研修詳細 Start --%>
    <uc:TitleBar ID="uc_TitleBar_研修詳細" Mode="point" Text="研修詳細" runat="server" />
    <asp:FormView ID="frm_研修詳細" runat="server" OnDataBound="frm_研修詳細_DataBound">
        <ItemTemplate>
            <table class="training-sheet" style="width:calc(100% - 19px);">
                <colgroup>
                    <col style="width:25%;" />
                    <col style="width:29%;" />
                    <col style="width:17%;" />
                    <col style="width:29%;" />
                </colgroup>
                <tr>
                    <td class="header">
                        回CD
                    </td>
                    <td class="detail" colspan="3">
                        <asp:Label ID="lb_回CD" runat="server" Text='<%# Eval("回CD")%>' />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        研修実施回名
                    </td>
                    <td class="detail" colspan="3">
                        <asp:Label ID="lb_回" runat="server" Text='<%# Eval("回")%>' />
                        <%--非表示--%>
                        <asp:Label ID="lb_新規申込NG" runat="server" Text='<%# Eval("新規申込NG")%>' Visible="false" />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        研修の目標と内容
                    </td>
                    <td class="detail" colspan="3">
                        <asp:Label ID="lb_目標内容" runat="server" Text='<%# Eval("目標内容").ToString().Replace(Environment.NewLine, "<br />")%>' />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        対象者
                    </td>
                    <td class="detail" colspan="3">
                        <asp:Label ID="lb_対象者01" runat="server" Text='<%# Bind("対象者01")%>' />
                        &nbsp;
                        ～
                        &nbsp;
                        <asp:Label ID="lb_対象者02" runat="server" Text='<%# Bind("対象者02")%>' />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        研修期間
                    </td>
                    <td class="detail" colspan="3">
                        <asp:Label ID="lb_研修期間開始" runat="server" Text='<%# Bind("研修期間開始", "{0:yyyy/M/d(ddd)}")%>' />
                        &nbsp;
                        ～
                        &nbsp;
                        <asp:Label ID="lb_研修期間終了" runat="server" Text='<%# Bind("研修期間終了", "{0:yyyy/M/d(ddd)}")%>' />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        日数
                    </td>
                    <td class="detail">
                        <asp:Label ID="lb_日数" runat="server" Text='<%# Eval("日数")%>' />
                    </td>
                    <td class="header">
                        申込期限
                    </td>
                    <td class="detail">
                        <asp:Label ID="lb_申込期限" runat="server" Text='<%# Bind("申込期限", "{0:yyyy/M/d(ddd)}")%>' />
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        クラス数
                    </td>
                    <td class="detail">
                        <asp:Label ID="lb_クラス数" runat="server" Text='<%# Eval("クラス数")%>' />
                    </td>
                    <td class="header">
                        定員
                    </td>
                    <td class="detail">
                        <asp:Label ID="lb_定員" runat="server" Text='<%# Eval("定員")%>' />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
    <%-- 研修詳細 End --%>
    <div class="vertical_space"></div>
    <%-- 受講者一覧 Start --%>
    <uc:TitleBar ID="uc_TitleBar_受講者" Mode="point" Text="受講者" runat="server" />
    <div class="button-area">
        <asp:Button ID="btn_新規申込" runat="server" CssClass="training-button training-button-blue" Text="新&nbsp;規&nbsp;申&nbsp;込" OnClick="btn_新規申込_Click" Visible="false" />
        <asp:Label ID="lb_新規申込NG" runat="server" />
    </div>
    <asp:ListView ID="lv_受講者" runat="server" OnItemCommand="lv_受講者_ItemCommand">
        <LayoutTemplate>
            <table class="training-list" style="width:calc(100% - 20px)">
                <thead>
                    <tr>
                        <th class="training-list-header" style="width:20%;">申込番号</th>
                        <th class="training-list-header" style="width:50%;">氏名</th>
                        <th class="training-list-header" style="width:15%;">申込状況</th>
                        <th class="training-list-header" style="width:15%;">受講状況</th>
                    </tr>
                </thead>
                <tbody>
                    <tr runat="server" id="itemPlaceholder"></tr>
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr class="training-list-row">
                <td class="training-list-cell">
                    <asp:LinkButton ID="lnkb_申込番号" runat="server" Text='<%# Bind("申込番号")%>' CommandName="link" />
                    <%--非表示--%>
                    <asp:Label ID="lb_連番" runat="server" Text='<%# Bind("連番")%>' Visible="false" />
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_氏名" runat="server" Text='<%# Bind("氏名")%>' />
                </td>
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_申込状況" runat="server" Text='<%# Bind("申込状況")%>' />
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_受講状況" runat="server" Text='<%# Bind("受講状況")%>' />
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            <span class="accent">
                受講者はいません。
            </span>
        </EmptyDataTemplate>
    </asp:ListView>
    <%-- 受講者一覧 End --%>
</div>