This commit is contained in:
sc authored and 忱 沈 committed 2022-03-09 22:51:03 +08:00
commit 676cc0cdb7
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ namespace Audit.ConvertMoels
{ {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{ {
string G = value.ToString(); string G = System.Convert.ToString(value);
if (G == "0")//判断单元格值是否为零 if (G == "0")//判断单元格值是否为零
{ {
return "red";//零返回红色 return "red";//零返回红色