From 126e465cb8492a5ca2f8f5ce2a96464590383809 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 17 Dec 2019 17:49:37 +0100 Subject: [PATCH] Update x accettare errori... --- Jenkinsfile | 2 +- NKC_SDK/Objects.cs | 27 +++++++++++++++++++++++++++ NKC_WF/Web.config | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e811465..db028da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=133']) { + withEnv(['NEXT_BUILD_NUMBER=134']) { // env.versionNumber = VersionNumber(versionNumberString : '0.7.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '0.7.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'NKC' diff --git a/NKC_SDK/Objects.cs b/NKC_SDK/Objects.cs index ed00471..2b1d771 100644 --- a/NKC_SDK/Objects.cs +++ b/NKC_SDK/Objects.cs @@ -264,6 +264,10 @@ namespace NKC_SDK /// Tempo STIMATO di taglio calcolato dal Nesting espresso in Secondi /// public double EstimatedWorktime { get; set; } = 0; + /// + /// Elenco errori riscontrati + /// + public List ErrorsList { get; set; } = null; } /// /// Risposta NESTING x la STIMA iniziale @@ -355,6 +359,29 @@ namespace NKC_SDK /// public List SheetList { get; set; } } + /// + /// Oggetto errore da poter rispondere con chiamate x stima/nesting + /// + public class ErrorRep + { + /// + /// DataOra registrazione record + /// + public DateTime DtRif { get; set; } = DateTime.Now; + /// + /// Tipo di errore + /// + public string ErrType { get; set; } = "NA"; + /// + /// Chiave univoca per l'errore + /// es: BatchId.OrderId.Row.PartId... + /// + public string Uid { get; set; } = "A.B.C.D"; + /// + /// Descrizione estesa (human readable) dell'errore + /// + public string Description { get; set; } = ""; + } #endregion diff --git a/NKC_WF/Web.config b/NKC_WF/Web.config index 6572807..e0489f7 100644 --- a/NKC_WF/Web.config +++ b/NKC_WF/Web.config @@ -58,7 +58,7 @@ - +