From d5c0ea20c1eb91cbf33b60cd681d201ea8648e09 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 08:54:31 +0200 Subject: [PATCH 01/11] Nuova forma x var keepAlive in REDIS --- MapoDb/MapoDb.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs index 8a0ff315..e3597f45 100644 --- a/MapoDb/MapoDb.cs +++ b/MapoDb/MapoDb.cs @@ -1259,7 +1259,7 @@ namespace MapoDb { // salvo in variabile boolean se registrare keep alive su db o meno bool doWrite = false; - string nomeVar = string.Format("KA{0}", IdxMacchina); + string nomeVar = string.Format("KeepAlive:{0}", IdxMacchina); // in primis controllo se in cache c'è oggetto keep alive x macchina... formato KA{ID-MACCHINA} DateTime adesso = DateTime.Now; if (memLayer.ML.isInCacheObject(nomeVar)) From 94f92ad297d714225da1dc38e414ebb4e36fe603 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 08:54:48 +0200 Subject: [PATCH 02/11] Update webconfig x gestione cache in REDIS --- Jenkinsfile | 2 +- MP-Admin/Web.config | 2 ++ MP-IO/Web.config | 2 ++ MP-LAND/Web.config | 3 +++ MP-MON/Web.config | 2 ++ MP-Site/Web.config | 2 ++ MP-TAB/Web.config | 25 ++----------------------- 7 files changed, 14 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 730083e3..e6858571 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=888']) { + withEnv(['NEXT_BUILD_NUMBER=899']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-Admin/Web.config b/MP-Admin/Web.config index d47ad18d..257f6a66 100644 --- a/MP-Admin/Web.config +++ b/MP-Admin/Web.config @@ -9,6 +9,8 @@ + + diff --git a/MP-IO/Web.config b/MP-IO/Web.config index 04b212fe..a458b49a 100644 --- a/MP-IO/Web.config +++ b/MP-IO/Web.config @@ -5,6 +5,8 @@ --> + + diff --git a/MP-LAND/Web.config b/MP-LAND/Web.config index 3f2ba573..425df8f8 100644 --- a/MP-LAND/Web.config +++ b/MP-LAND/Web.config @@ -9,6 +9,9 @@
+ + + diff --git a/MP-MON/Web.config b/MP-MON/Web.config index 8bc4db14..6e91fb39 100644 --- a/MP-MON/Web.config +++ b/MP-MON/Web.config @@ -11,6 +11,8 @@ + + diff --git a/MP-Site/Web.config b/MP-Site/Web.config index 40e66d8b..2c823c23 100644 --- a/MP-Site/Web.config +++ b/MP-Site/Web.config @@ -9,6 +9,8 @@ + + diff --git a/MP-TAB/Web.config b/MP-TAB/Web.config index 76ff5df9..9493f7b5 100644 --- a/MP-TAB/Web.config +++ b/MP-TAB/Web.config @@ -31,34 +31,13 @@ - - - - + + From 746060d4ebb2f468a6daebd2bcabef7254b7353a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 12:59:08 +0200 Subject: [PATCH 03/11] Fis status map x mostrare errori COM --- MP-MON/Views/MSE/_StatusMap.cshtml | 16 ++++++++++++++-- MP-MON/Views/MSE/_StatusMapSingle.cshtml | 15 +++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/MP-MON/Views/MSE/_StatusMap.cshtml b/MP-MON/Views/MSE/_StatusMap.cshtml index 552cce34..c27695e0 100644 --- a/MP-MON/Views/MSE/_StatusMap.cshtml +++ b/MP-MON/Views/MSE/_StatusMap.cshtml @@ -19,6 +19,7 @@ string TCAssegnato = TCAss.ToString(@"mm\:ss"); string TCLavorato = TCLav.ToString(@"mm\:ss"); + // verifico SE è disabilitata modalità animazione -> blink a stati (e refresh 1s) if (System.Web.Configuration.WebConfigurationManager.AppSettings["doAnimate"] == "1") { @@ -48,9 +49,11 @@ } // se NON trova update da oltre 1 minuto rosso lo status comunicazione string cssComStatus = cssStatus; - if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes>1) + string showComErr = "invisible"; + if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes > 1) { cssComStatus = ViewBag.baseCss + "Ro"; + showComErr = "visible"; }
@@ -77,7 +80,16 @@
- +
diff --git a/MP-MON/Views/MSE/_StatusMapSingle.cshtml b/MP-MON/Views/MSE/_StatusMapSingle.cshtml index 44054fc5..2f9d6d38 100644 --- a/MP-MON/Views/MSE/_StatusMapSingle.cshtml +++ b/MP-MON/Views/MSE/_StatusMapSingle.cshtml @@ -48,9 +48,11 @@ } // se NON trova update da oltre 1 minuto rosso lo status comunicazione string cssComStatus = cssStatus; - if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes>1) + string showComErr = "invisible"; + if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes > 1) { cssComStatus = ViewBag.baseCss + "Ro"; + showComErr = "visible"; }
@@ -77,7 +79,16 @@
- +
From a06a9c3c842d681a10a90d72259cc83cc5a1928a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 12:59:34 +0200 Subject: [PATCH 04/11] Bozza fix info aggiuntive --- .../WebUserControls/mod_infoAggiuntive.ascx | 375 ++++++++---------- .../mod_infoAggiuntive.ascx.designer.cs | 215 +++++----- .../WebUserControls/mod_statoMacchina.ascx | 12 +- .../WebUserControls/mod_statoMacchina.ascx.cs | 65 +-- 4 files changed, 327 insertions(+), 340 deletions(-) diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx index 56d6bc3b..a90886d3 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx @@ -1,204 +1,177 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_infoAggiuntive.ascx.cs" - Inherits="MoonPro.WebUserControls.mod_infoAggiuntive" %> + Inherits="MoonPro.WebUserControls.mod_infoAggiuntive" %>
- <%--Tabella dati ODL--%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- Cod articolo - - Nr pezzi lanciati - - Nr pezzi confermati - - Nr pezzi fatti -
- - - - - - - -
- Nr pezzi restanti - - T. disp. impiegato - - T. rimanente - -
- -
- -
- -
- -
- -
- -
-
- Efficienza Globale (V+G+R) - - Efficienza Lavoro (V+G) - - Efficienza Teorica (V) - -
- -
- -
- -
- -
- -
- -
-
- Tc Medio (V+G+R) - - Tc Lavoro (V+G) - - Tc Tecnico (V) - - Tc impostato -
- -
- -
- -
- -
- -
- -
- -
-
- <%--Tabella dati Periodo visualizzato--%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- Efficienza Globale (V+G+R) - - Efficienza Lavoro (V+G) - - Efficienza Teorica (V) - - Nr pezzi fatti -
- - - - - - - -
- Tc Medio (V+G+R) - - Tc Lavoro (V+G) - - Tc Tecnico (V) - - Tc impostato -
- - - - - - - -
+ <%--Tabella dati ODL--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
Cod articolo + Nr pezzi lanciati + Nr pezzi confermati + Nr pezzi fatti +
+ + + + + + + +
Nr pezzi restanti + T. disp. impiegato + T. rimanente +
+ +
+ +
+ +
+ +
+ +
+ +
Efficienza Globale (V+G+R) + Efficienza Lavoro (V+G) + Efficienza Teorica (V) +
+ +
+ +
+ +
+ +
+ +
+ +
Tc Medio (V+G+R) + Tc Lavoro (V+G) + Tc Tecnico (V) + Tc impostato +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ <%--Tabella dati Periodo visualizzato--%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
Efficienza Globale (V+G+R) + Efficienza Lavoro (V+G) + Efficienza Teorica (V) + Nr pezzi fatti +
+ + + + + + + +
Tc Medio (V+G+R) + Tc Lavoro (V+G) + Tc Tecnico (V) + Tc impostato +
+ + + + + + + +
diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs index a4c7e34c..18fa95b9 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs @@ -1,312 +1,311 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// +// Codice generato da uno strumento. // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace MoonPro.WebUserControls -{ - - +namespace MoonPro.WebUserControls { + + public partial class mod_infoAggiuntive { /// - /// lblOdl control. + /// Controllo lblOdl. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblOdl; /// - /// lblCodArticolo control. + /// Controllo lblCodArticolo. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblCodArticolo; /// - /// lblNumPzLanciati control. + /// Controllo lblNumPzLanciati. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblNumPzLanciati; /// - /// lblNumPzConf control. + /// Controllo lblNumPzConf. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblNumPzConf; /// - /// lblNumPzFatti control. + /// Controllo lblNumPzFatti. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblNumPzFatti; /// - /// lblPezziRestantiConf control. + /// Controllo lblPezziRestantiConf. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblPezziRestantiConf; /// - /// lblPezziRestanti control. + /// Controllo lblPezziRestanti. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblPezziRestanti; /// - /// lblTDispImpiegatoConf control. + /// Controllo lblTDispImpiegatoConf. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTDispImpiegatoConf; /// - /// lblTDispImpiegato control. + /// Controllo lblTDispImpiegato. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTDispImpiegato; /// - /// lblTRimanenteConf control. + /// Controllo lblTRimanenteConf. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTRimanenteConf; /// - /// lblTRimanente control. + /// Controllo lblTRimanente. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTRimanente; /// - /// lblEfficienzaTot control. + /// Controllo lblEfficienzaTot. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaTot; /// - /// lblEfficienzaTotRT control. + /// Controllo lblEfficienzaTotRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaTotRT; /// - /// lblEfficienzaLavoro control. + /// Controllo lblEfficienzaLavoro. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaLavoro; /// - /// lblEfficienzaLavoroRT control. + /// Controllo lblEfficienzaLavoroRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaLavoroRT; /// - /// lblEfficienzaEff control. + /// Controllo lblEfficienzaEff. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaEff; /// - /// lblEfficienzaEffRT control. + /// Controllo lblEfficienzaEffRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaEffRT; /// - /// lblTcMedio control. + /// Controllo lblTcMedio. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcMedio; /// - /// lblTcMedioRT control. + /// Controllo lblTcMedioRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcMedioRT; /// - /// lblTcLavoro control. + /// Controllo lblTcLavoro. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcLavoro; /// - /// lblTcLavoroRT control. + /// Controllo lblTcLavoroRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcLavoroRT; /// - /// lblTcEffettivo control. + /// Controllo lblTcEffettivo. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcEffettivo; /// - /// lblTcEffettivoRT control. + /// Controllo lblTcEffettivoRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcEffettivoRT; /// - /// lblTcImpostato control. + /// Controllo lblTcImpostato. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcImpostato; /// - /// lblPeriodo control. + /// Controllo lblPeriodo. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblPeriodo; /// - /// lblEfficienzaTotPerRT control. + /// Controllo lblEfficienzaTotPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaTotPerRT; /// - /// lblEfficienzaLavoroPerRT control. + /// Controllo lblEfficienzaLavoroPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaLavoroPerRT; /// - /// lblEfficienzaEffPerRT control. + /// Controllo lblEfficienzaEffPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblEfficienzaEffPerRT; /// - /// lblNumPzFattiPer control. + /// Controllo lblNumPzFattiPer. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblNumPzFattiPer; /// - /// lblTcMedioPerRT control. + /// Controllo lblTcMedioPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcMedioPerRT; /// - /// lblTcLavoroPerRT control. + /// Controllo lblTcLavoroPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcLavoroPerRT; /// - /// lblTcEffettivoPerRT control. + /// Controllo lblTcEffettivoPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcEffettivoPerRT; /// - /// lblTcImpostatoPerRT control. + /// Controllo lblTcImpostatoPerRT. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.Label lblTcImpostatoPerRT; } diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx b/MP-Site/WebUserControls/mod_statoMacchina.ascx index 970e9c77..880cc4a8 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx @@ -9,19 +9,19 @@
-
-
+
+
-
+
-
-
+
+
-
+
diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs index 7e072eed..ef8a0269 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs @@ -20,7 +20,6 @@ namespace MoonPro.WebUserControls protected DS_ProdTempi.MappaStatoExplDataTable tabMSE; protected DS_applicazione.AnagraficaStatiDataTable tabAnagStati; - protected DS_applicazione.KeepAliveDataTable tabKeepAlive; /// /// caricamento pagina /// @@ -38,7 +37,6 @@ namespace MoonPro.WebUserControls //SE E SOLO SE ho una macchina e/o locazione... if (IdxMacchina != "") { - //DateTime tick = DateTime.Now; // effettua update visualizzazione retrieveData(); updateLayout(); @@ -63,16 +61,36 @@ namespace MoonPro.WebUserControls /// private void retrieveData() { - try + // cerco se ho i dati in REDIS x non richiederli... + string hashKeyMSE = memLayer.ML.redHash("Tab:MSE:" + IdxMacchina); + string hashKeyAS = memLayer.ML.redHash("Tab:AnagStati"); + string serVal = ""; + if (memLayer.ML.redHashPresent(hashKeyMSE)) { - // popolazione tabelle - tabMSE = DataLayer.obj.taMSE.getByIdxMacchina(IdxMacchina); + serVal = memLayer.ML.getRSV(hashKeyMSE); + tabMSE = (DS_ProdTempi.MappaStatoExplDataTable)memLayer.ML.deserializeVal(serVal); - tabAnagStati = DataLayer.obj.taAnagStati.GetData(); - tabKeepAlive = DataLayer.obj.taKeepAlive.GetData(); + serVal = memLayer.ML.getRSV(hashKeyAS); + tabAnagStati = (DS_applicazione.AnagraficaStatiDataTable)memLayer.ML.deserializeVal(serVal); + } + else + { + // altrimenti prendo da DB... + try + { + // popolazione tabelle + tabMSE = DataLayer.obj.taMSE.getByIdxMacchina(IdxMacchina); + tabAnagStati = DataLayer.obj.taAnagStati.GetData(); + } + catch + { } + // salvo su DB! dati principali x 30 secondi... + serVal = memLayer.ML.serializeVal(tabMSE); + memLayer.ML.setRSV(hashKeyMSE, serVal, 30); + // anche il resto... + serVal = memLayer.ML.serializeVal(tabAnagStati); + memLayer.ML.setRSV(hashKeyAS, serVal); } - catch - { } } /// /// sistema il testo @@ -82,9 +100,9 @@ namespace MoonPro.WebUserControls if (_IdxMacchina != "nd" && _IdxMacchina != "") { // labels - lblCodArticolo.Text = "Articolo"; + lblCodArticolo.Text = "Art."; lblStato.Text = "Stato"; - lblProd.Text = "T.Ciclo medio"; // era OEE + lblProd.Text = "T.Ciclo"; // era OEE lblDurata.Text = "Durata"; // 2018.02.05 cambio x fix nuovi impianti // valMacchina.Text = tabMacchine.FindByIdxMacchina(IdxMacchina).Nome; @@ -99,7 +117,7 @@ namespace MoonPro.WebUserControls float minuti = 0; try { - MapoDb.DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaRow rigaStato = DataLayer.obj.taDatiStatoMacch.GetData(IdxMacchina, 0.1)[0]; + DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaRow rigaStato = DataLayer.obj.taDatiStatoMacch.GetData(IdxMacchina, 0.1)[0]; idxStato = rigaStato.idxStato; oreTot = Convert.ToInt32(Math.Floor(rigaStato.Minuti / 60)); minuti = (float)rigaStato.Minuti - 60 * oreTot; @@ -250,26 +268,23 @@ namespace MoonPro.WebUserControls } } /// - /// sistema hiperLink + /// sistema hyperLink /// private void updateHL() { - bool answ = false; + bool answ = true; + int minuti = memLayer.ML.CRI("keepAliveMin"); + // controllo se il keep alive è oltre il termine... + DateTime lastKA = DateTime.Now.AddMinutes(-minuti); if (_IdxMacchina != "nd") { - int minuti = SteamWare.memLayer.ML.CRI("keepAliveMin"); - // controllo se il keep alive è oltre il termine... - DateTime lastKA = DateTime.Now.AddMinutes(-minuti); - try + string nomeVar = string.Format("KeepAlive:{0}", _IdxMacchina); + var _lastKA = memLayer.ML.objCacheObj(nomeVar); + if (_lastKA != null) { - lastKA = tabKeepAlive.FindByIdxMacchina(IdxMacchina).DataOraServer; - } - catch - { } - if (lastKA.AddMinutes(minuti) < DateTime.Now) - { - answ = true; + DateTime.TryParse(_lastKA.ToString(), out lastKA); } + answ = (lastKA.AddMinutes(minuti) < DateTime.Now) || _lastKA == null; } hlComWarning.Visible = answ; } From 4452b0ba51ca88d02f5a7b28871ad946bd679d34 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 13:00:02 +0200 Subject: [PATCH 05/11] Fix animate x MON + sistemazione gestione AnalisiProduzione (3 stored) --- Jenkinsfile | 2 +- MP-MON/Web.config | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e6858571..5349783c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=899']) { + withEnv(['NEXT_BUILD_NUMBER=901']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-MON/Web.config b/MP-MON/Web.config index 6e91fb39..0ecc9109 100644 --- a/MP-MON/Web.config +++ b/MP-MON/Web.config @@ -11,6 +11,7 @@ + From c3f73fe0fcd0f53ff7675d01bb89c7653cf6a41e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 13:10:11 +0200 Subject: [PATCH 06/11] Fix visualizzaizone x gruppo impianti via checkbox in AnalisiProduzione --- Jenkinsfile | 2 +- MP-Site/WebUserControls/mod_AnPro_PODL.ascx | 13 +++++++++-- .../mod_AnPro_PODL.ascx.designer.cs | 9 ++++++++ MapoDb/DS_ProdTempi.Designer.cs | 9 +++++++- MapoDb/DS_ProdTempi.xsd | 21 +++++++++--------- MapoDb/DS_ProdTempi.xss | 22 +++++++++---------- 6 files changed, 51 insertions(+), 25 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5349783c..e906a397 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=901']) { + withEnv(['NEXT_BUILD_NUMBER=903']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-Site/WebUserControls/mod_AnPro_PODL.ascx b/MP-Site/WebUserControls/mod_AnPro_PODL.ascx index 1fcf6354..5429aff7 100644 --- a/MP-Site/WebUserControls/mod_AnPro_PODL.ascx +++ b/MP-Site/WebUserControls/mod_AnPro_PODL.ascx @@ -5,7 +5,15 @@
-

Promesse ODL

+
+
+
+

Promesse ODL

+
+
+ +
+
@@ -36,6 +44,7 @@ + @@ -43,4 +52,4 @@ -
\ No newline at end of file +
diff --git a/MP-Site/WebUserControls/mod_AnPro_PODL.ascx.designer.cs b/MP-Site/WebUserControls/mod_AnPro_PODL.ascx.designer.cs index 95b252d3..9b863add 100644 --- a/MP-Site/WebUserControls/mod_AnPro_PODL.ascx.designer.cs +++ b/MP-Site/WebUserControls/mod_AnPro_PODL.ascx.designer.cs @@ -12,6 +12,15 @@ namespace MoonPro.WebUserControls { public partial class mod_AnPro_PODL { + /// + /// Controllo chkByGroup. + /// + /// + /// 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.CheckBox chkByGroup; + /// /// Controllo grView. /// diff --git a/MapoDb/DS_ProdTempi.Designer.cs b/MapoDb/DS_ProdTempi.Designer.cs index 573145ff..6e290643 100644 --- a/MapoDb/DS_ProdTempi.Designer.cs +++ b/MapoDb/DS_ProdTempi.Designer.cs @@ -27694,6 +27694,7 @@ FROM MappaStatoExpl"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMulti", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@byGroup", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; this._commandCollection[5].CommandText = "dbo.stp_PODL_insertQuery"; @@ -27811,7 +27812,7 @@ FROM MappaStatoExpl"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_ProdTempi.PromesseODLDataTable getByMultiMacc(string idxMulti) { + public virtual DS_ProdTempi.PromesseODLDataTable getByMultiMacc(string idxMulti, global::System.Nullable byGroup) { this.Adapter.SelectCommand = this.CommandCollection[4]; if ((idxMulti == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -27819,6 +27820,12 @@ FROM MappaStatoExpl"; else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMulti)); } + if ((byGroup.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(byGroup.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } DS_ProdTempi.PromesseODLDataTable dataTable = new DS_ProdTempi.PromesseODLDataTable(); this.Adapter.Fill(dataTable); return dataTable; diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index fd3f63ce..29a34643 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -2148,6 +2148,7 @@ ORDER BY idxPromessa DESC + @@ -2672,7 +2673,7 @@ FROM v_ECP - + @@ -2753,7 +2754,7 @@ FROM v_ECP - + @@ -2782,7 +2783,7 @@ FROM v_ECP - + @@ -2794,7 +2795,7 @@ FROM v_ECP - + @@ -2819,7 +2820,7 @@ FROM v_ECP - + @@ -2857,7 +2858,7 @@ FROM v_ECP - + @@ -2896,7 +2897,7 @@ FROM v_ECP - + @@ -2962,7 +2963,7 @@ FROM v_ECP - + @@ -2984,7 +2985,7 @@ FROM v_ECP - + @@ -3054,7 +3055,7 @@ FROM v_ECP - + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index 26873afb..2d8ddf9a 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -4,32 +4,32 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + - + - - + + - - - + + + - - + + \ No newline at end of file From 0fa578a441a118881425092caa3bc92d3921874f Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 13:55:43 +0200 Subject: [PATCH 07/11] fix serialize/deserialize steamware --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e906a397..2de497f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=903']) { + withEnv(['NEXT_BUILD_NUMBER=905']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' From 25a8ee20665ea82c722d698f40c03ed825b0dec0 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 17:42:39 +0200 Subject: [PATCH 08/11] fix lampeggio com su monitog a 50% durata della soglia x invio email segnalazione --- Jenkinsfile | 2 +- MP-MON/Views/MSE/_StatusMap.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2de497f2..107f2fc9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=905']) { + withEnv(['NEXT_BUILD_NUMBER=906']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-MON/Views/MSE/_StatusMap.cshtml b/MP-MON/Views/MSE/_StatusMap.cshtml index c27695e0..164c91b5 100644 --- a/MP-MON/Views/MSE/_StatusMap.cshtml +++ b/MP-MON/Views/MSE/_StatusMap.cshtml @@ -47,10 +47,10 @@ { sArticolo = string.Format("[{0}]", item.CodArticolo); } - // se NON trova update da oltre 1 minuto rosso lo status comunicazione + // se NON trova update da oltre "keepAliveMin" / 2 minuti rosso lo status comunicazione string cssComStatus = cssStatus; string showComErr = "invisible"; - if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes > 1) + if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalSeconds > SteamWare.memLayer.ML.CRI("keepAliveMin") * 60 / 2) { cssComStatus = ViewBag.baseCss + "Ro"; showComErr = "visible"; From abaf726a8d6196b7d2fe031ee85233c1e0b2a76e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 17:51:58 +0200 Subject: [PATCH 09/11] Fix lampeggio --- MP-MON/Views/MSE/_StatusMap.cshtml | 30 ++++++++++++--------- MP-MON/Views/MSE/_StatusMapSingle.cshtml | 34 +++++++++++++----------- 2 files changed, 36 insertions(+), 28 deletions(-) diff --git a/MP-MON/Views/MSE/_StatusMap.cshtml b/MP-MON/Views/MSE/_StatusMap.cshtml index 164c91b5..f07ce6c7 100644 --- a/MP-MON/Views/MSE/_StatusMap.cshtml +++ b/MP-MON/Views/MSE/_StatusMap.cshtml @@ -20,21 +20,9 @@ string TCLavorato = TCLav.ToString(@"mm\:ss"); - // verifico SE è disabilitata modalità animazione -> blink a stati (e refresh 1s) - if (System.Web.Configuration.WebConfigurationManager.AppSettings["doAnimate"] == "1") - { - // blink se secondo pari... - DateTime adesso = DateTime.Now; - int resto = 0; - Math.DivRem(adesso.Second, 2, out resto); - if (resto == 0) - { - cssStatus += "_b"; - } - } // verifico se mostrare articolo o disegno... string sArticolo = ""; - if (System.Web.Configuration.WebConfigurationManager.AppSettings["sART"] == "CodArticolo") + if (SteamWare.memLayer.ML.CRS("sART") == "CodArticolo") { sArticolo = item.CodArticolo; } @@ -55,6 +43,22 @@ cssComStatus = ViewBag.baseCss + "Ro"; showComErr = "visible"; } + // verifico SE è disabilitata modalità animazione -> blink a stati (e refresh 1s) + if (SteamWare.memLayer.ML.CRS("doAnimate") == "1") + { + // blink se secondo pari... + DateTime adesso = DateTime.Now; + int resto = 0; + Math.DivRem(adesso.Second, 2, out resto); + if (resto == 0) + { + cssStatus += "_b"; + if (cssComStatus.EndsWith("Ro")) + { + cssComStatus += "_b"; + } + } + }
@*noCpu*@ diff --git a/MP-MON/Views/MSE/_StatusMapSingle.cshtml b/MP-MON/Views/MSE/_StatusMapSingle.cshtml index 2f9d6d38..b8abf46b 100644 --- a/MP-MON/Views/MSE/_StatusMapSingle.cshtml +++ b/MP-MON/Views/MSE/_StatusMapSingle.cshtml @@ -19,21 +19,9 @@ string TCAssegnato = TCAss.ToString(@"mm\:ss"); string TCLavorato = TCLav.ToString(@"mm\:ss"); - // verifico SE è disabilitata modalità animazione -> blink a stati (e refresh 1s) - if (System.Web.Configuration.WebConfigurationManager.AppSettings["doAnimate"] == "1") - { - // blink se secondo pari... - DateTime adesso = DateTime.Now; - int resto = 0; - Math.DivRem(adesso.Second, 2, out resto); - if (resto == 0) - { - cssStatus += "_b"; - } - } // verifico se mostrare sarticolo o disegno... string sArticolo = ""; - if (System.Web.Configuration.WebConfigurationManager.AppSettings["sART"] == "CodArticolo") + if (SteamWare.memLayer.ML.CRS("sART") == "CodArticolo") { sArticolo = item.CodArticolo; } @@ -46,14 +34,30 @@ { sArticolo = string.Format("[{0}]", item.CodArticolo); } - // se NON trova update da oltre 1 minuto rosso lo status comunicazione + // se NON trova update da oltre "keepAliveMin" / 2 minuti rosso lo status comunicazione string cssComStatus = cssStatus; string showComErr = "invisible"; - if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalMinutes > 1) + if (DateTime.Now.Subtract((DateTime)item.lastUpdate).TotalSeconds > SteamWare.memLayer.ML.CRI("keepAliveMin") * 60 / 2) { cssComStatus = ViewBag.baseCss + "Ro"; showComErr = "visible"; } + // verifico SE è disabilitata modalità animazione -> blink a stati (e refresh 1s) + if (SteamWare.memLayer.ML.CRS("doAnimate") == "1") + { + // blink se secondo pari... + DateTime adesso = DateTime.Now; + int resto = 0; + Math.DivRem(adesso.Second, 2, out resto); + if (resto == 0) + { + cssStatus += "_b"; + } + else if (cssComStatus.EndsWith("Ro")) + { + cssComStatus += "_b"; + } + }
@*noCpu*@ From 63ebd9ba74b9465f5218c4b06e4bb374b7fd032d Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 18:24:12 +0200 Subject: [PATCH 10/11] eliminata chiave inutile... --- MP-MON/Web.config | 1 - 1 file changed, 1 deletion(-) diff --git a/MP-MON/Web.config b/MP-MON/Web.config index 0ecc9109..6e91fb39 100644 --- a/MP-MON/Web.config +++ b/MP-MON/Web.config @@ -11,7 +11,6 @@ - From b74fb42b50f097f1d4358bf420225a79cafc9be3 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Oct 2018 18:25:06 +0200 Subject: [PATCH 11/11] Bozza aggiunta KIT in IS di Colcom --- MapoDb/DS_IntServ.Designer.cs | 1553 +++++++++++++++++++++++++++++++++ MapoDb/DS_IntServ.xsd | 141 ++- MapoDb/DS_IntServ.xss | 4 +- 3 files changed, 1696 insertions(+), 2 deletions(-) diff --git a/MapoDb/DS_IntServ.Designer.cs b/MapoDb/DS_IntServ.Designer.cs index 46df6f24..217990b0 100644 --- a/MapoDb/DS_IntServ.Designer.cs +++ b/MapoDb/DS_IntServ.Designer.cs @@ -26,6 +26,10 @@ namespace MapoDb { private TransitoDatiDataTable tableTransitoDati; + private AnagKITDataTable tableAnagKIT; + + private CompKITDataTable tableCompKIT; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -57,6 +61,12 @@ namespace MapoDb { if ((ds.Tables["TransitoDati"] != null)) { base.Tables.Add(new TransitoDatiDataTable(ds.Tables["TransitoDati"])); } + if ((ds.Tables["AnagKIT"] != null)) { + base.Tables.Add(new AnagKITDataTable(ds.Tables["AnagKIT"])); + } + if ((ds.Tables["CompKIT"] != null)) { + base.Tables.Add(new CompKITDataTable(ds.Tables["CompKIT"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -85,6 +95,26 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagKITDataTable AnagKIT { + get { + return this.tableAnagKIT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public CompKITDataTable CompKIT { + get { + return this.tableCompKIT; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -155,6 +185,12 @@ namespace MapoDb { if ((ds.Tables["TransitoDati"] != null)) { base.Tables.Add(new TransitoDatiDataTable(ds.Tables["TransitoDati"])); } + if ((ds.Tables["AnagKIT"] != null)) { + base.Tables.Add(new AnagKITDataTable(ds.Tables["AnagKIT"])); + } + if ((ds.Tables["CompKIT"] != null)) { + base.Tables.Add(new CompKITDataTable(ds.Tables["CompKIT"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -194,6 +230,18 @@ namespace MapoDb { this.tableTransitoDati.InitVars(); } } + this.tableAnagKIT = ((AnagKITDataTable)(base.Tables["AnagKIT"])); + if ((initTable == true)) { + if ((this.tableAnagKIT != null)) { + this.tableAnagKIT.InitVars(); + } + } + this.tableCompKIT = ((CompKITDataTable)(base.Tables["CompKIT"])); + if ((initTable == true)) { + if ((this.tableCompKIT != null)) { + this.tableCompKIT.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -206,6 +254,10 @@ namespace MapoDb { this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableTransitoDati = new TransitoDatiDataTable(); base.Tables.Add(this.tableTransitoDati); + this.tableAnagKIT = new AnagKITDataTable(); + base.Tables.Add(this.tableAnagKIT); + this.tableCompKIT = new CompKITDataTable(); + base.Tables.Add(this.tableCompKIT); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -214,6 +266,18 @@ namespace MapoDb { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private bool ShouldSerializeAnagKIT() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private bool ShouldSerializeCompKIT() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -272,6 +336,12 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public delegate void TransitoDatiRowChangeEventHandler(object sender, TransitoDatiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public delegate void AnagKITRowChangeEventHandler(object sender, AnagKITRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public delegate void CompKITRowChangeEventHandler(object sender, CompKITRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -597,6 +667,556 @@ namespace MapoDb { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagKITDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodArtParent; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITDataTable() { + this.TableName = "AnagKIT"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal AnagKITDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected AnagKITDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CodArtParentColumn { + get { + return this.columnCodArtParent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRow this[int index] { + get { + return ((AnagKITRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagKITRowChangeEventHandler AnagKITRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagKITRowChangeEventHandler AnagKITRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagKITRowChangeEventHandler AnagKITRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event AnagKITRowChangeEventHandler AnagKITRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void AddAnagKITRow(AnagKITRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRow AddAnagKITRow(string CodArtParent) { + AnagKITRow rowAnagKITRow = ((AnagKITRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodArtParent}; + rowAnagKITRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagKITRow); + return rowAnagKITRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRow FindByCodArtParent(string CodArtParent) { + return ((AnagKITRow)(this.Rows.Find(new object[] { + CodArtParent}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagKITDataTable cln = ((AnagKITDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagKITDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnCodArtParent = base.Columns["CodArtParent"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitClass() { + this.columnCodArtParent = new global::System.Data.DataColumn("CodArtParent", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArtParent); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodArtParent}, true)); + this.columnCodArtParent.AllowDBNull = false; + this.columnCodArtParent.Unique = true; + this.columnCodArtParent.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRow NewAnagKITRow() { + return ((AnagKITRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagKITRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagKITRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagKITRowChanged != null)) { + this.AnagKITRowChanged(this, new AnagKITRowChangeEvent(((AnagKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagKITRowChanging != null)) { + this.AnagKITRowChanging(this, new AnagKITRowChangeEvent(((AnagKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagKITRowDeleted != null)) { + this.AnagKITRowDeleted(this, new AnagKITRowChangeEvent(((AnagKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagKITRowDeleting != null)) { + this.AnagKITRowDeleting(this, new AnagKITRowChangeEvent(((AnagKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void RemoveAnagKITRow(AnagKITRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_IntServ ds = new DS_IntServ(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagKITDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CompKITDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodArtParent; + + private global::System.Data.DataColumn columnCodArtChild; + + private global::System.Data.DataColumn columnQty; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITDataTable() { + this.TableName = "CompKIT"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal CompKITDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected CompKITDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CodArtParentColumn { + get { + return this.columnCodArtParent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn CodArtChildColumn { + get { + return this.columnCodArtChild; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn QtyColumn { + get { + return this.columnQty; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRow this[int index] { + get { + return ((CompKITRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event CompKITRowChangeEventHandler CompKITRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event CompKITRowChangeEventHandler CompKITRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event CompKITRowChangeEventHandler CompKITRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event CompKITRowChangeEventHandler CompKITRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void AddCompKITRow(CompKITRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRow AddCompKITRow(string CodArtParent, string CodArtChild, int Qty) { + CompKITRow rowCompKITRow = ((CompKITRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodArtParent, + CodArtChild, + Qty}; + rowCompKITRow.ItemArray = columnValuesArray; + this.Rows.Add(rowCompKITRow); + return rowCompKITRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRow FindByCodArtParentCodArtChild(string CodArtParent, string CodArtChild) { + return ((CompKITRow)(this.Rows.Find(new object[] { + CodArtParent, + CodArtChild}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + CompKITDataTable cln = ((CompKITDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new CompKITDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnCodArtParent = base.Columns["CodArtParent"]; + this.columnCodArtChild = base.Columns["CodArtChild"]; + this.columnQty = base.Columns["Qty"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitClass() { + this.columnCodArtParent = new global::System.Data.DataColumn("CodArtParent", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArtParent); + this.columnCodArtChild = new global::System.Data.DataColumn("CodArtChild", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArtChild); + this.columnQty = new global::System.Data.DataColumn("Qty", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQty); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodArtParent, + this.columnCodArtChild}, true)); + this.columnCodArtParent.AllowDBNull = false; + this.columnCodArtParent.MaxLength = 50; + this.columnCodArtChild.AllowDBNull = false; + this.columnCodArtChild.MaxLength = 50; + this.columnQty.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRow NewCompKITRow() { + return ((CompKITRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new CompKITRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(CompKITRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.CompKITRowChanged != null)) { + this.CompKITRowChanged(this, new CompKITRowChangeEvent(((CompKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.CompKITRowChanging != null)) { + this.CompKITRowChanging(this, new CompKITRowChangeEvent(((CompKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.CompKITRowDeleted != null)) { + this.CompKITRowDeleted(this, new CompKITRowChangeEvent(((CompKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.CompKITRowDeleting != null)) { + this.CompKITRowDeleting(this, new CompKITRowChangeEvent(((CompKITRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void RemoveCompKITRow(CompKITRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_IntServ ds = new DS_IntServ(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "CompKITDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -667,6 +1287,80 @@ namespace MapoDb { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagKITRow : global::System.Data.DataRow { + + private AnagKITDataTable tableAnagKIT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal AnagKITRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagKIT = ((AnagKITDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string CodArtParent { + get { + return ((string)(this[this.tableAnagKIT.CodArtParentColumn])); + } + set { + this[this.tableAnagKIT.CodArtParentColumn] = value; + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class CompKITRow : global::System.Data.DataRow { + + private CompKITDataTable tableCompKIT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal CompKITRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableCompKIT = ((CompKITDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string CodArtParent { + get { + return ((string)(this[this.tableCompKIT.CodArtParentColumn])); + } + set { + this[this.tableCompKIT.CodArtParentColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string CodArtChild { + get { + return ((string)(this[this.tableCompKIT.CodArtChildColumn])); + } + set { + this[this.tableCompKIT.CodArtChildColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public int Qty { + get { + return ((int)(this[this.tableCompKIT.QtyColumn])); + } + set { + this[this.tableCompKIT.QtyColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -700,6 +1394,74 @@ namespace MapoDb { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public class AnagKITRowChangeEvent : global::System.EventArgs { + + private AnagKITRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRowChangeEvent(AnagKITRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public class CompKITRowChangeEvent : global::System.EventArgs { + + private CompKITRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRowChangeEvent(CompKITRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MapoDb.DS_IntServTableAdapters { @@ -1101,6 +1863,665 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagKITTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public AnagKITTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagKIT"; + tableMapping.ColumnMappings.Add("CodArtParent", "CodArtParent"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagKIT] WHERE (([CodArtParent] = @Original_CodArtParent))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagKIT] ([CodArtParent]) VALUES (@CodArtParent);\r\nSELECT CodA" + + "rtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[AnagKIT] SET [CodArtParent] = @CodArtParent WHERE (([CodArtParent] " + + "= @Original_CodArtParent));\r\nSELECT CodArtParent FROM AnagKIT WHERE (CodArtParen" + + "t = @CodArtParent)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonPro_IS_ConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodArtParent FROM dbo.AnagKIT"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_IntServ.AnagKITDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_IntServ.AnagKITDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_IntServ.AnagKITDataTable dataTable = new DS_IntServ.AnagKITDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_IntServ.AnagKITDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_IntServ dataSet) { + return this.Adapter.Update(dataSet, "AnagKIT"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_CodArtParent) { + if ((Original_CodArtParent == null)) { + throw new global::System.ArgumentNullException("Original_CodArtParent"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArtParent)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string CodArtParent) { + if ((CodArtParent == null)) { + throw new global::System.ArgumentNullException("CodArtParent"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArtParent)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodArtParent, string Original_CodArtParent) { + if ((CodArtParent == null)) { + throw new global::System.ArgumentNullException("CodArtParent"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArtParent)); + } + if ((Original_CodArtParent == null)) { + throw new global::System.ArgumentNullException("Original_CodArtParent"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Original_CodArtParent)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Original_CodArtParent) { + return this.Update(Original_CodArtParent, Original_CodArtParent); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class CompKITTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public CompKITTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "CompKIT"; + tableMapping.ColumnMappings.Add("CodArtParent", "CodArtParent"); + tableMapping.ColumnMappings.Add("CodArtChild", "CodArtChild"); + tableMapping.ColumnMappings.Add("Qty", "Qty"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[CompKIT] WHERE (([CodArtParent] = @Original_CodArtParent) AND " + + "([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtChild", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtChild", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[CompKIT] ([CodArtParent], [CodArtChild], [Qty]) VALUES (@CodAr" + + "tParent, @CodArtChild, @Qty);\r\nSELECT CodArtParent, CodArtChild, Qty FROM CompKI" + + "T WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtChild", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtChild", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[CompKIT] SET [CodArtParent] = @CodArtParent, [CodArtChild] = @CodArtChild, [Qty] = @Qty WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty)); +SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArtChild", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtChild", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtParent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtParent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArtChild", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArtChild", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonPro_IS_ConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodArtParent, CodArtChild, Qty FROM dbo.CompKIT"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_IntServ.CompKITDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_IntServ.CompKITDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_IntServ.CompKITDataTable dataTable = new DS_IntServ.CompKITDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_IntServ.CompKITDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_IntServ dataSet) { + return this.Adapter.Update(dataSet, "CompKIT"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_CodArtParent, string Original_CodArtChild, int Original_Qty) { + if ((Original_CodArtParent == null)) { + throw new global::System.ArgumentNullException("Original_CodArtParent"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArtParent)); + } + if ((Original_CodArtChild == null)) { + throw new global::System.ArgumentNullException("Original_CodArtChild"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodArtChild)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Qty)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string CodArtParent, string CodArtChild, int Qty) { + if ((CodArtParent == null)) { + throw new global::System.ArgumentNullException("CodArtParent"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArtParent)); + } + if ((CodArtChild == null)) { + throw new global::System.ArgumentNullException("CodArtChild"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArtChild)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Qty)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodArtParent, string CodArtChild, int Qty, string Original_CodArtParent, string Original_CodArtChild, int Original_Qty) { + if ((CodArtParent == null)) { + throw new global::System.ArgumentNullException("CodArtParent"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArtParent)); + } + if ((CodArtChild == null)) { + throw new global::System.ArgumentNullException("CodArtChild"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArtChild)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Qty)); + if ((Original_CodArtParent == null)) { + throw new global::System.ArgumentNullException("Original_CodArtParent"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodArtParent)); + } + if ((Original_CodArtChild == null)) { + throw new global::System.ArgumentNullException("Original_CodArtChild"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodArtChild)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Qty)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int Qty, string Original_CodArtParent, string Original_CodArtChild, int Original_Qty) { + return this.Update(Original_CodArtParent, Original_CodArtChild, Qty, Original_CodArtParent, Original_CodArtChild, Original_Qty); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -1115,6 +2536,10 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER private TransitoDatiTableAdapter _transitoDatiTableAdapter; + private AnagKITTableAdapter _anagKITTableAdapter; + + private CompKITTableAdapter _compKITTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -1144,6 +2569,34 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public AnagKITTableAdapter AnagKITTableAdapter { + get { + return this._anagKITTableAdapter; + } + set { + this._anagKITTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public CompKITTableAdapter CompKITTableAdapter { + get { + return this._compKITTableAdapter; + } + set { + this._compKITTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -1167,6 +2620,14 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER && (this._transitoDatiTableAdapter.Connection != null))) { return this._transitoDatiTableAdapter.Connection; } + if (((this._anagKITTableAdapter != null) + && (this._anagKITTableAdapter.Connection != null))) { + return this._anagKITTableAdapter.Connection; + } + if (((this._compKITTableAdapter != null) + && (this._compKITTableAdapter.Connection != null))) { + return this._compKITTableAdapter.Connection; + } return null; } set { @@ -1183,6 +2644,12 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER if ((this._transitoDatiTableAdapter != null)) { count = (count + 1); } + if ((this._anagKITTableAdapter != null)) { + count = (count + 1); + } + if ((this._compKITTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -1203,6 +2670,24 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER allChangedRows.AddRange(updatedRows); } } + if ((this._anagKITTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagKIT.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagKITTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._compKITTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.CompKIT.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._compKITTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -1221,6 +2706,22 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER allAddedRows.AddRange(addedRows); } } + if ((this._anagKITTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagKIT.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagKITTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._compKITTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.CompKIT.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._compKITTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -1231,6 +2732,22 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private int UpdateDeletedRows(DS_IntServ dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._compKITTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.CompKIT.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._compKITTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._anagKITTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagKIT.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagKITTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._transitoDatiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.TransitoDati.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -1283,6 +2800,16 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } + if (((this._anagKITTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagKITTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + + "a stessa stringa di connessione."); + } + if (((this._compKITTableAdapter != null) + && (this.MatchTableAdapterConnection(this._compKITTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + + "a stessa stringa di connessione."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" + @@ -1325,6 +2852,24 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER adaptersWithAcceptChangesDuringUpdate.Add(this._transitoDatiTableAdapter.Adapter); } } + if ((this._anagKITTableAdapter != null)) { + revertConnections.Add(this._anagKITTableAdapter, this._anagKITTableAdapter.Connection); + this._anagKITTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagKITTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagKITTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagKITTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagKITTableAdapter.Adapter); + } + } + if ((this._compKITTableAdapter != null)) { + revertConnections.Add(this._compKITTableAdapter, this._compKITTableAdapter.Connection); + this._compKITTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._compKITTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._compKITTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._compKITTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._compKITTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -1387,6 +2932,14 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER this._transitoDatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._transitoDatiTableAdapter])); this._transitoDatiTableAdapter.Transaction = null; } + if ((this._anagKITTableAdapter != null)) { + this._anagKITTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagKITTableAdapter])); + this._anagKITTableAdapter.Transaction = null; + } + if ((this._compKITTableAdapter != null)) { + this._compKITTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._compKITTableAdapter])); + this._compKITTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/MapoDb/DS_IntServ.xsd b/MapoDb/DS_IntServ.xsd index 22e95d4c..9a880760 100644 --- a/MapoDb/DS_IntServ.xsd +++ b/MapoDb/DS_IntServ.xsd @@ -79,6 +79,102 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER + + + + + + DELETE FROM [dbo].[AnagKIT] WHERE (([CodArtParent] = @Original_CodArtParent)) + + + + + + + + INSERT INTO [dbo].[AnagKIT] ([CodArtParent]) VALUES (@CodArtParent); +SELECT CodArtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent) + + + + + + + + SELECT CodArtParent FROM dbo.AnagKIT + + + + + + UPDATE [dbo].[AnagKIT] SET [CodArtParent] = @CodArtParent WHERE (([CodArtParent] = @Original_CodArtParent)); +SELECT CodArtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent) + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[CompKIT] WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty)) + + + + + + + + + + INSERT INTO [dbo].[CompKIT] ([CodArtParent], [CodArtChild], [Qty]) VALUES (@CodArtParent, @CodArtChild, @Qty); +SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent) + + + + + + + + + + SELECT CodArtParent, CodArtChild, Qty FROM dbo.CompKIT + + + + + + UPDATE [dbo].[CompKIT] SET [CodArtParent] = @CodArtParent, [CodArtChild] = @CodArtChild, [Qty] = @Qty WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty)); +SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent) + + + + + + + + + + + + + + + + + + + @@ -87,7 +183,7 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER - + @@ -116,11 +212,54 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_IntServ.xss b/MapoDb/DS_IntServ.xss index 5232d06a..cbb2c7ed 100644 --- a/MapoDb/DS_IntServ.xss +++ b/MapoDb/DS_IntServ.xss @@ -6,7 +6,9 @@ --> - + + + \ No newline at end of file