using BPASmartClient.CustomResource.Pages.Model;
using BPASmartClient.CustomResource.Pages.View;
using BPASmartClient.Helper;
using BPASmartClient.Model;
using Microsoft.Toolkit.Mvvm.ComponentModel;
using Microsoft.Toolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace BPASmartClient.CustomResource.Pages.ViewModel
{
public class UserConfigViewModel:ObservableObject
{
///
/// 页面列表集合
///
public ObservableCollection pageTreeViewModels { get; set; } = new ObservableCollection();
///
/// 已选择页面
///
public ObservableCollection SelectePage { get; set; } = new ObservableCollection();
///
/// 本地原料集合
///
public ObservableCollection LoaclMaterails { get; set; } = Json.Data.LocalMaterails;
///
/// 设备原料集合
///
public ObservableCollection DeviceMaterails { get; set; } = Global.DeviceRawMaterials;
///
/// 用户本地原料权限
///
public ObservableCollection UserLoaclMaterails { get; set; } = new ObservableCollection();
///
/// 用户设备原料权限
///
public ObservableCollection UserDeviceMaterails { get; set; } = new ObservableCollection();
///
/// 切换本地和设备原料权限
///
public bool IsChecked { get { return _isChecked; } set { _isChecked = value;OnPropertyChanged(); } }
private bool _isChecked = true;
///
/// 用户名
///
public string UserName { get { return _username; } set { _username = value; OnPropertyChanged(); } }
private string _username;
///
/// 本地原料权限显示
///
public Visibility VisibilityLocal { get { return _visibilityLocal; } set { _visibilityLocal = value; OnPropertyChanged(); } }
private Visibility _visibilityLocal = Visibility.Visible;
///
/// 设备原料权限显示
///
public Visibility VisibilityDevice { get { return _visibilityDevice; } set { _visibilityDevice = value; OnPropertyChanged(); } }
private Visibility _visibilityDevice = Visibility.Collapsed;
public RelayCommand