<%@ Page Language="VB" MasterPageFile="~/portal.master" AutoEventWireup="false" CodeFile="traininglist.aspx.vb" Inherits="training_traininglist" %>
<%@ MasterType VirtualPath="~/portal.master" %>
<%@ Register Src="~/uc/uc_TitleBar.ascx" TagPrefix="uc" TagName="TitleBar" %><%-- タイトルバー(大) --%>

<%-- [Webフォーム]head Start --%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<%-- [Webフォーム]head End --%>
<%-- [Webフォーム]body Start --%>
<asp:Content ID="Content2" ContentPlaceHolderID="msp_asp_cph1" runat="server">
        <link rel="stylesheet" type="text/css" href="<%=CssPath.Training%>" />
    <%-- 研修検索 Start --%>
    <%--<div style="vertical-align:middle; border:solid 1px #EEEEEE;" >--%>
        <table style="font-size:9pt;width:840px;margin-left:5px;">
            <colgroup>
                <col style="width:8%;" />
                <col style="width:8%;" />
                <col style="width:10%;" />
                <col style="width:6%;" />
                <col style="width:8%;" />
                <col style="width:15%;" />
                <col style="width:13%;" />
                <col style="width:30%;" />
            </colgroup>
            <tr>
                <td colspan="8">
                        <uc:TitleBar ID="uc_TitleBar_検索" Mode="search" Text="検索条件" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right;">
                    開講年度：
                </td>
                <td>
                    <asp:DropDownList ID="dd_検索_開講年度" runat="server" DataValueField="履修年度" DataTextField="履修年度" CssClass="input" Width="5em" />
                </td>
                <td style="text-align:right;">
                    開講月：
                </td>
                <td>
                    <asp:DropDownList ID="dd_検索_開講月" runat="server" DataValueField="月" DataTextField="月" CssClass="input" Width="5em" AppendDataBoundItems="true">
                        <asp:ListItem Selected="True" />
                    </asp:DropDownList>
                </td>
                <td style="text-align:right;">
                    課程：
                </td>
                <td>
                    <asp:DropDownList ID="dd_検索_課程" runat="server" DataValueField="課程統計CD" DataTextField="名称" CssClass="input" Width="12em" AppendDataBoundItems="true">
                        <asp:ListItem Selected="True" />
                    </asp:DropDownList>
                </td>
                <td style="text-align:right;">
                    キーワード：
                </td>
                <td>
                    <asp:TextBox ID="txt_検索_keyword" runat="server" CssClass="input" Width="100%" MaxLength="100" />
                </td>
            </tr>
            <tr>
                <td style="text-align:right;">
                    申込状況：
                </td>
                <td>
                    <asp:DropDownList ID="dd_検索_申込状況" runat="server" DataValueField="内容" DataTextField="内容" CssClass="input" Width="5em" AppendDataBoundItems="true">
                        <asp:ListItem Selected="True" />
                    </asp:DropDownList>
                </td>
                <td style="text-align:right;">
                    受講者氏名：
                </td>
                <td colspan="4" style="text-align:left;">
                    <asp:TextBox ID="txt_検索_受講者氏名" runat="server" CssClass="input" Width="20em" MaxLength="100" />
                </td>
            </tr>
            <tr>
                <td colspan="8">
                  <div class="button-area">
                     <asp:Button ID="btn_検索" runat="server" CssClass="training-button training-button-blue" Text="検&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;索" OnClick="btn_検索_Click" />
                  </div>
                </td>
            </tr>
        </table>
    <%-- 研修検索 End --%>
    <div class="vertical_space"></div>
    <%-- 研修一覧 Start --%>
    <asp:ListView ID="lv_研修" runat="server" OnItemCommand="lv_研修_ItemCommand">
        <LayoutTemplate>
            <table class="training-list">
                <thead>
                    <tr>
                        <th class="training-list-header" style="width:5%;">回CD</th>
                        <th class="training-list-header" style="width:28%;">研修実施回名</th>
                        <th class="training-list-header" style="width:45%;">研修の目標と内容</th>
                        <th class="training-list-header" style="width:10%;">対象者</th>
                        <th class="training-list-header" style="width:12%;">研修期間</th>
                    </tr>
                </thead>
                <tbody>
                    <tr runat="server" id="itemPlaceholder"></tr>
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr class="training-list-row">
                <td class="training-list-cell" style="text-align:center;">
                    <asp:Label ID="lb_回CD" runat="server" Text='<%# Bind("講座CD")%>' />
                </td>
                <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" />
                    <asp:Label ID="lb_成績年度" runat="server" Text='<%# Bind("成績年度")%>' Visible="false" />
                    <asp:Label ID="lb_分野CD" runat="server" Text='<%# Bind("分野CD")%>' Visible="false" />
                    <asp:Label ID="lb_科目CD" runat="server" Text='<%# Bind("科目CD")%>' Visible="false" />
                    <asp:Label ID="lb_講座CD" runat="server" Text='<%# Bind("講座CD")%>' Visible="false" />
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_目標内容" runat="server" Text='<%# Eval("目標内容").ToString().Replace(Environment.NewLine, "<br />")%>' />
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_対象者01" runat="server" Text='<%# Bind("対象者01")%>' />
                    <br />
                    ～
                    <br />
                    <asp:Label ID="lb_対象者02" runat="server" Text='<%# Bind("対象者02")%>' />
                </td>
                <td class="training-list-cell">
                    <asp:Label ID="lb_研修期間開始" runat="server" Text='<%# Bind("研修期間開始", "{0:yyyy/M/d(ddd)}")%>' />
                    <br />
                    ～
                    <br />
                    <asp:Label ID="lb_研修期間終了" runat="server" Text='<%# Bind("研修期間終了", "{0:yyyy/M/d(ddd)}")%>' />
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            <span class="accent" style="width:400px;display:inline-block;">
                該当する研修はありません。
            </span>
        </EmptyDataTemplate>
    </asp:ListView>
    <%-- 研修一覧 End --%>
</asp:Content>
<%-- [Webフォーム]body End --%>