步步为盈
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.

23 lines
660 B

3 years ago
using System;
using System.Globalization;
using System.Windows.Data;
namespace BBWY.Client.Converters
{
public class WaybillNoConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return string.Empty;
var waybillNo = value.ToString();
return waybillNo.Equals("-10000") ? "厂家自送" : waybillNo;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}