终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.6 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BPA.Helper;
  7. using System.Collections.ObjectModel;
  8. using BPASmartClient.JXJFoodSmallStation.Model;
  9. using BPA.Helper;
  10. using BPASmartClient.CustomResource.UserControls.MessageShow;
  11. using BPASmartClient.CustomResource.UserControls;
  12. using System.Diagnostics;
  13. using BPASmartClient.JXJFoodSmallStation.Model.WindSend;
  14. using System.Threading;
  15. using BPASmartClient.CustomResource.Pages.Model;
  16. namespace BPASmartClient.JXJFoodSmallStation.ViewModel
  17. {
  18. public class WindSendParViewModel : NotifyBase
  19. {
  20. public WindSendParViewModel()
  21. {
  22. if (WindSendRawMaterial.Count == 0)
  23. {
  24. WindSendRawMaterial.Clear();
  25. for (int i = 0; i < 5; i++)
  26. {
  27. WindSendRawMaterial.Add(new WindSendRawMaterial()
  28. {
  29. Location = i + 1,
  30. });
  31. }
  32. }
  33. SaveRawMaterialPara = new BPARelayCommand(() =>
  34. {
  35. Json<DevicePar>.Save();
  36. NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"风送料仓原料信息参数保存成功!");
  37. MessageNotify.GetInstance.ShowUserLog("风送料仓原料信息参数保存成功。");
  38. });
  39. }
  40. public ObservableCollection<WindSendRawMaterial> WindSendRawMaterial => Json<DevicePar>.Data.windSendRawMaterial;
  41. public BPARelayCommand SaveRawMaterialPara { get; set; }
  42. }
  43. }