EPDViewModel.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.IO;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Windows;
  7. using Aitex.Core.RT.Log;
  8. using Aitex.Core.UI.ControlDataContext;
  9. using Aitex.Core.Utilities;
  10. using Aitex.Sorter.Common;
  11. using VirgoUI.Client.Models.Sys;
  12. using MECF.Framework.Common.DataCenter;
  13. using OpenSEMI.ClientBase;
  14. using OpenSEMI.ClientBase.IO;
  15. using ExcelLibrary.SpreadSheet;
  16. using MECF.Framework.Common.OperationCenter;
  17. using Aitex.Core.Util;
  18. using VirgoCommon;
  19. using Aitex.Core.Common.DeviceData;
  20. using Aitex.Core.RT.SCCore;
  21. namespace VirgoUI.Client.Models.PMs
  22. {
  23. public class EPDViewModel : ModuleUiViewModelBase, ISupportMultipleSystem
  24. {
  25. #region Properties
  26. //private int MenuPermission;
  27. private int _channelIdx = 0;
  28. public int ChannelIdx
  29. {
  30. get => _channelIdx;
  31. set
  32. {
  33. _channelIdx = value;
  34. NotifyOfPropertyChange("ChannelIdx");
  35. }
  36. }
  37. #endregion
  38. public EPDViewModel()
  39. {
  40. }
  41. protected override void OnInitialize()
  42. {
  43. base.OnInitialize();
  44. }
  45. protected override void OnActivate()
  46. {
  47. base.OnActivate();
  48. ChannelIdx = (int)QueryDataClient.Instance.Service.GetConfig($"{SystemName}.EPD.ChannelNumber");
  49. }
  50. }
  51. }