This commit is contained in:
sc committed 2022-03-03 20:13:09 +08:00
commit 783d5555f2
3 files changed
+9 -9

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ namespace Audit.ConvertMoels
public class ColorSQLConvert : IValueConverter
{
/// <summary>
///
/// </summary>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
+6 -6
View File
@@ -14,30 +14,30 @@ namespace Audit.ConvertMoels
/// </summary>
internal class ProductTypeSQLConvert : IValueConverter
{
/// <summary>
///
/// <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 "液体染料";
}