|
|
|
@ -15,29 +15,29 @@ namespace Audit.ConvertMoels |
|
|
|
internal class ProductTypeSQLConvert : IValueConverter |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
if ((int)value == 0)//类型0:染料,1:助剂,2:粉体助剂,3:液体染料,其它:未知
|
|
|
|
string ProductType = System.Convert.ToString(value); |
|
|
|
if (ProductType == "0")//类型0:染料,1:助剂,2:粉体助剂,3:液体染料,其它:未知
|
|
|
|
{ |
|
|
|
return "染料"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if ((int)value == 1) |
|
|
|
if (ProductType == "1") |
|
|
|
{ |
|
|
|
return "助剂"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if ((int)value == 2) |
|
|
|
if (ProductType == "2") |
|
|
|
{ |
|
|
|
return "粉体助剂"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if ((int)value == 3) |
|
|
|
if (ProductType == "3") |
|
|
|
{ |
|
|
|
return "液体染料"; |
|
|
|
} |
|
|
|
|