| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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
- {
- /// <summary>
- /// 提货查询-
- /// </summary>
- 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();
- }
- }
- }
|