  
<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Activity_StudentHealth, App_Web_xeyvvyos" title="Ledger Master" enableEventValidation="false" viewStateEncryptionMode="Never" %> 
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ 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" %>
  <%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch"
    TagPrefix="Std" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
     
            <div id="divContentPage" class="divcontentpagemargin">
               <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                  
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="169"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <!-- Sub Container2 Box Start -->

                            
                                <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader card-head">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                             <%--   <asp:Image ID="Image2" runat="server" class="fLeft" />--%>
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-search"></i>
                                                        <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>    
                                                    </header>
                                                                                                  
                                                </div> 
                                                <div class="fRight mt-27">
                                                <%--   <asp:Button ID="AddNewButtonID" runat="server" onclick="AddNewButton_Click" SkinID="0" CssClass="AddButton" Text="Add"/>--%>
                                                </div>
                                            </div>                           
                                    </div>
                                    <div class="himsBoxContent card-body">                                   
                                            <div class="contentHolder">
                                                       <asp:Panel id="SearchCriteriaPanel" runat = "server">                                                              
                                                    <asp:Panel id="pnlContents" runat = "server">                              
                                                         <div class="outerBox pTop5 col-md-3 ">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="StudentSearchIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5 display-flex">
                                                                    <asp:TextBox ID="StudentSearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200" 
                                                                        AutoPostBack="true"  ontextchanged="StudentSearchIdNoTextBox_TextChanged" >
                                                                    </asp:TextBox>
                                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentSearchIdNoImageButton"
                                                                       ImageUrl="~/Images/icons/icon_find.gif" runat="server"  OnClick="StudentIdNoImageButton_Click"/>
                                                                    <asp:HiddenField ID="StudentSearchIdHiddenField" runat="server" />
                                                                 <%--   <asp:HiddenField ID="ClassIdHiddenField" runat="server" /--%>
                                                                    <asp:HiddenField ID="AgeHiddenField" runat="server" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="StudentSearchNameLable" runat="server" Text="Name" ></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="StudentSearchNameTextBox" onmouseleave="showHideTooltip()" ReadOnly="true" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>                               
                                                                </div>
                                                            </div>
                                                           <div id="Div1" class="outerBox11 pTop5" runat="server" visible="false">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="ClassSearchLable" runat="server" Text="Class" Visible="false" ></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="ClassSearchTextBox" onmouseleave="showHideTooltip()" Visible="false" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox"  runat="server" MaxLength="200"> </asp:TextBox>                               
                                                                </div>
                                                           </div>                                                         
                                                 
                                                   

                                                  <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label2" runat="server" Text="From Date"   ></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                              <DPC:DatePickerControl ID="SearchFromPickerControl1" runat="server"   DisplayDatePicker="true" />
                                                         </div>
                                                     </div> 

                                              <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label4" runat="server" Text="To Date" ></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                      <DPC:DatePickerControl ID="SearchToDatePickerControl2" runat="server"   DisplayDatePicker="true"  />                                                 </div>
                                                 </div>
                                     
                                                  </asp:Panel>
                                                

                                                 

                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" class="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" 
                                                        SkinID="0"  class="btn-reset btn fas"/>
                                                       
                                                       <asp:Button ID="PrintListButton" runat="server" Text="&#xf15b; Print List" SkinID="0"  class="btn btn-print fas" OnClientClick = "return PrintPanel();" />
                                                    </div>
                                                  
                                               </asp:Panel>


                                                <asp:Panel id="pnlContents1" runat = "server">   
                                         
                                                 <div >
                                                     <asp:Chart ID="StudentHealthChart"  runat="server" Visible="false"  ></asp:Chart> 
                                                 </div> 

                                             <%--   <div class="himssuHeader1WireBox" >
                                                            <div class="himsBoxHeader">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText">
                                                                        <asp:Label ID="LedgerMasterDetailLabel" runat="server" Text="Health Track"></asp:Label>
                                                                    </div>
                                                                </div> 
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                 <div class="contentHolder">
                                                                 </div>
                                                            </div>
                                                        </div>--%>

                                                 <div  class="himssuHeader7WireBox col-md-12 pb5 mt2" runat="server" >
                                                    <div id="HealthCheckupStudentDiv" visible="false" runat="server">
                                                     
                                                                 <div class="himsBoxHeader card-head inner">
                                                                          <div class="headerText">
                                                                                <header>
                                                                                    <asp:Label ID="Label5" runat="server" Text="Health Checkup Student"></asp:Label>
                                                                                </header>
                                                                                
                                                                            </div>
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                       
                                                                        </div>                      
                                                                   </div>
                                                        <div class="himsBoxContent">
                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                                                <ContentTemplate>
                                                                    <div id="Div6" runat="server" visible="false">
                                                                            <div class="table-responsive">
                                                                           <asp:GridView ID="HealthCheckupStudentGridView" ClientIDMode="Static" runat="server"  AutoGenerateColumns="False"                                                                                
                                                                                AllowPaging="false"  SkinID="" ShowHeader="True" CssClass="table table-striped table-bordered table-hover" PagerSettings-Visible="false"
                                                                                DataKeyNames="HealthCheckupId,AcadamicId" EmptyDataText="No records Found !!!">
                                                                                <Columns> 
                                                                                     <asp:TemplateField HeaderText="Health Checkup" ItemStyle-Width="15%" SortExpression="Health Checkup" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="HealthcheckupLable" runat="server" Text='<%# Bind("HealthCheckup") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>  

                                                                                     <asp:TemplateField HeaderText="Checkup Date" ItemStyle-Width="15%" SortExpression="Health Checkup" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="HealthcheckupDateLable" runat="server" Text='<%# Bind("CheckupDate","{0:d}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>  

                                                                                     <asp:TemplateField HeaderText="Doctor" ItemStyle-Width="15%" SortExpression="Doctor Name" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="DoctorNameLable" runat="server" Text='<%# Bind("DoctorName") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField> 
                                                                                 
                                                                                     <asp:TemplateField HeaderText="Remark" ItemStyle-Width="15%" SortExpression="Remark" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="RemarkLable" runat="server" Text='<%# Bind("Remark") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField> 

                                                                                     <asp:TemplateField HeaderText="Status" ItemStyle-Width="15%" SortExpression="Remark" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="StatusLable" runat="server" Text='<%# Bind("Status") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField> 

                                                                                     <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="HealthCheckupStudentLinkButton_Click"
                                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField> 

                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="Div2" class="himssuHeader7WireBox col-md-12 pb5 mt2" runat="server" >
                                                    <div id="ReasonMasterDetailDiv" visible="false" runat="server">
                                                       
                                                                 <div class="himsBoxHeader card-head inner">
                                                                      <div class="headerText">
                                                                                <header>
                                                                                    <asp:Label ID="Label1" runat="server" Text="Health Track"></asp:Label>
                                                                                </header>
                                                                            </div>
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                           
                                                                        </div> 
                                                                   <%-- <div class="fRight" style="margin-top: -4px"> 
                                                                          <asp:Button ID="AddOpeningBalButton" runat="server" Text="Add Opening Balance" Width="140px" OnClick="AddOpeningBalButton_Click"  SkinID="CustomWidthButton"  />
                                                                    </div> --%>                                      
                                                                   </div>
                                                        <div class="himsBoxContent">
                                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                                <ContentTemplate>
                                                                    <div id="Div5" runat="server" visible="false">
                                                                     <div class="table-responsive">
                                                                            <asp:GridView ID="HealthTrackGridView" ClientIDMode="Static" runat="server"  AutoGenerateColumns="False"
                                                                                OnRowDataBound="HealthTrackGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover" OnPageIndexChanging="HealthTrackGridView_PageIndexChanging"
                                                                                AllowPaging="false"  SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                                DataKeyNames="Id" EmptyDataText="No records Found !!!">
                                                                                <Columns> 
                                                                                   
                                                                                   <asp:TemplateField HeaderText="Health Checkup Type" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="HealthCheckupTypeIdLabel" runat="server" Text='<%# Bind("HealthCheckupType") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    
                                                                                    <asp:TemplateField HeaderText="From Date" ItemStyle-Width="7%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="CheckFromDateLable" runat="server" Text='<%# Bind("CheckupFromDate","{0:d}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    
                                                                                     <asp:TemplateField HeaderText="To Date" ItemStyle-Width="7%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="CheckupToDateLable" runat="server" Text='<%# Bind("CheckupToDate","{0:d}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>  

                                                                                      <asp:TemplateField HeaderText="ChiefComplain" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                      ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="ChiefComplainLable" runat="server" Text='<%# Bind("ChiefComplain") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    
                                                                                    <asp:TemplateField HeaderText="Diagnosis" ItemStyle-Width="10%" SortExpression="Diagnosis" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="DiagnosisLable" runat="server" Text='<%# Bind("Diagnosis") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>


                                                                                     <asp:TemplateField HeaderText="Remark" ItemStyle-Width="15%" SortExpression="Remark" HeaderStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="RemarkLable" runat="server" Text='<%# Bind("Remark") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField> 

                                                                                     <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:LinkButton ID="HealthTrackLinkButton" runat="server" CommandName="Select"  OnClick="HealthTrackLinkButton_Click" 
                                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>

                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </div>
                            
                                                <div class="himssuHeader7WireBox col-md-12 pb5 mt2" runat="server" id="StudentImmunizationDivId" visible="false" > 
                                                         
                                                                 <div class="himsBoxHeader">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="headerText">
                                                                                <asp:Label ID="Label6" runat="server" Text="Due Immunization"></asp:Label>
                                                                            </div>
                                                                        </div>                  
                                                                   </div>                   
                                                    <div class="himsBoxContent pTop5">                                                           
                                                        <%-- <div id="DivData" class="Container" style="vertical-align: top; height: 250px; width: 99.6%;">         --%>
                                                        <div class="table-responsive">
                                                        <asp:GridView ID="StudentImmunizationStatusGridView" runat="server"   CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" 
                                                        EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="ImmunizationChartId,FromAge,ToAge,IsTaken">
                                                            <%-- OnRowDataBound="StudentImmunizationStatusGridView_OnRowDataBound" OnRowDeleting="StudentImmunizationStatusGridView_RowDeleting">--%>
                                                            <Columns>  
                                                           <%-- <asp:BoundField DataField="FromAge" HeaderText="From Age" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="ToAge" HeaderText="To Age" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" />--%>                                                            

                                                             <asp:TemplateField HeaderText="Immunization" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>                                                                         
                                                                    <asp:Label ID="ImmunizationLable" runat="server" Text='<%# Bind("Immunization") %>' Width="150px" SkinID="CustomWidthTextBox" ></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>      
                                                            
                                                             <asp:BoundField DataField="Duration" HeaderText="Duration" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />                                                                                               
                                                                <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                  <ItemTemplate>
                                                                    <asp:LinkButton ID="StudentImmunizationLinkButton" runat="server" CommandName="Select" OnClick="StudentImmunizationLinkButton_Click"  
                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                  </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                         </div>                                                     
                                                    </div>
                                                </div> 

                                                </asp:Panel>

                                            </div>
                                 
                                    </div>
                                </div>
                                <!-- Sub Container2 Box Ends -->
                               
                                <!-- Sub Container1 Box Start -->
                         
                                <!-- Sub Container1 Box Ends -->
                               
                            </div>
                       
                </div>
          
        </ContentTemplate>
    </asp:UpdatePanel>   
   <%--  <script data-main="../../JavaScript/rjs/encrypt/student-health-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-health" )%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js" )%>'></script>
</asp:Content>

