<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_DivisionAllotment, App_Web_nwm5p3oq" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %> 
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
                  
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->
                 <div style="width: 100%;padding:2px;margin:2px">
                 
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">
                        <tr>
                               <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>
                                    <table width="200px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="103"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top;padding-left:10px" width="99%"> 
                                <div class="himssuHeader2WireBox">
                                <div class="contentHolder" style="padding-top:0px;padding-left:0px;padding-right:0px">
                                    <div class="himssuHeader5WireBox">
                                        <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        
                                    
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                
                                              <div class="cBoth">
                                              </div>

                                                
                                               <%-- <table>
                                                    <tr>
                                                    <td>--%>
                                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                    <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                        Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" 
                                                        OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="SearchDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                        Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                        </div>
                                                    </div>



                                                   <div class="outerBox pTop5" runat="server" visible="false">
                                                   <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="SearchIDNoNotAllotedCheckBox" runat="server"/>
                                                        <asp:Label ID="SearchIDNoNotAllotedLabel" runat="server" Text="ID No Not Alloted"></asp:Label>
                                                    </div>
                                                    </div>

                                                     <div class="cBoth">
                                                    </div>
                                                   <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RamarkLabel" runat="server" Text="Add ID No with . Dot seperation (Eg. 2. 5. 10)" Font-Bold="true"></asp:Label>
                                                        </div>
                                                    </div>
                                                              <div class="cBoth">
                                                    </div>

                                                    <div class="outerBox pTop5" style="width:560px;">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchCodeLabel" runat="server" Text="ID No" ></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                    <%--<cc1:FilteredTextBoxExtender ID="SearchCodeExtender" runat="server" TargetControlID="SearchCodeTextBox"
                                                          Enabled="True" ValidChars=",0123456789" FilterMode="ValidChars">
                                                    </cc1:FilteredTextBoxExtender>--%> 
                                                    <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                         Width="440px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                    </div>
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchOrderByLabel" runat="server" Text="Order By"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="SearchOrderByDropDownList" SkinID="CustomWidthDropDownList"
                                                        Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        <asp:ListItem Selected="True" Text="-Select-" Value="-1"></asp:ListItem>
                                                        <asp:ListItem Text="ID No" Value="Code"></asp:ListItem>
                                                        <asp:ListItem Text="Surname" Value="LastName"></asp:ListItem>
                                                        <asp:ListItem Text="Name" Value="FirstName"></asp:ListItem>
                                                        <asp:ListItem Text="Roll No" Value="RollNo"></asp:ListItem>
                                                    </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="cBoth">
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchLastNameLabel" runat="server" Text="Surname" ></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                       <asp:TextBox ID="SearchLastNameTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                         Width="150px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                    </div>
                                                    </div>

                                                    <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchFirstNameLabel" runat="server" Text="Name" ></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                       <asp:TextBox ID="SearchFirstNameTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                         Width="150px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                    </div>
                                                    </div>
                                                    <%--</td>
                                                    <td valign="top">--%>
                                                    
                                               <%-- </td></tr></table>--%>
                                               <%-- </div> --%>

                                                <div class="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="SearchButton" Text="Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="PrimaryButton" />
                                                    <asp:Button ID="ResetButton" Text="Clear" runat="Server" OnClick="ResetButton_Click"/>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                </asp:Panel>
                   <div id="Div1" class="himssuHeader7WireBox" runat="server" visible="false" style="width: 99%; height:100%">
                    <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <div class="gridHeaderText fLeft">
                                <asp:Label ID="GridViewLabel" Text="" 
                                    runat="server" Font-Bold="True" 
                                 meta:resourcekey="GridViewLabelResource1"  /> 
                            </div>                          
                        </div>
                    </div>
                    <div class="himsBoxContent">     
                        <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" 
                            visible="False"></div>  
                     <%--    <div id="DivData" class="Container" style="vertical-align: top; height: 450px; width: 99.6%;">  --%>                    
                        <asp:GridView ID="AcademicGridView" runat="server" Width="100%" AutoGenerateColumns="False" 
                            EmptyDataText="No Records Found !!"    
                            AllowPaging="false"                       
                            ShowHeader="true"
                            DataKeyNames="Id,StudentId,DivisionId">                          
                            <Columns>
                             <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="60%"  HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                <asp:TemplateField HeaderText="ID No" ItemStyle-Width="20%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                      <asp:Label ID="CodeLabel" runat = "server" ClientIDMode="Static" Text='<%# Bind("Code") %>'
                                       SkinID="CustomWidthLabel" Width="150px" ></asp:Label>
                                   </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="20%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                      <asp:Label ID="RollNoLabel" runat = "server" Text='<%# Bind("RollNo") %>'></asp:Label>  
                                   </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Division" ItemStyle-Width="20%" ItemStyle-Wrap="true"  HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                     <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                        Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged" AutoPostBack="true">
                                     </asp:DropDownList>
                                   </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="20%"></asp:BoundField>--%>
                                
                                <%--<asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="20%"></asp:BoundField>--%>
                            </Columns>
                            <PagerSettings Visible="False" />
                        </asp:GridView>
                <%--        </div>--%>
                    </div>
                </div>

                                               </div>
                                        </asp:Panel>
                                    </div> 
                                    </div>
                                        
                                    </div>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                                
                            </td>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
            <div class="spacer">
                <img src="../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
 <%--   <script data-main="../../JavaScript/rjs/encrypt/division-allotment-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/division-allotment")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>