CurentApplicationSettings.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace DefaultEdit.Model
  7. {
  8. public class CurentApplicationSettings
  9. {
  10. /// <summary>
  11. /// 小票打印机的名称(最好写在配置文件内,方便维护)
  12. /// </summary>
  13. private string _PrinterName = "";
  14. /// <summary>
  15. /// MES地址(最好写在配置文件内,方便维护)
  16. /// </summary>
  17. private string _Url = "https://mes2-web.sw.eainc.com/mes2/rest/";
  18. /// <summary>
  19. /// 设备编号(最好写在配置文件内,方便维护)
  20. /// </summary>
  21. private string _DeviceId = "EA-P-2590";
  22. private string _PlcIP="127.0.0.1";
  23. public string PrinterName { get => _PrinterName; set => _PrinterName = value; }
  24. public string Url { get => _Url; set => _Url = value; }
  25. public string DeviceId { get => _DeviceId; set => _DeviceId = value ; }
  26. public string PlcIP { get => _PlcIP; set => _PlcIP = value ; }
  27. }
  28. }