<%@ page title="Large Animal Nutrition" language="C#" masterpagefile="~/DoctorMasterPage.master" autoeventwireup="true" inherits="LargeAnimalNutrition, 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>Large Animal Nutrition</h3>
                </div>
                <section class="section">
                    <div class="divider">
                        <div class="divider-text">Large Animal Nutrition</div>
                    </div>
                    <div class="row form-group bspace">
                        <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"></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"></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"></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-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">No Of Animals</label>
                            <asp:TextBox ID="txtNoOfAnimals" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="NoOfAnimals"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Breed</label>
                            <asp:TextBox ID="txtBreed" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Breed"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">MilkYeild</label>
                            <asp:TextBox ID="txtMilkYeild" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="MilkYeild"  AutoComplete="off"></asp:TextBox>
                        </div>

                    </div>
                    <div class="row form-group bspace">
                        <div class="col-md-4">
                            <label class="label">Stage of Lact/Preg</label>
                            <asp:TextBox ID="txtStageOfPregLact" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Stage of Lact/Preg"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">No. Of Lact/Preg</label>
                            <asp:TextBox ID="txtNoOfPregLact" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="No. Of Pregnancy"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Milk Fat/SNF</label>
                            <asp:TextBox ID="txtMilkFatSNF" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="MilkFat/SNF"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Period After Last Calving</label>
                            <asp:TextBox ID="txtPeriodAfterLastCalving" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Period After Last Calving"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Period Between Delivery & Heat</label>
                            <asp:TextBox ID="txtPeriodBetweenDelHeat" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="PeriodBetweenDelHeat"  AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Suppliments Given After Calving</label>
                            <asp:TextBox ID="txtSupplimentsGivenAfterCalving" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Suppliments Given After Calving" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Deworming After Calving</label>
                            <asp:TextBox ID="txtDewormingAfterCalving" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Deworming After Calving" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Feeding Times</label>
                            <asp:TextBox ID="txtFeedingTimes" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="FeedingTimes"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Feed For One Animal</label>
                            <asp:TextBox ID="txtFeedForOneAnimal" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed For One Animal" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Feed For Preg Lact</label>
                            <asp:TextBox ID="txtFeedForPregLact" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed For Preg Lact" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Feed For Dried Animal</label>
                            <asp:TextBox ID="txtFeedForDriedAnimal" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed For Dried Animal" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-4">
                            <label class="label">Feed</label>
                            <asp:TextBox ID="txtFeed" runat="server" Height="100" CssClass="form-control" TextMode="MultiLine" placeholder="Feed" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Concentrates</label>
                            <asp:TextBox ID="txtConcentrates" Height="100" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Concentrates" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Concentrate Name</label>
                            <asp:CheckBoxList ID="chkConcentrateName" runat="server" CssClass="form-group">
                                <asp:ListItem Text="Amul" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Godrej" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Nature Dairy" Value="3"></asp:ListItem>
                                <asp:ListItem Text="Sonai" Value="4"></asp:ListItem>
                                <asp:ListItem Text="Hindustan" Value="5"></asp:ListItem>
                                <asp:ListItem Text="Sahyadri" Value="6"></asp:ListItem>
                                <asp:ListItem Text="Self Made" Value="7"></asp:ListItem>
                            </asp:CheckBoxList>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Do you feed Suggar Cane</label>
                            <asp:TextBox ID="txtSuggarCane" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Suggar Cane" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Do you feed Silage</label>
                            <asp:TextBox ID="txtSilage" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Silage" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-4">
                            <div class="row">
                                <label class="label">Given Along Concentrates</label>
                                <asp:DropDownList ID="ddlGivenAlongConcentrates" runat="server" CssClass="form-select" AutoPostBack="true" OnSelectedIndexChanged="ddlGivenAlongConcentrates_SelectedIndexChanged">
                                    <asp:ListItem Text="Mineral Mix" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Calcium Supplements" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Liver Tonic" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="Probiotic" Value="4"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="row" id="MineralMix" runat="server" visible="false">
                                <div class="col-md-6">
                                    <label class="label">Mineral Mix Name</label>
                                    <asp:TextBox ID="txtMineralMixName" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Mineral Mix Name"  AutoComplete="off"></asp:TextBox>
                                </div>
                                <div class="col-md-6">
                                    <label class="label">No Of Times Mineral Mix</label>
                                    <asp:TextBox ID="txtNoOfTimesMineralMix" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="No Of Times Mineral Mix"  AutoComplete="off"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <label class="label">Feed Mis</label>
                            <asp:TextBox ID="txtFeedMis" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed Mis"  AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Schedule Of Feeding During Dry</label>
                            <asp:TextBox ID="txtScheduleOfFeedingDuringDry" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Schedule Of Feeding During Dry"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Schedule Of Start Of Conc After Dry</label>
                            <asp:TextBox ID="txtScheduleOfStartOfConcAfterDry" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Schedule Of Start Of Conc After Dry"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Suppliments Given Before Calving</label>
                            <asp:TextBox ID="txtSupplimentsGivenBeforeCalving" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Suppliments Given Before Calving"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Sking Apperance</label>
                            <asp:DropDownList ID="ddlSkingApperance" runat="server" CssClass="form-select">
                                <asp:ListItem Text="Shiny" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Dry/Dull" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <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-3">
                            <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-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">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 form-group bspace">
                        <div class="col-md-4">
                            <label class="label">Tent Diagnosis</label>
                            <asp:TextBox ID="txtTentDiagnosis" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Tent Diagnosis"  AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-8">
                            <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" 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="lblMsg" runat="server" ForeColor="Green"></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>
                    </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="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>
                    </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("Assesment") %></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("NutritionID") %>' />
                                                                    </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>
    </asp:UpdatePanel>
</asp:Content>

