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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>:: Configuration ::</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="Configuration"></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="cBoth"></div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrgGroupLabel" runat="server" Text="OrgGroup"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrgGroupDropDownList" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="OrgGroupDropDownList_SelectedIndexChanged"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="DetailDiv" visible="false" runat="server" class="himssuHeader7WireBox col-md-12">
                                        <asp:GridView ID="OrgGroupConfigurationGridView" runat="server" AutoGenerateColumns="False"
                                            ShowHeader="true" SkinID="" PagerSettings-Visible="false" DataKeyNames="Id,ValidationTypeId,ItemValue,SourceTypeId,SourceId,DefaultValue" OnRowDataBound="OrgGroupConfigurationGridView_RowDataBound"
                                            EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Module">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ModuleLabel" runat="server" Text='<%#Eval("Module") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Title">
                                                    <ItemTemplate>
                                                        <asp:Label ID="TitleLabel" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Key">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ItemKeyLabel" runat="server" Text='<%#Eval("ItemKey") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Value">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="ItemValueTextBox" runat="server" Text='<%#Eval("ItemValue") %>'></asp:TextBox>
                                                        <asp:DropDownList ID="drpCustomValidate" runat="server" CssClass="form-control" meta:resourcekey="drpCustomValidateResource1" Visible="false">
                                                        </asp:DropDownList>
                                                        <asp:DropDownList ID="ItemValueDropDownList" CssClass="form-control" runat="server">
                                                            <asp:ListItem Value="-1">- Select -</asp:ListItem>
                                                            <asp:ListItem Value="True">True</asp:ListItem>
                                                            <asp:ListItem Value="False">False</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:Button ID="UpdateButton" runat="server" CssClass="btn btn-download fas" SkinID="0" Text="Update" OnClick="UpdateButton_Click" />
                                                    </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>
