<%@ page language="C#" autoeventwireup="true" inherits="Career_EnterLicense, App_Web_udckrp21" stylesheettheme="Themes" theme="Themes" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="content-type" content="ie=7" />

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script src="../js/jquery.js" type="text/javascript"></script>

    <script src="../js/scoll_hidden.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <%-----------------------------------提示信息_start--------------------------------%>
    <div class="right_bg">
        <span class="right_title"><img src="../Images/homen.gif" class="pic_style" />岗位执照获取 </span> 
        <span class="s_font"><a href="../manframe.aspx"><img src="../Images/back_index.gif" class="pic_style" /> 
        返回系统首页</a></span>
        <div class="w_9">
                <div class="right_infor">
                    欢迎您进入岗位执照学习页面！本页显示了您目前能参与学习的岗位执照。选择您要学习的岗位执照您能清晰地看到该岗位执照下的能力以及课程的情况，包括学习进度和考试情况等。<a href="LicenseIntro.aspx">【点击这里回到岗位执照首页】</a><br />
                </div>
            </div>
      </div>
    <%-----------------------------------提示信息_end--------------------------------%>
    <%-----------------------------------执照列表信息_start--------------------------------%>
    <div class="just_align">
        <%--<img alt="" src="../images/zj.gif" height="31" width="43" />C#软件工程师&nbsp;  <img alt="" src="../images/zj.gif" height="31" width="43" />项目经理<font color="red">（已获得）</font>--%>
        <%--<asp:Panel ID="PelLicense" runat="server"></asp:Panel>--%>
        <asp:DataList ID="dlLisence" DataKeyField="ID" runat="server" RepeatDirection="Horizontal"
            RepeatColumns="4" OnItemCommand="dlLisence_ItemCommand" ItemStyle-Width="300px"
            OnItemDataBound="dlLisence_ItemDataBound">
            <ItemTemplate>
                <table class="tab_1" border="0" cellpadding="0" cellspacing="0" width="98%">
                    <tr align="left" valign="middle">
                        <td align="left" width="30px">
                            <img alt="" src="../images/zj_shadow.gif" height="31" />
                        </td>
                        <td align="left" valign="middle" width="270px">
                            <asp:LinkButton ID="lbtnLicense" runat="server" Text='<%# Bind("Name") %>' CommandName="license"
                                ForeColor="Black"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" Wrap="false" BackColor="White" />
        </asp:DataList>
    </div>
    <%-----------------------------------执照列表信息_end--------------------------------%>
    <%-----------------------------------执照相关信息_start--------------------------------%>
    <div class="just_align_01">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr style="border: none; background-color: none; display: none;">
                <td class="le_title">
                    <asp:Label ID="lblA" runat="server" Text="Label" CssClass="lbl_index"></asp:Label>
                </td>
            </tr>
            <tr style="background-color: #efefef; font-size: 12px; font-weight: bold;">
                <td class="box_nob">
                    <%--<asp:GridView ID="gvLicenseAndAbility" runat="server" DataKeyNames="ID" 
            AutoGenerateColumns="False" onrowdatabound="gvLicenseAndAbility_RowDataBound">
            <Columns>
                   <asp:TemplateField HeaderText="能力课程信息">
                         <ItemTemplate>
                         <table>
                         <tr>
                         <td>
                             <asp:Label ID="lblAbility" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                         </td>
                         <td>--%>
                    <asp:GridView ID="gvCourseAndExam" runat="server" SkinID="row_gview01" AutoGenerateColumns="False"
                        OnRowCommand="gvCourseAndExam_RowCommand" DataKeyNames="CourseID,ExamsetID,AbilityID,licenseid"
                        OnRowDataBound="gvCourseAndExam_RowDataBound"
                        BackColor="White" Width="100%"  >
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField DataField="AbilityName" HeaderText="能力" />
                            <asp:BoundField DataField="coursename" HeaderText="课程" />
                            <asp:BoundField DataField="StandardTime" HeaderText="标准学时(分钟)" />
                            <asp:TemplateField HeaderText="学习进度">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# GetStudyProgress(Eval("StandardTime").ToString(),Eval("totaltime").ToString()) %>'
                                        ForeColor="OrangeRed"></asp:Label>
                                    <asp:Label ID="lblStandardTime" runat="server" Visible="false" Text='<%# Eval("StandardTime").ToString() %>'></asp:Label>
                                    <asp:Label ID="lblTotalTime" runat="server" Visible="false" Text='<%# Eval("totaltime").ToString() %>'></asp:Label>
                                    <asp:Label ID="lblExamSetId" runat="server" Visible="false" Text='<%# Eval("examsetid").ToString() %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="成绩">
                                <ItemTemplate>
                                    <asp:Label ID="lblExamMark" runat="server" Text='<%# GetMark(Eval("exammark").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="是否通过">
                                <ItemTemplate>
                                    <asp:Label ID="lblIsYN" runat="server" Text='<%# Eval("IsPass") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnExam" CommandName="exam" runat="server">考试</asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="lbtnStudy" CommandName="study" runat="server">学习</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                        </EmptyDataTemplate>
                        <EmptyDataRowStyle HorizontalAlign="Center" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <%-----------------------------------执照相关信息_end--------------------------------%>
    </form>
</body>
</html>
