<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="extattendancemanager.aspx.cs" Inherits="Us.Web.admin.house.extattendancemanager" %>


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>宿舍出勤管理</title>

    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <script language="javascript" type="text/javascript">
        KindEditor.ready(function (K) {
            K.create('#txtAttendNote');
        });
    </script>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
         
              $(".ResultsType").change(function () {
                var v = $(this).val();
                if (v != "0") {
                    $(this).parent().parent().css('background-color', '#D4E7F0');
                }
                else {
                    $(this).parent().parent().css('background-color', '#ffffff');
                }
            });

            $(".ResultsType").each(function () {
                $(this).change();
            });
            
        });
       

    </script>

</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">

        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        宿舍出勤管理
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        宿舍出勤管理
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onmouseover="changeto()" onmouseout="changeback()">

                            <tr class="tablisttr">

                                <td class="tablisttitle">隶属公寓<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpHTID" ToolTip="隶属公寓" CssClass="1" AutoPostBack="True" OnSelectedIndexChanged="drpHTID_SelectedIndexChanged"></asp:DropDownList>
                                </td>
                                <td class="tablisttitle">隶属房间<span class="fStar">*</span></td>
                                <td class="tabmanagertr">

                                    <asp:DropDownList runat="server" ID="drpHID" ToolTip="隶属房间" CssClass="1" AutoPostBack="True" OnSelectedIndexChanged="drpHID_SelectedIndexChanged"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">考勤日期<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtAttendDate" runat="server" ToolTip="考勤日期" Text="" CssClass="1" onfocus="WdatePicker({onpicked:function(){__doPostBack('txtAttendDate','')},skin:'whyGreen',isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd'});" AutoPostBack="True" OnTextChanged="txtAttendDate_TextChanged"></asp:TextBox>
                                </td>
                                <td class="tablisttitle">总人数<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUCount" runat="server" ToolTip="总人数" Text="0" CssClass="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">考勤负责人</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUName" runat="server" ToolTip="考勤负责人" Text="宿舍教师"></asp:TextBox>
                                </td>
                                <td class="tablisttitle">提示区</td>
                                <td class="tabmanagertr">
                                    <asp:Label runat="server" ID="labMessage" CssClass="fColorRed"></asp:Label>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">出勤信息<span class="fStar">*</span></td>
                                <td class="tabmanagertr" colspan="3">
                                    <div style="margin: 10px;height:200px;overflow:auto;">
                                        <asp:Repeater runat="server" ID="rptInfo">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" onmouseover="changeto()" onmouseout="changeback()">
                                                    <tr class="tablisttitle">

                                                        <td>序号</td>
                                                        <td>学生编号</td>
                                                        <td>学生姓名</td>
                                                        <td>出勤状态</td>
                                                        <td>备注说明</td>

                                                    </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr class="tablisttr">

                                                    <td><%# Container.ItemIndex + 1%> </td>
                                                    <td><%#Eval("UserID")%></td>
                                                    <td><%#Eval("UserName")%></td>
                                                    <td>
                                                        <asp:HiddenField runat="server" ID="hidAttendType" Value='<%# Eval("AttendType")%>' />
                                                         <asp:HiddenField runat="server" ID="hidUserID" Value='<%# Eval("UserID")%>' />
                                                         <asp:HiddenField runat="server" ID="hidID" Value='<%# Eval("ID")%>' />


                                                        <asp:DropDownList runat="server" ID="drpAttendType" Width="120px" CssClass="ResultsType">
                                                        </asp:DropDownList></td>
                                                    <td>
                                                        <asp:TextBox ID="txtAttendNote" runat="server" Text='<%# Eval("AttendNote") %>' MaxLength="800"
                                                            Width="200px"></asp:TextBox></td>

                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </div>
                                </td>

                            </tr>
                            <tr class="tablisttr nodisplay">
                                <td class="tablisttitle">出勤人数<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUJoinCount" runat="server" ToolTip="出勤人数" Text="0" CssClass="1"></asp:TextBox>
                                </td>
                                <td class="tablisttitle">缺勤人数<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUNoCount" runat="server" ToolTip="缺勤人数" Text="0" CssClass="1"></asp:TextBox>
                                </td>
                            </tr>
                            

                            <tr class="tablisttr">

                                <td class="tablisttitle">备注说明</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtAttendNote" runat="server" ToolTip="备注说明" Text="" Width="100%" TextMode="MultiLine" Height="200px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>




                        <div class="divSave">
                            <asp:Button ID="btnSubmit" runat="server" Text="保存(S)"
                                CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                            <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
