<%@ page language="C#" autoeventwireup="true" inherits="VersionInfo, App_Web_wnlvyfut" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>:: Version Info ::</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="shortcut icon" href="~/ContentTemplates/Brand/favicon.png" type="image/x-icon" />
    <!-- icons -->
    <link href="~/App_Themes/newTheme/css/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link href="~/App_Themes/BlackTheme/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <%--icons ends--%>
    <%--css file--%>
    <link href="~/App_Themes/newTheme/css/material/material.min.css" rel="Stylesheet" type="text/css" />
    <link href="~/App_Themes/newTheme/css/material_style.css" rel="Stylesheet" type="text/css" />
    <link href="~/App_Themes/newTheme/css/fontawesome.min.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/newTheme/css/AdminLTE1.css" rel="stylesheet" />
    <link href="~/App_Themes/newTheme/css/_all-skins.css" rel="stylesheet" type="text/css" />
    <link href="~/App_Themes/newTheme/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href='<%# ResolveUrl("~/App_Themes/Default/uploadify.css")%>' rel="Stylesheet" type="text/css" />
    <link href="~/App_Themes/responsiv-popup.css" rel="stylesheet" />
    <link rel="stylesheet" href="~/App_Themes/animate.min.css" />
    <link href="~/App_Themes/sweetalert.css" rel="stylesheet" />
    <link href='<%# ResolveUrl("~/App_Themes/newTheme/css/bootstrap-datetimepicker/bootstrap-datetimepicker.css")%>' rel="stylesheet" />
    <%--end css file--%>
    <%--js file--%>
    <script src="../../../App_Themes/newTheme/js/jquery-3.3.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="../../../App_Themes/newTheme/js/bootstrap.min.js"></script>
    <script src='<%# ResolveUrl("~/App_Themes/newTheme/css/bootstrap-datetimepicker/bootstrap-datetimepicker.js")%>'></script>
    <script type="text/javascript" src="https://momentjs.com/downloads/moment-with-locales.min.js"></script>
    <script src="../../../JavaScript/rjs/app/StudentSearch.js"></script>
    <script src="../../../JavaScript/CommonSearch.js"></script>
    <script src="../../../JavaScript/sweetalert.min.js"></script>
    <%--js end file--%>
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/plugins/jQueryUI/jquery-ui.min.js")%>' type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.11.2/jquery-ui.min.js" type="text/javascript"></script>
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")%>' type="text/javascript"></script>
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/dist/js/app.min.js")%>' type="text/javascript"></script>
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/dist/js/demo.js")%>' type="text/javascript"></script>
    <script src='<%# ResolveUrl("~/App_Themes/BlackTheme/angular/1.3.14/angular.min.js")%>' type="text/javascript"></script>
    <link rel="shortcut icon" href="../../../ContentTemplates/Brand/favicon.png" type="image/x-icon" />
</head>
<body>
    <form id="VersionInfoForm" runat="server">
        <div id="divContentPage" class="mt1">

            <div class="whiteboxpaddingleft row">
                <div class="himssuHeader2WireBox">
                    <div class="contentHolder">
                        <div class="himssuHeader1WireBox card card-box">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                           <i class="fas fa-info-circle"></i> <asp:Label ID="MainLabel" runat="server" Text="Version Info"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <asp:Panel ID="DetailPanel" runat="Server">

                                    <div class="outerBox col-md-12" id="ExceptioDiv" runat="server" visible="false" style="width: auto">
                                        <asp:Label ID="ErrorInfoLabel" runat="server" ForeColor="Red"></asp:Label>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrgGroupIdLabel" runat="server" Text="Org Group Id"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="OrgGroupIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="4" onkeypress="javascript:return isNumberKey(this)"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VersionNumberLable" runat="server" Text="Version Number (String)"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="VersionNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="30"> </asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VersionIdLabel" runat="server" Text="Version Id (int)"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="VersionIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="9" onkeypress="javascript:return isNumberKey(this)"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="UpdateScriptLabel" runat="server" Text="Update Script"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="UpdateScriptDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <%-- <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="UpdateScriptLabel" runat="server" Text="Update Script"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="UpdateScriptTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox"  runat="server" MaxLength="100"> </asp:TextBox>
                                                        </div>
                                                    </div>--%>

                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox runat="server" ID="FromDateTextBox" placeholder="dd/mm/yyyy" onkeyup="FormatIt(this);" MaxLength="10" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox runat="server" ID="ToDateTextBox" placeholder="dd/mm/yyyy" onkeyup="FormatIt(this);" MaxLength="10" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>

                                    <div class="alignCenter col-md-12 pTop5">
                                        <asp:Button ID="SearchButton" Text="&#xf002;  search" runat="Server" OnClick="SearchButton_Click"
                                            SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf12d;  Clear" OnClick="ClearButton_Click" SkinID="0" CssClass="btn btn-clear fas" />
                                    </div>

                                    <div id="DetailDiv" visible="false" runat="server" class="himssuHeader7WireBox col-md-12">
                                        <asp:GridView ID="VersionInfoGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                            CssClass="table table-striped table-bordered table-hover" SkinID="" ShowHeader="true" PagerSettings-Visible="false"
                                            EmptyDataText="No Records Found !!" OnRowDataBound="VersionInfoGridView_RowDataBound">
                                            <Columns>
                                                <asp:BoundField DataField="VersionNumber" HeaderText="Version Number (Static)" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                <asp:BoundField DataField="VersionId" HeaderText="Version Id (Static)" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                <asp:BoundField DataField="VersionDate" HeaderText="Version Date (Static)" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}" />
                                                <asp:BoundField DataField="UpdateScript" HeaderText="Update Script" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
                                                <asp:BoundField DataField="Status" HeaderText="Status" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                <asp:BoundField DataField="StartDateTime" HeaderText="Start Date Time" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%" DataFormatString="{0:dd-MM-yyyy hh:mm tt}" />
                                                <asp:BoundField DataField="EndDateTime" HeaderText="End Date Time" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%" DataFormatString="{0:dd-MM-yyyy hh:mm tt}" />
                                                <asp:BoundField DataField="OrgGroupId" HeaderText="Org Group Id" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                <asp:TemplateField HeaderText="Script Status" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%"
                                                    ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ScriptStatusLabel" runat="server" Text='<%#Bind("ScriptStatus")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function FormatIt(obj) {
        if (obj.value.length == 2)
            obj.value = obj.value + "/";
        if (obj.value.length == 5)
            obj.value = obj.value + "/";
    }

    function isNumberKey(evt) {
        var charCode = (evt.which) ? evt.which : event.keyCode;
        if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
            return false;
        return true;
    }
</script>
