<!--@using Scripts = System.Web.Optimization.Scripts-->
<!--@using Styles = System.Web.Optimization.Styles-->
<!--@{-->
<!--Layout = null;-->
<!--}-->
<!DOCTYPE html>
<html ng-app="app">
<head>
    <base href="/" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8" http-equiv="X-UA-Compatible" content="chrome=1; IE=11; IE=10; IE=9; IE=EDGE">
    <title>Apex+ ATMS</title>
    <style>
        [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
            display: none !important;
        }

        body {
            font-family: "Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";
        }

        a.back-to-top {
            top: 90%;
            display: none;
            width: 50px;
            height: 50px;
            text-indent: -9999px;
            position: fixed;
            z-index: 999;
            right: 20px;
            background: #a32020 url("/app-resources/images/up-arrow.png") no-repeat center 43%;
            -webkit-border-radius: 30px;
            -moz-border-radius: 30px;
            border-radius: 30px;
        }

        a:hover.back-to-top {
            background-color: #eb8c00;
        }

        a {
            outline: none !important;
        }
    </style>
    <!--@Styles.Render("~/Content/css")-->
    <!--@Styles.Render("~/appresources/css")-->
    <!--@Styles.Render("~/bundles/appresources.less")-->
    <!--@Styles.Render("~/bundles/common.css")-->
    <!--@Styles.Render("~/bundles/common.less")-->
    <!--@Styles.Render("~/bundles/framework.less")-->
    <!--@Styles.Render("~/bundles/taxDocumentManage.less")-->

    <link href="Content/bundle_content.css" rel="stylesheet" type="text/css" />
    <link href="bundles/appresources.css" rel="stylesheet" type="text/css" />
    <link href="bundles/appresources.less" rel="stylesheet" type="text/css" />
    <link href="bundles/common.css" rel="stylesheet" type="text/css" />
    <link href="bundles/common.less" rel="stylesheet" type="text/css" />
    <link href="bundles/less/framework.less" rel="stylesheet" type="text/css" />
    <link href="bundles/less/taxDocumentManage.less" rel="stylesheet" type="text/css" />
    <link href="bundles/less/cit.less" rel="stylesheet" type="text/css" />
</head>
<body ng-controller="AppController">
<!--@Html.AntiForgeryToken()-->
<div class="wrapper">
    <app-nav></app-nav>
    <div class="page-wrapper" style="position:relative;overflow-x:hidden;overflow-y:auto;margin-top:55px">
        <div class="main-contents" ui-view></div>
        <div class="data-import-contents" style="display: block" ui-view="importContent"></div>
    </div>
    <div class="clear"></div>
    <atms-busy-indicator></atms-busy-indicator>
    <app-modal></app-modal>
</div>
<!-- /#wrapper -->
<!--@Scripts.Render("~/bundles/modernizr")-->
<!--@Scripts.Render("~/bundles/jquery", "~/bundles/jquerysignalR", "~/bundles/angular", "~/bundles/angularui", "~/bundles/bootstrap", "~/bundles/util", "~/bundles/jqueryval", "~/bundles/exceptionless", "~/bundles/angular-cache", "~/bundles/echarts", "~/bundles/jsword")-->
<!--@Scripts.Render("~/bundles/app.js", "~/bundles/common.js", "~/bundles/framework.js", "~/bundles/taxDocumentManage.js")-->
<!--@Scripts.Render("~/signalr/hubs")-->
<!--&lt;!&ndash; localization use globalize &ndash;&gt;-->
<!--@Scripts.Render("~/bundles/cldr")-->
<!--@Scripts.Render("~/bundles/globalize")-->
<!--@Scripts.Render("~/bundles/dx")-->

<!--@Scripts.Render("~/bundles/spreadjs")-->
<!--@Scripts.Render("~/bundles/ivh-treeview")-->
<!--@Scripts.Render("~/bundles/ui-select")-->
<!--@Scripts.Render("~/bundles/month-picker")-->
<!--@*<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.1/xlsx.full.min.js"></script>*@-->
<script type="text/javascript" src="atmsExtra.js"></script>
<script type="text/javascript" src="bundles/modernizr.js"></script>
<script type="text/javascript" src="bundles/jquery.js"></script>
<script type="text/javascript" src="bundles/jquerysignalR.js"></script>
<script type="text/javascript" src="bundles/angular.js"></script>
<script type="text/javascript" src="bundles/angularui.js"></script>
<script type="text/javascript" src="bundles/bootstrap.js"></script>
<script type="text/javascript" src="bundles/util.js"></script>
<script type="text/javascript" src="bundles/jqueryval.js"></script>
<script type="text/javascript" src="bundles/exceptionless.js"></script>
<script type="text/javascript" src="bundles/angular-cache.js"></script>
<script type="text/javascript" src="bundles/echarts.js"></script>
<script type="text/javascript" src="bundles/jsword.js"></script>

<script type="text/javascript" src="bundles/app.js"></script>
<script type="text/javascript" src="bundles/common.js"></script>
<script type="text/javascript" src="bundles/framework.js"></script>
<script type="text/javascript" src="bundles/taxDocumentManage.js"></script>

<script type="text/javascript" src="bundles/cldr.js"></script>
<script type="text/javascript" src="bundles/globalize.js"></script>
<script type="text/javascript" src="bundles/dx.js"></script>

<script type="text/javascript" src="bundles/spread.js"></script>
<script type="text/javascript" src="bundles/spreadio.js"></script>
<script type="text/javascript" src="bundles/ivh-treeview.js"></script>
<script type="text/javascript" src="bundles/ui-select.js"></script>
<script type="text/javascript" src="bundles/month-picker.js"></script>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.1/xlsx.full.min.js"></script>
<!--<script type="text/javascript" src="bundles/hubs.js">-->
<script type="text/javascript">
        GC.Spread.Sheets.LicenseKey = constant.regesterInformation.userKey;
        window.location.href = '/#/#/organizationViewInfrastructure/organizationBusinessUnitView';
        var arrayCookie = document.cookie.split(';');
        var user_name = '';
        arrayCookie.forEach(function (item) {
            if (item.indexOf('AtmsApiToken') > -1) {
                user_name = item;
            }
        });

        // <!--if (JSON.parse(user_name.split('=')[1]).user_name.toLowerCase() === 'simon') {-->
        //     <!--window.location.href = '/#/overview/assetsManage';-->
        // <!--}-->
        // <!--else {-->
            window.location.href = '/#/overview/vat';
        // <!--}-->
        // create the back to top button
        $('body').prepend('<a href="#" class="back-to-top">Back to Top</a>');

        var amountScrolled = 300;

        $(window).scroll(function () {
            if ($(window).scrollTop() > amountScrolled) {
                $('a.back-to-top').fadeIn('slow');
            } else {
                $('a.back-to-top').fadeOut('slow');
            }
        });

        $('a.back-to-top, a.simple-back-to-top').click(function () {
            $('html, body').animate({
                scrollTop: 0
            }, 700);
            return false;
        });

        window.onload = function () {
            $("#overview").click();
            //$('#overview').trigger("click");
            //$('.nav-element-left a').removeClass('active');
            //$('#overview').addClass('active');
        };
    </script>
</body>

</html>