<%@ page title="Small Animal Nutrition" language="C#" masterpagefile="~/DoctorMasterPage.master" autoeventwireup="true" inherits="SmallAnimalNutrition, 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>Small Animal Nutrition</h3>
                </div>
                <section class="section">
                    <div class="divider">
                        <div class="divider-text">Small 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" 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>
                            <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>
                        </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" required AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row form-group bspace">
                        <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">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-2">
                            <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-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-2">
                            <label class="label">Spyed/Neutered</label>
                            <asp:TextBox ID="txtType" runat="server" CssClass="form-select" list="TypeList" placeholder="Spayed/Neutered" />
                            <datalist id="TypeList">
                                <option value="Yes"></option>
                                <option value="No"></option>
                            </datalist>
                        </div>
                        <div class="col-md-2">
                            <label class="label">Vaccination Status</label>
                            <asp:TextBox ID="txtVaccinationStatus" runat="server" AutoComplete="off" list="VaccinationStatus" placeholder="Vaccination Status" CssClass="form-control"></asp:TextBox>
                            <datalist id="VaccinationStatus">
                                <option value="Completed"></option>
                                <option value="Partially Completed"></option>
                            </datalist>
                        </div>
                    </div>
                    <div class="divider">
                        <div class="divider-text">Nutritional Information</div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-6">
                            <label class="label">Pet Fitness</label>
                            <asp:TextBox ID="txtPetFitness" runat="server" list="PetFitness" CssClass="form-control" placeholder="Pet Fitness" AutoComplete="off"></asp:TextBox>
                            <datalist id="PetFitness">
                                <option value="Very Underweight"></option>
                                <option value="Underweight"></option>
                                <option value="Normal"></option>
                                <option value="Over Weight"></option>
                                <option value="Very Over Weight"></option>
                            </datalist>
                        </div>
                        <div class="col-md-6">
                            <label class="label">Pet Activity</label>
                            <asp:TextBox ID="txtPetActivity" runat="server" list="PetActivity" CssClass="form-control" placeholder="Pet Activity" AutoComplete="off"></asp:TextBox>
                            <datalist id="PetActivity">
                                <option value="Very Active(All Day)"></option>
                                <option value="Moderate(More than two Hours)"></option>
                                <option value="Less(An Hour)"></option>
                                <option value="Very Less(Less than an Hour)"></option>
                                <%--                            <option value="Very Over Weight"></option>--%>
                            </datalist>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-3">
                            <label class="label">Feed Intake</label>
                            <asp:TextBox ID="txtFeedIntake" runat="server" CssClass="form-control" list="FeedIntake" placeholder="Feed Intake" AutoComplete="off"></asp:TextBox>
                            <datalist id="FeedIntake">
                                <option value="Normal"></option>
                                <option value="Reduced"></option>
                                <option value="Increased"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Meal Freq</label>
                            <asp:TextBox ID="txtMealFreq" runat="server" list="MealFreq" CssClass="form-control" placeholder="Meal Freq" AutoComplete="off"></asp:TextBox>
                            <datalist id="MealFreq">
                                <option value="Normal"></option>
                                <option value="Reduced"></option>
                                <option value="Increased"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Water Intake</label>
                            <asp:TextBox ID="txtWaterIntake" runat="server" list="WaterIntake" CssClass="form-control" placeholder="Water Intake" AutoComplete="off"></asp:TextBox>
                            <datalist id="WaterIntake">
                                <option value="Normal"></option>
                                <option value="Reduced"></option>
                                <option value="Increased"></option>
                            </datalist>
                        </div>
                        <div class="col-md-3">
                            <label class="label">Water Freq</label>
                            <asp:TextBox ID="txtWaterFreq" runat="server" list="WaterFreq" CssClass="form-control" placeholder="Water Freq" AutoComplete="off"></asp:TextBox>
                            <datalist id="WaterFreq">
                                <option value="Normal"></option>
                                <option value="Reduced"></option>
                                <option value="Increased"></option>
                            </datalist>
                        </div>

                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-6">
                            <label class="label">Current Diet Plan</label>
                            <asp:TextBox ID="txtCurrentDietPlan" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Current Diet Plan" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-6">
                            <label class="label">Specific Food Pref</label>
                            <asp:TextBox ID="txtSpecificFoodPref" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Specific Food Pref" AutoComplete="off"></asp:TextBox>
                        </div>
                    </div>
                    <div class="row bspace form-group">
                        <div class="col-md-6">
                            <label class="label">Any Disease Condition</label>
                            <asp:TextBox ID="txtAnyDiseaseCondition" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="Any Disease Condition" AutoComplete="off"></asp:TextBox>
                        </div>
                        <div class="col-md-6">
                            <label class="label">History Of Disease Condition</label>
                            <asp:TextBox ID="txtHistoryOfDiseaseCondition" runat="server" CssClass="form-control" TextMode="MultiLine" placeholder="History Of Disease Condition" required 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" required 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" required 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" required 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" required 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="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" Text="Print" OnClick="btnPrint_Click" Visible="false"/>
                            <asp:Button ID="btnShow" runat="server" Text="Show" CssClass="btn btn-primary btn-block" Visible="false" />
                        </div>
                    </div>
                </section>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

