GlobalInfo.cs 725 B

123456789101112131415161718192021222324252627
  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 long? CompanyId { get; set; }
  13. public static string lang { get; set; }
  14. public string Token { get; set; }
  15. public void SetValues(string UserName, string UserId, long? CompanyId, string token, string lang)
  16. {
  17. this.UserName = UserName;
  18. this.UserId = UserId;
  19. this.CompanyId = CompanyId;
  20. GlobalInfo.lang = lang;
  21. this.Token = token;
  22. }
  23. }
  24. }