Constants.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. namespace TimedUpload
  7. {
  8. public static class Constants
  9. {
  10. public static string MiddleTable = "if_yc_rawdata";
  11. public static string UploadDB = "";
  12. public static string DBUrlNb = "";
  13. public static string DBUrl = ConfigurationManager.AppSettings["DbConncetion_NB"];
  14. public static string ticketUrl = ConfigurationManager.AppSettings["ticketUrl"];
  15. public static string uploadUrl = ConfigurationManager.AppSettings["uploadUrl"];
  16. public static string logincode = ConfigurationManager.AppSettings["logincode"];
  17. public static string password = ConfigurationManager.AppSettings["password"];
  18. public static string clientid = ConfigurationManager.AppSettings["clientid"];
  19. public static string clientsecret = ConfigurationManager.AppSettings["clientsecret"];
  20. public static string xaAppId = ConfigurationManager.AppSettings["xaAppId"];
  21. public static string xaAppSecret = ConfigurationManager.AppSettings["xaAppSecret"];
  22. public static string ticketxaApiSecret = ConfigurationManager.AppSettings["ticketxaApiSecret"];
  23. public static string uploadxaApiSecret = ConfigurationManager.AppSettings["uploadxaApiSecret"];
  24. public static string xaEnvironment = ConfigurationManager.AppSettings["xaEnvironment"];
  25. public static string CONCENTRATOR_ADDR = ConfigurationManager.AppSettings["CONCENTRATOR_ADDR"];
  26. public static string FACTORYCODE = ConfigurationManager.AppSettings["FACTORYCODE"];
  27. //ComPanyId
  28. public static string ComPanyId = ConfigurationManager.AppSettings["ComPanyId"];
  29. //passWord
  30. public static string passWord = ConfigurationManager.AppSettings["passWord"];
  31. //Company_Name
  32. public static string str_Company_Name = ConfigurationManager.AppSettings["Company_Name"];
  33. //8888888888
  34. public static string conCode = ConfigurationManager.AppSettings["conCode"];
  35. // AppId
  36. public static string AppId = ConfigurationManager.AppSettings["AppId"];
  37. // appSecret
  38. public static string appSecret = ConfigurationManager.AppSettings["appSecret"];
  39. // 上报接口
  40. public static string newUrl = ConfigurationManager.AppSettings["newUrl"];
  41. // 查询时间
  42. public static string uploadTime = ConfigurationManager.AppSettings["uploadTime"];
  43. public static string loraUploadTime = ConfigurationManager.AppSettings["loraUploadTime"];
  44. public static string SongZiLoraDB = ConfigurationManager.AppSettings["SongZiLoraDB"];
  45. }
  46. }