diff --git a/MP-ADM/WebUserControls/mod_gestPromODL.ascx b/MP-ADM/WebUserControls/mod_gestPromODL.ascx index e14395e2..c2341820 100644 --- a/MP-ADM/WebUserControls/mod_gestPromODL.ascx +++ b/MP-ADM/WebUserControls/mod_gestPromODL.ascx @@ -101,12 +101,12 @@ - + - + diff --git a/MP-IO/Controllers/BENCH.cs b/MP-IO/Controllers/BENCH.cs index 16b3f325..f58e7f50 100644 --- a/MP-IO/Controllers/BENCH.cs +++ b/MP-IO/Controllers/BENCH.cs @@ -73,8 +73,6 @@ namespace MP_IO.Controllers KeyValuePair[] valori = new KeyValuePair[2]; try { - // recupero tutti i record della tabella - // salvo il datasetet come insieme di hash in redis... for (int i = 0; i < id; i++) { @@ -133,7 +131,7 @@ namespace MP_IO.Controllers // ritorno return answ; } - // GET BENCH/DTMAC/2004 + // GET BENCH/DTMAC/SIMUL_01 public string DTMAC(string id) { string answ = "ND"; @@ -166,15 +164,15 @@ namespace MP_IO.Controllers // ritorno return answ; } - // GET BENCH/CNTKEY/KEY_NAME + // GET BENCH/CNTKEY/test public string CNTKEY(string id) { string answ = "ND"; if (id == null) id = ""; Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); - // conto quanti oggetti DTMac ho in memoria... - string groupHash = DataLayer.mHash(""); + // conto quanti oggetti ho in memoria REDIS... + string groupHash = ""; // DataLayer.mHash(""); if (id.Length > 0) { groupHash += id + ":"; @@ -189,7 +187,7 @@ namespace MP_IO.Controllers // ritorno return answ; } - // GET BENCH/tSMI/1 + // GET BENCH/tSMI/60 public string tSMI(int? id) { string answ = "ND"; diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 2ca5efd7..2265a467 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -135,6 +135,38 @@ namespace MP_IO.Controllers return answ; } + /// + /// Chiude PODL --> ODL x macchina: + /// + /// GET: IOB/closePODL/SIMUL_03?idxPOdl=123 + /// + /// id macchina + /// idx dell'ODL da chiudere + /// bool esecuzione + public bool closePODL(string id, int idxPOdl) + { + bool answ = false; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + //cerco PODL e se questo ha un ODL associato... + var tabPodl = DataLayerObj.taPODL.getByKey(idxPOdl); + // se trovato... + if (tabPodl != null && tabPodl.Rows.Count > 0) + { + int idxOdl = tabPodl[0].IdxODL; + // chiamata diretta sul DB... + DataLayerObj.taODL.forceClose(idxOdl, id); + answ = true; + } + } + catch + { } + return answ; + } + // GET: IOB/enabled/SIMUL_03 public string enabled(string id) { @@ -759,7 +791,7 @@ namespace MP_IO.Controllers } /// - /// Recupera DATI PODL correnti x macchina: + /// Recupera DATI PODL correnti (=NON AVVIATI) x macchina: /// /// GET: IOB/getCurrPODL/SIMUL_03 /// @@ -1255,6 +1287,37 @@ namespace MP_IO.Controllers return answ; } + /// + /// Recupera DATI PODL x macchina e codice PODL: + /// + /// GET: IOB/getPODL/SIMUL_03?idxPODL=123 + /// + /// + /// idx del PDL da avviare + /// Json contenente lista oggetti PODL serializzati + public string getPODL(string id, int idxPODL) + { + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + if (!string.IsNullOrEmpty(id)) + { + id = id.Replace("|", "#"); + } + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati da chaive, ignorando info macchina... + var elencoOdl = DataLayerObj.taPODL.getByKey(idxPODL); + answ = JsonConvert.SerializeObject(elencoOdl); + } + catch + { } + return answ; + } + /// /// Recupera TASK richiesto x macchina: /// diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx index 5a73d32c..a726dd7b 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx @@ -4,7 +4,14 @@
- +
+
+ +
+
+ +
+
@@ -203,4 +210,4 @@
-
\ No newline at end of file + diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs index 1cb5e151..1e9883b9 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs @@ -58,20 +58,29 @@ namespace MP_SITE.WebUserControls /// /// imposta le labels sezione "ODL" /// - /// - /// private void setLabelsODL() { - int odl = 0; + int idxOdl = 0; + int idxPOdl = 0; DateTime dataFrom = DateTime.Now; DateTime dataTo = DateTime.Now; // label ODL try { DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByMacchina(idxMacchina)[0]; - odl = rigaOdl.IdxODL; + idxOdl = rigaOdl.IdxODL; + if (idxOdl > 0) + { + var tabPOdl = DataLayerObj.taPODL.getByIdxOdl(idxOdl); + if (tabPOdl != null && tabPOdl.Rows.Count > 0) + { + idxPOdl = tabPOdl[0].idxPromessa; + } + } dataFrom = rigaOdl.DataInizio; - lblOdl.Text = string.Format("ODL num: {0}, iniziato il {1:dd/MM/yy} alle {1:HH:mm}", odl, dataFrom); + lblOdl.Text = idxPOdl > 0 ? $"PODL{idxPOdl:00000000} | " : "[NO PODL] "; + lblOdl.Text += $"ODL{idxOdl:00000000}"; + lblOdlPer.Text = $"start: {dataFrom:dd/MM/yy HH:mm}"; } catch { diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs index b2d0c7bc..30386aee 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.designer.cs @@ -23,6 +23,15 @@ namespace MP_SITE.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblOdl; + /// + /// lblOdlPer control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblOdlPer; + /// /// lblEfficienzaTot control. /// diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx b/MP-Site/WebUserControls/mod_statoMacchina.ascx index e165724b..996b9b09 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx @@ -18,6 +18,14 @@ +
+
+ +
+
+ +
+
diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs index a5e0c375..2b384060 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs @@ -235,6 +235,8 @@ namespace MP_SITE.WebUserControls // leggo valori da MSE... valMacchina.Text = tabMSE[0].Nome; valCodArticolo.Text = tabMSE[0].CodArticolo; + valPODL.Text = tabMSE[0].idxPODL > 0 ? $"PODL{tabMSE[0].idxPODL:00000000}" : "PODL -"; + valODL.Text = tabMSE[0].idxODL > 0 ? $"ODL{tabMSE[0].idxODL}" : "ODL -"; // carico ultimo stato che sia durato almeno 6 sec (0.1 min) int idxStato = 0; int oreTot = 0; @@ -262,7 +264,7 @@ namespace MP_SITE.WebUserControls // 2018.02.05 cambio x fix nuovi impianti //valStato.Text = tabAnagStati.FindByIdxStato(idxStato).Descrizione; valStato.Text = tabMSE[0].DescrizioneStato; - valDurata.Text = string.Format("{0}h {1}min", oreTot, minuti); + valDurata.Text = $"{oreTot}h {minuti:N2}min"; // solo se in stato NON di run... if (idxStato != 13) { @@ -277,7 +279,7 @@ namespace MP_SITE.WebUserControls { // 2018.02.05 cambio x fix nuovi impianti //cauFermo = string.Format("IN: {0}", tabStatoMacchine.FindByIdxMacchina(IdxMacchina).Value); - cauFermo = string.Format("IN: {0}", tabMSE[0].idxStato); + cauFermo = $"IN: {tabMSE[0].idxStato}"; } valCausale.Text = cauFermo; } diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx.designer.cs b/MP-Site/WebUserControls/mod_statoMacchina.ascx.designer.cs index 21e95024..1b550b0d 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx.designer.cs +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx.designer.cs @@ -1,185 +1,205 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ -namespace MP_SITE.WebUserControls { - - - public partial class mod_statoMacchina { - +namespace MP_SITE.WebUserControls +{ + + + public partial class mod_statoMacchina + { + /// - /// Controllo pnlMacchina. + /// pnlMacchina control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Panel pnlMacchina; - + /// - /// Controllo hfIdxMacchina. + /// hfIdxMacchina control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfIdxMacchina; - + /// - /// Controllo divData. + /// divData control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divData; - + /// - /// Controllo valMacchina. + /// valMacchina control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton valMacchina; - + /// - /// Controllo lnkMacchina. + /// lnkMacchina control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton lnkMacchina; - + /// - /// Controllo lblCodArticolo. + /// lblCodArticolo control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblCodArticolo; - + /// - /// Controllo valCodArticolo. + /// valCodArticolo control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label valCodArticolo; - + /// - /// Controllo lblProd. + /// valPODL control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label valPODL; + + /// + /// valODL control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label valODL; + + /// + /// lblProd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblProd; - + /// - /// Controllo valProd. + /// valProd control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label valProd; - + /// - /// Controllo imgThumb. + /// imgThumb control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Image imgThumb; - + /// - /// Controllo lblStato. + /// lblStato control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblStato; - + /// - /// Controllo valStato. + /// valStato control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label valStato; - + /// - /// Controllo lblDurata. + /// lblDurata control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblDurata; - + /// - /// Controllo valDurata. + /// valDurata control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label valDurata; - + /// - /// Controllo lblCausale. + /// lblCausale control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblCausale; - + /// - /// Controllo valCausale. + /// valCausale control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label valCausale; - + /// - /// Controllo divWarn. + /// divWarn control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWarn; - + /// - /// Controllo hlComWarning. + /// hlComWarning control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HyperLink hlComWarning; - + /// - /// Controllo divSegnaposto. + /// divSegnaposto control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSegnaposto; } diff --git a/MP-TAB/Content/baseStyle.css b/MP-TAB/Content/baseStyle.css index f674f7de..f4ff7b23 100644 --- a/MP-TAB/Content/baseStyle.css +++ b/MP-TAB/Content/baseStyle.css @@ -48,12 +48,13 @@ body .ui-overlay-c { top: 0; left: auto; bottom: auto; - /* Custom styling. */ - color: #c0c0c0; - background: #990099; - background: rgba(153, 0, 153, 0.8); + color: #FFFFFF; + background: #2200DE; + background: rgba(33, 0, 200, 0.7); -webkit-border-top-right-radius: inherit; border-top-right-radius: inherit; + -webkit-border-top-left-radius: inherit; + border-top-left-radius: inherit; -webkit-border-bottom-left-radius: inherit; border-bottom-left-radius: inherit; -webkit-border-bottom-right-radius: 0; diff --git a/MP-TAB/Content/baseStyle.less b/MP-TAB/Content/baseStyle.less index 3207df9b..11d85c23 100644 --- a/MP-TAB/Content/baseStyle.less +++ b/MP-TAB/Content/baseStyle.less @@ -56,12 +56,14 @@ body .ui-body-a, body .ui-body-c, body .ui-overlay-c { min-height: 0; top: 0; left: auto; - bottom: auto; /* Custom styling. */ - color: #c0c0c0; - background: #990099; - background: rgba(153,0,153,.80); + bottom: auto; + color: #FFFFFF; + background: #2200DE; + background: rgba(33,0,200,.7); -webkit-border-top-right-radius: inherit; border-top-right-radius: inherit; + -webkit-border-top-left-radius: inherit; + border-top-left-radius: inherit; -webkit-border-bottom-left-radius: inherit; border-bottom-left-radius: inherit; -webkit-border-bottom-right-radius: 0; diff --git a/MP-TAB/Content/baseStyle.min.css b/MP-TAB/Content/baseStyle.min.css index ecb78c7a..748645ea 100644 --- a/MP-TAB/Content/baseStyle.min.css +++ b/MP-TAB/Content/baseStyle.min.css @@ -1 +1 @@ -body{font-family:'Open Sans',sans-serif;color:#fff;background-image:linear-gradient(#444,#222);}body .ui-body-a,body .ui-body-c,body .ui-overlay-c{text-shadow:0 0 0;}.bodyDark{color:#fff;background-image:linear-gradient(#444,#222);}.bg-black{color:#fff;background-image:linear-gradient(#111,#000);}.titleBlock{font-family:'Open Sans Condensed',sans-serif;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.mapBlock{font-family:'Open Sans Condensed',sans-serif;color:#fff;background-image:linear-gradient(#111,#000);min-width:8em;}.rCAll{border-radius:10px;}.rCTop{border-radius:10px 10px 0 0;}.rCBot{border-radius:0 0 10px 10px;}.labelTopDx{padding:.1em .4em;width:auto;min-height:0;top:0;left:auto;bottom:auto;color:#c0c0c0;background:#909;background:rgba(153,0,153,.8);-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}@media(max-width:576px){.modal-dialog.modal-dialog-slideout{width:70%;}}@media(max-width:600px){.modal-dialog.modal-dialog-slideout{width:65%;}}.modal-dialog-slideout{min-height:100%;margin:0 auto 0 0;background:#fff;}.modal.fade .modal-dialog.modal-dialog-slideout{-webkit-transform:translate(-100%,0);transform:translate(-100%,0);}.modal.fade.show .modal-dialog.modal-dialog-slideout{-webkit-transform:translate(0,0);transform:translate(0,0);flex-flow:column;}.modal-dialog-slideout .modal-content{border:0;}.switch{position:relative;display:inline-block;width:60px;height:34px;}.switch input{display:none;}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;}.slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s;}input:checked+.slider{background-color:#2196f3;}input:focus+.slider{box-shadow:0 0 1px #2196f3;}input:checked+.slider:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}.divSx{float:left;padding:0;margin:0;}.divDx{float:right;padding:0;margin:0;}.divCenter{float:none;text-align:center;padding:0;margin:0 auto 0 auto;}.clearDiv{clear:both;}.stdFont{color:#000;text-shadow:0 0 0 #111;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}.rowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1);border:1px solid #cdcdcd;}.alternatingRowStyle{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.sVe{text-align:left;background:#009036;background:rgba(0,255,80,.6);color:#ff0;}.sGi{text-align:left;background:#ffec00;background:rgba(255,220,0,.6);}.sRo{text-align:left;background-color:#e2001a;background:rgba(240,0,10,.6);}.sBl{text-align:left;background:#3690ff;background:rgba(0,80,255,.6);color:#ff0;}.sGr{text-align:left;background-color:#bcbcbc;background:rgba(180,180,180,.6);} \ No newline at end of file +body{font-family:'Open Sans',sans-serif;color:#fff;background-image:linear-gradient(#444,#222);}body .ui-body-a,body .ui-body-c,body .ui-overlay-c{text-shadow:0 0 0;}.bodyDark{color:#fff;background-image:linear-gradient(#444,#222);}.bg-black{color:#fff;background-image:linear-gradient(#111,#000);}.titleBlock{font-family:'Open Sans Condensed',sans-serif;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.mapBlock{font-family:'Open Sans Condensed',sans-serif;color:#fff;background-image:linear-gradient(#111,#000);min-width:8em;}.rCAll{border-radius:10px;}.rCTop{border-radius:10px 10px 0 0;}.rCBot{border-radius:0 0 10px 10px;}.labelTopDx{padding:.1em .4em;width:auto;min-height:0;top:0;left:auto;bottom:auto;color:#fff;background:#2200de;background:rgba(33,0,200,.7);-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;-webkit-border-top-left-radius:inherit;border-top-left-radius:inherit;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}@media(max-width:576px){.modal-dialog.modal-dialog-slideout{width:70%;}}@media(max-width:600px){.modal-dialog.modal-dialog-slideout{width:65%;}}.modal-dialog-slideout{min-height:100%;margin:0 auto 0 0;background:#fff;}.modal.fade .modal-dialog.modal-dialog-slideout{-webkit-transform:translate(-100%,0);transform:translate(-100%,0);}.modal.fade.show .modal-dialog.modal-dialog-slideout{-webkit-transform:translate(0,0);transform:translate(0,0);flex-flow:column;}.modal-dialog-slideout .modal-content{border:0;}.switch{position:relative;display:inline-block;width:60px;height:34px;}.switch input{display:none;}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;}.slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s;}input:checked+.slider{background-color:#2196f3;}input:focus+.slider{box-shadow:0 0 1px #2196f3;}input:checked+.slider:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px);}.slider.round{border-radius:34px;}.slider.round:before{border-radius:50%;}.divSx{float:left;padding:0;margin:0;}.divDx{float:right;padding:0;margin:0;}.divCenter{float:none;text-align:center;padding:0;margin:0 auto 0 auto;}.clearDiv{clear:both;}.stdFont{color:#000;text-shadow:0 0 0 #111;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}.rowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1);border:1px solid #cdcdcd;}.alternatingRowStyle{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.sVe{text-align:left;background:#009036;background:rgba(0,255,80,.6);color:#ff0;}.sGi{text-align:left;background:#ffec00;background:rgba(255,220,0,.6);}.sRo{text-align:left;background-color:#e2001a;background:rgba(240,0,10,.6);}.sBl{text-align:left;background:#3690ff;background:rgba(0,80,255,.6);color:#ff0;}.sGr{text-align:left;background-color:#bcbcbc;background:rgba(180,180,180,.6);} \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx b/MP-TAB/WebUserControls/mod_dettMacchina.ascx index 08bf7ef5..a5b057fe 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx @@ -15,13 +15,13 @@
-
+
-
+
- +
diff --git a/MP-TAB/WebUserControls/mod_mappaStato.ascx b/MP-TAB/WebUserControls/mod_mappaStato.ascx index 5622d396..fe4efbe4 100644 --- a/MP-TAB/WebUserControls/mod_mappaStato.ascx +++ b/MP-TAB/WebUserControls/mod_mappaStato.ascx @@ -12,9 +12,23 @@ <%# Eval("CodMacchina") %>
-
- - +
+
+
+ Art +
+
+ +
+
+
+
+ +
+
+ +
+
diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index 6941e8eb..419d1b41 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -255,7 +255,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_AutoDayGener @@ -269,7 +269,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_AutoStart @@ -288,7 +288,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_clearSetup @@ -300,7 +300,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_deleteQuery @@ -311,7 +311,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_dividiDaAltraTav @@ -324,7 +324,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_fineProd @@ -336,7 +336,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_fixMachineSlave @@ -349,7 +349,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_forceClose @@ -466,7 +466,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetup @@ -482,7 +482,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetupPromessa @@ -498,7 +498,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetupPromessaPostuma @@ -511,7 +511,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insertProvv @@ -527,7 +527,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insertQuery @@ -545,7 +545,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insPostumo @@ -568,7 +568,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_split @@ -586,7 +586,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_updateQta @@ -599,7 +599,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_update @@ -619,7 +619,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_updateSetup @@ -1753,7 +1753,7 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch - DELETE FROM [MappaStatoExpl] WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Disegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))) + DELETE FROM [MappaStatoExpl] WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_idxPODL = 1 AND [idxPODL] IS NULL) OR ([idxPODL] = @Original_idxPODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Disegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))) @@ -1768,6 +1768,8 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch + + @@ -1813,8 +1815,7 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch - INSERT INTO [MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [CodArticolo], [Disegno], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @CodArticolo, @Disegno, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT); -SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = SCOPE_IDENTITY()) + INSERT INTO [MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [idxPODL], [CodArticolo], [Disegno], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @idxPODL, @CodArticolo, @Disegno, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT) @@ -1822,6 +1823,7 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic + @@ -1847,23 +1849,21 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic - SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, - TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT -FROM MappaStatoExpl + SELECT * FROM MappaStatoExpl - UPDATE [MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [url] = @url, [idxODL] = @idxODL, [CodArticolo] = @CodArticolo, [Disegno] = @Disegno, [NumPezzi] = @NumPezzi, [TCAssegnato] = @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @Semaforo, [idxStato] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata] = @durata, [PezziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @TempoOn, [TempoAuto] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [TCLav] = @TCLav, [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavRT, [TCEffRT] = @TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Disegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))); -SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = @RowNum) + UPDATE [MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [url] = @url, [idxODL] = @idxODL, [idxPODL] = @idxPODL, [CodArticolo] = @CodArticolo, [Disegno] = @Disegno, [NumPezzi] = @NumPezzi, [TCAssegnato] = @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @Semaforo, [idxStato] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata] = @durata, [PezziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @TempoOn, [TempoAuto] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [TCLav] = @TCLav, [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavRT, [TCEffRT] = @TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_idxPODL = 1 AND [idxPODL] IS NULL) OR ([idxPODL] = @Original_idxPODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Disegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))); +SELECT RowNum, lastUpdate, CodMacchina, Nome, url, idxODL, idxPODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = @RowNum) - + @@ -1887,8 +1887,6 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic - - @@ -1897,6 +1895,8 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic + + @@ -1937,7 +1937,7 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic - + @@ -1951,7 +1951,9 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic + + @@ -1970,7 +1972,6 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic - @@ -2357,6 +2358,17 @@ ORDER BY idxPromessa DESC + + + + dbo.stp_PODL_getByIdxOdl + + + + + + + @@ -3040,81 +3052,82 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - - - + + + - + - + - + - - + + + - - - - + - - + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -3492,9 +3505,9 @@ SELECT IdxMacchina, IdxMacchinaSlave FROM Macchine2Slave WHERE (IdxMacchina = @I - + - + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index df8a76ab..9cee3317 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -14,13 +14,13 @@ - + - + diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs index c52824e4..a283fe87 100644 --- a/MapoDb/DS_ProdTempi1.Designer.cs +++ b/MapoDb/DS_ProdTempi1.Designer.cs @@ -6322,8 +6322,12 @@ namespace MapoDb { private global::System.Data.DataColumn columnidxODL; + private global::System.Data.DataColumn columnidxPODL; + private global::System.Data.DataColumn columnCodArticolo; + private global::System.Data.DataColumn columnDisegno; + private global::System.Data.DataColumn columnNumPezzi; private global::System.Data.DataColumn columnTCAssegnato; @@ -6360,8 +6364,6 @@ namespace MapoDb { private global::System.Data.DataColumn columnTCEffRT; - private global::System.Data.DataColumn columnDisegno; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public MappaStatoExplDataTable() { @@ -6451,6 +6453,14 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn idxPODLColumn { + get { + return this.columnidxPODL; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public global::System.Data.DataColumn CodArticoloColumn { @@ -6459,6 +6469,14 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DisegnoColumn { + get { + return this.columnDisegno; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public global::System.Data.DataColumn NumPezziColumn { @@ -6603,14 +6621,6 @@ namespace MapoDb { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn DisegnoColumn { - get { - return this.columnDisegno; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -6655,7 +6665,9 @@ namespace MapoDb { string Nome, string url, int idxODL, + int idxPODL, string CodArticolo, + string Disegno, int NumPezzi, decimal TCAssegnato, System.DateTime DataInizioODL, @@ -6673,8 +6685,7 @@ namespace MapoDb { decimal TCEff, decimal TCMedioRT, decimal TCLavRT, - decimal TCEffRT, - string Disegno) { + decimal TCEffRT) { MappaStatoExplRow rowMappaStatoExplRow = ((MappaStatoExplRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -6684,7 +6695,9 @@ namespace MapoDb { Nome, url, idxODL, + idxPODL, CodArticolo, + Disegno, NumPezzi, TCAssegnato, DataInizioODL, @@ -6702,8 +6715,7 @@ namespace MapoDb { TCEff, TCMedioRT, TCLavRT, - TCEffRT, - Disegno}; + TCEffRT}; rowMappaStatoExplRow.ItemArray = columnValuesArray; this.Rows.Add(rowMappaStatoExplRow); return rowMappaStatoExplRow; @@ -6711,9 +6723,9 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public MappaStatoExplRow FindByIdxMacchina(string IdxMacchina) { + public MappaStatoExplRow FindByRowNum(int RowNum) { return ((MappaStatoExplRow)(this.Rows.Find(new object[] { - IdxMacchina}))); + RowNum}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -6740,7 +6752,9 @@ namespace MapoDb { this.columnNome = base.Columns["Nome"]; this.columnurl = base.Columns["url"]; this.columnidxODL = base.Columns["idxODL"]; + this.columnidxPODL = base.Columns["idxPODL"]; this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnDisegno = base.Columns["Disegno"]; this.columnNumPezzi = base.Columns["NumPezzi"]; this.columnTCAssegnato = base.Columns["TCAssegnato"]; this.columnDataInizioODL = base.Columns["DataInizioODL"]; @@ -6759,7 +6773,6 @@ namespace MapoDb { this.columnTCMedioRT = base.Columns["TCMedioRT"]; this.columnTCLavRT = base.Columns["TCLavRT"]; this.columnTCEffRT = base.Columns["TCEffRT"]; - this.columnDisegno = base.Columns["Disegno"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -6779,8 +6792,12 @@ namespace MapoDb { base.Columns.Add(this.columnurl); this.columnidxODL = new global::System.Data.DataColumn("idxODL", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnidxODL); + this.columnidxPODL = new global::System.Data.DataColumn("idxPODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxPODL); this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodArticolo); + this.columnDisegno = new global::System.Data.DataColumn("Disegno", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDisegno); this.columnNumPezzi = new global::System.Data.DataColumn("NumPezzi", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNumPezzi); this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); @@ -6817,25 +6834,24 @@ namespace MapoDb { base.Columns.Add(this.columnTCLavRT); this.columnTCEffRT = new global::System.Data.DataColumn("TCEffRT", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTCEffRT); - this.columnDisegno = new global::System.Data.DataColumn("Disegno", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDisegno); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnIdxMacchina}, true)); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] { + this.columnRowNum}, true)); this.columnRowNum.AutoIncrement = true; this.columnRowNum.AutoIncrementSeed = -1; this.columnRowNum.AutoIncrementStep = -1; this.columnRowNum.AllowDBNull = false; this.columnRowNum.ReadOnly = true; - this.columnIdxMacchina.AllowDBNull = false; - this.columnIdxMacchina.Unique = true; + this.columnRowNum.Unique = true; this.columnIdxMacchina.MaxLength = 50; this.columnCodMacchina.MaxLength = 50; this.columnNome.MaxLength = 50; this.columnurl.MaxLength = 250; + this.columnidxODL.DefaultValue = ((int)(0)); + this.columnidxPODL.DefaultValue = ((int)(0)); this.columnCodArticolo.MaxLength = 50; + this.columnDisegno.MaxLength = 50; this.columnSemaforo.MaxLength = 50; this.columnDescrizioneStato.MaxLength = 50; - this.columnDisegno.MaxLength = 50; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -13470,7 +13486,12 @@ namespace MapoDb { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string IdxMacchina { get { - return ((string)(this[this.tableMappaStatoExpl.IdxMacchinaColumn])); + try { + return ((string)(this[this.tableMappaStatoExpl.IdxMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxMacchina\' in table \'MappaStatoExpl\' is DBNull.", e); + } } set { this[this.tableMappaStatoExpl.IdxMacchinaColumn] = value; @@ -13541,6 +13562,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int idxPODL { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.idxPODLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxPODL\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.idxPODLColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public string CodArticolo { @@ -13557,6 +13594,22 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Disegno { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.DisegnoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Disegno\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.DisegnoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public int NumPezzi { @@ -13845,22 +13898,6 @@ namespace MapoDb { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Disegno { - get { - try { - return ((string)(this[this.tableMappaStatoExpl.DisegnoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Disegno\' in table \'MappaStatoExpl\' is DBNull.", e); - } - } - set { - this[this.tableMappaStatoExpl.DisegnoColumn] = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IslastUpdateNull() { @@ -13873,6 +13910,18 @@ namespace MapoDb { this[this.tableMappaStatoExpl.lastUpdateColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsIdxMacchinaNull() { + return this.IsNull(this.tableMappaStatoExpl.IdxMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetIdxMacchinaNull() { + this[this.tableMappaStatoExpl.IdxMacchinaColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsCodMacchinaNull() { @@ -13921,6 +13970,18 @@ namespace MapoDb { this[this.tableMappaStatoExpl.idxODLColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsidxPODLNull() { + return this.IsNull(this.tableMappaStatoExpl.idxPODLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetidxPODLNull() { + this[this.tableMappaStatoExpl.idxPODLColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsCodArticoloNull() { @@ -13933,6 +13994,18 @@ namespace MapoDb { this[this.tableMappaStatoExpl.CodArticoloColumn] = global::System.Convert.DBNull; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsDisegnoNull() { + return this.IsNull(this.tableMappaStatoExpl.DisegnoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetDisegnoNull() { + this[this.tableMappaStatoExpl.DisegnoColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsNumPezziNull() { @@ -14148,18 +14221,6 @@ namespace MapoDb { public void SetTCEffRTNull() { this[this.tableMappaStatoExpl.TCEffRTColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsDisegnoNull() { - return this.IsNull(this.tableMappaStatoExpl.DisegnoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetDisegnoNull() { - this[this.tableMappaStatoExpl.DisegnoColumn] = global::System.Convert.DBNull; - } } /// @@ -25170,7 +25231,9 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch tableMapping.ColumnMappings.Add("Nome", "Nome"); tableMapping.ColumnMappings.Add("url", "url"); tableMapping.ColumnMappings.Add("idxODL", "idxODL"); + tableMapping.ColumnMappings.Add("idxPODL", "idxPODL"); tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("Disegno", "Disegno"); tableMapping.ColumnMappings.Add("NumPezzi", "NumPezzi"); tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); tableMapping.ColumnMappings.Add("DataInizioODL", "DataInizioODL"); @@ -25189,7 +25252,6 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch tableMapping.ColumnMappings.Add("TCMedioRT", "TCMedioRT"); tableMapping.ColumnMappings.Add("TCLavRT", "TCLavRT"); tableMapping.ColumnMappings.Add("TCEffRT", "TCEffRT"); - tableMapping.ColumnMappings.Add("Disegno", "Disegno"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; @@ -25200,30 +25262,31 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch "OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS" + " NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR" + " ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([id" + - "xODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NU" + - "LL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [D" + - "isegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 " + - "AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAs" + - "segnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato" + - ")) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioO" + - "DL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NUL" + - "L) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStat" + - "o] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato" + - " = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_Descrizi" + - "oneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Origin" + - "al_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd]" + - " = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR" + - " ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS" + - " NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [Temp" + - "oAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun =" + - " 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_T" + - "CMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsN" + - "ull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull" + - "_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TC" + - "MedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND" + - " ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)" + - ") AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCE" + - "ffRT)))"; + "xODL] = @Original_idxODL)) AND ((@IsNull_idxPODL = 1 AND [idxPODL] IS NULL) OR (" + + "[idxPODL] = @Original_idxPODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] " + + "IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 A" + + "ND [Disegno] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi" + + " = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull" + + "_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAsse" + + "gnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataIn" + + "izioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] I" + + "S NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [id" + + "xStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_Descrizione" + + "Stato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_Des" + + "crizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @O" + + "riginal_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([Pezzi" + + "Prod] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NUL" + + "L) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoO" + + "n] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND " + + "[TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_Tempo" + + "Run = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsN" + + "ull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND (" + + "(@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@I" + + "sNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNu" + + "ll_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)" + + ") AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCL" + + "avRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Origina" + + "l_TCEffRT)))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lastUpdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -25238,6 +25301,8 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Disegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Disegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -25280,8 +25345,7 @@ SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacch this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", 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 [MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [CodArticolo], [Disegno], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @CodArticolo, @Disegno, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT); -SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [idxPODL], [CodArticolo], [Disegno], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @idxPODL, @CodArticolo, @Disegno, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -25289,6 +25353,7 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Disegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -25311,56 +25376,55 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", 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 [MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [IdxMacchina] = @IdxMacch" + - "ina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [url] = @url, [idxODL] = @idx" + - "ODL, [CodArticolo] = @CodArticolo, [Disegno] = @Disegno, [NumPezzi] = @NumPezzi," + - " [TCAssegnato] = @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @S" + - "emaforo, [idxStato] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata" + - "] = @durata, [PezziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @Te" + - "mpoOn, [TempoAuto] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [" + - "TCLav] = @TCLav, [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavR" + - "T, [TCEffRT] = @TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastU" + - "pdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AN" + - "D ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Orig" + - "inal_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR (" + - "[CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NUL" + - "L) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([u" + - "rl] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL" + - "] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) " + - "OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Diseg" + - "no] IS NULL) OR ([Disegno] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND " + - "[NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegn" + - "ato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) A" + - "ND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] " + - "= @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) O" + - "R ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] I" + - "S NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1" + - " AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneS" + - "tato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_d" + - "urata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @" + - "Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([P" + - "ezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NUL" + - "L) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAut" + - "o] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 A" + - "ND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMed" + - "io = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_" + - "TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCE" + - "ff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedi" + - "oRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@" + - "IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AN" + - "D ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT" + - ")));\r\nSELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, Co" + - "dArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, De" + - "scrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMe" + - "dio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum" + - " = @RowNum)"; + this._adapter.UpdateCommand.CommandText = "UPDATE [MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [CodMacchina] = @CodMacch" + + "ina, [Nome] = @Nome, [url] = @url, [idxODL] = @idxODL, [idxPODL] = @idxPODL, [Co" + + "dArticolo] = @CodArticolo, [Disegno] = @Disegno, [NumPezzi] = @NumPezzi, [TCAsse" + + "gnato] = @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @Semaforo," + + " [idxStato] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata] = @dur" + + "ata, [PezziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @TempoOn, [" + + "TempoAuto] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [TCLav] =" + + " @TCLav, [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavRT, [TCEf" + + "fRT] = @TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = " + + "1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsN" + + "ull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_Cod" + + "Macchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nom" + + "e)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@" + + "IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((" + + "@IsNull_idxPODL = 1 AND [idxPODL] IS NULL) OR ([idxPODL] = @Original_idxPODL)) A" + + "ND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Ori" + + "ginal_CodArticolo)) AND ((@IsNull_Disegno = 1 AND [Disegno] IS NULL) OR ([Disegn" + + "o] = @Original_Disegno)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR (" + + "[NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato" + + "] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioO" + + "DL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioOD" + + "L)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Origina" + + "l_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] =" + + " @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] " + + "IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_dur" + + "ata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_Pe" + + "zziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND" + + " ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_Pe" + + "zziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Orig" + + "inal_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAu" + + "to] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) O" + + "R ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS " + + "NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS" + + " NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NU" + + "LL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] " + + "IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [" + + "TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 " + + "AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT)));\r\nSELECT RowNum, las" + + "tUpdate, CodMacchina, Nome, url, idxODL, idxPODL, CodArticolo, Disegno, NumPezzi" + + ", TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, Pezz" + + "iProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT" + + ", TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = @RowNum)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Disegno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -25384,8 +25448,6 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lastUpdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -25394,6 +25456,8 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxPODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Disegno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Disegno", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); @@ -25450,9 +25514,7 @@ SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArtic this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, - TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT -FROM MappaStatoExpl"; + this._commandCollection[0].CommandText = "SELECT * FROM MappaStatoExpl"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -25634,6 +25696,7 @@ FROM MappaStatoExpl"; string Original_Nome, string Original_url, global::System.Nullable Original_idxODL, + global::System.Nullable Original_idxPODL, string Original_CodArticolo, string Original_Disegno, global::System.Nullable Original_NumPezzi, @@ -25703,166 +25766,174 @@ FROM MappaStatoExpl"; this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; } - if ((Original_CodArticolo == null)) { + if ((Original_idxPODL.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_idxPODL.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_CodArticolo)); - } - if ((Original_Disegno == null)) { + if ((Original_CodArticolo == null)) { this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; } else { this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Disegno)); + this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_CodArticolo)); } - if ((Original_NumPezzi.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_NumPezzi.Value)); - } - else { + if ((Original_Disegno == null)) { this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; } - if ((Original_TCAssegnato.HasValue == true)) { + else { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_Disegno)); + } + if ((Original_NumPezzi.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[20].Value = ((decimal)(Original_TCAssegnato.Value)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_NumPezzi.Value)); } else { this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; } - if ((Original_DataInizioODL.HasValue == true)) { + if ((Original_TCAssegnato.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[22].Value = ((System.DateTime)(Original_DataInizioODL.Value)); + this.Adapter.DeleteCommand.Parameters[22].Value = ((decimal)(Original_TCAssegnato.Value)); } else { this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; } - if ((Original_Semaforo == null)) { + if ((Original_DataInizioODL.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[24].Value = ((System.DateTime)(Original_DataInizioODL.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_Semaforo)); - } - if ((Original_idxStato.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_idxStato.Value)); - } - else { + if ((Original_Semaforo == null)) { this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; } - if ((Original_DescrizioneStato == null)) { + else { + this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_Semaforo)); + } + if ((Original_idxStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[28].Value = ((int)(Original_idxStato.Value)); + } + else { this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; } - else { - this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_DescrizioneStato)); - } - if ((Original_durata.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[30].Value = ((double)(Original_durata.Value)); - } - else { + if ((Original_DescrizioneStato == null)) { this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; } - if ((Original_PezziProd.HasValue == true)) { + else { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_DescrizioneStato)); + } + if ((Original_durata.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[32].Value = ((int)(Original_PezziProd.Value)); + this.Adapter.DeleteCommand.Parameters[32].Value = ((double)(Original_durata.Value)); } else { this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; } - if ((Original_PezziConf.HasValue == true)) { + if ((Original_PezziProd.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[34].Value = ((int)(Original_PezziConf.Value)); + this.Adapter.DeleteCommand.Parameters[34].Value = ((int)(Original_PezziProd.Value)); } else { this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; } - if ((Original_TempoOn.HasValue == true)) { + if ((Original_PezziConf.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[36].Value = ((decimal)(Original_TempoOn.Value)); + this.Adapter.DeleteCommand.Parameters[36].Value = ((int)(Original_PezziConf.Value)); } else { this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; } - if ((Original_TempoAuto.HasValue == true)) { + if ((Original_TempoOn.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[38].Value = ((decimal)(Original_TempoAuto.Value)); + this.Adapter.DeleteCommand.Parameters[38].Value = ((decimal)(Original_TempoOn.Value)); } else { this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value; } - if ((Original_TempoRun.HasValue == true)) { + if ((Original_TempoAuto.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[40].Value = ((decimal)(Original_TempoRun.Value)); + this.Adapter.DeleteCommand.Parameters[40].Value = ((decimal)(Original_TempoAuto.Value)); } else { this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; } - if ((Original_TCMedio.HasValue == true)) { + if ((Original_TempoRun.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[42].Value = ((decimal)(Original_TCMedio.Value)); + this.Adapter.DeleteCommand.Parameters[42].Value = ((decimal)(Original_TempoRun.Value)); } else { this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value; } - if ((Original_TCLav.HasValue == true)) { + if ((Original_TCMedio.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[44].Value = ((decimal)(Original_TCLav.Value)); + this.Adapter.DeleteCommand.Parameters[44].Value = ((decimal)(Original_TCMedio.Value)); } else { this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value; } - if ((Original_TCEff.HasValue == true)) { + if ((Original_TCLav.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[46].Value = ((decimal)(Original_TCEff.Value)); + this.Adapter.DeleteCommand.Parameters[46].Value = ((decimal)(Original_TCLav.Value)); } else { this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value; } - if ((Original_TCMedioRT.HasValue == true)) { + if ((Original_TCEff.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[48].Value = ((decimal)(Original_TCMedioRT.Value)); + this.Adapter.DeleteCommand.Parameters[48].Value = ((decimal)(Original_TCEff.Value)); } else { this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value; } - if ((Original_TCLavRT.HasValue == true)) { + if ((Original_TCMedioRT.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[50].Value = ((decimal)(Original_TCLavRT.Value)); + this.Adapter.DeleteCommand.Parameters[50].Value = ((decimal)(Original_TCMedioRT.Value)); } else { this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value; } - if ((Original_TCEffRT.HasValue == true)) { + if ((Original_TCLavRT.HasValue == true)) { this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[52].Value = ((decimal)(Original_TCEffRT.Value)); + this.Adapter.DeleteCommand.Parameters[52].Value = ((decimal)(Original_TCLavRT.Value)); } else { this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(1)); this.Adapter.DeleteCommand.Parameters[52].Value = global::System.DBNull.Value; } + if ((Original_TCEffRT.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[54].Value = ((decimal)(Original_TCEffRT.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[54].Value = global::System.DBNull.Value; + } 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)) { @@ -25890,6 +25961,7 @@ FROM MappaStatoExpl"; string Nome, string url, global::System.Nullable idxODL, + global::System.Nullable idxPODL, string CodArticolo, string Disegno, global::System.Nullable NumPezzi, @@ -25946,126 +26018,132 @@ FROM MappaStatoExpl"; else { this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; } - if ((CodArticolo == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + if ((idxPODL.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((int)(idxPODL.Value)); } else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodArticolo)); + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; } - if ((Disegno == null)) { + if ((CodArticolo == null)) { this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Disegno)); + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(CodArticolo)); } - if ((NumPezzi.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[8].Value = ((int)(NumPezzi.Value)); - } - else { + if ((Disegno == null)) { this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; } - if ((TCAssegnato.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[9].Value = ((decimal)(TCAssegnato.Value)); + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Disegno)); + } + if ((NumPezzi.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((int)(NumPezzi.Value)); } else { this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; } - if ((DataInizioODL.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(DataInizioODL.Value)); + if ((TCAssegnato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((decimal)(TCAssegnato.Value)); } else { this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; } - if ((Semaforo == null)) { + if ((DataInizioODL.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((System.DateTime)(DataInizioODL.Value)); + } + else { this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; } - else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Semaforo)); - } - if ((idxStato.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[12].Value = ((int)(idxStato.Value)); - } - else { + if ((Semaforo == null)) { this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; } - if ((DescrizioneStato == null)) { + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Semaforo)); + } + if ((idxStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[13].Value = ((int)(idxStato.Value)); + } + else { this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; } - else { - this.Adapter.InsertCommand.Parameters[13].Value = ((string)(DescrizioneStato)); - } - if ((durata.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[14].Value = ((double)(durata.Value)); - } - else { + if ((DescrizioneStato == null)) { this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; } - if ((PezziProd.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[15].Value = ((int)(PezziProd.Value)); + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(DescrizioneStato)); + } + if ((durata.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[15].Value = ((double)(durata.Value)); } else { this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; } - if ((PezziConf.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[16].Value = ((int)(PezziConf.Value)); + if ((PezziProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[16].Value = ((int)(PezziProd.Value)); } else { this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; } - if ((TempoOn.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[17].Value = ((decimal)(TempoOn.Value)); + if ((PezziConf.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[17].Value = ((int)(PezziConf.Value)); } else { this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; } - if ((TempoAuto.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[18].Value = ((decimal)(TempoAuto.Value)); + if ((TempoOn.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[18].Value = ((decimal)(TempoOn.Value)); } else { this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; } - if ((TempoRun.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[19].Value = ((decimal)(TempoRun.Value)); + if ((TempoAuto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[19].Value = ((decimal)(TempoAuto.Value)); } else { this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; } - if ((TCMedio.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[20].Value = ((decimal)(TCMedio.Value)); + if ((TempoRun.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[20].Value = ((decimal)(TempoRun.Value)); } else { this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; } - if ((TCLav.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[21].Value = ((decimal)(TCLav.Value)); + if ((TCMedio.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[21].Value = ((decimal)(TCMedio.Value)); } else { this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; } - if ((TCEff.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[22].Value = ((decimal)(TCEff.Value)); + if ((TCLav.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[22].Value = ((decimal)(TCLav.Value)); } else { this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; } - if ((TCMedioRT.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[23].Value = ((decimal)(TCMedioRT.Value)); + if ((TCEff.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[23].Value = ((decimal)(TCEff.Value)); } else { this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; } - if ((TCLavRT.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[24].Value = ((decimal)(TCLavRT.Value)); + if ((TCMedioRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[24].Value = ((decimal)(TCMedioRT.Value)); } else { this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; } - if ((TCEffRT.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[25].Value = ((decimal)(TCEffRT.Value)); + if ((TCLavRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[25].Value = ((decimal)(TCLavRT.Value)); } else { this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; } + if ((TCEffRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[26].Value = ((decimal)(TCEffRT.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; + } 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)) { @@ -26088,11 +26166,11 @@ FROM MappaStatoExpl"; [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] public virtual int Update( global::System.Nullable lastUpdate, - string IdxMacchina, string CodMacchina, string Nome, string url, global::System.Nullable idxODL, + global::System.Nullable idxPODL, string CodArticolo, string Disegno, global::System.Nullable NumPezzi, @@ -26115,11 +26193,11 @@ FROM MappaStatoExpl"; global::System.Nullable TCEffRT, int Original_RowNum, global::System.Nullable Original_lastUpdate, - string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_url, global::System.Nullable Original_idxODL, + global::System.Nullable Original_idxPODL, string Original_CodArticolo, string Original_Disegno, global::System.Nullable Original_NumPezzi, @@ -26147,32 +26225,32 @@ FROM MappaStatoExpl"; else { this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; } - if ((IdxMacchina == null)) { + if ((CodMacchina == null)) { this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IdxMacchina)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodMacchina)); } - if ((CodMacchina == null)) { + if ((Nome == null)) { this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodMacchina)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome)); } - if ((Nome == null)) { + if ((url == null)) { this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; } else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Nome)); - } - if ((url == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(url)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(url)); } if ((idxODL.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idxODL.Value)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idxODL.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((idxPODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idxPODL.Value)); } else { this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; @@ -26306,41 +26384,41 @@ FROM MappaStatoExpl"; this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; } - if ((Original_IdxMacchina == null)) { + if ((Original_CodMacchina == null)) { this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_IdxMacchina)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_CodMacchina)); } - if ((Original_CodMacchina == null)) { + if ((Original_Nome == null)) { this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_CodMacchina)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_Nome)); } - if ((Original_Nome == null)) { + if ((Original_url == null)) { this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; } else { this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_Nome)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_url)); } - if ((Original_url == null)) { + if ((Original_idxODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Original_idxODL.Value)); + } + else { this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; } - else { - this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_url)); - } - if ((Original_idxODL.HasValue == true)) { + if ((Original_idxPODL.HasValue == true)) { this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_idxODL.Value)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_idxPODL.Value)); } else { this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); @@ -26533,6 +26611,7 @@ FROM MappaStatoExpl"; string Nome, string url, global::System.Nullable idxODL, + global::System.Nullable idxPODL, string CodArticolo, string Disegno, global::System.Nullable NumPezzi, @@ -26555,11 +26634,11 @@ FROM MappaStatoExpl"; global::System.Nullable TCEffRT, int Original_RowNum, global::System.Nullable Original_lastUpdate, - string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_url, global::System.Nullable Original_idxODL, + global::System.Nullable Original_idxPODL, string Original_CodArticolo, string Original_Disegno, global::System.Nullable Original_NumPezzi, @@ -26579,9 +26658,8 @@ FROM MappaStatoExpl"; global::System.Nullable Original_TCEff, global::System.Nullable Original_TCMedioRT, global::System.Nullable Original_TCLavRT, - global::System.Nullable Original_TCEffRT, - int RowNum) { - return this.Update(lastUpdate, Original_IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT, Original_RowNum, Original_lastUpdate, Original_IdxMacchina, Original_CodMacchina, Original_Nome, Original_url, Original_idxODL, Original_CodArticolo, Original_Disegno, Original_NumPezzi, Original_TCAssegnato, Original_DataInizioODL, Original_Semaforo, Original_idxStato, Original_DescrizioneStato, Original_durata, Original_PezziProd, Original_PezziConf, Original_TempoOn, Original_TempoAuto, Original_TempoRun, Original_TCMedio, Original_TCLav, Original_TCEff, Original_TCMedioRT, Original_TCLavRT, Original_TCEffRT, RowNum); + global::System.Nullable Original_TCEffRT) { + return this.Update(lastUpdate, CodMacchina, Nome, url, idxODL, idxPODL, CodArticolo, Disegno, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT, Original_RowNum, Original_lastUpdate, Original_CodMacchina, Original_Nome, Original_url, Original_idxODL, Original_idxPODL, Original_CodArticolo, Original_Disegno, Original_NumPezzi, Original_TCAssegnato, Original_DataInizioODL, Original_Semaforo, Original_idxStato, Original_DescrizioneStato, Original_durata, Original_PezziProd, Original_PezziConf, Original_TempoOn, Original_TempoAuto, Original_TempoRun, Original_TCMedio, Original_TCLav, Original_TCEff, Original_TCMedioRT, Original_TCLavRT, Original_TCEffRT, Original_RowNum); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -28262,7 +28340,7 @@ FROM MappaStatoExpl"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[10]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[11]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_PODL_exp\r\nORDER BY idxPromessa DESC"; @@ -28290,68 +28368,74 @@ FROM MappaStatoExpl"; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyDirect", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_PODL_getByIdx"; + this._commandCollection[4].CommandText = "dbo.stp_PODL_getByIdxOdl"; 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("@IdxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxOdl", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_getByMaccArt"; + this._commandCollection[5].CommandText = "dbo.stp_PODL_getByIdx"; this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyFree", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_PODL_getByMultiMacc"; + this._commandCollection[6].CommandText = "dbo.stp_PODL_getByMaccArt"; this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[6].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[6].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[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyFree", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; - this._commandCollection[7].CommandText = "dbo.stp_PODL_insertQuery"; + this._commandCollection[7].CommandText = "dbo.stp_PODL_getByMultiMacc"; this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].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[7].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[8] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[8].Connection = this.Connection; - this._commandCollection[8].CommandText = "dbo.stp_PODL_updateQta"; + this._commandCollection[8].CommandText = "dbo.stp_PODL_insertQuery"; this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[9].Connection = this.Connection; - this._commandCollection[9].CommandText = "dbo.stp_PODL_updateQuery"; + this._commandCollection[9].CommandText = "dbo.stp_PODL_updateQta"; this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[10].Connection = this.Connection; + this._commandCollection[10].CommandText = "dbo.stp_PODL_updateQuery"; + this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyBCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodGruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DueDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -28434,8 +28518,25 @@ FROM MappaStatoExpl"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 getByKey(global::System.Nullable IdxPromessa) { + public virtual DS_ProdTempi.PromesseODLDataTable getByIdxOdl(global::System.Nullable IdxOdl) { this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((IdxOdl.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxOdl.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_ProdTempi.PromesseODLDataTable dataTable = new DS_ProdTempi.PromesseODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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 getByKey(global::System.Nullable IdxPromessa) { + this.Adapter.SelectCommand = this.CommandCollection[5]; if ((IdxPromessa.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPromessa.Value)); } @@ -28452,7 +28553,7 @@ FROM MappaStatoExpl"; [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.PromesseODLDataTable getByMaccArt(string IdxMacchina, string CodArticolo, string CodGruppo, global::System.Nullable onlyFree) { - this.Adapter.SelectCommand = this.CommandCollection[5]; + this.Adapter.SelectCommand = this.CommandCollection[6]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -28487,7 +28588,7 @@ FROM MappaStatoExpl"; [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, global::System.Nullable byGroup) { - this.Adapter.SelectCommand = this.CommandCollection[6]; + this.Adapter.SelectCommand = this.CommandCollection[7]; if ((idxMulti == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -28537,7 +28638,7 @@ FROM MappaStatoExpl"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int insertQuery(string KeyRichiesta, string KeyBCode, global::System.Nullable Attivabile, string CodArticolo, string CodGruppo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable DueDate, global::System.Nullable Priorita, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; if ((KeyRichiesta == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -28631,7 +28732,7 @@ FROM MappaStatoExpl"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateQta(global::System.Nullable NumPezzi, global::System.Nullable PzPallet, global::System.Nullable Original_idxPromessa) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9]; if ((NumPezzi.HasValue == true)) { command.Parameters[1].Value = ((int)(NumPezzi.Value)); } @@ -28671,7 +28772,7 @@ FROM MappaStatoExpl"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateQuery(string KeyRichiesta, string KeyBCode, global::System.Nullable Attivabile, string CodArticolo, string CodGruppo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable DueDate, global::System.Nullable Priorita, global::System.Nullable PzPallet, global::System.Nullable Original_idxPromessa) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10]; if ((KeyRichiesta == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } diff --git a/MapoDb/DataLayer.cs b/MapoDb/DataLayer.cs index 5ad76c51..a0cf7804 100644 --- a/MapoDb/DataLayer.cs +++ b/MapoDb/DataLayer.cs @@ -1674,11 +1674,11 @@ namespace MapoDb int CurrProdStatus = 0; string sIdxODL = ""; string redKey = vetoForceStartPOdlMaccHash(idxMacchina); - // verifico NON CI SIA un veto a NUOVI split... 30 sec di default... + // verifico NON CI SIA un veto altre chiamate (es split...) - 30 sec di default... string rawData = memLayer.ML.getRSV(redKey); if (string.IsNullOrEmpty(rawData)) { - // registro VETO x altri split... 30sec + // registro VETO x altre chiamate (es split...) 30sec memLayer.ML.setRSV(redKey, $"Inizio FORCE START PODL: {idxPODL} | {DateTime.Now}", 30); // calcolo la qta da gestire int qtyConf = 0; @@ -4033,7 +4033,7 @@ namespace MapoDb innovations.Add(item); } else - // altrimenti aggiorno campo name... + // altrimenti aggiorno campi name... { trovato.name = item.name; }