2024-05-20 12:28:55 +08:00
|
|
|
|
using CeramicProjectTool.Model;
|
|
|
|
|
using CeramicProjectTool.Util;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace CeramicProjectTool.ViewModel
|
|
|
|
|
{
|
|
|
|
|
public class PermissonConfigViewModel : INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
|
|
|
|
public void OnPropertyChanged(string propertyName)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Task<List<PermissonModel>> GetPermissons()
|
|
|
|
|
{
|
|
|
|
|
var result = DBHelper.GetPermissons();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2024-05-21 11:47:05 +08:00
|
|
|
|
public Task<List<PermissonModel>> GetPermissons(string searchText)
|
|
|
|
|
{
|
|
|
|
|
var result = DBHelper.GetPermissonsByModule(searchText);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2024-05-20 12:28:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|