- Correzione per eliminazione inglesina

- Correzione associazione famiglia hardware
This commit is contained in:
Annamaria Sassi
2026-04-29 10:19:54 +02:00
parent 8f0b54e30f
commit 396cecf492
4 changed files with 35 additions and 19 deletions
+9 -3
View File
@@ -1351,10 +1351,16 @@ namespace WebWindowComplex
for (int i = 0; i < SashGroupList.Count; i++)
{
if ((string.IsNullOrEmpty(SashGroupList.ElementAt(i).SelFamilyHardware)) &&
prevHardware != null && prevHardware.Count > 0 &&
SashGroupList.ElementAt(i).nSashQty == prevHardware.ElementAt(i).SashQty)
prevHardware != null && prevHardware.Count > 0)
{
SashGroupList.ElementAt(i).SetSelFamilyHardwareFromIndex(prevHardware.ElementAt(i).Id);
if(i >= prevHardware.Count)
{
SashGroupList.ElementAt(i).SetSelFamilyHardwareFromIndex(prevHardware.FirstOrDefault()!.Id);
}
else if(SashGroupList.ElementAt(i).nSashQty == prevHardware.ElementAt(i).SashQty)
{
SashGroupList.ElementAt(i).SetSelFamilyHardwareFromIndex(prevHardware.ElementAt(i).Id);
}
}
else if (prevHardware != null &&
(!string.IsNullOrEmpty(SashGroupList.ElementAt(i).SelFamilyHardware) || SashGroupList.ElementAt(i).SelHardware != null || SashGroupList.ElementAt(i).SelHardware.Id != "000000"))