BlLogLogIn.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using ProjectBase.Data.BaseDAL;
  7. using ProjectBase.Data.Encrypt;
  8. using SIMDP.DAL.IDALSQL;
  9. using SIMDP.Model;
  10. namespace SIMDP.BLL
  11. {
  12. public class BlLogLogIn : BaseBLL<MoLogLogIn>
  13. {
  14. private IDalLogLogIn dalLogLogIn;
  15. /// <summary>
  16. /// 构造函数
  17. /// </summary>
  18. public BlLogLogIn() : base()
  19. {
  20. base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
  21. dalLogLogIn = baseDal as IDalLogLogIn;
  22. }
  23. /// <summary>
  24. /// 获取组织ID与组织名称的集合
  25. /// </summary>
  26. /// <returns></returns>
  27. public Dictionary<string, string> GetGroupName()
  28. {
  29. Dictionary<string, string> dic = new Dictionary<string, string>();
  30. //BlAuthoryGroup bl = new BlAuthoryGroup();
  31. List<MoAuthoryGroup> group = BLLFactory<BlAuthoryGroup>.Instance.GetAll();
  32. if (group.Count == 0 || group == null)
  33. {
  34. return null;
  35. }
  36. foreach (MoAuthoryGroup item in group)
  37. {
  38. dic.Add(item.GroupId,item.GroupName);
  39. }
  40. return dic;
  41. }
  42. }
  43. }