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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<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>Exotic Reptile</h3>
                </div>
                <section class="section">
                    <div class="divider">
                        <div class="divider-text">Exotic Reptile </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-md-4">
                            <label class="label">Visit Date</label>
                            <asp:Label ID="lblFollowUpID" runat="server" Visible="false"></asp:Label>
                            <asp:TextBox ID="txtVisitDate" runat="server" CssClass="form-control" TextMode="Date" placeholder="Visit Date" required AutoComplete="off" ReadOnly="True"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Owner Name</label>
                            <asp:TextBox ID="txtOwnerName" runat="server" CssClass="form-control" placeholder="Owner Name" required AutoComplete="off" ReadOnly="True"></asp:TextBox>
                            <cc1:AutoCompleteExtender ID="txtOwnerName_AutoCompleteExtender" runat="server" BehaviorID="txtOwnerName_AutoCompleteExtender" CompletionListCssClass="completionList" CompletionListHighlightedItemCssClass="itemHighlighted" CompletionListItemCssClass="listItem" DelimiterCharacters="" ServicePath="AutoComplete.asmx" ServiceMethod="GetOwnerName" TargetControlID="txtOwnerName">
                            </cc1:AutoCompleteExtender>
                            <asp:Label ID="lblOwnerID" runat="server" Visible="false"></asp:Label>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Patient Name</label>
                            <asp:TextBox ID="txtPatientName" runat="server" CssClass="form-control" placeholder="Patient Name" required AutoComplete="off" ReadOnly="True"></asp:TextBox>
                            <cc1:AutoCompleteExtender ID="txtPatientName_AutoCompleteExtender" runat="server" BehaviorID="txtPatientName_AutoCompleteExtender" CompletionListCssClass="completionList" CompletionListHighlightedItemCssClass="itemHighlighted" CompletionListItemCssClass="listItem" DelimiterCharacters="" ServicePath="AutoComplete.asmx" ServiceMethod="GetPatientName" TargetControlID="txtPatientName">
                            </cc1:AutoCompleteExtender>
                        </div>

                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Gender</label>
                            <asp:DropDownList ID="ddlGender" runat="server" CssClass="form-select" Enabled="False">
                                <asp:ListItem Text="Male"></asp:ListItem>
                                <asp:ListItem Text="Female"></asp:ListItem>
                                <asp:ListItem Text="Neutered Male"></asp:ListItem>
                                <asp:ListItem Text="Neutered Female"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Animal Type</label>
                            <asp:DropDownList ID="ddlAnimalType" runat="server" CssClass="form-select" Enabled="False">
                                <asp:ListItem Text="Exotic" Value="1" Selected="True"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Species</label>
                            <asp:DropDownList ID="ddlSpeciesType" runat="server" CssClass="form-select" Enabled="false" AppendDataBoundItems="true">
                                <asp:ListItem Selected="True" Value="0" Text="Select"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-3" style="display: none">
                            <label class="label">Breed</label>
                            <asp:DropDownList ID="ddlBreed" runat="server" CssClass="form-select" AppendDataBoundItems="true">
                                <asp:ListItem Selected="True" Value="0" Text="Select"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-1">
                            <label class="label">Age</label>
                            <asp:TextBox ID="txtAge" runat="server" CssClass="form-control" placeholder="Age" ReadOnly="True"></asp:TextBox>
                        </div>
                        <div class="col-md-1">
                            <label class="label">Weight</label>
                            <asp:TextBox ID="txtWeight" runat="server" CssClass="form-control" placeholder="Weight"></asp:TextBox>
                        </div>
                        <div class="col-md-4" style="display: none">
                            <label class="label">Allergies</label>
                            <asp:TextBox ID="txtAllergies" runat="server" TextMode="MultiLine" CssClass="form-control" placeholder="Allergies"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Primary Complaint </label>
                            <asp:TextBox ID="txtComplaint" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Complaint" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">

                        <div class="col-md-4">
                            <label class="label">Past Treatment </label>
                            <asp:TextBox ID="txtPastTreatment" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Complaint" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Primary Signs Observed</label>
                            <asp:TextBox ID="txtPrimSigns" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Primary Signs Observed" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Trauma</label>
                            <asp:TextBox ID="txtTrauma" runat="server" CssClass="form-control" placeholder="Trauma" TextMode="MultiLine"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Changes in Apetite </label>
                            <asp:DropDownList ID="ddlChangesInApetite" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Yes" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="No" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Discharges </label>
                            <asp:TextBox ID="ddlDischarge" runat="server" CssClass="form-select" list="ddlDischargeList" AutoComplete="off" />
                            <datalist id="ddlDischargeList">
                                <option value="Eyes"></option>
                                <option value="Nose"></option>
                            </datalist>
                        </div>
                        <div class="col-md-2 form-group">
                            <label class="label">Eyes </label>
                            <asp:TextBox ID="ddlEyes" runat="server" CssClass="form-select" list="EyeList" AutoComplete="off" />
                            <datalist id="EyeList">
                                <option value="Closed"></option>
                                <option value="Swollen"></option>
                                <option value="Normal"></option>
                            </datalist>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Breathing </label>
                            <asp:TextBox ID="ddlBreathing" runat="server" CssClass="form-select" list="BreathingList" AutoComplete="off" />
                            <datalist id="BreathingList">
                                <option value="Normal"></option>
                                <option value="Open Mouth"></option>
                                <option value="Gasping"></option>
                            </datalist>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Faces </label>
                            <asp:TextBox ID="ddlFaces" runat="server" CssClass="form-select" list="FaceList" AutoComplete="off" />
                            <datalist id="FaceList">
                                <option value="Normal"></option>
                                <option value="Abnormal"></option>
                                <option value="Reduced"></option>
                            </datalist>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Shell</label>
                            <asp:TextBox ID="ddlShell" runat="server" CssClass="form-select" list="ShellList" AutoComplete="off" />
                            <datalist id="ShellList">
                                <option value="Normal"></option>
                                <option value="Abnormal"></option>
                                <option value="Soft"></option>
                                <option value="Discoloration"></option>
                                <option value="Shell Rot"></option>
                            </datalist>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Housing </label>
                            <asp:TextBox runat="server" name="product" CssClass="form-control" list="productName" ID="ddlHousing" />
                            <datalist id="productName">
                                <option value="Indoor">Indoor</option>
                                <option value="Outdoor">Outdoor</option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Exposure Time </label>
                            <asp:TextBox ID="txtExposureTime" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Exposure Time" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Bottom Substrate </label>
                            <asp:TextBox ID="ddlBottomSubstrate" runat="server" CssClass="form-select" list="BottomList" AutoComplete="off" />
                            <datalist id="BottomList">
                                <option value="Yes"></option>
                                <option value="No"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Hiding Boxes </label>
                            <asp:TextBox ID="ddlBoxes" runat="server" CssClass="form-select" list="boxList" />
                            <datalist id="boxList">
                                <option value="Yes"></option>
                                <option value="No"></option>
                            </datalist>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Shallow Water Container</label>
                            <asp:TextBox runat="server" name="product" CssClass="form-select" list="COntainerList" ID="ddlWaterContainer" />
                            <datalist id="COntainerList">
                                <option value="Indoor">Yes</option>
                                <option value="Outdoor">No</option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Tank Setup</label>
                            <asp:TextBox ID="txtTankSetup" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Tank Setup" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Frequency Of Cleaning Tank</label>
                            <asp:TextBox ID="txtTankCleaning" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Frequency Of Cleaning Tank" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Heat Source</label>
                            <asp:DropDownList ID="ddlHeatSource" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Basking Lamp" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="UV Light" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>

                    </div>
                    <div class="row bspace form-group">
                        <div class="divider">
                            <div class="divider-text">Food</div>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Food Intake</label>
                            <asp:DropDownList ID="ddlFoodIntake" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Normal" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="Reduced" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Absent" Value="3"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Food Type</label>
                            <asp:TextBox runat="server" name="product" CssClass="form-select" list="FoodType" ID="ddlFoodType" />
                            <datalist id="FoodType">
                                <option value="Home Food"></option>
                                <option value="Pellets"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Feeding Frequency</label>
                            <asp:TextBox ID="txtFeedFreq" runat="server" AutoComplete="off" CssClass="form-control" placeholder="Feeding Frequency"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Change in Food</label>
                            <asp:DropDownList ID="ddlChangeInFood" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Yes" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="No" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Assesment</label>
                            <asp:TextBox ID="txtAssesment" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Assesment" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Tentative Diagnosis</label>
                            <asp:TextBox ID="txtTentDiag" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Tentative Diagnosis" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Advice </label>
                            <asp:TextBox ID="txtAdvice" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Advice" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Treatment </label>
                            <asp:TextBox ID="txtTreatment" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Treatment" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Follow Up Date </label>
                            <asp:TextBox ID="txtFollowUpDate" runat="server" CssClass="form-control" TextMode="Date" placeholder="Follow Up Date" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                      <div class="row bspace form-group" style="display: none">
                        <div class="col-md-6">
                            <label class="label">Charges</label>
                            <asp:TextBox ID="txtCharges" runat="server" CssClass="form-control" placeholder="Charges" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-6">
                            <label class="label">Total Bill</label>
                            <asp:TextBox ID="txtTotalBill" runat="server" CssClass="form-control" placeholder="Total Bill" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                        <div class="row bspace form-group">
                        <asp:GridView ID="GridPatientImages" runat="server" AutoGenerateColumns="False" CssClass="table table-responsive">
                            <Columns>
                                <asp:BoundField DataField="SrNo" HeaderText="SrNo" />
                                <asp:BoundField DataField="ImageID" HeaderText="ImageID" SortExpression="ImageID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                <asp:BoundField DataField="ImageName" HeaderText="ImageName" SortExpression="ImageName" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass="hideGridColumn" />
                                 <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkPath" runat="server"
                                            OnClick="lnkPath_Click" CommandArgument='<%# Eval("ImgPath") %>' Text="Open"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>                            
                            </Columns>
                        </asp:GridView>
                    </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="lblVisitID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblUserID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblDepartment" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblDepartmentID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblVisitStatus" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblDocID" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblVisitedDepart" runat="server" Visible="false"></asp:Label>
                        <asp:Label ID="lblMsg" runat="server" ForeColor="Green"></asp:Label>
                    </div>
                    <div class="row bspace">
                        <div class="col-md-4">
                            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn btn-primary btn-block" OnClick="btnSave_Click" />
                        </div>
                        <div class="col-md-4">
                            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="btn btn-primary btn-block" OnClick="btnReset_Click" />
                        </div>
                        <div class="col-md-4">
                            <asp:Button ID="btnPrint" runat="server" CssClass="btn btn-primary btn-block" Visible="false" Text="Print" OnClick="btnPrint_Click" />
                            <asp:Button ID="btnShow" runat="server" Text="Show" CssClass="btn btn-primary btn-block" OnClick="btnShow_Click" Visible="false" />
                        </div>
                    </div>
                </section>
            </div>
            <asp:HiddenField ID="HiddenField1" runat="server" />
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                BackgroundCssClass="modal fade" OkControlID="btnAppointmentPanelClose"
                PopupControlID="AppointmentPanel" TargetControlID="HiddenField1">
            </cc1:ModalPopupExtender>
            <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg"
                role="document" runat="server" id="AppointmentPanel">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="exampleModalCenterTitle">Patient Appointment</h5>
                        <%-- <button type="button" id="btnAppointmentPanel" runat="server" class="close" data-bs-dismiss="modal" aria-label="Close">
                            <i data-feather="x"></i>
                        </button>--%>
                    </div>
                    <div class="modal-body">
                        <div class="row" id="table-hover-row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-content">

                                        <table class="table table-hover table-responsive">
                                            <thead>
                                                <tr>
                                                    <%--    <th>VisitID</th>--%>
                                                    <th>VisitDate</th>
                                                    <th>Complaint</th>
                                                    <th>Treatment</th>
                                                    <th>FollowUp</th>
                                                    <%-- <td>Department Name</td>--%>
                                                    <th>ACTION</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <asp:Repeater ID="RepeaterPatientVisit" runat="server">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <%--     <td class="text-bold-500"><%# Esval("VisitID") %></td>--%>
                                                            <td><%# Eval("VisitDates") %></td>
                                                            <td class="text-bold-500"><%# Eval("Complaint") %></td>
                                                            <td><%# Eval("Treatment") %></td>
                                                            <td><%# Eval("FollowUps") %></td>
                                                            <td>
                                                                <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:Button CssClass="dropdown-item" CausesValidation="false" UseSubmitBehavior="false" runat="server" ID="View" Text="View" OnClick="View_Click" CommandArgument='<%# Eval("ReptileEntryID") %>' />
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <asp:Button CssClass="btn btn-light-secondary" Text="Close" runat="server" ID="btnAppointmentPanelClose" OnClick="btnAppointmentPanelClose_Click" CausesValidation="false" UseSubmitBehavior="false"></asp:Button>
                    </div>
                </div>
                <%--   </div>--%>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnShow" />
            <asp:PostBackTrigger ControlID="btnSave" />
            <asp:PostBackTrigger ControlID="GridPatientImages" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>


