-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.aspx.cs
59 lines (46 loc) · 1.42 KB
/
view.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Web;
using System.Web.UI.WebControls;
using WebComponents;
using Utility;
using BLL;
using Model;
namespace Avalon.Web {
public partial class _view : System.Web.UI.Page¡¡
{
private DateTime logTime;
¡¡¡¡protected void Page_Load(object sender, EventArgs e)¡¡
{
int year = WebComponents.CleanString.GetInt(HttpContext.Current.Request["year"]);
int month = WebComponents.CleanString.GetInt(HttpContext.Current.Request["month"]);
int day = WebComponents.CleanString.GetInt(HttpContext.Current.Request["day"]);
string personName = HttpContext.Current.Request["person"];
DateTime dt = DateTime.Now.AddDays(1);
//check if it is existed
Person person = new Person();
PersonInfo p = person.GetPerson(personName);
if (p == null)
{
Response.Redirect("/");
}
else
{
persona.Text = p.Name;
clips.PersonID = p.ID;
clips.After = dt;
clips.GetPost = true;
clips.Year=year;
clips.Month=month;
clips.Day=day;
live.PersonID = p.ID;
live.After = dt;
live.GetPost = false;
live.Year=year;
live.Month=month;
live.Day=day;
logTime = Convert.ToDateTime(Utility.FormatCode.GetFormatDay(year,month,day));
comments.LogTime = logTime;
}
}
}
}