<%@ Page Language="c#" CodeBehind="PostOpinion.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.Teacher.PostOpinion"
    Title="评价学员-老师" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Register Src="../../UserCol/Dictionary.ascx" TagName="Dictionary" TagPrefix="uc2" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<%@ Import Namespace="MTCUN" %>
<!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">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc3:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">

            <div class="biao_zhun_suo_jin">
                <div class="kuai_show">
                    <h1 style="text-align: center">评价表</h1>
                    <table class="table_simple_kuan" cellspacing="0">
                        <tr>
                            <td style="width: 85px">学号：
                            </td>
                            <td>
                                <asp:Literal ID="litStudentID" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td>姓名：
                            </td>
                            <td>
                                <asp:Literal ID="litStudentName" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td>上课时数：
                            </td>
                            <td>
                                <uc1:Progress ID="Progress1" runat="server" Unit="课时" Width="80%" />
                            </td>
                        </tr>
                        <tr>
                            <td>出勤汇总：
                            </td>
                            <td>实到：<asp:TextBox ID="tbxFactCount" runat="server" Enabled="False" Width="41px"></asp:TextBox>
                                迟到：<asp:TextBox ID="tbxLateCount" runat="server" Enabled="False" Width="41px"></asp:TextBox><br />
                                早退：<asp:TextBox ID="tbxAdvanceCount" runat="server" Enabled="False" Width="41px"></asp:TextBox>
                                旷课：<asp:TextBox ID="tbxTruancyCount" runat="server" Enabled="False" Width="41px"></asp:TextBox><br />
                                请假：<asp:TextBox ID="tbxLeaveCount" runat="server" Enabled="False" Width="41px"></asp:TextBox>
                                补课：<asp:TextBox ID="tbxFillCount" runat="server" Enabled="False" Width="41px"></asp:TextBox><br />
                                （单位：课次）
                            </td>
                        </tr>
                        <tr>
                            <td>评价日期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxOpinionDate" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>总成绩：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore" runat="server" Width="74px"></asp:TextBox><asp:Literal
                                    Text="分" runat="server" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>成绩1：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore1" runat="server" Width="74px"></asp:TextBox>
                                <asp:Literal Text="分" runat="server" ID="Literal1" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>成绩2：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore2" runat="server" Width="74px"></asp:TextBox>
                                <asp:Literal Text="分" runat="server" ID="Literal2" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>成绩3：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore3" runat="server" Width="74px"></asp:TextBox>
                                <asp:Literal Text="分" runat="server" ID="Literal3" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>成绩4：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore4" runat="server" Width="74px"></asp:TextBox>
                                <asp:Literal Text="分" runat="server" ID="Literal4" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>成绩5：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxScore5" runat="server" Width="74px"></asp:TextBox>
                                <asp:Literal Text="分" runat="server" ID="Literal5" />
                            </td>
                        </tr>
                        <tr>
                            <td>阶段成绩：
                            </td>
                            <td style="height: 24px" class="striking">

                                <table class="table_simple_kuan" cellpadding="2">
                                    <tr>
                                        <td style="width: 85px">成绩名称：</td>
                                        <td>
                                            <asp:TextBox ID="tbxScoreName" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td>分数：</td>
                                        <td>
                                            <asp:TextBox ID="tbxSubScore" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td>说明：</td>
                                        <td>
                                            <asp:TextBox ID="tbxRemark" runat="server"></asp:TextBox></td>
                                    </tr>
                                </table>




                                <label class="lab_button_kuan">
                                    <asp:Button ID="btnAddItem" runat="server" Text="增加" OnClick="btnAddItem_Click" />
                                </label>

                                <div class="main">
                                    <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand"
                                        OnItemDataBound="repBlock_ItemDataBound">
                                        <ItemTemplate>
                                            <asp:Panel ID="plItem" runat="server" CssClass="kuai">

                                                <h1 class="auto_length_title"><%# Eval("ScoreName") %></h1>

                                                <table class="table_simple_kuan">
                                                    <tr>
                                                        <td style="width: 80px">日期：</td>
                                                        <td style="width: auto">
                                                            <%# Eval("DateAndTime") %></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: auto">分数：</td>
                                                        <td style="width: auto">
                                                            <%# Eval("Score","{0:f2}") %></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: auto">说明：</td>
                                                        <td style="width: auto">
                                                            <%# Eval("Remark") %></td>
                                                    </tr>
                                                </table>

                                                <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                                    <tr>
                                                        <td>
                                                            <div class="lab_button">
                                                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("ScoreID")%>'
                                                                    OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div class="lab_button">
                                                                <asp:LinkButton runat="server" ID="lbnEdit" CommandArgument='<%# Eval("ScoreID")%>'
                                                                    CommandName="Edit" Text="编辑"></asp:LinkButton>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>


                                            </asp:Panel>
                                            <asp:Panel ID="plEdit" runat="server" CssClass="kuai edit_kuai">
                                                <table class="table_simple_kuan">
                                                    <tr>
                                                        <td style="width: 80px">成绩名称：</td>
                                                        <td style="width: auto">
                                                            <asp:TextBox ID="tbxScoreName" runat="server" Text='<%# Eval("ScoreName") %>'></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: auto">日期：</td>
                                                        <td style="width: auto">
                                                            <asp:TextBox ID="tbxDateAndTime" runat="server" Text='<%# Eval("DateAndTime") %>'></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: auto">分数：</td>
                                                        <td style="width: auto">
                                                            <asp:TextBox ID="tbxScore" runat="server" Text='<%# Eval("Score") %>'></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: auto">说明：</td>
                                                        <td style="width: auto">
                                                            <asp:TextBox ID="tbxRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:TextBox></td>
                                                    </tr>
                                                </table>


                                                <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                                    <tr>
                                                        <td>
                                                            <div class="lab_button">
                                                                <asp:LinkButton runat="server" ID="lbnUpdate" CommandArgument='<%# Eval("ScoreID")%>'
                                                                    CommandName="Update" Text="更新"></asp:LinkButton>
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div class="lab_button">
                                                                <asp:LinkButton runat="server" ID="lbnCancel" CommandArgument='<%# Eval("ScoreID")%>'
                                                                    CommandName="Cancel" Text="取消"></asp:LinkButton>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>

                                            </asp:Panel>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>评价级别：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlGrade" runat="server">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem Value="A+"></asp:ListItem>
                                    <asp:ListItem Value="A"></asp:ListItem>
                                    <asp:ListItem Value="A-"></asp:ListItem>
                                    <asp:ListItem Value="B+"></asp:ListItem>
                                    <asp:ListItem Value="B"></asp:ListItem>
                                    <asp:ListItem Value="C+"></asp:ListItem>
                                    <asp:ListItem Value="C"></asp:ListItem>
                                    <asp:ListItem Value="D"></asp:ListItem>
                                    <asp:ListItem Value="E"></asp:ListItem>
                                    <asp:ListItem Value="F"></asp:ListItem>
                                    <asp:ListItem Value="EP"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>证书名称：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCertName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>证书编号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCertNumber" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>评语：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxOpinion" runat="server" TextMode="MultiLine" Height="179px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
                <label class="lab_button_kuan">
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
                </label>
                <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                    <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                </label>

            </div>
        </div>
        <!------usercol ajax-------->
        <asp:UpdatePanel ID="up" runat="server">
            <ContentTemplate>
                <uc2:Dictionary ID="Dictionary1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <!-------usercol ajax------->
    </form>
</body>
</html>
