protected override void Initialize(System.Web.Routing.RequestContext requestContext) { base.Initialize(requestContext); oApplicationBLL = new SecurityApplicationBLL(); oFormBLL = new SecurityFormBLL(); oFormActionBLL = new SecurityFormActionBLL(); oRoleBLL = new SecurityRoleBLL(); oRoleAccessBLL = new SecurityRoleAccessBLL(); oRoleApplicationBLL = new SecurityRoleApplicationBLL(); oUserBLL = new SecurityUserBLL(); oUserAccessBLL = new SecurityUserAccessBLL(); oUserApplicationBLL = new SecurityUserApplicationBLL(); oUserRoleBLL = new SecurityUserRoleBLL(); }
public ActionResult Create(SecurityForm pSecurityForm) { if (ModelState.IsValid) { if (oFormBLL.Insert(pSecurityForm)) { SecurityFormActionBLL faBLL = new SecurityFormActionBLL(); List <SecurityFormAction> vList_BasicAction = new List <SecurityFormAction>(); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "001", "View")); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "002", "Add")); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "003", "Edit")); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "004", "Delete")); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "005", "Post")); vList_BasicAction.Add(GetBasic_SecurityFormAction(pSecurityForm, "006", "Print")); faBLL.InsertList(vList_BasicAction); return(RedirectToAction("Index", new { pApplicationCode = pSecurityForm.ApplicationCode })); } } return(View(pSecurityForm)); }
protected override void Initialize(System.Web.Routing.RequestContext requestContext) { base.Initialize(requestContext); oFormBLL = new SecurityFormBLL(); oFormActionBLL = new SecurityFormActionBLL(); }