You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
using System;
|
|
using System.Windows.Data;
|
|
|
|
/// <summary>
|
|
/// 运行状态变换器
|
|
/// 输入:状态码
|
|
/// 输出:状态文字
|
|
/// </summary>
|
|
namespace Audit.ConvertMoels
|
|
{
|
|
internal class StatenConvert : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
if (value == null)
|
|
{
|
|
return null;
|
|
}
|
|
else
|
|
{
|
|
string Staten = null;
|
|
string i = value.ToString();
|
|
|
|
if (i == "101") Staten = "准备就绪";
|
|
if (i == "102") Staten = "计量输送";
|
|
if (i == "201") Staten = "自动状态";
|
|
if (i == "202") Staten = "转入排队";
|
|
if (i == "203") Staten = "等待命令";
|
|
if (i == "301") Staten = "工单完成";
|
|
if (i == "309") Staten = "输送异常";
|
|
|
|
return Staten;
|
|
}
|
|
}
|
|
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
}
|
|
}
|
|
|