From bb088f31d04263ee6ad57c8980044525a12c86b2 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:13:17 +0200 Subject: [PATCH 01/11] Aggiunta master empty x preview SVG --- NKC_WF/Empty.Master | 33 +++++++++++++++++++++++++++++++ NKC_WF/Empty.Master.cs | 17 ++++++++++++++++ NKC_WF/Empty.Master.designer.cs | 35 +++++++++++++++++++++++++++++++++ NKC_WF/NKC_WF.csproj | 8 ++++++++ 4 files changed, 93 insertions(+) create mode 100644 NKC_WF/Empty.Master create mode 100644 NKC_WF/Empty.Master.cs create mode 100644 NKC_WF/Empty.Master.designer.cs diff --git a/NKC_WF/Empty.Master b/NKC_WF/Empty.Master new file mode 100644 index 0000000..e1c3224 --- /dev/null +++ b/NKC_WF/Empty.Master @@ -0,0 +1,33 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Empty.master.cs" Inherits="NKC_WF.Empty" %> + + + + + + + + + + + + + + + NKC <%: Page.Title %> + + + <%: Scripts.Render("~/bundles/modernizr") %> + + + + + + +
+
+ + +
+
+ + diff --git a/NKC_WF/Empty.Master.cs b/NKC_WF/Empty.Master.cs new file mode 100644 index 0000000..275b713 --- /dev/null +++ b/NKC_WF/Empty.Master.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace NKC_WF +{ + public partial class Empty : System.Web.UI.MasterPage + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/NKC_WF/Empty.Master.designer.cs b/NKC_WF/Empty.Master.designer.cs new file mode 100644 index 0000000..c488f95 --- /dev/null +++ b/NKC_WF/Empty.Master.designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace NKC_WF +{ + + + public partial class Empty + { + + /// + /// Controllo form1. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// Controllo MainContent. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent; + } +} diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index cba8a56..e4c3d5e 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -567,6 +567,7 @@ Always + @@ -646,6 +647,13 @@ Default.aspx + + Empty.Master + ASPXCodeBehind + + + Empty.Master + Oops.aspx ASPXCodeBehind From 82111e0f789bceb4e91116ad31336b7e78147780 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:13:23 +0200 Subject: [PATCH 02/11] typo lang --- NKC_WF/Site.Master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NKC_WF/Site.Master b/NKC_WF/Site.Master index ecbf5f2..9a9b6ac 100644 --- a/NKC_WF/Site.Master +++ b/NKC_WF/Site.Master @@ -7,7 +7,7 @@ - + From 7bb94a939a172594725568d948fedf058544dd40 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:14:07 +0200 Subject: [PATCH 03/11] Fix master empty x SvgFull --- NKC_WF/site/SvgFull.aspx | 2 +- NKC_WF/site/SvgFull.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NKC_WF/site/SvgFull.aspx b/NKC_WF/site/SvgFull.aspx index ab676f8..b156a55 100644 --- a/NKC_WF/site/SvgFull.aspx +++ b/NKC_WF/site/SvgFull.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SvgFull.aspx.cs" Inherits="NKC_WF.site.SvgFull" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/Empty.Master" AutoEventWireup="true" CodeBehind="SvgFull.aspx.cs" Inherits="NKC_WF.site.SvgFull" %> <%@ Register Src="~/WebUserControls/cmp_svgFull.ascx" TagPrefix="uc1" TagName="cmp_svgFull" %> diff --git a/NKC_WF/site/SvgFull.aspx.cs b/NKC_WF/site/SvgFull.aspx.cs index 3607a22..aaf9057 100644 --- a/NKC_WF/site/SvgFull.aspx.cs +++ b/NKC_WF/site/SvgFull.aspx.cs @@ -15,7 +15,7 @@ namespace NKC_WF.site { if (!Page.IsPostBack) { - ((SiteMaster)this.Master).showSearch = false; + //((SiteMaster)this.Master).showSearch = false; // recupero valore URL ed imposto... int sheetId = memLayer.ML.QSI("sheetId"); string ImgPath = memLayer.ML.QSS("ImgPath"); From 65c73614b4e302f9160a47a997f983cbb31431ef Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:14:28 +0200 Subject: [PATCH 04/11] annullata classe img-fluid (added -none) --- NKC_WF/WebUserControls/cmp_svgFull.ascx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_svgFull.ascx b/NKC_WF/WebUserControls/cmp_svgFull.ascx index 3bffc39..c8ee327 100644 --- a/NKC_WF/WebUserControls/cmp_svgFull.ascx +++ b/NKC_WF/WebUserControls/cmp_svgFull.ascx @@ -2,6 +2,6 @@ -
- +
+
From 48c89d2a5c6346b393dbe2f8297d5765ac152cc8 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:21:58 +0200 Subject: [PATCH 05/11] new vers 331 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 527ee6e..1270fc1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=330']) { + withEnv(['NEXT_BUILD_NUMBER=331']) { // env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') From 8459cfbf30297de5526d8a11deafce02bba06c41 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:22:05 +0200 Subject: [PATCH 06/11] fix padding master --- NKC_WF/Empty.Master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NKC_WF/Empty.Master b/NKC_WF/Empty.Master index e1c3224..af5392f 100644 --- a/NKC_WF/Empty.Master +++ b/NKC_WF/Empty.Master @@ -22,7 +22,7 @@ - +
From 4c2d5f2db705e78034c6664b5f7c3505f7ee8eb3 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 13:53:23 +0200 Subject: [PATCH 07/11] Typo --- NKC_WF/WebUserControls/cmp_offOrderDetail.ascx | 6 +++--- NKC_WF/WebUserControls/cmp_stackNextloading.ascx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_offOrderDetail.ascx b/NKC_WF/WebUserControls/cmp_offOrderDetail.ascx index 17654c2..736fbfc 100644 --- a/NKC_WF/WebUserControls/cmp_offOrderDetail.ascx +++ b/NKC_WF/WebUserControls/cmp_offOrderDetail.ascx @@ -10,7 +10,7 @@
- # <%: traduci ("NotYetProcessed") %> + <%: traduci ("NotYetProcessed") %> <%-- --%>
@@ -21,12 +21,12 @@
- # <%: traduci ("MakeCncProg") %> + <%: traduci ("MakeCncProg") %>
<%-- PRINT LABELS--%> <%-- ITEM DONE--%> - # <%: traduci ("ItemDone") %> + <%: traduci ("ItemDone") %>
diff --git a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx index 8afa91b..8527084 100644 --- a/NKC_WF/WebUserControls/cmp_stackNextloading.ascx +++ b/NKC_WF/WebUserControls/cmp_stackNextloading.ascx @@ -18,12 +18,12 @@
- <%: traduci("Previous") %> # <%: traduci("Bunk") %> + <%: traduci("Previous") %> <%: traduci("Bunk") %> ()
- <%: traduci("Current") %># <%: traduci("Bunk") %> + <%: traduci("Current") %> <%: traduci("Bunk") %> ()
From 583d3b9ff2feb0ef0349864787932516dd36c9b5 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 14:02:24 +0200 Subject: [PATCH 08/11] Fix Typo --- NKC_WF/site/BatchPreview.aspx | 2 +- NKC_WF/site/BatchPreview.aspx.cs | 2 +- NKC_WF/site/Contact.aspx | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/NKC_WF/site/BatchPreview.aspx b/NKC_WF/site/BatchPreview.aspx index 6d80774..3692c5c 100644 --- a/NKC_WF/site/BatchPreview.aspx +++ b/NKC_WF/site/BatchPreview.aspx @@ -13,7 +13,7 @@
-

Batch preview

+

<%# traduci("BatchPreview") %>

diff --git a/NKC_WF/site/BatchPreview.aspx.cs b/NKC_WF/site/BatchPreview.aspx.cs index 3ff5158..f907766 100644 --- a/NKC_WF/site/BatchPreview.aspx.cs +++ b/NKC_WF/site/BatchPreview.aspx.cs @@ -7,7 +7,7 @@ using System.Web.UI; namespace NKC_WF.site { - public partial class BatchPreview : System.Web.UI.Page + public partial class BatchPreview : BasePage { /// /// Batch corrente... diff --git a/NKC_WF/site/Contact.aspx b/NKC_WF/site/Contact.aspx index acef28f..bb0b838 100644 --- a/NKC_WF/site/Contact.aspx +++ b/NKC_WF/site/Contact.aspx @@ -1,8 +1,6 @@ <%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="NKC_WF.Contact" %> - -
@@ -46,6 +44,4 @@
- -
From f5fe6405199d1433810d29f28ad4aac0ff67dbbe Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 14:14:41 +0200 Subject: [PATCH 09/11] Ancora typo traduzioni --- NKC_WF/site/ErrorsLog.aspx | 2 +- NKC_WF/site/ErrorsLog.aspx.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NKC_WF/site/ErrorsLog.aspx b/NKC_WF/site/ErrorsLog.aspx index 2f5b179..a83e76c 100644 --- a/NKC_WF/site/ErrorsLog.aspx +++ b/NKC_WF/site/ErrorsLog.aspx @@ -6,7 +6,7 @@
- Errors List + <%: traduci("ErrorsList") %>
diff --git a/NKC_WF/site/ErrorsLog.aspx.cs b/NKC_WF/site/ErrorsLog.aspx.cs index f6dc24b..161d2ac 100644 --- a/NKC_WF/site/ErrorsLog.aspx.cs +++ b/NKC_WF/site/ErrorsLog.aspx.cs @@ -4,12 +4,13 @@ using System.Web.UI; namespace NKC_WF { - public partial class ErrorsLog : System.Web.UI.Page + public partial class ErrorsLog : BasePage { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { + ((SiteContent)this.Master).showSearch = false; string PUID = memLayer.ML.QSS("PUID"); if (!string.IsNullOrEmpty(PUID)) { From d3a564447d7358ad8fec60e397c06726cbe5cbdb Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 14:14:59 +0200 Subject: [PATCH 10/11] gestione try/catch lettura file SVG da directory --- .../WebUserControls/cmp_OOIL_drawings.ascx.cs | 47 ++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_OOIL_drawings.ascx.cs b/NKC_WF/WebUserControls/cmp_OOIL_drawings.ascx.cs index b0f39c0..882c62d 100644 --- a/NKC_WF/WebUserControls/cmp_OOIL_drawings.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_OOIL_drawings.ascx.cs @@ -34,35 +34,40 @@ namespace NKC_WF.WebUserControls private void fixDataBind() { string currPath = DrawingPath; - // in primis: fix directory - // visibile SOLO SE valore != null... - if (string.IsNullOrEmpty(currPath)) + try { - divDrawings.Visible = false; - } - else - { - divDrawings.Visible = true; - List elencoDisegni = new List(); - // verifico path assoluto... - if (!Path.IsPathRooted(currPath)) + // in primis: fix directory + // visibile SOLO SE valore != null... + if (string.IsNullOrEmpty(currPath)) { - currPath = Server.MapPath(currPath); + divDrawings.Visible = false; } - - // leggo da filesystem... - string[] elencoFiles = Directory.GetFiles(currPath, "*.svg"); - if (elencoFiles != null) + else { - foreach (var item in elencoFiles) + divDrawings.Visible = true; + List elencoDisegni = new List(); + // verifico path assoluto... + if (!Path.IsPathRooted(currPath)) { - elencoDisegni.Add(new imgData { imgName = Path.GetFileName(item), DrawPath = item.Replace(@"/",@"\") }); + currPath = Server.MapPath(currPath); } + + // leggo da filesystem... + string[] elencoFiles = Directory.GetFiles(currPath, "*.svg"); + if (elencoFiles != null) + { + foreach (var item in elencoFiles) + { + elencoDisegni.Add(new imgData { imgName = Path.GetFileName(item), DrawPath = item.Replace(@"/", @"\") }); + } + } + // sistemo repeater + repDraw.DataSource = elencoDisegni; + repDraw.DataBind(); } - // sistemo repeater - repDraw.DataSource = elencoDisegni; - repDraw.DataBind(); } + catch + { } } public class imgData From e87016499fca1ff37c278dddca9052283e72ce91 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 14 Aug 2020 14:29:11 +0200 Subject: [PATCH 11/11] Update other translation --- NKC_WF/site/KitRequestImporter.aspx.cs | 2 +- NKC_WF/site/OrderManager.aspx.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NKC_WF/site/KitRequestImporter.aspx.cs b/NKC_WF/site/KitRequestImporter.aspx.cs index 5e78b13..7569f73 100644 --- a/NKC_WF/site/KitRequestImporter.aspx.cs +++ b/NKC_WF/site/KitRequestImporter.aspx.cs @@ -59,7 +59,7 @@ namespace NKC_WF } catch (Exception exc) { - logger.lg.scriviLog($"KitCsvMan: Eccezione in Copia SQL file:{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"{traduci("ErrKitReqImpCopyError")}:{Environment.NewLine}{exc}"); } // salvo dati cmp_kitImpCheck.fileName = e.FileName; diff --git a/NKC_WF/site/OrderManager.aspx.cs b/NKC_WF/site/OrderManager.aspx.cs index 6f68457..e54e0e7 100644 --- a/NKC_WF/site/OrderManager.aspx.cs +++ b/NKC_WF/site/OrderManager.aspx.cs @@ -113,7 +113,7 @@ namespace NKC_WF } catch (Exception exc) { - logger.lg.scriviLog($"Eccezione in Copia SQL file:{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"{traduci("ErrOrderCsvImp01")}:{Environment.NewLine}{exc}"); DataLayer.man.taEL.insertQuery(DateTime.Now, "Copy CSV", $"{e.BatchName}", $"{e.BatchName}.{e.FileName}", $"Exception: {exc}"); } // chiamo stored caricamento @@ -125,7 +125,7 @@ namespace NKC_WF } catch (Exception exc) { - logger.lg.scriviLog($"Eccezione in IMPORT file:{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"{traduci("ErrOrderCsvImp02")}:{Environment.NewLine}{exc}"); // salvo log errore... DataLayer.man.taEL.insertQuery(DateTime.Now, "Upload CSV", $"{e.BatchName}", $"{e.BatchName}.{e.FileName}", $"Exception: {exc}"); dataValidated = false; @@ -146,7 +146,7 @@ namespace NKC_WF } catch (Exception exc) { - logger.lg.scriviLog($"Eccezione in verifica file:{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"{traduci("ErrOrderCsvImp03")}:{Environment.NewLine}{exc}"); dataValidated = false; } if (dataValidated && batchID > 0) @@ -200,7 +200,7 @@ namespace NKC_WF fileOk = System.IO.File.Exists(localPath); if (!fileOk) { - DataLayer.man.taEL.insertQuery(DateTime.Now, "I.1", $"B.{batchID}", $"{item.ItemExtCode}.dxf", $"DXF File not found {localPath} | part {item.ItemExtCode} | {item.ItemDesc}"); + DataLayer.man.taEL.insertQuery(DateTime.Now, "I.1", $"B.{batchID}", $"{item.ItemExtCode}.dxf", $"{traduci("ErrOrderDxfNotFound")} {localPath} | part {item.ItemExtCode} | {item.ItemDesc}"); allOk = false; missingDxfList.Add(item.ItemExtCode); }