<%@ page language="C#" autoeventwireup="true" inherits="Print1, App_Web_lstqojry" enableeventvalidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The Vet World</title>
    <link rel="stylesheet" href="assets/css/bootstrap.css">
    <link rel="stylesheet" href="assets/vendors/simple-datatables/style.css">
    <link rel="stylesheet" href="assets/vendors/chartjs/Chart.min.css">

    <link rel="stylesheet" href="assets/vendors/perfect-scrollbar/perfect-scrollbar.css">
    <link rel="stylesheet" href="assets/css/app.css">
    <link rel="shortcut icon" href="Images/vetlogo.png" type="image/x-icon">
    <link rel="stylesheet" href="assets/css/calenderTheme.css">
    <style>
        .bspace {
            margin-bottom: 10px;
        }

        .label {
            font-weight: 600;
            font-size: small;
        }

        .main-content {
            overflow: hidden;
            min-height: 100vh;
            max-height: 100%;
            padding-bottom: 15px;
        }

        .hideLabel {
            display: none;
        }

        .hideGridColumn {
            display: none;
        }

        .full_screen {
            /*width: 100%;*/
            position: relative;
            height: 80%;
            /*top: 0;
            left: 0;*/
            z-index: 100;
            margin-bottom: 30px;
        }

        .WrapText {
            width: 100%;
            word-break: break-all;
        }
    </style>
</head>
<%--<body onload="print_current_page();">--%>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager>
        <a href="javascript: history.go(-1)">Go Back</a>
        <button id="button">Generate PDF</button>

        <%--  <input type="button" value="Print" onclick="print_current_page()" class="btn btn-primary btn-block" />--%>
        <div id="makepdf" class="container" style="border: solid; height: auto">

            <%--  <asp:Repeater ID="DoctorRepeater" runat="server">
                <ItemTemplate>--%>
            <div class="row" style="margin: 12px 15px 10px 12px; border: solid">
                <div class="divider">
                    <div class="divider-text label">
                        <center>Consult Report</center>
                        <center>(not for Veterolegal purposes)</center>
                    </div>
                </div>
                <%--   <div class="col-md-12">--%>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="Logo" runat="server" Height="150" /></td>
                        <td></td>
                        <td>
                            <h1>The Vet World</h1>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="divider">
                <div class="divider-text label">
                    <center>Patient Details</center>
                </div>
            </div>
            <div class="row" style="border: solid">
                <asp:Repeater ID="PatientDetails" runat="server">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td style="padding-right: 40px;">
                                    <label class="label">Patient Name:-</label>
                                    <asp:Label ID="lblPatientName" runat="server" Text='<%#Eval("PatientName") %>'></asp:Label></td>
                                <td style="padding-right: 40px;">
                                    <label class="label">Owner Name:-</label>
                                    <asp:Label ID="lblOwnerName" runat="server" Text='<%#Eval("OwnerName") %>'></asp:Label></td>
                                <td style="padding-right: 20px;">
                                    <label class="label">No:-</label>
                                    <asp:Label ID="lblContact" runat="server" Text='<%#Eval("WANo") %>'></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="padding-right: 40px;">
                                    <label class="label">Gender:-</label>
                                    <asp:Label ID="lblGender" runat="server" Text='<%#Eval("Sex") %>'></asp:Label>
                                </td>
                                <td style="padding-right: 40px;">
                                    <label class="label">Age:-</label>
                                    <asp:Label ID="lblAge" runat="server" Text='<%#Eval("Age") %>'></asp:Label>
                                </td>
                                <td style="padding-right: 20px;">
                                    <label class="label">Weight:-</label>
                                    <asp:Label ID="lblWeight" runat="server" Text='<%#Eval("Weight") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:Repeater>

            </div>
            <div class="divider">
                <div class="divider-text label">
                    <hr />
                    <center>Consult Details</center>
                    <hr />
                </div>
            </div>

            <div class="row">
                <table class="table table-bordered" style="border: solid; width: 90%; margin: 4px 20px 30px 40px;">
                    <asp:Repeater ID="OddColumn" runat="server">
                        <ItemTemplate>

                            <tr style="outline: thin solid">
                                <td style="width: 45%;">
                                    <%#Eval("ColumnName") %>                               
                                </td>

                                <td style="width: 45%;" class="label">
                                    <%#Eval("ColumnData") %>
                                </td>
                            </tr>

                            <%--  <div class="row" style="margin: 12px 15px 10px 12px; border: inset">
                        <div class="col-md-6"><%#Eval("ColumnName") %></div>
                        <div class="col-md-6"><%#Eval("ColumnData") %></div>                        
                    </div>--%>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <%--  </table>--%>
                <%--</div>--%>
            </div>
            <div class="divider">
                <div class="divider-text">
                    <p>
                        By proceeding with any procedures or treatments recommended during the teleconsultation, you are giving your consent for the teleconsultation. You acknowledge that the teleconsultation has limitations compared to an in-person examination, including the inability to physically examine your animal.
You understand that the teleconsultation is not a substitute for an in-person examination, and that the veterinarian may recommend that you seek in-person care if it is necessary for your animal's health.
You acknowledge that if you choose to proceed with any procedures or treatments recommended during the teleconsultation, you are doing so at your own risk. You have had the opportunity to ask questions and have had your questions answered to your satisfaction.
By proceeding with any procedures or treatments recommended during the teleconsultation, you are acknowledging that you have been fully informed of the risks and limitations of this type of consultation.
                    </p>
                    <hr />

                </div>
            </div>
            <div class="row">
                <table>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <p class="label">
                                            <b>Consult Report Signed by,</b>
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDoctorName" runat="server" CssClass="label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblSepciality" runat="server" CssClass="label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblContactNo" runat="server" CssClass="label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblMSVCRegistrationNumber" runat="server" CssClass="label"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <asp:Image ID="Signature" runat="server" />
                        </td>
                    </tr>
                </table>
                <%--  <div class="col-md-4">
                    <asp:Image ID="Image1" runat="server" />
                </div>    
                 <div class="col-md-4">
                    <asp:Image ID="Image2" runat="server" />
                </div>              
                <div class="col-md-4" style="bottom: 8px;right: 16px;">
                 
                </div>--%>
                <%--    <table>
                    <tr>
                        <td></td>
                        <td></td>
                        <td>
                           
                        </td>
                    </tr>
                </table>--%>
            </div>
            <%--    </ItemTemplate>
            </asp:Repeater>--%>
        </div>
        <script src="assets/js/feather-icons/feather.min.js"></script>
        <script src="assets/vendors/perfect-scrollbar/perfect-scrollbar.min.js"></script>
        <script src="assets/js/app.js"></script>

        <script src="assets/vendors/chartjs/Chart.min.js"></script>
        <script src="assets/vendors/apexcharts/apexcharts.min.js"></script>
        <script src="assets/js/pages/dashboard.js"></script>
        <script src="assets/vendors/simple-datatables/simple-datatables.js"></script>
        <script src="assets/js/vendors.js"></script>
        <script src="assets/js/main.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js"> </script>
        <script>
            var button = document.getElementById("button");
            var makepdf = document.getElementById("makepdf");

            button.addEventListener("click", function () {
                var mywindow = window.open("", "PRINT",
                        "height=400,width=600");

                mywindow.document.write(makepdf.innerHTML);

                mywindow.document.close();
                mywindow.focus();

                mywindow.print();
                mywindow.close();

                return true;
            });
        </script>

    </form>
</body>
</html>
