This commit is contained in:
sc committed 2022-03-02 23:53:02 +08:00
commit 2b53ef901e
3 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ namespace Audit.ConvertMoels
if (value != null)
{
string colorValue = string.Format("{0:X6}", value);//十进制RGB数值转十六进制六位RGB并补0位例“C0C0C0”
//string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)
/*string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)*/
string StuffColor_B = colorValue.Substring(0, 2);//获取蓝色参数
string StuffColor_G = colorValue.Substring(2, 2);//获取绿色参数
string StuffColor_R = colorValue.Substring(4, 2);//获取红色参数
@@ -31,7 +31,7 @@ namespace Audit.ConvertMoels
}
else
{
return null;//返回白色RGB数值
return null;//返回空
}
}
/// <summary>
+1 -1
View File
@@ -19,7 +19,7 @@ namespace Audit.ConvertMoels
/// </summary>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if ((int)value == 0)
if ((int)value == 0)//类型0:染料,1:助剂,2:粉体助剂,3:液体染料,其它:未知
{
return "染料";
}