<%@ page title="" language="C#" masterpagefile="~/DoctorMasterPage.master" autoeventwireup="true" inherits="TimeLine, App_Web_fzfkhksa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="PagePanel" runat="server" ChildrenAsTriggers="true">
        <ContentTemplate>
            <div class="main-content container-fluid">
                <div class="page-title">
                    <h3>Time Line</h3>
                </div>
                <section class="section">
                    <div class="row" id="table-hover-row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-header">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <h4 class="card-title">Select Date</h4>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:TextBox ID="txtDate" runat="server" TextMode="Date" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:Button ID="btnSearch" runat="server" CssClass="btn btn-primary" Text="Search" OnClick="btnSearch_Click" />
                                        </div>
                                    </div>

                                </div>
                                <div class="card-content">
                                    <div class="table-responsive">
                                        <table class="table table-hover mb-0">
                                            <thead>
                                                <tr>
                                                    <th>VisitID</th>
                                                    <th>VisitDate</th>
                                                    <th>PatientName</th>
                                                    <th>OwnerName</th>
                                                    <th>Complaints</th>
                                                    <td>Department Name</td>
                                                    <th>ACTION</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <asp:Repeater ID="RepeaterPatientVisit" runat="server" OnItemDataBound="RepeaterPatientVisit_ItemDataBound">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td class="text-bold-500">
                                                                <asp:Label ID="lblVisitID" Text='<%#Eval("VisitID") %>' runat="server"></asp:Label></td>
                                                            <td><%# Eval("VisitDate") %></td>
                                                            <td class="text-bold-500"><%# Eval("PatientName") %></td>
                                                            <td><%# Eval("OwnerName") %></td>
                                                            <td><%# Eval("Complaints") %></td>
                                                            <td>
                                                                <asp:Label ID="lblDepartment" Text='<%#Eval("DepartmentName") %>' runat="server"></asp:Label></td>
                                                            <td>

                                                                <asp:Label ID="lblDepartmentName" Text='<%#Eval("Department") %>' runat="server" Visible="false"></asp:Label>
                                                                <div class="dropdown">
                                                                    <a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle" href="#" role="button" data-toggle="dropdown">
                                                                        <i class="dw dw-more"></i>
                                                                    </a>
                                                                    <div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
                                                                        <asp:RadioButtonList CssClass="dropdown-item" runat="server" ID="View" AutoPostBack="true" OnSelectedIndexChanged="View_SelectedIndexChanged"></asp:RadioButtonList>
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row form-group">
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Label ID="lblID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblPatientID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblUserID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Green"></asp:Label>
                    </div>
                </section>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

