| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Resources;
- using System;
- using System.Windows.Data;
- namespace Muchinfo.MTPClient.Infrastructure.Converters
- {
- public class DeliveryOrderStatusToStringConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- string result = string.Empty;
- if (value != null)
- {
- switch ((DeliveryOrderStatus)value)
- {
- case DeliveryOrderStatus.Ordered:
- result = Client_Resource.DeliveryEntructOrderView_CancelOrder;
- break;
- //case DeliveryOrderStatus.AuditRefuse:
- // result = Client_Resource.Infrastructure_WaitingForDelivery;
- // break;
- case DeliveryOrderStatus.Confirmed:
- result = Client_Resource.DeliveryEntructOrderView_Matched;
- break;
- //case DeliveryOrderStatus.Matched:
- // result = Client_Resource.Infrastructure_Settlement;
- // break;
- default:
- result = Client_Resource.DeliveryEntructOrderView_CancelOrder;
- break;
- }
- }
- return result;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|