<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_MIS_MISDashboard, App_Web_uwtfsfid" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--    <link href="../../../App_Themes/newTheme/css/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
    <link href="../../../App_Themes/newTheme/css/fontawesome.min.css" rel="stylesheet" type="text/css" />
    <link href="../../../App_Themes/newTheme/css/bootstrap.css" rel="stylesheet" />
    <link href="../../../App_Themes/newTheme/css/mobile.css" rel="stylesheet" />--%>
    <link href="../../App_Themes/mis_db/css/misdb.css" rel="stylesheet" />
    <style>
        .top-panel{
            margin-left:0!important;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            GetOrgId();
            $(document).on("click", function () {
                sessionStorage.removeItem("NewId");
                sessionStorage.removeItem("NewBatchId");
            });
        });
        function GetOrgId() {
            $.ajax({
                type: "POST",
                url: "MISDashboard.aspx/GetOrgId",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    var OrgGroupId = "";
                    var k = 0;
                    $.each(obj, function (i, item) {
                        // alert(obj.length);
                        if (item.Id != 30236)
                        {
                            var url = item.PagePath;
                            var domainName = url.substr(url.indexOf("~/") + 1);
                            OrgGroupId += "  <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 temp'><div class='card db pull-up'><a onclick='window.location.href=\"" + domainName + "\"'" +
                                          "<div class='block-content block-content-full aspect-ratio-16-9  justify-content-center align-items-center'>" +
                                          "<img src='../" + item.IconPath + "' /><div>" + item.Title + "</div></div></a></div></div>";
                        }
                  
                    });
                    document.getElementById("MisDashBoard").innerHTML = OrgGroupId;
                }
            });
        }
    </script>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

<%--                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <div class="himsBoxContent">
                                <div class="leftUlMenu">
                                    <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="240"
                                        Visible="true" runat="server" />
                                </div>
                            </div>
                        </table>
                    </div>
                
                </div>--%>
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="240"
                                Visible="true" runat="server" />
                        </table>
                    </div>
                </div>
                <div class="row">
                    <asp:Label ID="MISDashBoardLabel" runat="server" Text="Dashboard" Style="display: none"></asp:Label>
                    <div class="row center-block pTop5">
                        <div class="gutters-tiny push js-appear-enabled animated fadeIn" data-toggle="appear" id="MisDashBoard">
                       <%--     <div class="col-xs-6 col-sm-6 col-md-4 col-xl-3">
                                <div class="card db pull-up">
                                    <a>
                                        <div class="block-content  justify-content-center align-items-center">
                                            <img src="../../App_Themes/mis_db/images/mis.png">
                                            <div>MIS Dashboard</div>
                                    </a>
                                </div>
                            </div>--%>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>
        //Added by dhananajay for mantis Start- 36916
        function RedirectToNewDashboard(DashboardUrl) {
            var newTab = window.open(DashboardUrl, '_blank');
            window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
        }
        //Added by dhananajay for mantis End - 36916

    </script>
</asp:Content>
