<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="classcourseheightlist.aspx.cs"
    Inherits="School_Web.admin.course.classcourseheightlist" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 id="Head1" runat="server">
    <title>班级课程管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />

    <script language="javascript" src="/admin/js/SystemPage.js" type="text/jscript"></script>

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

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

    <link type="text/css" rel="stylesheet" href="/admin/style/jquery/jquery_dialog.css" />

    <script language="javascript" type="text/javascript">
        //页面加载状态
        //2010-06-11
        $(document).ready(function() {
           chkState();
        });
        //查看成绩限制状态
        //2010-06-11
        function chkState()
        {
            $(":checkbox").click( function () { 
                
                var chkid=$(this).attr("id");
                if(chkid=="checkSelect")
                {
                    return ;
                }
                if(chkid=="chkSelect")
                {
                    
                }
                chkid=chkid.replace("chkSelect","chkIsEdit");
                $("#"+chkid).attr("checked",$(this).attr("checked"));
             });
             
            
        }
        
    </script>

    <link href="../style/green/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="LnkBExcel" />
        </Triggers>
        <ContentTemplate>
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        班级课程</div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divInfo">
                <div class="divInfoTop">
                    <div class="listLeft">
                        <ul>
                            <li>
                                <div>
                                    <img src="../style/green/images/search.gif" /></div>
                            </li>
                            <li>条件选择</li>
                        </ul>
                    </div>
                </div>
                <div class="divInfoContext">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="SkyTableLine">
                        <tr>
                            <td width="100" align="center" class="SkyTDTitle">
                                条件选择
                            </td>
                            <td class="SkyTDInfo">
                                <div id="searchBox" class="clearsearch">
                                    <p>
                                        <label for="drpSkyTID">
                                            开课学期：</label>
                                        <asp:DropDownList ID="drpSkyTID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpSkyTID_SelectedIndexChanged"
                                            Enabled="false">
                                        </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyDID">
                                            开课院系：</label><asp:DropDownList ID="drpSkyDID" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="drpSkyDID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyPID">
                                            开课专业：</label><asp:DropDownList ID="drpSkyPID" runat="server" AutoPostBack="True"
                                                OnSelectedIndexChanged="drpSkyPID_SelectedIndexChanged">
                                            </asp:DropDownList>
                                    </p>
                                    <p>
                                        <label for="drpSkyCID">
                                            开课班级：</label>
                                        <asp:DropDownList ID="drpSkyCID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpSkyCID_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </p>
                                    <p id="chklist">
                                        <asp:CheckBox ID="chkTrue" runat="server" Text="已经开课" OnCheckedChanged="chkTrue_CheckedChanged"
                                            Checked="True" Enabled="False" />
                                    </p>
                                    <p id="searchSubmit">
                                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认搜索" CssClass="SkyButtonFocus" /></p>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="divInfo">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <ul>
                            <li>
                                <div>
                                    <img src="../style/green/images/index.gif" /></div>
                            </li>
                            <li>
                                <asp:Literal ID="litName" runat="server"></asp:Literal>课程列表</li>
                        </ul>
                    </div>
                    <div class="listRight">
                        <ul>
                            <li>
                                <div>
                                    <asp:Literal ID="LSelectAll" runat="server" Text="全择"></asp:Literal>
                                </div>
                            </li>
                            <li class="listRightwidth">
                                <label for="checkSelect">
                                    全选</label>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/22.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBAdd" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="False">新增</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/33.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBModify" runat="server" Enabled="False" OnClick="SkyLnkBAMD_Click">修改</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/11.gif" width="14" height="14">
                                </div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBDelete" runat="server" OnClick="SkyLnkBAMD_Click" Enabled="False">删除</asp:LinkButton>
                            </li>
                            <li>
                                <div>
                                    <img src="../style/default/tab/44.gif" width="14" height="14"></div>
                            </li>
                            <li class="listRightwidth">
                                <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="divInfoContext">
                    <div style="font: 2px; line-height: 2px;">
                        &nbsp;</div>
                    <asp:GridView ID="gvInfo" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                        CellPadding="0" CellSpacing="1" GridLines="None" Width="100%" CssClass="Ntable"
                        HorizontalAlign="Center" OnRowDataBound="gvInfo_RowDataBound">
                        <RowStyle CssClass="SkyTDLineCenter" HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" CssClass="SkyTDTopLine"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="序号">
                                <ItemStyle CssClass="itemStyle1" />
                            </asp:BoundField>
                            <%--                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" ToolTip='<%# Bind("CourseID")%>' />
                        </ItemTemplate>
                        <ItemStyle CssClass="itemStyle2" />
                    </asp:TemplateField>--%>
                            <asp:BoundField DataField="CourseID" HeaderText="课程编号" />
                            <asp:TemplateField HeaderText="课程名称">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtCourseName" runat="server" Width="70" Text='<%# Bind("CourseName")%>' ToolTip='<%# Bind("SkyDepartCourseID")%>'></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="成绩编辑">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkIsEdit" runat="server" Text="可以" Checked='<%# Eval("IsEdit").ToString() == "0"?true:false%>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="审核情况">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkIsCheck" runat="server" Text="已审" Checked='<%# Eval("IsCheck").ToString() == "1"?true:false%>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="课程类型">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidCState" Value='<%# Bind("CState")%>' />
                                    <asp:DropDownList runat="server" ID="drpCState" Width="50px">
                                        <asp:ListItem Text="主课" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="副课" Value="1"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="开课节数">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidFestival" Value='<%# Bind("Festival")%>' />
                                    <asp:DropDownList runat="server" ID="drpFestival" Width="50px">
                                        <asp:ListItem Text="1节" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="2节" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="3节" Value="3"></asp:ListItem>
                                        <asp:ListItem Text="4节" Value="4"></asp:ListItem>
                                        <asp:ListItem Text="5节" Value="5"></asp:ListItem>
                                        <asp:ListItem Text="6节" Value="6"></asp:ListItem>
                                        <asp:ListItem Text="7节" Value="7"></asp:ListItem>
                                        <asp:ListItem Text="8节" Value="8"></asp:ListItem>
                                        <asp:ListItem Text="9节" Value="9"></asp:ListItem>
                                        <asp:ListItem Text="10节" Value="10"></asp:ListItem>
                                        <asp:ListItem Text="11节" Value="11"></asp:ListItem>
                                        <asp:ListItem Text="12节" Value="12"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="教师所属院系">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidSkyDIDUser" Value='<%# Bind("SkyDIDUser")%>' />
                                    <asp:DropDownList runat="server" ID="drpSkyDIDUser" Width="100px" AutoPostBack="true"
                                        OnSelectedIndexChanged="DropDownDepartment_SelectedIndexChanged">
                                        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="授课教师">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidUserID" Value='<%# Bind("UserID")%>' />
                                    <asp:DropDownList runat="server" ID="drpUserID" Width="70px">
                                        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="开课校区">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidAID" Value='<%# Bind("AID")%>' />
                                    <asp:DropDownList runat="server" ID="drpAID" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="DropDownAID_SelectedIndexChanged">
                                        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="开课教室">
                                <ItemTemplate>
                                    <asp:HiddenField runat="server" ID="hidRoomID" Value='<%# Bind("RoomID")%>' />
                                    <asp:DropDownList runat="server" ID="drpRoomID" Width="80px">
                                        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:ButtonField HeaderText="修改" Text="[修改]" CommandName="modify">
                                <ItemStyle CssClass="itemStyle10" />
                            </asp:ButtonField>
                            <asp:ButtonField HeaderText="高级" Text="[高级]" CommandName="modify1"  Visible=false>
                                <ItemStyle CssClass="itemStyle10" />
                            </asp:ButtonField>
                        </Columns>
                    </asp:GridView>
                    <div class="divInfoRight">
                        <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged"
                            ShowNavigationToolTip="True" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
            <div class="divSave">
                <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                    Enabled="false" OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
            </div>
            <div  class="clear"></div>
            <div  class="clear">
                <a href="/admin/autocourse/v2courseclassweekmanage.aspx<% ="?id="+sShowID+"&name="+sShowName%>">1.[<font style="color:red">拖动排课</font>] ；需要您设置好开课节数和选择开课教师教室后才可以设置；</a>
                <br><a href="/admin/autocourse/v2courseclassweekroommanage.aspx<% ="?id="+sShowID+"&name="+sShowName%>">2.[<font style="color:red">点击安排教室</font>]；需要您设置好课程的开课时间后才可以设置；</a>
            </div>
            <asp:Literal ID="LiteralScript" runat="server" EnableViewState="False"></asp:Literal>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <div id="divLoading">
                <img src="/admin/images/loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
