public ActionResult MAS070() { MAS070_ScreenParameter MAS070Param = new MAS070_ScreenParameter(); ViewBag.HasPermissionAdd = ""; ViewBag.HasPermissionEdit = ""; ViewBag.HasPermissionDelete = ""; try { MAS070Param = GetScreenObject <MAS070_ScreenParameter>(); ViewBag.HasPermissionAdd = CheckUserPermission(ScreenID.C_SCREEN_ID_MAINTAIN_USER_INFO, FunctionID.C_FUNC_ID_ADD); ViewBag.HasPermissionEdit = CheckUserPermission(ScreenID.C_SCREEN_ID_MAINTAIN_USER_INFO, FunctionID.C_FUNC_ID_EDIT); ViewBag.HasPermissionDelete = CheckUserPermission(ScreenID.C_SCREEN_ID_MAINTAIN_USER_INFO, FunctionID.C_FUNC_ID_DEL); } catch { } ICommonHandler cHand = ServiceContainer.GetService <ICommonHandler>() as ICommonHandler; emailSuffix = cHand.GetSystemStatusValue(ConfigName.C_EMAIL_SUFFIX); ViewBag.EmailSuffix = emailSuffix; ViewBag.EmailLength = C_EMAIL_LENGTH - emailSuffix.Length; IEmployeeMasterHandler handler = ServiceContainer.GetService <IEmployeeMasterHandler>() as IEmployeeMasterHandler; List <string> positionCode = handler.GetPositionCodeAtMaxPositionLevel(); if (positionCode != null && positionCode.Count != 0) { ViewBag.DefaultPositionCode = positionCode[0].Trim(); } return(View()); }