diff --git a/ConvertMoels/GramsSQLConvert.cs b/ConvertMoels/GramsSQLConvert.cs index a4e0087..937b437 100644 --- a/ConvertMoels/GramsSQLConvert.cs +++ b/ConvertMoels/GramsSQLConvert.cs @@ -16,7 +16,7 @@ namespace Audit.ConvertMoels { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { - string G = value.ToString(); + string G = System.Convert.ToString(value); if (G == "0")//判断单元格值是否为零 { return "red";//零返回红色