Пример #1
0
        private void BtnAddUserGroupClick(object sender, RoutedEventArgs e)
        {
            var selectUserGroupWindow = new SelectUserGroupWindow(UserOperationDAL);

            if (selectUserGroupWindow.ShowDialog() == false)
            {
                SettingHelp.AddEntityRange(LvUserGroupName, selectUserGroupWindow.SelectUserGroupList);
            }
        }
Пример #2
0
        private void BtnAddRoleNameClick(object sender, RoutedEventArgs e)
        {
            var selectRoleWindow = new SelectRoleWindow(UserOperationDAL);

            if (selectRoleWindow.ShowDialog() == false)
            {
                SettingHelp.AddEntityRange(LvUserRole, selectRoleWindow.SelectRoleInfoList);
            }
        }
Пример #3
0
        private void InitData()
        {
            var entityList = UserOperationDAL.DataOperationInstance.QueryAll <WorkFlowActivityLogModel>();

            DgActivityList.ItemsSource = entityList;
            DgActivityList.Items.Refresh();
            CbWorkflowName.ItemsSource = entityList.Select(entity => entity.WorkflowName).Distinct();
            CbWorkflowName.Items.Refresh();
            CbQueryType.ItemsSource = SettingHelp.ActivityQueryTypeList();
            CbQueryType.Items.Refresh();
        }
Пример #4
0
 private void EnableControl(bool isEnable)
 {
     foreach (var control in SettingHelp.FindVisualChildren <Button>(this))
     {
         control.IsEnabled = isEnable;
     }
     TxtRoleDisplayName.IsReadOnly = !isEnable;
     TxtRoleName.IsReadOnly        = !isEnable;
     BtnModify.IsEnabled           = true;
     BtnCancel.IsEnabled           = true;
 }
Пример #5
0
 private void EnableControl(bool isEnable)
 {
     TxtUserDisplayName.IsReadOnly = !isEnable;
     TxtUserName.IsReadOnly        = !isEnable;
     foreach (var control in SettingHelp.FindVisualChildren <Button>(this))
     {
         control.IsEnabled = isEnable;
     }
     foreach (var control in SettingHelp.FindVisualChildren <PasswordBox>(this))
     {
         control.IsEnabled = isEnable;
     }
     BtnModify.IsEnabled         = true;
     BtnCancel.IsEnabled         = true;
     BtnModifyPassword.IsEnabled = true;
 }
Пример #6
0
 private void BtnRemoveRoleNameClick(object sender, RoutedEventArgs e)
 {
     SettingHelp.RemoveItemByCondition <RoleInfoModel>(LvUserRole);
 }
Пример #7
0
 private void ModifyOperationActionRole()
 {
     SettingHelp.MoidfyListByCondition(LvUserRole, UserOperationDAL.AddUserGroupRole, UserOperationDAL.DeleteUserGroupRole, ExistUserRoleList, null, Id);
 }
Пример #8
0
 private void ModifyGroupRoleList()
 {
     SettingHelp.MoidfyListByCondition(LvGroupRole, UserOperationDAL.AddUserGroupRole, UserOperationDAL.DeleteUserGroupRole, ExistRoleInfoList, Id);
 }
Пример #9
0
 private void ModifyUserNameList()
 {
     SettingHelp.MoidfyListByCondition(LvUserName, UserOperationDAL.AddUserInUserGroup, UserOperationDAL.DeleteUserInUserGroup, ExistUserInfoList, null, Id);
 }
Пример #10
0
 private void BtnRemoveUserClick(object sender, RoutedEventArgs e)
 {
     SettingHelp.RemoveItemByCondition <UserInfoModel>(LvUserName);
 }
Пример #11
0
 private void AddRelationList()
 {
     SettingHelp.AddRelationByCondition <UserGroupModel>(LvUserGroupName, UserOperationDAL.AddUserInUserGroup, Id);
     SettingHelp.AddRelationByCondition <RoleInfoModel>(LvUserRole, UserOperationDAL.AddUserRole, Id);
 }
Пример #12
0
 private void BtnRemoveActionClick(object sender, RoutedEventArgs e)
 {
     SettingHelp.RemoveItemByCondition <OperationActionInfoModel>(LvActionName);
 }
Пример #13
0
 private void ModifyActionList()
 {
     SettingHelp.MoidfyListByCondition(LvActionName, UserOperationDAL.AddOperationActionInRole, UserOperationDAL.DeleteOperationActionInRole, ExistActionInfoList, null, Id);
 }