using Muchinfo.MTPClient.Data.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Data; namespace Muchinfo.MTPClient.Infrastructure.Converters { /// /// 提货查询- /// public class eAuditStatusToVisibityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var result = Visibility.Hidden; if (value != null) { switch ((eAuditStatus)value) { //可撤销的状态 case eAuditStatus.AUDITSTATUS_CHECKING: result = Visibility.Visible; break; default: result = Visibility.Hidden; break; } } return result; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }