x
This commit is contained in:
@@ -6,6 +6,7 @@ using Gatedge.ScanCode.Models.K3Request.SaveModel;
|
||||
using Gatedge.ScanCode.Models.Vo;
|
||||
using Gatedge.ScanCode.Services.IServices;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.ScanCode.Services
|
||||
{
|
||||
@@ -89,7 +90,7 @@ namespace Gatedge.ScanCode.Services
|
||||
billPush.TargetFormId = _TargetFormId; // 目标单据类型:采购入库单
|
||||
billPush.IsEnableDefaultRule = false; // 不启用默认规则
|
||||
billPush.IsDraftWhenSaveFail = false; // 保存失败,不自动暂存
|
||||
var Params = new Dictionary<string, PushCustomParam>();
|
||||
var paramList = new Dictionary<string, PushCustomParam>();
|
||||
foreach (var item in barEntityList)
|
||||
{
|
||||
var pushCustomParams = new PushCustomParam()
|
||||
@@ -101,9 +102,9 @@ namespace Gatedge.ScanCode.Services
|
||||
FLot_Id = item.FLot_Id ?? 0, // 批号Id
|
||||
FLot_Text = item.FLot_Text ?? string.Empty // 批号文本
|
||||
};
|
||||
Params.Add(item.FSrcEntryId ?? "0", pushCustomParams);
|
||||
paramList.Add(item.FSrcEntryId ?? "0", pushCustomParams);
|
||||
}
|
||||
billPush.CustomParams.Add("PushCustomParams", Params);
|
||||
billPush.CustomParams.Add("PushCustomParams", JsonConvert.SerializeObject(paramList));
|
||||
|
||||
|
||||
// 执行下推
|
||||
|
||||
Reference in New Issue
Block a user