controllo errore prima di tutto

This commit is contained in:
zaccaria.majid
2023-05-12 13:14:41 +02:00
parent 1029d8522c
commit 6b9b5cc8fc
2 changed files with 37 additions and 40 deletions
@@ -182,18 +182,29 @@ namespace WebDoorCreator.UI.Pages
// verifica che sia la MIA porta e quindi devo proseguire...
if (doorSvgVers.StartsWith($"{idDoor}.") || doorSvgVers.StartsWith($"{idDoor}:"))
{
// fix ./:
if (doorSvgVers.Contains("."))
{
doorSvgVers = doorSvgVers.Replace(".", ":");
}
//cerco su redis la porta in oggetto
DoorSvgContent = await QDataServ.DoorSvgGet(doorSvgVers);
if (string.IsNullOrEmpty(DoorSvgContent))
// fix ./:
var tryGetErr = await QDataServ.DoorErrGet(doorSvgVers);
if (tryGetErr != null)
{
IsErr = true;
ErrCode = await QDataServ.DoorErrGet(doorSvgVers);
ErrCode = tryGetErr;
}
else
{
DoorSvgContent = await QDataServ.DoorSvgGet(doorSvgVers);
}
//cerco su redis la porta in oggetto
//if (string.IsNullOrEmpty(DoorSvgContent))
//{
//}
await Task.Run(async () => await InvokeAsync(StateHasChanged));
}
}
+21 -35
View File
@@ -15,10 +15,10 @@ order:
date: 2023-12-05T00:00:00.0000000
piece: DO_1
size:
width: 30
height: 100
thickness: 2
swing: LHRI
width: 50
height: 50
thickness: 1.75
swing: LHI
secure: UP
material: wood
profiles:
@@ -28,7 +28,7 @@ profiles:
overmaterial: 0.1
hingeedge:
type: SQ
machining: OFF
machining: ON
overmaterial: 0.1
top:
type: SQ
@@ -36,40 +36,26 @@ profiles:
overmaterial: 0.1
bottom:
type: SQ
machining: OFF
machining: ON
overmaterial: 0.1
hardware:
vision_cut_outs:
- shape: Generic\Circle
radius: 8.5
center_from_top: 40
center_from_lock: 0
door_center: center
- shape: Generic\Circle
radius: 10
center_from_top: 60
center_from_lock: 0
louver_cut_outs:
- shape: Generic\Rect
length: 10.0000
width: 18.8125
bottom_rail: 8.0
lock_stile: 0.0
door_center: center
hinges:
- template: Generic Conceiled\StdConHingeDeepR
ToptoCL: 10
back_set: 0.125
thickness: 0.25
- template: Generic Conceiled\StdConHingeDeepR
ToptoCL: 50
back_set: 0.125
thickness: 0.25
- template: Generic Conceiled\StdConHingeDeepR
ToptoCL: 80
back_set: 0.125
thickness: 0.25
strikes:
- template: Generic\StdFaceStrike
position: 57.875
back_set: 2.75
offset_WS: 0.0
face_decoration:
- template: General\Decor_C
type: lines
depth: 0.0625
topdistance: 5.0
bottomdistance: 7.0
lockstiledistance: 4.0
hingestiledistance: 4.0
face: secure
---