Example #1
0
 private void OnWindowLoaded(object sender, RoutedEventArgs e)
 {
     if (UserInfo == null)
     {
         UserInfo = new SystemUser();
     }
     EditUserInfoForm.CurrentItem = UserInfo;
     userContext.GetUserRoleRel(UserInfo.UserId, (obj) =>
     {
         if (Utility.Utility.CheckInvokeOperation(obj))
         {
             SelectedRoles             = obj.Value;
             UserRolesList.ItemsSource = obj.Value;
         }
     }, null);
     userContext.GetUserOrgRel(UserInfo.UserId, (obj) =>
     {
         if (Utility.Utility.CheckInvokeOperation(obj))
         {
             SelectedOrganizations   = obj.Value;
             UserOrgList.ItemsSource = obj.Value;
         }
     }, null);
     moduleContext.GetSystemModuleTree(OnGetSystemModuleCompleted, null);
 }
Example #2
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            if (RoleInfo == null)
            {
                RoleInfo = new SystemRole {
                    CreateTime = DateTime.Now, CreatedBy = AuthenticateStatus.CurrentUser.UserId
                }
            }
            ;

            RoleInfo.LastUpdateTime = DateTime.Now;
            RoleInfo.LastUpdatedBy  = AuthenticateStatus.CurrentUser.UserId;

            FormEditRole.CurrentItem = RoleInfo;
            moduleContext.GetSystemModuleTree(OnGetSystemModuleTreeComplete, null);
        }
Example #3
0
 // 当用户导航到此页面时执行。
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     moduleContext.GetSystemModuleTree(OnGetSystemModuleCompleted, null);
 }