protected void fnRedirectMrfApproveRejectHeadCount(object sender, EventArgs e) { //clear all the session value if (MRFRoles.CheckRolesApproveRejectHeadCount()) { Response.Redirect("MrfApproveRejectHeadCount.aspx", false); } else { Response.Redirect("Home.aspx", false); } }
protected void fnRedirectToRaiseMRF(object sender, EventArgs e) { //clear all the session value if (MRFRoles.CheckRolesRaiseMrf()) { Response.Redirect("MrfRaisePrevious.aspx", false); } else { Response.Redirect("Home.aspx", false); } }
protected void fnRedirectMrfPendingAllocation(object sender, EventArgs e) { //Venkatesh Start: Session null Session[SessionNames.InternalResource] = null; //Venkatesh End: Session null //clear all the session value if (MRFRoles.CheckRolesPendingAllocation()) { Response.Redirect("MrfPendingAllocation.aspx", false); } else { Response.Redirect("Home.aspx", false); } }
/// <summary> /// Make visible to tab of MRF if user have access rights. /// </summary> public void AccessRightForMRF() { //TO solved issue id 21336 //Start ArrayList arrRolesPreSale = new ArrayList(); arrRolesPreSale = (System.Collections.ArrayList)Session[SessionNames.AZMAN_ROLES]; if (!MRFRoles.CheckRolesMrfSummary() && !MRFRoles.CheckRolesRaiseMrf() && !MRFRoles.CheckRolesPendingAllocation() && !MRFRoles.CheckRolesPendingApproval() && !MRFRoles.CheckRolesApproveRejectHeadCount()) { ApplyCssToAccedDeniedMenu(tabMRF); } foreach (string STR in arrRolesPreSale) { switch (STR) { case "rolePreSales": spanAppRejHeadCount.Visible = false; spanMRFPendingApproval.Visible = false; spanMRFPendingAllocation.Visible = false; break; default: break; } } //End //43639-- Jignyasa--Start //var chkFunctionalManager = CheckIfFunctionalManager(arrRolesPreSale); //if (!chkFunctionalManager && !MRFRoles.CheckRolesMrfSummary() && !MRFRoles.CheckRolesRaiseMrf() && !MRFRoles.CheckRolesPendingAllocation() && !MRFRoles.CheckRolesPendingApproval() && !MRFRoles.CheckRolesApproveRejectHeadCount()) //{ // ApplyCssToAccedDeniedMenu(tabMRF); //} //if (chkFunctionalManager && !MRFRoles.CheckRolesMrfSummary()) //Those who are only functional manager and not PM they should see only mrfsummary page. //{ // spanMRFSummary.Visible = true; // spanRaiseMRF.Visible = false; // spanMRFPendingApproval.Visible = false; // spanAppRejHeadCount.Visible = false; // spanMRFPendingAllocation.Visible = false; //} //43639--Jignyasa--End }
protected void fnRedirectMrfPendingApproval(object sender, EventArgs e) { //clear all the session value if (MRFRoles.CheckRolesPendingApproval()) { //All the sessions are cleared before redirecting to page. Session[SessionNames.PREVIOUS_SORT_EXPRESSION_APPREJMRF] = null; Session[SessionNames.SORT_DIRECTION_APPREJMRF] = null; Response.Redirect("MrfPendingApproval.aspx", false); } else { Response.Redirect("Home.aspx", false); } }
protected void fnRedirectMrfSummary(object sender, EventArgs e) { //clear all the session value if (MRFRoles.CheckRolesMrfSummary()) { //All the sessions are cleared before redirecting to page. Session[SessionNames.DEPARTMENT_ID] = null; Session[SessionNames.PROJECT_ID_MRF] = null; Session[SessionNames.ROLE] = null; Session[SessionNames.MRF_STATUS_ID] = null; Session[SessionNames.SORT_DIRECTION_MRF] = null; Session[SessionNames.CURRENT_PAGE_INDEX_MRF] = null; Session[SessionNames.PREVIOUS_SORT_EXPRESSION_MRF] = null; Session[SessionNames.CURRENT_PAGE_INDEX_PENDING_ALLOCATION] = null; //Venkatesh Start: Session null Session[SessionNames.MRFDetail] = null; //Venkatesh End: session null Response.Redirect("MrfSummary.aspx", false); } else { Response.Redirect("Home.aspx", false); } }