Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
783d5555f2
3 files changed
+9
-9
No files matched your search
@@ -15,7 +15,6 @@ namespace Audit.ConvertMoels
|
||||
public class ColorSQLConvert : IValueConverter
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
|
||||
@@ -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 "液体染料";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user