xxe 2 lat temu
rodzic
commit
4125636751
2 zmienionych plików z 15 dodań i 4 usunięć
  1. +13
    -2
      HKCardOUT/ViewModels/AdWindowViewModel.cs
  2. +2
    -2
      HKCardOUT/Views/AdWindow.xaml.cs

+ 13
- 2
HKCardOUT/ViewModels/AdWindowViewModel.cs Wyświetl plik

@@ -63,9 +63,20 @@ namespace HKCardOUT.ViewModels
ThreadManage.GetInstance().StartLong(() =>
{
var model = (new HKCore()).PullDaySaleLog(BindScreen);
if (BindScreen[1] == 6)
LAdInfo.Gate = $"1号档口";
if (BindScreen[1] == 4)
LAdInfo.Gate = $"3号档口";
if (BindScreen[1] == 2)
LAdInfo.Gate = $"5号档口";

if (BindScreen[0] == 5)
RAdinfo.Gate = $"2号档口";
if (BindScreen[0] == 3)
RAdinfo.Gate = $"4号档口";
if (BindScreen[0] == 1)
RAdinfo.Gate = $"6号档口";

LAdInfo.Gate = $"{BindScreen[1]}号档口";
RAdinfo.Gate = $"{BindScreen[0]}号档口";
LAdInfo.Count = model.Where(t => t.Key == $"{BindScreen[1]}").FirstOrDefault().Value;
RAdinfo.Count = model.Where(t => t.Key == $"{BindScreen[0]}").FirstOrDefault().Value;
if (Main.GetInstance.GetIsConnect(BindScreen[1]))


+ 2
- 2
HKCardOUT/Views/AdWindow.xaml.cs Wyświetl plik

@@ -43,9 +43,9 @@ namespace HKCardOUT.Views
if (BindScreen != -1)
{
int[] NotchNum = new int[2];
if (bindScreen == 0) { NotchNum[0] = 1; NotchNum[1] = 2; }
if (bindScreen == 0) { NotchNum[0] = 5; NotchNum[1] = 6; }
if (bindScreen == 1) { NotchNum[0] = 3; NotchNum[1] = 4; }
if (bindScreen == 2) { NotchNum[0] = 5; NotchNum[1] = 6; }
if (bindScreen == 2) { NotchNum[0] = 1; NotchNum[1] = 2; }
(this.DataContext as AdWindowViewModel).InitData(NotchNum);

ThreadManage.GetInstance().StartLong(new Action(() =>


Ładowanie…
Anuluj
Zapisz