SfisConfig.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. namespace TeamAAS_VP.Core.Sfis
  3. {
  4. public class SfisConfig
  5. {
  6. public bool Enabled { get; set; }
  7. public bool DryRun { get; set; }
  8. public string ServiceUrl { get; set; }
  9. public string SoapNamespace { get; set; } = "http://tempuri.org/";
  10. public string ProgramId { get; set; }
  11. public string ProgramPassword { get; set; }
  12. public string Device { get; set; }
  13. public string OperatorId { get; set; }
  14. public string OperatorPassword { get; set; }
  15. public string TspName { get; set; }
  16. public bool PassEnabled { get; set; } = true;
  17. public bool UploadEnabled { get; set; }
  18. public int CheckRouteType { get; set; } = 1;
  19. public string GetVersionType { get; set; } = "1";
  20. public string GetVersionChkData { get; set; }
  21. public string GetVersionChkData2 { get; set; }
  22. public int ResultStatus { get; set; } = 1;
  23. public string InputDataPassType { get; set; } = "EF-MO_WEB";
  24. public string InputDataAoiLocTag { get; set; } = "EF-AOILOC-0";
  25. public int InputDataType { get; set; } = 1;
  26. public string DefaultMoNumber { get; set; }
  27. public int TimeoutMs { get; set; } = 30000;
  28. public bool AutoLogin { get; set; } = true;
  29. public bool AutoLogoutOnExit { get; set; } = true;
  30. public bool UseDryRun()
  31. {
  32. return DryRun || string.IsNullOrWhiteSpace(ServiceUrl);
  33. }
  34. }
  35. }