<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AppointHistOldVersion.aspx.cs" Inherits="Axium.Web.Appoint.AppointHistOldVersion" %>

<!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>Appointment History List</title>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script src="../Includes/Scripts/jquery-3.5.1.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery-migrate-3.3.2.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/json2.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/utilities.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jqModal-r14.js" type="text/javascript"></script>  
    <script src="../Includes/Scripts/jquery.timer.js" type="text/javascript"></script>    
</head>
<body>
    <form id="form1" runat="server" enableviewstate="False">
    <div id="AppointmentHistory">
        <h1>Appointment History</h1>
        <div id="Appointment">
            <span id="AppointDate" class="Date" runat="server"></span>
            <span id="AppointTime" class="Time" runat="server"></span>
            <span id="DisplayHist" class="History">
                <a href="UpcomeApptOldVersion.aspx?dvappid=<%=AppointmentId%>">Back</a>
            </span>
        </div>
        
        <div id="HistoryDetail">        
            <asp:Repeater ID="AppointHistRepeater" runat="server" 
                DataSourceID="PagedAppointHistListDataSource" EnableTheming="False" 
                EnableViewState="False" OnItemDataBound="HistAppoint_ItemDataBound">
                
                <ItemTemplate>
                    <div class="ItemRow">
                        <div class="HistStatus">
                            <span class="Label">Status:</span>
                            <span class="Info"><%# Eval("HistAppointStatus")%> <asp:Literal ID="ConfirmLiteral" runat="server"></asp:Literal></span>
                        </div>
                        <asp:Literal ID="HistDate" runat="server"></asp:Literal>
                        <div class="HistTime">
                            <span class="Label">Time:</span>
                            <span class="Info"><%# Eval("HistAppointTime")%></span>
                        </div>
                        <div class="HistChair">
                            <span class="Label">Clinic/Chair:</span>
                            <span class="Info"><%#Eval("HistClinic")%><%# Eval("HistChair") %></span>
                        </div>
                        <div class="HistMadeOn">
                            <span class="Label">Made On:</span>
                            <span class="Info"><%# Eval("HistMadeOn", "{0:MMM dd, yyyy}")%></span>
                        </div>
                        <div class="HistProvider">
                            <span class="Label">Provider:</span>
                            <span class="Info"><%# Eval("HistPrimProvider")%></span>
                        </div>
                        <asp:Literal ID="SecondaryLiteral" runat="server"></asp:Literal>
                        <div class="HistCode">
                            <span class="Label">Appointment Code:</span>
                            <span class="Info"><%# Eval("HistApptCode")%><%# Eval("HistApptCodeDesc")%></span>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <asp:ObjectDataSource ID="PagedAppointHistListDataSource" runat="server" 
            SelectMethod="GetAppointsHistAsPagedDataSource" 
            TypeName="Axium.Core.DataAccess.Appoint.AppointDataAccess" 
            onselected="AppointsHistDefaultPagingDataSource_Selected" 
            EnableViewState="False">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="pageIndex" 
                    QueryStringField="pageIndex" Type="Int32" />
                <asp:QueryStringParameter DefaultValue="10" Name="pageSize" 
                    QueryStringField="pageSize" Type="Int32" />
                <asp:QueryStringParameter DefaultValue="" Name="appid" QueryStringField="appid" 
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <div id="HistoryPagination">
        <asp:Button runat="server" ID="FirstPage" Text="<< First" 
            onclick="FirstPage_Click" EnableTheming="False" EnableViewState="False" />
        <asp:Button runat="server" ID="PrevPage" Text="< Prev" 
            onclick="PrevPage_Click" EnableTheming="False" EnableViewState="False" />
        <asp:Button runat="server" ID="NextPage" Text="Next >" 
            onclick="NextPage_Click" EnableTheming="False" EnableViewState="False" />
        <asp:Button runat="server" ID="LastPage" Text="Last >>" 
            onclick="LastPage_Click" EnableTheming="False" EnableViewState="False" />
        <asp:Label ID="CurrentPageNumber" runat="server" Text="Label" 
            EnableTheming="False" EnableViewState="False"></asp:Label>
        </div>
    </div>
    <asp:PlaceHolder ID="AutoLogout" runat="server" Visible="false" EnableViewState="false" />
    </form>
    <script type="text/javascript">
        jQuery(document).ready(function() {
            $childHeight = jQuery('#AppointmentHistory').height();
            jQuery('#UpcomeApptId', window.parent.document).css('height', $childHeight);
            jQuery('#AppointListId', window.parent.document).css('height', $childHeight);
        });         
    </script>
</body>
</html>
