<%@ page title="Poultry Consultation" language="C#" masterpagefile="~/DoctorMasterPage.master" autoeventwireup="true" inherits="PoultryForm, 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="container-fluid">
                <div class="page-title">
                    <h3>Poultry Consultation</h3>
                </div>
                <section class="section">
                    <div class="row form-group">
                        <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" AutoPostBack="true" OnTextChanged="txtOwnerName_TextChanged" 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" AutoPostBack="true" OnTextChanged="txtPatientName_TextChanged" 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">Consultaion Date</label>
                            <asp:TextBox ID="txtAgreement" runat="server" CssClass="form-control" TextMode="Date" placeholder="Consultaion Date" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-6">
                            <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 class="col-md-6">
                            <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>
                    <div class="row" id="table" runat="server" visible="false">
                        <table class="table table-hover mb-0">
                            <thead>
                                <tr>
                                    <th>SrNo</th>
                                    <th>Species</th>
                                    <th>Breed</th>
                                    <th>CountOfAnimal</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="RepeatrPatientList" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%# Eval("SrNo") %></td>
                                            <td><%# Eval("Species") %></td>
                                            <td class="text-bold-500"><%# Eval("Breed") %></td>
                                            <td><%# Eval("CountOfAnimal") %></td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Type Of Birds</label>
                            <asp:DropDownList ID="ddlBirdsType" runat="server" CssClass="form-select">
                                <asp:ListItem Selected="True" Text="Select" Value="0"></asp:ListItem>
                                <asp:ListItem Text="Layer" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Broiler" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Both" Value="3"></asp:ListItem>
                                <asp:ListItem Text="Domestic" Value="4"></asp:ListItem>                            </asp:DropDownList>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Types Of Sheds</label>
                            <asp:DropDownList ID="ddlSheds" runat="server" CssClass="form-select">
                                <asp:ListItem Selected="True" Text="Select" Value="0"></asp:ListItem>
                                <asp:ListItem Text="California Cage System" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Two Tier Cage System" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Three Tier Cage System" Value="3"></asp:ListItem>
                                <asp:ListItem Text="Four Tier Cage System" Value="4"></asp:ListItem>
                                <asp:ListItem Text="Free Range Cage System" Value="5"></asp:ListItem>
                                <asp:ListItem Text="Backyard" Value="6"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Shed Area</label>
                            <asp:TextBox ID="txtShedArea" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Area Of Shed" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Water Source</label>
                            <asp:TextBox ID="txtWaterSource" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Water Source" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Shed Cleaning</label>
                            <asp:TextBox ID="txtShedCleaning" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Shed Cleaning" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Litter Management</label>
                            <asp:TextBox ID="txtLitterMgmt" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Litter Management" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Litter Material</label>
                            <asp:TextBox ID="txtLitterMaterial" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Litter Material" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Debeaking Time</label>
                            <asp:TextBox ID="txtDebeakingTime" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Debeaking Time" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Raking Of Litter</label>
                            <asp:TextBox ID="txtRaking" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Raking Of Litter" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Feeding Pattern</label>
                            <asp:TextBox ID="txtFeed" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Feeding Time</label>
                            <asp:TextBox ID="txtFeedingTime" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feeding Time" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Water Time</label>
                            <asp:TextBox ID="txtWaterTime" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Water Time" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Feed Additives & Supplies</label>
                            <asp:TextBox ID="txtFeedAddives" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Feed Additives & Supplies" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-2">
                            <label class="label">Rodent Control</label>
                            <asp:TextBox ID="txtRodControl" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Rodent Control" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Biosecurity</label>
                            <asp:CheckBoxList ID="ddlSecurity" runat="server" CssClass="form-group">
                                <asp:ListItem Selected="True" Text="Select" Value="0"></asp:ListItem>
                                <asp:ListItem Text="Foot Bath" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Car Wash" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Shed Cloths" Value="3"></asp:ListItem>
                            </asp:CheckBoxList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Security Others</label>
                            <asp:TextBox ID="txtSecurityOther" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Security Other" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Shed Details</label>
                            <asp:TextBox ID="txtShedDetails" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Other Details" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Special Set of Shed Cloths</label>
                            <asp:TextBox ID="txtShedCloths" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Special Set of Shed Cloths" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Ventilation In Shed</label>
                            <asp:DropDownList ID="ddlVentilation" runat="server" CssClass="form-select">
                                <asp:ListItem Selected="True" Text="Select" Value="0"></asp:ListItem>
                                <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
                                <asp:ListItem Text="No" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <div class="row">
                                <label class="label">Deworming Schedule</label>
                                <asp:TextBox ID="txtDeworming" runat="server" CssClass="form-control" placeholder="Deworming Schedule" AutoComplete="off"></asp:TextBox>
                            </div>
                            <div class="row">
                                <label class="label">Vaccination Schedule</label>
                                <asp:TextBox ID="txtVaccinationSchedule" runat="server" CssClass="form-control" placeholder="Vaccination Schedule" AutoComplete="off"></asp:TextBox>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Period Between Two Batches</label>
                            <asp:TextBox ID="txtPeriod" runat="server" Height="80" CssClass="form-control" TextMode="MultiLine" placeholder="Period Between Two Batches" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Type of Brooder</label>
                            <asp:TextBox ID="txtBrooderType" runat="server" Height="80" CssClass="form-control" TextMode="MultiLine" placeholder="Type of Brooder" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Brooding Time</label>
                            <asp:TextBox ID="txtBroodingTime" runat="server" Height="80" CssClass="form-control" TextMode="MultiLine" placeholder="Brooding Time" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="divider">
                            <div class="divider-text">Hatchery</div>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Hatchery</label>
                            <asp:DropDownList ID="ddlHatchery" runat="server" CssClass="form-select">
                                <asp:ListItem Selected="True" Text="Select" Value="0"></asp:ListItem>
                                <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
                                <asp:ListItem Text="No" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Egg Cleaning</label>
                            <asp:TextBox ID="txtEggCleaning" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Egg Cleaning" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Fumigation</label>
                            <asp:TextBox ID="txtEumigation" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Fumigation" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Egg Turning</label>
                            <asp:TextBox ID="txtEggTurning" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Egg Turning" AutoComplete="off"></asp:TextBox>
                        </div>

                        <div class="col-md-2">
                            <label class="label">Incubator Temp</label>
                            <asp:TextBox ID="txtIncTemp" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Incubator Temp" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row">
                        <div class="divider">
                            <div class="divider-text">Layer</div>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Cage Area</label>
                            <asp:TextBox ID="txtCageArea" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Cage Area" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">No Of Birds/Cage</label>
                            <asp:TextBox ID="txtNoBirds" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="No Of Birds/Cage" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Avg. Egg Production</label>
                            <asp:TextBox ID="txtEggProd" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Avg. Egg Production" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Light Exposure Time</label>
                            <asp:TextBox ID="txtLight" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Light Exposure Time" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Vaccination Schedule</label>
                            <asp:TextBox ID="txtLayerVaccination" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Vaccination Schedule" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Layer Misc</label>
                            <asp:TextBox ID="txtLayerMisc" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Layer Misc" AutoComplete="off"></asp:TextBox>
                        </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 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 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">
                        <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" Visible="false" />
                        </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 runat="server" Visible="false" ID="btnAppointment" CssClass="btn btn-primary btn-block" Text="Show" CausesValidation="false" UseSubmitBehavior="false" OnClick="btnAppointment_Click" />
                        </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("PoultryConsultID") %>' />
                                                                    </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>
