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

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Register Src="../UserCol/Dictionary.ascx" TagName="Dictionary" TagPrefix="uc2" %>
<%@ 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="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="divpanel">
            <table class="table" cellspacing="0">
                <tr>
                    <th colspan="2">评价表
                    </th>
                </tr>
                <tr>
                    <td style="width: 120px">学号：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxStudentID" runat="server" Enabled="False"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">姓名：
                    </td>
                    <td>
                        <asp:Literal ID="litStudentName" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">上课时数：
                    </td>
                    <td>
                        <uc1:Progress ID="Progress1" runat="server" Unit="课时" Width="80%" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">出勤汇总：
                    </td>
                    <td>迟到：<asp:TextBox ID="tbxLateCount" runat="server" Enabled="False" Width="41px"></asp:TextBox>
                        早退：<asp:TextBox ID="tbxAdvanceCount" runat="server" Enabled="False" Width="39px"></asp:TextBox>
                        旷课：<asp:TextBox ID="tbxTruancyCount" runat="server" Enabled="False" Width="41px"></asp:TextBox>
                        请假：<asp:TextBox ID="tbxLeaveCount" runat="server" Enabled="False" Width="37px"></asp:TextBox>
                        补课：<asp:TextBox ID="tbxFillCount" runat="server" Enabled="False" Width="37px"></asp:TextBox>（单位：课次）
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">出勤率：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxAttendance" runat="server" Width="74px" Enabled="False"></asp:TextBox>%
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">评价日期：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxOpinionDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">总成绩：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxScore" runat="server" Width="74px"></asp:TextBox><asp:Literal
                            Text="分" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">成绩1：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxScore1" runat="server" Width="74px"></asp:TextBox>
                        <asp:Literal Text="分" runat="server" ID="Literal1" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">成绩2：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxScore2" runat="server" Width="74px"></asp:TextBox>
                        <asp:Literal Text="分" runat="server" ID="Literal2" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">成绩3：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxScore3" runat="server" Width="74px"></asp:TextBox>
                        <asp:Literal Text="分" runat="server" ID="Literal3" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">成绩4：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxScore4" runat="server" Width="74px"></asp:TextBox>
                        <asp:Literal Text="分" runat="server" ID="Literal4" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">成绩5：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxScore5" runat="server" Width="74px"></asp:TextBox>
                        <asp:Literal Text="分" runat="server" ID="Literal5" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">阶段或科目成绩：
                    </td>
                    <td style="height: 24px">成绩名称：<asp:TextBox ID="tbxScoreName" runat="server"></asp:TextBox>
                        分数：<asp:TextBox ID="tbxSubScore" runat="server" Width="54px"></asp:TextBox>
                        说明：<asp:TextBox ID="tbxRemark" runat="server" Width="145px"></asp:TextBox>
                        <label class="lab_button">
                            <asp:Button ID="btnAddItem" runat="server" Text="增加" OnClick="btnAddItem_Click" />
                        </label>
                        <div style="width: 60%">
                            <asp:GridView ID="GridView1" runat="server" CssClass="smallgridview" AutoGenerateColumns="False"
                                DataKeyNames="ScoreID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing"
                                OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting" EnableModelValidation="True">
                                <Columns>
                                    <asp:TemplateField HeaderText="成绩名称">
                                        <ItemTemplate>
                                            <asp:Label ID="labScoreName" runat="server" Text='<%# Eval("ScoreName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="tbxScoreName" runat="server" Text='<%# Eval("ScoreName") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="日期">
                                        <ItemTemplate>
                                            <asp:Label ID="labDateAndTime" runat="server" Text='<%# Eval("DateAndTime") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="tbxDateAndTime" runat="server" Text='<%# Eval("DateAndTime") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="分数">
                                        <ItemTemplate>
                                            <asp:Label ID="labScore" runat="server" Text='<%# Eval("Score","{0:f2}") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="tbxScore" runat="server" Text='<%# Eval("Score") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="说明">
                                        <ItemTemplate>
                                            <asp:Label ID="labRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="tbxRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:CommandField HeaderText="编辑" EditText="编辑" CancelText="取消" UpdateText="更新" ShowEditButton="true" />--%>
                                    <asp:TemplateField HeaderText="编辑">
                                        <ItemTemplate>
                                            <div class="lab_button_sub" id="divEdit" runat="server">
                                                <asp:LinkButton ID="lbnEdit" runat="server" Text="编辑" CommandName="Edit"></asp:LinkButton>
                                            </div>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <div class="lab_button_sub">
                                                <asp:LinkButton ID="lbnUpdate" runat="server" Text="更新" CommandName="Update"></asp:LinkButton>
                                            </div>
                                            <div class="lab_button_sub">
                                                <asp:LinkButton ID="lbnCancel" runat="server" Text="取消" CommandName="Cancel"></asp:LinkButton>
                                            </div>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <div class="lab_button_sub" id="divDelete" runat="server">
                                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">评价级别：
                    </td>
                    <td style="height: 24px">
                        <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 style="width: 120px; height: 24px;">证书名称：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxCertName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; height: 24px;">证书编号：
                    </td>
                    <td style="height: 24px">
                        <asp:TextBox ID="tbxCertNumber" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px">评语：
                    </td>
                    <td>
                        <asp:TextBox ID="tbxOpinion" runat="server" Width="462px" TextMode="MultiLine" Height="179px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px"></td>
                    <td>
                        <p align="left">
                            <label class="lab_button">
                                <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click"></asp:Button>
                            </label>
                            <label class="lab_button" id="__mt_labBack" runat="server">
                                <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                            </label>
                        </p>
                    </td>
                </tr>
            </table>
        </div>
        <!------usercol ajax-------->
        <asp:UpdatePanel ID="up" runat="server">
            <ContentTemplate>
                <uc2:Dictionary ID="Dictionary1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <!-------usercol ajax------->
    </form>
</body>
</html>
