Beispiel #1
0
        public async Task <IActionResult> Index()
        {
            var list = await _SY_NotificationService.GetAll();

            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("SY_Notification", this.HttpContext);

            return(View(list));
        }
        public async Task <IActionResult> Index(int page = 1, string export = "0")
        {
            var gridmodel = await _WM_TaskService.GetPaging("", page, 10);

            ViewBag.keyValue  = "";
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("WM_Task", this.HttpContext);

            return(View(gridmodel));
        }
Beispiel #3
0
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            var data = await _PM_ProjectService.GetPaging("", 1, 20);

            ViewBag.keyValue  = "";
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("PM_Project", this.HttpContext);

            return(View(data));
        }
Beispiel #4
0
        public async Task <IActionResult> Index(string key, int page = 1)
        {
            var gridmodel = await _MN_KeySecurityService.GetPaging(key, page, 10);

            ViewBag.keyValue  = key;
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("MN_KeySecurity", this.HttpContext);

            return(View(gridmodel));
        }
        public async Task <IActionResult> Index(string key, string customergroupid, int page = 1, string export = "0")
        {
            var gridmodel = await _MN_CustomerService.GetCustomPaging(key, customergroupid, page, 10);

            ViewBag.keyValue  = key;
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("MN_Customer", this.HttpContext);

            return(View(gridmodel));
        }
        public async Task <IActionResult> Index(int page = 1, string export = "0")
        {
            var gridmodel = await _SY_UserService.GetPaging("", page, 10);

            ViewBag.keyValue  = "";
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("SY_User", this.HttpContext);

            if (export == "1")
            {
                await ExportFile(this.HttpContext);

                //return View(gridmodel);
            }

            return(View(gridmodel));
        }
        public async Task <IActionResult> Index(string key, int page = 1, string exportfile = "", string fromdate = "", string todate = "")
        {
            //if (string.IsNullOrWhiteSpace(fromdate))
            //{
            //    fromdate = DateTime.Now.ToString("dd/MM/yyyy 23:59:59");
            //}
            //if (string.IsNullOrWhiteSpace(todate))
            //{
            //    todate = DateTime.Now.ToString("dd/MM/yyyy 23:59:59");
            //}
            ////
            if (!string.IsNullOrWhiteSpace(exportfile))
            {
                await ExportFile(exportfile);
            }
            var gridmodel = await _MN_LicenseService.GetPaging(key, fromdate, todate, page, 10);

            ViewBag.keyValue  = key;
            ViewBag.AuthValue = await AuthHelper.CheckAuthAction("MN_License", this.HttpContext);

            ViewBag.fromdate = fromdate;
            ViewBag.toodate  = !string.IsNullOrWhiteSpace(todate) ? Convert.ToDateTime(todate).ToString("dd/MM/yyyy HH:mm:59") : DateTime.Now.ToString("dd/MM/yyyy 23:59:59");
            return(View(gridmodel));
        }