-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSet_Org_Status.aspx.cs
37 lines (35 loc) · 1.05 KB
/
Set_Org_Status.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Security;
using Darili_api;
using Newtonsoft.Json;
public partial class Set_Org_Status : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string OrgName = Request.QueryString["OrgName"];
if(Event_RoleControl.IsOrg(OrgName,Page.User.Identity.Name))
{
Session.Add("OrgName",OrgName);
Session.Add("IsMinorOrg",false);
Session.Timeout = 60;
}
else if (Event_RoleControl.IsMonorOrg(OrgName, Page.User.Identity.Name))
{
Session.Add("OrgName", OrgName);
Session.Add("IsMinorOrg", true);
Session.Timeout = 60;
}
else
{
Session.Remove("OrgName");
Session.Remove("IsMinorOrg");
Session.Timeout = 60;
}
Response.Write(Session["OrgName"] + "," + "IsMinorOrg:" + Session["IsMinorOrg"]);
}
}