프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkusLogview / MARKUS_LOGVIEW / Controllers / ConvertController.cs @ 84578b97

이력 | 보기 | 이력해설 | 다운로드 (1.54 KB)

1
using IKCOM;
2
using MARKUS_LOGVIEW.Common;
3
using MarkusDataModel.Common;
4
using MarkusDataModel.DataModel;
5
using MarkusDataModel.DTOs;
6
using Microsoft.AspNet.SignalR.Client;
7
using Microsoft.AspNet.SignalR.Client.Transports;
8
using System;
9
using System.Collections.Generic;
10
using System.ComponentModel.DataAnnotations;
11
using System.Linq;
12
using System.Net.Http.Headers;
13
using System.Threading.Tasks;
14
using System.Web;
15
using System.Web.Mvc;
16
using System.Web.Security;
17
using System.Web.SessionState;
18
using static ServiceInterface.LogView_Interface;
19

    
20
namespace MARKUS_LOGVIEW.Controllers
21
{
22
    public class ConvertController : Controller
23
    {
24

    
25
        [DisplayFormat(DataFormatString = "yyyy-mm-dd")]
26
        public DateTime? beforeDate { get; set; }
27
        [DisplayFormat(DataFormatString = "yyyy-mm-dd")]
28
        public DateTime? afterDate { get; set; }
29

    
30
        // GET: Convert
31
        public ActionResult Index()
32
        {
33

    
34
            if (Session["accessToken"] != null) {
35

    
36
                beforeDate = DateTime.Today.AddDays(-1);
37
                afterDate = DateTime.Today.AddHours(23).AddMinutes(59).AddSeconds(59);
38

    
39
                ViewBag.startDate = beforeDate.Value.ToString("yyyy-MM-dd");
40
                ViewBag.endDate = afterDate.Value.ToString("yyyy-MM-dd");
41

    
42
                ViewBag.signalrURL = LogviewHubBaseURI.Url + LogviewHubBaseURI.Port + LogviewHubBaseURI.SignalrPath + LogviewHubBaseURI.file;
43

    
44
                return View();
45

    
46
            }
47
            else
48
            {
49
                return Redirect("/Login/Index");
50
            }
51
        }
52
    }
53
}
클립보드 이미지 추가 (최대 크기: 500 MB)