|
@@ -31,7 +31,7 @@ namespace HKCardOUT.Logic.Service |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
if (entity.Id!=Guid.Empty) |
|
|
if (entity.Id!=Guid.Empty) |
|
|
{ |
|
|
{ |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Money); |
|
|
|
|
|
|
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
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(); |
|
|
return res; |
|
|
return res; |
|
@@ -44,7 +44,7 @@ namespace HKCardOUT.Logic.Service |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
if (entity.Id!=Guid.Empty) |
|
|
if (entity.Id!=Guid.Empty) |
|
|
{ |
|
|
{ |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Money); |
|
|
|
|
|
|
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
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(); |
|
|
return res; |
|
|
return res; |
|
|