Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
ee4118c361
5 files changed
+18
-14
No files matched your search
@@ -8,18 +8,22 @@ using System.Windows.Data;
|
||||
|
||||
namespace Audit.ConvertMoels
|
||||
{
|
||||
/// <summary>
|
||||
/// 零值标红转换器
|
||||
/// DispenseGrams为零的单元格文本标红返回
|
||||
/// </summary>
|
||||
internal class GramsSQLConvert : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
string G = value.ToString();
|
||||
if (G == "0")
|
||||
if (G == "0")//判断单元格值是否为零
|
||||
{
|
||||
return "red";
|
||||
return "red";//零返回红色
|
||||
}
|
||||
else
|
||||
{
|
||||
return "black";
|
||||
return "black";//非零返回黑色
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user