123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Aitex.Core.Account;
- using Aitex.Core.RT.Log;
- using MECF.Framework.Common.Account.Extends;
- using MECF.Framework.UI.Core.Accounts;
- using OpenSEMI.ClientBase;
- using OpenSEMI.ClientBase.ServiceProvider;
- namespace VirgoUI.Client
- {
- public class RoleAccountProvider : IProvider
- {
- private static RoleAccountProvider _Instance = null;
- public static RoleAccountProvider Instance
- {
- get
- {
- if (_Instance == null)
- {
- _Instance = new RoleAccountProvider();
- _Instance.Create();
- }
- return _Instance;
- }
- }
- public void Create()
- {
- }
- public List<AccountEx> GetAccounts()
- {
- return AccountClient.Instance.Service.GetAccounts();
- }
- public bool UpdateAccount(AccountEx p_newAccount)
- {
- return AccountClient.Instance.Service.UpdateAccountEx(p_newAccount);
- }
- public bool DeleteAccount(string p_strUserID)
- {
- return AccountClient.Instance.Service.DeleteAccountEx(p_strUserID);
- }
- public List<Role> GetRoles()
- {
- return AccountClient.Instance.Service.GetRoles();
- }
- public bool UpdateRole(Role p_newRole)
- {
- return AccountClient.Instance.Service.UpdateRole(p_newRole);
- }
- public bool DeleteRole(string p_strRoleID)
- {
- return AccountClient.Instance.Service.DeleteRole(p_strRoleID);
- }
-
- public List<AppMenu> GetMenusByRole(string roleid, List<AppMenu> menulist)
- {
- return AccountClient.Instance.Service.GetMenusByRole(roleid, menulist);
- }
- }
- }
|