protected override void OnShowContent(ShowContentEventArgs args) { var hSrv = StaticServiceFactory.Create <IHolidayService>(); Container.FromDt = hSrv.GetRecentlyWorkingDay(); base.OnShowContent(args); }
protected override void OnShowContent(ShowContentEventArgs args) { var profileService = StaticServiceFactory.Create <IUserProfileService>(); var profile = profileService.GetCurrentProfile(); Container = profile; base.OnShowContent(args); }
protected override void OnShowContent(ShowContentEventArgs args) { if (Container.RoleName != null) { var roles = Container.RoleName.Split(';').ToList(); RoleNames = new List <string>(); foreach (var role in roles) { RoleNames.Add(role); } } }