|
@@ -7,6 +7,7 @@ using System.Collections.Generic; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
using UHFHelper; |
|
|
using XExten.Advance.LinqFramework; |
|
|
using XExten.Advance.LinqFramework; |
|
|
|
|
|
|
|
|
namespace HKCardOUT.Logic.Service |
|
|
namespace HKCardOUT.Logic.Service |
|
@@ -56,7 +57,10 @@ namespace HKCardOUT.Logic.Service |
|
|
{ |
|
|
{ |
|
|
//先出餐后推数据 |
|
|
//先出餐后推数据 |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
if (res) |
|
|
if (res) |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
@@ -65,7 +69,10 @@ namespace HKCardOUT.Logic.Service |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -108,7 +115,10 @@ namespace HKCardOUT.Logic.Service |
|
|
{ |
|
|
{ |
|
|
//先出餐后推数据 |
|
|
//先出餐后推数据 |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
if (res) |
|
|
if (res) |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
@@ -117,7 +127,10 @@ namespace HKCardOUT.Logic.Service |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -160,7 +173,10 @@ namespace HKCardOUT.Logic.Service |
|
|
{ |
|
|
{ |
|
|
//先出餐后推数据 |
|
|
//先出餐后推数据 |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
if (res) |
|
|
if (res) |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
|
DbContext.Context.Updateable<SaleLog>().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); |
|
@@ -169,7 +185,10 @@ namespace HKCardOUT.Logic.Service |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
if (DataBus.StartDevice) |
|
|
if (DataBus.StartDevice) |
|
|
|
|
|
{ |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
|
|
|
UHF_RS485_Helper.GetInstance().OpenBeep(input.Location.AsInt()); |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|