EPDViewModel.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 MECF.Framework.Common.DataCenter;
  12. using OpenSEMI.ClientBase;
  13. using OpenSEMI.ClientBase.IO;
  14. using ExcelLibrary.SpreadSheet;
  15. using MECF.Framework.Common.OperationCenter;
  16. using Aitex.Core.Util;
  17. using Aitex.Core.Common.DeviceData;
  18. using Aitex.Core.RT.SCCore;
  19. using MECF.Framework.UI.Client.ClientBase;
  20. using EfemDualUI.Views.PMs;
  21. namespace EfemDualUI.Views.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. }