From 6b9b5cc8fc2d061266d5d0d88584ffe6ae3f0c2b Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Fri, 12 May 2023 13:14:41 +0200 Subject: [PATCH] controllo errore prima di tutto --- .../Pages/DoorDefinition.razor.cs | 21 +++++-- WebDoorCreator.UI/temp/Conf.yaml | 56 +++++++------------ 2 files changed, 37 insertions(+), 40 deletions(-) diff --git a/WebDoorCreator.UI/Pages/DoorDefinition.razor.cs b/WebDoorCreator.UI/Pages/DoorDefinition.razor.cs index 62d3594..90d3fab 100644 --- a/WebDoorCreator.UI/Pages/DoorDefinition.razor.cs +++ b/WebDoorCreator.UI/Pages/DoorDefinition.razor.cs @@ -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)); } } diff --git a/WebDoorCreator.UI/temp/Conf.yaml b/WebDoorCreator.UI/temp/Conf.yaml index 3554fc8..3aa4c6b 100644 --- a/WebDoorCreator.UI/temp/Conf.yaml +++ b/WebDoorCreator.UI/temp/Conf.yaml @@ -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 ---