xxe преди 2 години
родител
ревизия
4125636751
променени са 2 файла, в които са добавени 15 реда и са изтрити 4 реда
  1. +13
    -2
      HKCardOUT/ViewModels/AdWindowViewModel.cs
  2. +2
    -2
      HKCardOUT/Views/AdWindow.xaml.cs

+ 13
- 2
HKCardOUT/ViewModels/AdWindowViewModel.cs Целия файл

@@ -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 Целия файл

@@ -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(() =>


Зареждане…
Отказ
Запис