Merge remote-tracking branch 'gitlab.seriate/DataLayer' into feature/NewWarehouse
This commit is contained in:
@@ -583,16 +583,18 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
List<MaterialDTO> list2merge = commLib.InventoryGet(matKVP.Key);
|
||||
List<MaterialDTO> list2merge = commLib.InventoryGet(matKVP.Value.MatCloudId);
|
||||
// ciclo sui materiali...
|
||||
if (list2merge != null)
|
||||
{
|
||||
numMat2Write += list2merge.Count();
|
||||
foreach (var item in list2merge)
|
||||
{
|
||||
var newId = matDbContr.Insert(MaterialsController.ConvToModel(item));
|
||||
if (newId > 0)
|
||||
var matLocalId = matDbContr.Insert(MaterialsController.ConvToModel(item));
|
||||
if (matLocalId > 0)
|
||||
{
|
||||
// inserisco il materiale locale negli items...
|
||||
item.MatLocalId = matLocalId;
|
||||
numMatOk++;
|
||||
// ora processo 1:1 gli items...
|
||||
foreach (var rawItem in item.ItemList)
|
||||
|
||||
Reference in New Issue
Block a user