This commit is contained in:
PastSaid
2024-03-18 11:42:45 +08:00
parent 08d8878eef
commit c31957eb64
56 changed files with 1485 additions and 123 deletions

View File

@@ -30,8 +30,8 @@ namespace EastChanger.STK_Inventory
opResult = new OperationResult();
var fidList = list.Select(x => x.PrimaryKeyValue).Distinct().ToList();
STKInventoryService service = new STKInventoryService(this.Context);
service.HandleSyncData(fidList, opResult);
ISynchonService service = new STKInventoryService(this.Context);
service.HandleSyncData(fidList, opResult, 0);
if (opResult.OperateResult.Any())
this.View.ShowOperateResult(opResult.OperateResult);

View File

@@ -18,9 +18,8 @@ namespace EastChanger.STK_Inventory
/// </summary>
public class STKInventoryService : BaseService, ISynchonService
{
public STKInventoryService(Context context) : base(context, "supvWarehouse.save", "即时库存明细")
public STKInventoryService(Context context) : base(context, 1)
{
}
public string ModuleCnName => _moduleCnName;
@@ -30,7 +29,8 @@ namespace EastChanger.STK_Inventory
/// </summary>
/// <param name="idList"></param>
/// <param name="opResult"></param>
public void HandleSyncData(List<string> idList, IOperationResult opResult)
/// <param name="action"></param>
public void HandleSyncData(List<string> idList, IOperationResult opResult, int action)
{
var declInfos = GetDeclInfos();
var headSql = @"