예제 #1
0
        private void SetSessions()
        {
            try
            {
                UserInfoModel objUserInfoModel = new UserInfoModel();
                Session["UserName"] = UserName.Text;
                Session["Role"]     = objUserInfoModel.GetRole(UserName.Text);

                Session["UserManagement"]           = objUserInfoModel.SetModuleUser(UserName.Text, "UserManagement");
                Session["RoleManagement"]           = objUserInfoModel.SetModuleUser(UserName.Text, "RoleManagement");
                Session["GroupManagement"]          = objUserInfoModel.SetModuleUser(UserName.Text, "GroupManagement");
                Session["AddEditDeleteIncidents"]   = objUserInfoModel.SetModuleUser(UserName.Text, "AddEditDeleteIncidents");
                Session["AssignmentOfIncident"]     = objUserInfoModel.SetModuleUser(UserName.Text, "AssignmentOfIncident");
                Session["InputProposedDateAndTime"] = objUserInfoModel.SetModuleUser(UserName.Text, "InputProposedDateAndTime");
                Session["UpdateIncidents"]          = objUserInfoModel.SetModuleUser(UserName.Text, "UpdateIncidents");
                Session["CancelIncidents"]          = objUserInfoModel.SetModuleUser(UserName.Text, "CancelIncidents");
                Session["ViewCharts"] = objUserInfoModel.SetModuleUser(UserName.Text, "ViewCharts");
            }
            catch (Exception Ex)
            {
            }
        }