Browse Source

位置

Lishi
xxe 2 years ago
parent
commit
894caf907a
3 changed files with 11 additions and 11 deletions
  1. +3
    -3
      HKCardOUT/Converter/TextForegroundConvert.cs
  2. +2
    -2
      HKCardOUT/HKCardOUT.csproj
  3. +6
    -6
      HKCardOUT/ViewModels/AdWindowViewModel.cs

+ 3
- 3
HKCardOUT/Converter/TextForegroundConvert.cs View File

@@ -13,11 +13,11 @@ namespace Converter
{
if (value != null)
{
if (value.ToString() == "正常")
if (value.ToString().Contains("正常"))
return Brushes.White;
else if (value.ToString() == "异常")
else if (value.ToString().Contains("异常"))
return Brushes.Yellow;
else if (value.ToString() == "未连接")
else if (value.ToString().Contains("未连接"))
return Brushes.Yellow;
}
return default;


+ 2
- 2
HKCardOUT/HKCardOUT.csproj View File

@@ -14,9 +14,9 @@
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>
<PropertyGroup>
<!--<PropertyGroup>
<ApplicationManifest>App.manifest</ApplicationManifest>
</PropertyGroup>
</PropertyGroup>-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;Core</DefineConstants>
</PropertyGroup>


+ 6
- 6
HKCardOUT/ViewModels/AdWindowViewModel.cs View File

@@ -71,14 +71,14 @@ namespace HKCardOUT.ViewModels
LAdInfo.Count = model.Where(t => t.Key == "4" || t.Key == "5" || t.Key == "6").Sum(t => t.Value);
RAdinfo.Count = model.Where(t => t.Key == "1" || t.Key == "2" || t.Key == "3").Sum(t => t.Value);
StringBuilder sb1 = new StringBuilder();
sb1.Append(!Main.GetInstance.GetIsConnect(4) ? "4号未连接" : (Main.GetInstance.GetIsSwipe(4) ? "4号正常" : "4号异常"));
sb1.Append(!Main.GetInstance.GetIsConnect(5) ? "5号未连接" : (Main.GetInstance.GetIsSwipe(5) ? "5号正常" : "5号异常"));
sb1.Append(!Main.GetInstance.GetIsConnect(6) ? "6号未连接" : (Main.GetInstance.GetIsSwipe(6) ? "6号正常" : "6号异常"));
sb1.Append((!Main.GetInstance.GetIsConnect(4) ? "4号未连接" : (Main.GetInstance.GetIsSwipe(4) ? "4号正常" : "4号异常")+"\r"));
sb1.Append((!Main.GetInstance.GetIsConnect(5) ? "5号未连接" : (Main.GetInstance.GetIsSwipe(5) ? "5号正常" : "5号异常")+"\r"));
sb1.Append((!Main.GetInstance.GetIsConnect(6) ? "6号未连接" : (Main.GetInstance.GetIsSwipe(6) ? "6号正常" : "6号异常")+"\r"));
LAdInfo.Msg = sb1.ToString();
StringBuilder sb2 = new StringBuilder();
sb2.Append(!Main.GetInstance.GetIsConnect(1) ? "1号未连接" : (Main.GetInstance.GetIsSwipe(1) ? "1号正常" : "1号异常"));
sb2.Append(!Main.GetInstance.GetIsConnect(2) ? "2号未连接" : (Main.GetInstance.GetIsSwipe(2) ? "2号正常" : "2号异常"));
sb2.Append(!Main.GetInstance.GetIsConnect(3) ? "3号未连接" : (Main.GetInstance.GetIsSwipe(3) ? "3号正常" : "3号异常"));
sb2.Append((!Main.GetInstance.GetIsConnect(1) ? "1号未连接" : (Main.GetInstance.GetIsSwipe(1) ? "1号正常" : "1号异常")+"\r"));
sb2.Append((!Main.GetInstance.GetIsConnect(2) ? "2号未连接" : (Main.GetInstance.GetIsSwipe(2) ? "2号正常" : "2号异常")+"\r"));
sb2.Append((!Main.GetInstance.GetIsConnect(3) ? "3号未连接" : (Main.GetInstance.GetIsSwipe(3) ? "3号正常" : "3号异常")+"\r"));
RAdinfo.Msg = sb2.ToString();

if (DataBus.saleLogDtos.Count > 0)


Loading…
Cancel
Save