markus / MarkusLogview / MARKUS_LOGVIEW / Controllers / MergeController.cs @ 84578b97
이력 | 보기 | 이력해설 | 다운로드 (1.18 KB)
1 |
using IKCOM; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.ComponentModel.DataAnnotations; |
5 |
using System.Linq; |
6 |
using System.Web; |
7 |
using System.Web.Mvc; |
8 |
|
9 |
namespace MARKUS_LOGVIEW.Controllers |
10 |
{ |
11 |
public class MergeController : Controller |
12 |
{ |
13 |
[DisplayFormat(DataFormatString = "yyyy-mm-dd")] |
14 |
public DateTime? beforeDate { get; set; } |
15 |
[DisplayFormat(DataFormatString = "yyyy-mm-dd")] |
16 |
public DateTime? afterDate { get; set; } |
17 |
|
18 |
// GET: Merge |
19 |
public ActionResult Index() |
20 |
{ |
21 |
|
22 |
if (Session["accessToken"] != null) |
23 |
{ |
24 |
|
25 |
beforeDate = DateTime.Today.AddDays(-1); |
26 |
afterDate = DateTime.Today.AddHours(23).AddMinutes(59).AddSeconds(59); |
27 |
|
28 |
ViewBag.startDate = beforeDate.Value.ToString("yyyy-MM-dd"); |
29 |
ViewBag.endDate = afterDate.Value.ToString("yyyy-MM-dd"); |
30 |
|
31 |
ViewBag.signalrURL = LogviewHubBaseURI.Url + LogviewHubBaseURI.Port + LogviewHubBaseURI.SignalrPath + LogviewHubBaseURI.file; |
32 |
|
33 |
return View(); |
34 |
|
35 |
} |
36 |
else |
37 |
{ |
38 |
return Redirect("/Login/Index"); |
39 |
} |
40 |
|
41 |
} |
42 |
} |
43 |
} |