private void BtnAddUserGroupClick(object sender, RoutedEventArgs e) { var selectUserGroupWindow = new SelectUserGroupWindow(UserOperationDAL); if (selectUserGroupWindow.ShowDialog() == false) { SettingHelp.AddEntityRange(LvUserGroupName, selectUserGroupWindow.SelectUserGroupList); } }
private void BtnAddRoleNameClick(object sender, RoutedEventArgs e) { var selectRoleWindow = new SelectRoleWindow(UserOperationDAL); if (selectRoleWindow.ShowDialog() == false) { SettingHelp.AddEntityRange(LvUserRole, selectRoleWindow.SelectRoleInfoList); } }
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(); }
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; }
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; }
private void BtnRemoveRoleNameClick(object sender, RoutedEventArgs e) { SettingHelp.RemoveItemByCondition <RoleInfoModel>(LvUserRole); }
private void ModifyOperationActionRole() { SettingHelp.MoidfyListByCondition(LvUserRole, UserOperationDAL.AddUserGroupRole, UserOperationDAL.DeleteUserGroupRole, ExistUserRoleList, null, Id); }
private void ModifyGroupRoleList() { SettingHelp.MoidfyListByCondition(LvGroupRole, UserOperationDAL.AddUserGroupRole, UserOperationDAL.DeleteUserGroupRole, ExistRoleInfoList, Id); }
private void ModifyUserNameList() { SettingHelp.MoidfyListByCondition(LvUserName, UserOperationDAL.AddUserInUserGroup, UserOperationDAL.DeleteUserInUserGroup, ExistUserInfoList, null, Id); }
private void BtnRemoveUserClick(object sender, RoutedEventArgs e) { SettingHelp.RemoveItemByCondition <UserInfoModel>(LvUserName); }
private void AddRelationList() { SettingHelp.AddRelationByCondition <UserGroupModel>(LvUserGroupName, UserOperationDAL.AddUserInUserGroup, Id); SettingHelp.AddRelationByCondition <RoleInfoModel>(LvUserRole, UserOperationDAL.AddUserRole, Id); }
private void BtnRemoveActionClick(object sender, RoutedEventArgs e) { SettingHelp.RemoveItemByCondition <OperationActionInfoModel>(LvActionName); }
private void ModifyActionList() { SettingHelp.MoidfyListByCondition(LvActionName, UserOperationDAL.AddOperationActionInRole, UserOperationDAL.DeleteOperationActionInRole, ExistActionInfoList, null, Id); }