GlobalInfo.cs 776 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MTWorkHR.Core.Global
  7. {
  8. public class GlobalInfo
  9. {
  10. public string UserName { get; set; }
  11. public string UserId { get; set; }
  12. public UserTypeEnum UserType { get; set; }
  13. public long? CompanyId { get; set; }
  14. public static string lang { get; set; }
  15. public string Token { get; set; }
  16. public void SetValues(string UserName, string UserId, long? CompanyId, string token, string lang)
  17. {
  18. this.UserName = UserName;
  19. this.UserId = UserId;
  20. this.CompanyId = CompanyId;
  21. GlobalInfo.lang = lang;
  22. this.Token = token;
  23. }
  24. }
  25. }