Const.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace EmisTerminal
  6. {
  7. public class Const
  8. {
  9. public static string LOCAL_SETTING_EMIS_URL
  10. {
  11. get
  12. {
  13. try
  14. {
  15. return System.Configuration.ConfigurationManager.AppSettings["EMISUrl"];
  16. }
  17. catch (Exception ex)
  18. {
  19. string e = ex.ToString();
  20. return "";
  21. }
  22. }
  23. }
  24. public static string LOCAL_SETTING_REPORT_URL
  25. {
  26. get
  27. {
  28. try
  29. {
  30. return System.Configuration.ConfigurationManager.AppSettings["EMISReportUrl"];
  31. }
  32. catch (Exception ex)
  33. {
  34. string e = ex.ToString();
  35. return "";
  36. }
  37. }
  38. }
  39. public static string LOCAL_SETTING_REPORT_USER_NAME
  40. {
  41. get
  42. {
  43. try
  44. {
  45. return System.Configuration.ConfigurationManager.AppSettings["EMISReportUser"];
  46. }
  47. catch (Exception ex)
  48. {
  49. string e = ex.ToString();
  50. return "";
  51. }
  52. }
  53. }
  54. public static string LOCAL_SETTING_REPORT_PASSWORD
  55. {
  56. get
  57. {
  58. try
  59. {
  60. return System.Configuration.ConfigurationManager.AppSettings["EMISReportPass"];
  61. }
  62. catch (Exception ex)
  63. {
  64. string e = ex.ToString();
  65. return "";
  66. }
  67. }
  68. }
  69. public static string NATCA_PASSWORD
  70. {
  71. get
  72. {
  73. try
  74. {
  75. return System.Configuration.ConfigurationManager.AppSettings["NETCAPwd"];
  76. }
  77. catch (Exception ex)
  78. {
  79. string e = ex.ToString();
  80. return "";
  81. }
  82. }
  83. }
  84. }
  85. }