You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.7 KiB
C#

2 months ago
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2024 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* SlnMesnac.RfidUpload.UI.converter
* 3fd2eb4e-171c-4cdf-bf6b-32b193bf36aa
*
* WenJY
*
* 2024-10-29 15:35:53
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace SlnMesnac.RfidUpload.UI.converter
{
public class WorkModelParamConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is int param)
{
return param switch
{
1 month ago
1 => "新容器入库",
2 => "容器封发-按调拨单",
2 months ago
3 => "库存容器封发配发" ,
4 => "卸车容器封发配发",
5 => "关闭",
1 month ago
-1 => "出现错误",
2 months ago
_ => "未知工作模式"
};
}
return "未知";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}