终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

RunStatusConvert.cs 870 B

pirms 2 gadiem
1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Data;
  8. namespace BPASmartClient.JXJFoodBigStation.Converter
  9. {
  10. public class RunStatusConvert : IValueConverter
  11. {
  12. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  13. {
  14. if (value is ushort tempValue)
  15. {
  16. if (tempValue == 1) return "等待配料";
  17. if (tempValue == 2) return "配料中";
  18. if (tempValue == 3) return "配料完成";
  19. }
  20. return "等待配料";
  21. }
  22. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  23. {
  24. throw new NotImplementedException();
  25. }
  26. }
  27. }