<%@ page title="Veterinary Homeopathy" language="C#" masterpagefile="~/DoctorMasterPage.master" autoeventwireup="true" inherits="VeterinaryHomeopathy, 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>Veterinary Homeopathy</h3>
                </div>
                <section class="section">
                    <div class="divider">
                        <div class="divider-text">Veterinary Homeopathy</div>
                    </div>
                    <div class="row bspace form-group" style="pointer-events: none">
                        <div class="col-md-2">
                            <label class="label">Visit Date</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-3">
                            <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-3">
                            <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 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 Selected="True" Value="Select" Text="Select"></asp:ListItem>
                                <asp:ListItem Text="Large"></asp:ListItem>
                                <asp:ListItem Text="Small"></asp:ListItem>
                                <asp:ListItem Text="Exotic"></asp:ListItem>
                                <asp:ListItem Text="Equine"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-8" style="pointer-events: none">
                            <div class="row">
                                <div class="col-md-4">
                                    <label class="label">Species</label>
                                    <asp:DropDownList ID="ddlSpeciesType" runat="server" CssClass="form-select" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlSpeciesType_SelectedIndexChanged" Enabled="False">
                                        <asp:ListItem Selected="True" Value="0" Text="Select"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-4">
                                    <label class="label">Breed</label>
                                    <asp:DropDownList ID="ddlBreed" runat="server" CssClass="form-select" AppendDataBoundItems="true" Enabled="False">
                                        <asp:ListItem Selected="True" Value="0" Text="Select"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-2">
                                    <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-2">
                                    <label class="label">Weight</label>
                                    <asp:TextBox ID="txtWeight" runat="server" CssClass="form-control" placeholder="Weight"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Allergies</label>
                            <asp:TextBox ID="txtAllergies" runat="server" TextMode="MultiLine" CssClass="form-control" placeholder="Allergies"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Complaint</label>
                            <asp:TextBox ID="txtComplaint" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Complaint" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">General Modalities</label>
                            <asp:DropDownList ID="ddlGeneralModalities" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Aggrevation" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="Ameliration" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Associated Complaint</label>
                            <asp:TextBox ID="txtAssociatedComplaint" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Associated Complaint" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Present Medication</label>
                            <asp:TextBox ID="txtPresentMedication" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Present Medication" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Mental Symptoms</label>
                            <asp:TextBox ID="txtMentalSymptomsOther" runat="server" list="MenalSymptoms" CssClass="form-control" placeholder="Mental Symptoms Other" AutoComplete="off"></asp:TextBox>
                            <datalist id="MenalSymptoms">
                                <option value="Anger"></option>
                                <option value="Cleanliness"></option>
                                <option value="Console"></option>
                                <option value="Obedience"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Skin Problems</label>
                            <asp:TextBox ID="txtSkinProblems" runat="server" list="SkinProblems" CssClass="form-control" placeholder="Skin Problems" AutoComplete="off"></asp:TextBox>
                            <datalist id="SkinProblems">
                                <option value="Cyst"></option>
                                <option value="Allergies"></option>
                                <option value="Dermatitis"></option>
                                <option value="Hairfall"></option>
                                <option value="Eczema"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Wounds</label>
                            <asp:TextBox ID="txtWounds" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Wounds" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">GynacIssue</label>
                            <asp:TextBox ID="txtGynacIssueOther" runat="server" list="GynacIssue" CssClass="form-control" placeholder="Gynac Issue"></asp:TextBox>
                            <datalist id="GynacIssue">
                                <option value="Infertility"></option>
                                <option value="Harmonal"></option>
                                <option value="Disturbance"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Respiratory Problem</label>
                            <asp:TextBox ID="txtRespiratoryProblemOther" runat="server" list="RespiratoryProblem" CssClass="form-control" placeholder="Respiratory Problem"></asp:TextBox>
                            <datalist id="RespiratoryProblem">
                                <option value="Asthma"></option>
                                <option value="Bronchitis"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Auto Immune Disorder</label>
                            <asp:TextBox ID="txtAutoImmuneDisorder" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="AutoImmune Disorder" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Thyroid</label>
                            <asp:TextBox ID="txtThyroidOther" runat="server" list="RespiratoryProblem" CssClass="form-control" placeholder="Thyroid"></asp:TextBox>
                            <datalist id="Thyroid">
                                <option value="Hyperthyroidism"></option>
                                <option value="Hypothyroidism"></option>
                            </datalist>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-6">
                            <label class="label">Tent. Diag</label>
                            <asp:TextBox ID="txtTentDiag" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Tent Diag" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-6">
                            <label class="label">Treatment</label>
                            <asp:TextBox ID="txtTreatment" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Treatment"  AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-5">
                            <label class="label">Miscellaneous</label>
                            <asp:TextBox ID="txtMisc" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Miscellaneous"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-5">
                            <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-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" />
                                <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 bspace 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 form-group">
                        <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" Text="Print" OnClick="btnPrint_Click" Visible="false"/>
                            <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="HiddenField4Grid" runat="server" />
            <cc1:ModalPopupExtender ID="modal_gridPopup" runat="server"
                BackgroundCssClass="modal fade" OkControlID="btnPopupOk1"
                PopupControlID="pnlGrid" TargetControlID="HiddenField4Grid">
            </cc1:ModalPopupExtender>
            <div class="modal-dialog modal-dialog-centered modal-dialog-centered modal-dialog-scrollable modal-lg"
                role="document" runat="server" id="pnlGrid">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="exampleModalCenterTitle">Patient Appointment</h5>
                        <button type="button" id="btnPopupOk1" 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"><%# Eval("VisitID") %></td>--%>
                                                            <td><%# Eval("VisitDate") %></td>
                                                            <td class="text-bold-500"><%# Eval("AssociatedComplaint") %></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("HomeopathicID") %>' />
                                                                    </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="btnClose" OnClick="btnClose_Click" CausesValidation="false" UseSubmitBehavior="false">
                            <%--  <i class="bx bx-x d-block d-sm-none"></i>
                            <span class="d-none d-sm-block">Close</span>--%>
                        </asp:Button>
                    </div>
                </div>
                <%--   </div>--%>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>



