Browse Source

测试修改

Lishi
xxe 2 years ago
parent
commit
72a765e516
3 changed files with 31 additions and 4 deletions
  1. +26
    -1
      HKCardOUT/Logic/RemoteService.cs
  2. +3
    -3
      HKCardOUT/Views/AdWindow.xaml.cs
  3. +2
    -0
      HKControl/Main.cs

+ 26
- 1
HKCardOUT/Logic/RemoteService.cs View File

@@ -147,14 +147,39 @@ namespace HKCardOUT.Logic
{ {
GateFood = new List<SubFoodDto>() GateFood = new List<SubFoodDto>()
}; };
//5号档口和6号档口显示的菜品
SubFoodDto dto1 = new SubFoodDto SubFoodDto dto1 = new SubFoodDto
{ {
GateId = "2edbe98d-019c-4c3c-87d8-6876aa866233", GateId = "2edbe98d-019c-4c3c-87d8-6876aa866233",
Foods = new List<string> { Foods = new List<string> {
"红烧狮子头","蒜苔肉丝","回锅肉","泥白肉","炒白菜","炒茄子"
"红烧狮子头","蒜苔肉丝","回锅肉","泥白肉","炒白菜","炒茄子"
} }
}; };
dtos.GateFood.Add(dto1); dtos.GateFood.Add(dto1);

//3号档口和4号档口显示的菜品
SubFoodDto dto12 = new SubFoodDto
{
GateId = "6ff37c6a-5151-4032-8eca-073a0a900090",
Foods = new List<string> {
"红烧狮子头","蒜苔肉丝","回锅肉","蒜泥白肉","炒白菜","炒茄子"
}
};
dtos.GateFood.Add(dto12);

//5号档口和6号档口显示的菜品
SubFoodDto dto123 = new SubFoodDto
{
GateId = "39eb5b22-98b4-46f6-9c7e-5f0d3bc61058",
Foods = new List<string> {
"红烧狮子头","蒜苔肉丝","回锅肉","蒜泥白肉","炒白菜","炒茄子"
}
};
dtos.GateFood.Add(dto123);

//6ff37c6a-5151-4032-8eca-073a0a900090
//6ff37c6a-5151-4032-8eca-073a0a900090
//dtos.GateFood.Add(dto1);
DataBus.Menu = dtos; DataBus.Menu = dtos;
} }
public static void GetRangeCtrl() public static void GetRangeCtrl()


+ 3
- 3
HKCardOUT/Views/AdWindow.xaml.cs View File

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


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


+ 2
- 0
HKControl/Main.cs View File

@@ -25,6 +25,7 @@ namespace HKControl
/// <returns></returns> /// <returns></returns>
public bool GetIsSwipe(int CarNum) public bool GetIsSwipe(int CarNum)
{ {
if (!DataModels.ContainsKey(CarNum)) return false;
switch (CarNum) switch (CarNum)
{ {
case 1: case 1:
@@ -52,6 +53,7 @@ namespace HKControl
/// <returns></returns> /// <returns></returns>
public bool GetIsComplete(int CarNum) public bool GetIsComplete(int CarNum)
{ {
if (!DataModels.ContainsKey(CarNum)) return false;
switch (CarNum) switch (CarNum)
{ {
case 1: case 1:


Loading…
Cancel
Save