|
|
@@ -2,10 +2,14 @@ |
|
|
|
using BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto; |
|
|
|
using BPA.SAAS.Manage.Application.AExternalPlatform.Enum; |
|
|
|
using BPA.SAAS.Manage.Application.AExternalPlatform.Service.Bom.Dtos; |
|
|
|
using BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Dtos; |
|
|
|
using BPA.SAAS.Manage.Application.AExternalPlatform.Service.ThirdpartyPush.Dtos; |
|
|
|
using BPA.SAAS.Manage.Application.DataBase.Dtos.Bom; |
|
|
|
using BPA.SAAS.Manage.Core.Base; |
|
|
|
using BPA.SAAS.Manage.Core.DataBase; |
|
|
|
using BPA.SAAS.Manage.Core.Device; |
|
|
|
using Microsoft.AspNetCore.Components.Forms; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using NPOI.XWPF.UserModel; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
@@ -101,6 +105,38 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Bom.Services |
|
|
|
await SqlSugarDb.Db.Insertable(BomTypelist).ExecuteCommandAsync(); |
|
|
|
await SqlSugarDb.Db.Insertable(BomTypeInfolist).ExecuteCommandAsync(); |
|
|
|
SqlSugarDb.Db.CommitTran(); |
|
|
|
#region 下发数据到设备 |
|
|
|
|
|
|
|
//var data = new List<PushDataBatchingDto>(); |
|
|
|
//foreach (var item in list) |
|
|
|
//{ |
|
|
|
// data.Add(new PushDataBatchingDto() |
|
|
|
// { |
|
|
|
// Aittribute = item.Aittribute, |
|
|
|
// AutoKey = item.AutoKey, |
|
|
|
// Code = item.Code, |
|
|
|
// ForeignKeyRe = item.ForeignKeyRe, |
|
|
|
// Id = item.Id, |
|
|
|
// Name = item.Batching_Name, |
|
|
|
// netrecovery = item.netrecovery, |
|
|
|
// outstockUint = item.outstockUint, |
|
|
|
// Price = item.Price, |
|
|
|
// proportion = item.proportion, |
|
|
|
// Specs = item.Specs, |
|
|
|
// StockUint = item.StockUint, |
|
|
|
// StockUintName = item.StockUint, |
|
|
|
// TypeID = item.TypeID, |
|
|
|
// }); |
|
|
|
//} |
|
|
|
|
|
|
|
//if (inputDto.IsPush) |
|
|
|
//{ |
|
|
|
// await _thirdpartyPushService.AddPushRecordAndPushDevice<MaterialCreateDto>(inputDto, 2, JsonConvert.SerializeObject(list.Select(x => x.Id).ToList()), |
|
|
|
// JsonConvert.SerializeObject(data)); |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
return true; |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|