protected override void OnShowContent(ShowContentEventArgs args)
        {
            var hSrv = StaticServiceFactory.Create <IHolidayService>();

            Container.FromDt = hSrv.GetRecentlyWorkingDay();

            base.OnShowContent(args);
        }
예제 #2
0
        protected override void OnShowContent(ShowContentEventArgs args)
        {
            var profileService = StaticServiceFactory.Create <IUserProfileService>();

            var profile = profileService.GetCurrentProfile();

            Container = profile;

            base.OnShowContent(args);
        }
예제 #3
0
 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);
         }
     }
 }