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