diff --git a/Jenkinsfile b/Jenkinsfile index 727902fc..0453d0a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=1316']) { + withEnv(['NEXT_BUILD_NUMBER=1317']) { // env.versionNumber = VersionNumber(versionNumberString : '6.11.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.11.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-TAB/SheetTech.aspx.cs b/MP-TAB/SheetTech.aspx.cs index ad69b509..0ab286a6 100644 --- a/MP-TAB/SheetTech.aspx.cs +++ b/MP-TAB/SheetTech.aspx.cs @@ -11,6 +11,22 @@ namespace MoonProTablet { public partial class SheetTech : BasePage { + #region Private Methods + + /// + /// Imposta articolo x dettaglio dato ODL + /// + private void setArticolo() + { + // leggo riga... + DS_ProdTempi.MappaStatoExplRow rigaDati = DataLayerObj.taMSE.getByIdxMacchina(idxMacchina)[0]; + cmp_sheetTech.CodArticolo = rigaDati.CodArticolo; + } + + #endregion Private Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) @@ -18,14 +34,7 @@ namespace MoonProTablet setArticolo(); } } - /// - /// Imposta articolo x dettaglio dato ODL - /// - private void setArticolo() - { - // leggo riga... - DS_ProdTempi.MappaStatoExplRow rigaDati = DataLayerObj.taMSE.getByIdxMacchina(idxMacchina)[0]; - cmp_sheetTech.CodArticolo = rigaDati.CodArticolo; - } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/BaseUserControl.cs b/MP-TAB/WebUserControls/BaseUserControl.cs index 7d40dd73..012d083c 100644 --- a/MP-TAB/WebUserControls/BaseUserControl.cs +++ b/MP-TAB/WebUserControls/BaseUserControl.cs @@ -23,6 +23,15 @@ namespace MoonProTablet.WebUserControls #endregion Internal Fields + #region Public Events + + /// + /// evento update + /// + public event EventHandler eh_doUpdate; + + #endregion Public Events + #region Internal Properties /// @@ -212,6 +221,18 @@ namespace MoonProTablet.WebUserControls return string.Format("./images/macchine/{0}", url); } + /// + /// Riporta evento update + /// + public void reportUpdate() + { + // alzo l'evento d update/inserimento e ricarico cache... + if (eh_doUpdate != null) + { + eh_doUpdate(this, new EventArgs()); + } + } + public string TCMinSec(object _TC) { string TC_MinSec = ""; diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx b/MP-TAB/WebUserControls/cmp_ST_detail.ascx index 5e90d978..78276a35 100644 --- a/MP-TAB/WebUserControls/cmp_ST_detail.ascx +++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx @@ -3,47 +3,24 @@ -
- <%--completare con interazione campi richiesti!!! --> i campi richiesti devono prevedere check con valore in tab specifica istanze ODL--%> - - -
- -
-
- -
- -
-
-
-
- - +
- +
- +
- + - - - - - - - - + diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs index 6331b82e..25e22655 100644 --- a/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx.designer.cs @@ -24,40 +24,22 @@ namespace MoonProTablet.WebUserControls protected global::System.Web.UI.WebControls.Label lblWarning; /// - /// Controllo repRequired. + /// Controllo repDetail. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Repeater repRequired; + protected global::System.Web.UI.WebControls.Repeater repDetail; /// - /// Controllo repDisplay. + /// Controllo ods. /// /// /// Campo generato automaticamente. /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// - protected global::System.Web.UI.WebControls.Repeater repDisplay; - - /// - /// Controllo odsDisplay. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsDisplay; - - /// - /// Controllo odsRequired. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsRequired; + protected global::System.Web.UI.WebControls.ObjectDataSource ods; /// /// Controllo hfCodGruppo. diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx index d6d0f539..d984e4e2 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx @@ -1 +1,12 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objCheck.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objCheck" %> + +
+ +
+ +
+
+ read +
+
+ \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs index 67326888..13cf83fd 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.cs @@ -1,4 +1,6 @@ -using System; +using Microsoft.Ajax.Utilities; +using SteamWare; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -9,9 +11,178 @@ namespace MoonProTablet.WebUserControls { public partial class cmp_ST_objCheck : BaseUserControl { + #region Public Properties + + /// + /// Valore BCode acquisito + /// + public string BCodeVal + { + get + { + return txtInput.Text.Trim().ToUpper(); + } + set + { + txtInput.Text = value; + } + } + + /// + /// Cod Articolo selezionato + /// + public string CodArticolo + { + get + { + return hfCodArticolo.Value.Trim(); + } + set + { + hfCodArticolo.Value = value.Trim(); + checkInputData(); + } + } + + /// + /// oggetto comando locale alla classe formato RAW + /// + public string rawInput + { + get + { + string answ; + if (memLayer.ML.isInSessionObject("barcodeRaw")) + { + answ = memLayer.ML.StringSessionObj("barcodeRaw"); + } + else + { + answ = ""; + } + return answ; + } + set + { + memLayer.ML.setSessionVal("barcodeRaw", value, false); + } + } + + #endregion Public Properties + + #region Private Methods + + private void checkInputData() + { + bool showInput = false; + try + { + showInput = DataLayerObj.taSTAR.getPendingByOdl(CodArticolo, idxOdl).Count > 0; + } + catch + { } + divCheckData.Visible = showInput; + } + + /// + /// procedura pricipale decodifica Barcode + /// + private void processInput() + { + bool found = false; + // per prima cosa recupero i valori "Pending" da leggere come candidati... + var tabRichieste = DataLayerObj.taSTAR.getPendingByOdl(CodArticolo, idxOdl); + if (tabRichieste != null && tabRichieste.Count > 0) + { + // cerco per EQ come primo step... + var trovatoEq = tabRichieste.Where(x => x.CheckType == "EQ" && x.Value == BCodeVal); + if (trovatoEq != null && trovatoEq.Count() > 0) + { + // recupero record.. + var data = trovatoEq.FirstOrDefault(); + // registro trovato + found = true; + // upsert controllo + DataLayerObj.taSTChk.upsertQuery(idxOdl, data.IdxST, data.Oggetto, data.Num, BCodeVal, BCodeVal, true, user_std.UtSn.utente); + } + + // se non trovato + if (!found) + { + // controllo condizione tipo BATCH (speciale) + } + } + + // sistemo visualizzaizone componente + BCodeVal = ""; + checkInputData(); + // sollevo evento + reportUpdate(); + } + + #endregion Private Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - } + + /// + /// barcode completato con invio... + /// + /// + /// + protected void txtInput_TextChanged(object sender, EventArgs e) + { + processInput(); + } + + #endregion Protected Methods + +#if false + /// + /// verifico se sia un valore compreso nell'elenco fornito + /// + private void isValore() + { + if (_tabValori.ContainsKey(BCodeVal)) // verifico se il comando digitato esista... + { + comando.isValid = true; + comando.valore = BCodeVal; + _tabValori.TryGetValue(BCodeVal, out comando.valoreTrad); + } + } + /// + /// verifica se il comando inserito sia valido + /// + private void isInputEvent() + { + if (_comandi.ContainsKey(BCodeVal)) // verifico se il comando digitato esista... + { + comando.isValid = true; + // salvo comando precedente (se c'è...) + comando.prevCmdIn = comando.currCmdIn; + comando.descrComandoPrev = comando.descrComando; + comando.currCmdIn = BCodeVal; + _comandi.TryGetValue(BCodeVal, out comando.descrComando); + } + } + /// + /// verifica quale browser usato e applica css corretto al div attorno al box + /// + private void DetectAgent() + { + System.Web.HttpBrowserCapabilities browser = Request.Browser; + if (browser.Browser == "IE") + { + pnlBarcodeBox.CssClass = "barcodeBoxIE"; + } + else + { + pnlBarcodeBox.CssClass = "barcodeBoxOther"; + } + } +#endif } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs index 1ff32f8f..25f8d6b3 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_ST_objCheck.ascx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// +// // Codice generato da uno strumento. // // Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ namespace MoonProTablet.WebUserControls @@ -13,5 +13,41 @@ namespace MoonProTablet.WebUserControls public partial class cmp_ST_objCheck { + + /// + /// Controllo divCheckData. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCheckData; + + /// + /// Controllo txtInput. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.TextBox txtInput; + + /// + /// Controllo lbtCerca. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtCerca; + + /// + /// Controllo hfCodArticolo. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo; } } diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx b/MP-TAB/WebUserControls/cmp_ST_objView.ascx index e8a0a6ea..5f6f3f09 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objView.ascx +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx @@ -3,12 +3,15 @@ + +
<%: hfLabel.Value %>
-
+
<%: hfValue.Value %> +
@@ -18,4 +21,4 @@
-
+
\ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs index 18549b0e..e9ccbb70 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs @@ -10,6 +10,40 @@ namespace MoonProTablet.WebUserControls { public partial class cmp_ST_objView : BaseUserControl { + #region Public Properties + + public string dataCss + { + get + { + string answ = ""; + if (required) + { + if (dataValue != extCode) + { + answ = " text-danger"; + } + else + { + answ = " text-success"; + } + } + return answ; + } + } + + public string dataLabel + { + get + { + return hfLabel.Value.Trim(); + } + set + { + hfLabel.Value = value.Trim(); + } + } + public string dataType { get @@ -22,17 +56,7 @@ namespace MoonProTablet.WebUserControls fixDisplay(); } } - public string dataLabel - { - get - { - return hfLabel.Value.Trim(); - } - set - { - hfLabel.Value = value.Trim(); - } - } + public string dataValue { get @@ -44,28 +68,20 @@ namespace MoonProTablet.WebUserControls hfValue.Value = value.Trim(); } } - protected void Page_Load(object sender, EventArgs e) - { - } - private void fixDisplay() + public string extCode { - divImg.Visible = false; - divTxt.Visible = false; - switch (dataType) + get { - case "IMG": - divImg.Visible = true; - break; - - case "TXT": - divTxt.Visible = true; - break; - default: - divTxt.Visible = true; - break; + return hfExtCode.Value.Trim(); + } + set + { + hfExtCode.Value = value.Trim(); + fixDisplay(); } } + /// /// Url immagine SE richiesta /// @@ -94,5 +110,64 @@ namespace MoonProTablet.WebUserControls } } + public bool required + { + get + { + bool answ = false; + bool.TryParse(hfRequired.Value.Trim(), out answ); + return answ; + } + set + { + hfRequired.Value = value.ToString(); + fixDisplay(); + } + } + + public bool showMissingData + { + get + { + bool answ = false; + if (required && (dataValue != extCode)) + { + answ = true; + } + return answ; + } + } + + #endregion Public Properties + + #region Private Methods + + private void fixDisplay() + { + divImg.Visible = false; + divTxt.Visible = false; + switch (dataType) + { + case "IMG": + divImg.Visible = true; + break; + + case "TXT": + default: + divTxt.Visible = true; + break; + } + lblError.Visible = showMissingData; + } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs index c781b8c7..15f26e58 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.designer.cs @@ -41,6 +41,24 @@ namespace MoonProTablet.WebUserControls /// protected global::System.Web.UI.WebControls.HiddenField hfValue; + /// + /// Controllo hfRequired. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfRequired; + + /// + /// Controllo hfExtCode. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfExtCode; + /// /// Controllo divTxt. /// @@ -50,6 +68,15 @@ namespace MoonProTablet.WebUserControls /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTxt; + /// + /// Controllo lblError. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblError; + /// /// Controllo divImg. /// diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx b/MP-TAB/WebUserControls/cmp_sheetTech.ascx index 054fc558..35a2ef4a 100644 --- a/MP-TAB/WebUserControls/cmp_sheetTech.ascx +++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx @@ -1,5 +1,6 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_sheetTech.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_sheetTech" %> <%@ Register Src="~/WebUserControls/cmp_ST_detail.ascx" TagPrefix="uc1" TagName="cmp_ST_detail" %> +<%@ Register Src="~/WebUserControls/cmp_ST_objCheck.ascx" TagPrefix="uc1" TagName="cmp_ST_objCheck" %>
@@ -7,6 +8,9 @@
+
+ +
@@ -25,5 +29,6 @@
+
\ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs index 9c8a3863..81a4345f 100644 --- a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs +++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.cs @@ -9,10 +9,7 @@ namespace MoonProTablet.WebUserControls { public partial class cmp_sheetTech : BaseUserControl { - protected void Page_Load(object sender, EventArgs e) - { - - } + #region Public Properties public string CodArticolo { @@ -23,7 +20,28 @@ namespace MoonProTablet.WebUserControls set { hfCodArticolo.Value = value.Trim(); + cmp_ST_objCheck.CodArticolo = value.Trim(); } } + + #endregion Public Properties + + #region Private Methods + + private void cmp_ST_objCheck_eh_doUpdate(object sender, EventArgs e) + { + repGroup.DataBind(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + cmp_ST_objCheck.eh_doUpdate += cmp_ST_objCheck_eh_doUpdate; + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs index 7b9ab26a..5bd6fb11 100644 --- a/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_sheetTech.ascx.designer.cs @@ -14,6 +14,15 @@ namespace MoonProTablet.WebUserControls public partial class cmp_sheetTech { + /// + /// Controllo cmp_ST_objCheck. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::MoonProTablet.WebUserControls.cmp_ST_objCheck cmp_ST_objCheck; + /// /// Controllo repGroup. /// @@ -40,5 +49,14 @@ namespace MoonProTablet.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.HiddenField hfCodArticolo; + + /// + /// Controllo hfIdxOdl. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxOdl; } } diff --git a/MapoDb/DS_SheetTech.Designer.cs b/MapoDb/DS_SheetTech.Designer.cs index 87e119d1..171cfe85 100644 --- a/MapoDb/DS_SheetTech.Designer.cs +++ b/MapoDb/DS_SheetTech.Designer.cs @@ -1311,9 +1311,13 @@ namespace MapoDb { private global::System.Data.DataColumn columnIdxST; + private global::System.Data.DataColumn columnOggetto; + private global::System.Data.DataColumn columnNum; - private global::System.Data.DataColumn columnValueCurr; + private global::System.Data.DataColumn columnValueRead; + + private global::System.Data.DataColumn columnExtCode; private global::System.Data.DataColumn columnCheckOk; @@ -1378,6 +1382,14 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn OggettoColumn { + get { + return this.columnOggetto; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn NumColumn { @@ -1388,9 +1400,17 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ValueCurrColumn { + public global::System.Data.DataColumn ValueReadColumn { get { - return this.columnValueCurr; + return this.columnValueRead; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn ExtCodeColumn { + get { + return this.columnExtCode; } } @@ -1455,14 +1475,16 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ST_CheckRow AddST_CheckRow(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) { + public ST_CheckRow AddST_CheckRow(System.DateTime DtEvent, int IdxODL, int IdxST, short Oggetto, int Num, string ValueRead, string ExtCode, bool CheckOk, string DtMod, string UserMod) { ST_CheckRow rowST_CheckRow = ((ST_CheckRow)(this.NewRow())); object[] columnValuesArray = new object[] { DtEvent, IdxODL, IdxST, + Oggetto, Num, - ValueCurr, + ValueRead, + ExtCode, CheckOk, DtMod, UserMod}; @@ -1473,12 +1495,13 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public ST_CheckRow FindByDtEventIdxODLIdxSTNum(System.DateTime DtEvent, int IdxODL, int IdxST, int Num) { + public ST_CheckRow FindByNumOggettoIdxSTIdxODLDtEvent(int Num, short Oggetto, int IdxST, int IdxODL, System.DateTime DtEvent) { return ((ST_CheckRow)(this.Rows.Find(new object[] { - DtEvent, - IdxODL, + Num, + Oggetto, IdxST, - Num}))); + IdxODL, + DtEvent}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -1501,8 +1524,10 @@ namespace MapoDb { this.columnDtEvent = base.Columns["DtEvent"]; this.columnIdxODL = base.Columns["IdxODL"]; this.columnIdxST = base.Columns["IdxST"]; + this.columnOggetto = base.Columns["Oggetto"]; this.columnNum = base.Columns["Num"]; - this.columnValueCurr = base.Columns["ValueCurr"]; + this.columnValueRead = base.Columns["ValueRead"]; + this.columnExtCode = base.Columns["ExtCode"]; this.columnCheckOk = base.Columns["CheckOk"]; this.columnDtMod = base.Columns["DtMod"]; this.columnUserMod = base.Columns["UserMod"]; @@ -1517,10 +1542,14 @@ namespace MapoDb { base.Columns.Add(this.columnIdxODL); this.columnIdxST = new global::System.Data.DataColumn("IdxST", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnIdxST); + this.columnOggetto = new global::System.Data.DataColumn("Oggetto", typeof(short), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOggetto); this.columnNum = new global::System.Data.DataColumn("Num", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNum); - this.columnValueCurr = new global::System.Data.DataColumn("ValueCurr", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnValueCurr); + this.columnValueRead = new global::System.Data.DataColumn("ValueRead", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValueRead); + this.columnExtCode = new global::System.Data.DataColumn("ExtCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnExtCode); this.columnCheckOk = new global::System.Data.DataColumn("CheckOk", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCheckOk); this.columnDtMod = new global::System.Data.DataColumn("DtMod", typeof(string), null, global::System.Data.MappingType.Element); @@ -1528,16 +1557,20 @@ namespace MapoDb { this.columnUserMod = new global::System.Data.DataColumn("UserMod", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnUserMod); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnDtEvent, - this.columnIdxODL, + this.columnNum, + this.columnOggetto, this.columnIdxST, - this.columnNum}, true)); + this.columnIdxODL, + this.columnDtEvent}, true)); this.columnDtEvent.AllowDBNull = false; this.columnIdxODL.AllowDBNull = false; this.columnIdxST.AllowDBNull = false; + this.columnOggetto.AllowDBNull = false; this.columnNum.AllowDBNull = false; - this.columnValueCurr.AllowDBNull = false; - this.columnValueCurr.MaxLength = 250; + this.columnValueRead.AllowDBNull = false; + this.columnValueRead.MaxLength = 250; + this.columnExtCode.AllowDBNull = false; + this.columnExtCode.MaxLength = 2147483647; this.columnCheckOk.AllowDBNull = false; this.columnDtMod.AllowDBNull = false; this.columnDtMod.MaxLength = 250; @@ -3246,6 +3279,17 @@ namespace MapoDb { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public short Oggetto { + get { + return ((short)(this[this.tableST_Check.OggettoColumn])); + } + set { + this[this.tableST_Check.OggettoColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int Num { @@ -3259,12 +3303,23 @@ namespace MapoDb { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ValueCurr { + public string ValueRead { get { - return ((string)(this[this.tableST_Check.ValueCurrColumn])); + return ((string)(this[this.tableST_Check.ValueReadColumn])); } set { - this[this.tableST_Check.ValueCurrColumn] = value; + this[this.tableST_Check.ValueReadColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string ExtCode { + get { + return ((string)(this[this.tableST_Check.ExtCodeColumn])); + } + set { + this[this.tableST_Check.ExtCodeColumn] = value; } } @@ -4437,7 +4492,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT DescGruppo, DescTipo, IdxST, Label, Oggetto, Num, CodGruppo, CodTip" + @@ -4445,12 +4500,19 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "dbo.stp_ST_AR_getByCodArt"; + this._commandCollection[1].CommandText = "dbo.stp_ST_AR_getByGrpArtOdl"; this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[1].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[1].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[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Required", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].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[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_ST_AR_getPendingOdl"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].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[2].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, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4481,7 +4543,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, string CodArticolo, global::System.Nullable Required) { + public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, string CodArticolo, global::System.Nullable IdxODL) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((CodGruppo == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -4495,8 +4557,8 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require else { this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo)); } - if ((Required.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(Required.Value)); + if ((IdxODL.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxODL.Value)); } else { this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; @@ -4506,6 +4568,29 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_SheetTech.ST_ActualRowDataTable getPendingByOdl(string CodArticolo, global::System.Nullable IdxODL) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((IdxODL.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxODL.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -4942,55 +5027,63 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require tableMapping.ColumnMappings.Add("DtEvent", "DtEvent"); tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); tableMapping.ColumnMappings.Add("IdxST", "IdxST"); + tableMapping.ColumnMappings.Add("Oggetto", "Oggetto"); tableMapping.ColumnMappings.Add("Num", "Num"); - tableMapping.ColumnMappings.Add("ValueCurr", "ValueCurr"); + tableMapping.ColumnMappings.Add("ValueRead", "ValueRead"); + tableMapping.ColumnMappings.Add("ExtCode", "ExtCode"); tableMapping.ColumnMappings.Add("CheckOk", "CheckOk"); tableMapping.ColumnMappings.Add("DtMod", "DtMod"); tableMapping.ColumnMappings.Add("UserMod", "UserMod"); this._adapter.TableMappings.Add(tableMapping); this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))"; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod))"; this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Original, false, 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("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ST_Check] ([DtEvent], [IdxODL], [IdxST], [Num], [ValueCurr], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Num, @ValueCurr, @CheckOk, @DtMod, @UserMod); -SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)"; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [ST_Check] ([DtEvent], [IdxODL], [IdxST], [Oggetto], [Num], [ValueRead], [ExtCode], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Oggetto, @Num, @ValueRead, @ExtCode, @CheckOk, @DtMod, @UserMod); +SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)"; this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Num] = @Num, [ValueCurr] = @ValueCurr, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)); -SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num)"; + this._adapter.UpdateCommand.CommandText = @"UPDATE [ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Oggetto] = @Oggetto, [Num] = @Num, [ValueRead] = @ValueRead, [ExtCode] = @ExtCode, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)); +SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto)"; this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", 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("@IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ExtCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEvent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEvent", global::System.Data.DataRowVersion.Original, false, 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("@Original_IdxST", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxST", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueCurr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueCurr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValueRead", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValueRead", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CheckOk", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CheckOk", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserMod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserMod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); @@ -5006,12 +5099,30 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM dbo.S" + - "T_Check"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM ST_Check"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ST_CHK_getByOdl"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].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[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_ST_CHK_upsert"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValueRead", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtCode", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CheckOk", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5038,6 +5149,23 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_SheetTech.ST_CheckDataTable getByOdl(global::System.Nullable IdxOdl) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + 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_SheetTech.ST_CheckDataTable dataTable = new DS_SheetTech.ST_CheckDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] @@ -5070,180 +5198,71 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_DtEvent)); - this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxODL)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdxST)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Num)); - if ((Original_ValueCurr == null)) { - throw new global::System.ArgumentNullException("Original_ValueCurr"); + public virtual int upsertQuery(global::System.Nullable IdxOdl, global::System.Nullable IdxST, global::System.Nullable Oggetto, global::System.Nullable Num, string ValueRead, string ExtCode, global::System.Nullable CheckOk, string UserMod) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxOdl.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxOdl.Value)); } else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ValueCurr)); + command.Parameters[1].Value = global::System.DBNull.Value; } - this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_CheckOk)); - if ((Original_DtMod == null)) { - throw new global::System.ArgumentNullException("Original_DtMod"); + if ((IdxST.HasValue == true)) { + command.Parameters[2].Value = ((int)(IdxST.Value)); } else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_DtMod)); + command.Parameters[2].Value = global::System.DBNull.Value; } - if ((Original_UserMod == null)) { - throw new global::System.ArgumentNullException("Original_UserMod"); + if ((Oggetto.HasValue == true)) { + command.Parameters[3].Value = ((int)(Oggetto.Value)); } else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_UserMod)); + command.Parameters[3].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)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] - public virtual int Insert(System.DateTime DtEvent, int IdxODL, int IdxST, int Num, string ValueCurr, bool CheckOk, string DtMod, string UserMod) { - this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(DtEvent)); - this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxODL)); - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxST)); - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Num)); - if ((ValueCurr == null)) { - throw new global::System.ArgumentNullException("ValueCurr"); + if ((Num.HasValue == true)) { + command.Parameters[4].Value = ((int)(Num.Value)); } else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ValueCurr)); + command.Parameters[4].Value = global::System.DBNull.Value; } - this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(CheckOk)); - if ((DtMod == null)) { - throw new global::System.ArgumentNullException("DtMod"); + if ((ValueRead == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(DtMod)); + command.Parameters[5].Value = ((string)(ValueRead)); + } + if ((ExtCode == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(ExtCode)); + } + if ((CheckOk.HasValue == true)) { + command.Parameters[7].Value = ((bool)(CheckOk.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; } if ((UserMod == null)) { - throw new global::System.ArgumentNullException("UserMod"); + command.Parameters[8].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(UserMod)); + command.Parameters[8].Value = ((string)(UserMod)); } - 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 previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); + command.Connection.Open(); } + int returnValue; try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; + returnValue = command.ExecuteNonQuery(); } finally { if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); + command.Connection.Close(); } } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - System.DateTime DtEvent, - int IdxODL, - int IdxST, - int Num, - string ValueCurr, - bool CheckOk, - string DtMod, - string UserMod, - System.DateTime Original_DtEvent, - int Original_IdxODL, - int Original_IdxST, - int Original_Num, - string Original_ValueCurr, - bool Original_CheckOk, - string Original_DtMod, - string Original_UserMod) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(DtEvent)); - this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxODL)); - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxST)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Num)); - if ((ValueCurr == null)) { - throw new global::System.ArgumentNullException("ValueCurr"); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ValueCurr)); - } - this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(CheckOk)); - if ((DtMod == null)) { - throw new global::System.ArgumentNullException("DtMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(DtMod)); - } - if ((UserMod == null)) { - throw new global::System.ArgumentNullException("UserMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(UserMod)); - } - this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtEvent)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxODL)); - this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_IdxST)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Num)); - if ((Original_ValueCurr == null)) { - throw new global::System.ArgumentNullException("Original_ValueCurr"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ValueCurr)); - } - this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_CheckOk)); - if ((Original_DtMod == null)) { - throw new global::System.ArgumentNullException("Original_DtMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_DtMod)); - } - if ((Original_UserMod == null)) { - throw new global::System.ArgumentNullException("Original_UserMod"); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_UserMod)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string ValueCurr, bool CheckOk, string DtMod, string UserMod, System.DateTime Original_DtEvent, int Original_IdxODL, int Original_IdxST, int Original_Num, string Original_ValueCurr, bool Original_CheckOk, string Original_DtMod, string Original_UserMod) { - return this.Update(Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, ValueCurr, CheckOk, DtMod, UserMod, Original_DtEvent, Original_IdxODL, Original_IdxST, Original_Num, Original_ValueCurr, Original_CheckOk, Original_DtMod, Original_UserMod); + return returnValue; } } diff --git a/MapoDb/DS_SheetTech.xsd b/MapoDb/DS_SheetTech.xsd index 296fdab6..3c2740d3 100644 --- a/MapoDb/DS_SheetTech.xsd +++ b/MapoDb/DS_SheetTech.xsd @@ -162,15 +162,27 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require - + - dbo.stp_ST_AR_getByCodArt + dbo.stp_ST_AR_getByGrpArtOdl - + + + + + + + + + dbo.stp_ST_AR_getPendingOdl + + + + @@ -179,16 +191,17 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require - + - DELETE FROM [dbo].[ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)) + DELETE FROM [ST_Check] WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)) + - + @@ -197,14 +210,16 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require - INSERT INTO [dbo].[ST_Check] ([DtEvent], [IdxODL], [IdxST], [Num], [ValueCurr], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Num, @ValueCurr, @CheckOk, @DtMod, @UserMod); -SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) + INSERT INTO [ST_Check] ([DtEvent], [IdxODL], [IdxST], [Oggetto], [Num], [ValueRead], [ExtCode], [CheckOk], [DtMod], [UserMod]) VALUES (@DtEvent, @IdxODL, @IdxST, @Oggetto, @Num, @ValueRead, @ExtCode, @CheckOk, @DtMod, @UserMod); +SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto) + - + + @@ -212,29 +227,33 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C - - SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM dbo.ST_Check + + SELECT * +FROM ST_Check - UPDATE [dbo].[ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Num] = @Num, [ValueCurr] = @ValueCurr, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Num] = @Original_Num) AND ([ValueCurr] = @Original_ValueCurr) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)); -SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) + UPDATE [ST_Check] SET [DtEvent] = @DtEvent, [IdxODL] = @IdxODL, [IdxST] = @IdxST, [Oggetto] = @Oggetto, [Num] = @Num, [ValueRead] = @ValueRead, [ExtCode] = @ExtCode, [CheckOk] = @CheckOk, [DtMod] = @DtMod, [UserMod] = @UserMod WHERE (([DtEvent] = @Original_DtEvent) AND ([IdxODL] = @Original_IdxODL) AND ([IdxST] = @Original_IdxST) AND ([Oggetto] = @Original_Oggetto) AND ([Num] = @Original_Num) AND ([ValueRead] = @Original_ValueRead) AND ([CheckOk] = @Original_CheckOk) AND ([DtMod] = @Original_DtMod) AND ([UserMod] = @Original_UserMod)); +SELECT DtEvent, IdxODL, IdxST, Oggetto, Num, ValueRead, ExtCode, CheckOk, DtMod, UserMod FROM ST_Check WHERE (DtEvent = @DtEvent) AND (IdxODL = @IdxODL) AND (IdxST = @IdxST) AND (Num = @Num) AND (Oggetto = @Oggetto) + - + + + - + @@ -247,13 +266,45 @@ SELECT DtEvent, IdxODL, IdxST, Num, ValueCurr, CheckOk, DtMod, UserMod FROM ST_C + - + + - + + + + + dbo.stp_ST_CHK_getByOdl + + + + + + + + + + + dbo.stp_ST_CHK_upsert + + + + + + + + + + + + + + + @@ -502,7 +553,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -525,7 +576,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -598,20 +649,28 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + + - + + + + + + + + @@ -630,7 +689,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -651,7 +710,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -671,7 +730,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -691,7 +750,7 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - + @@ -763,10 +822,11 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - - - + + + + @@ -789,11 +849,11 @@ SELECT CodTempl, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Requ - - - - - + + + + + \ No newline at end of file diff --git a/MapoDb/DS_SheetTech.xss b/MapoDb/DS_SheetTech.xss index 52e8edf7..47a18840 100644 --- a/MapoDb/DS_SheetTech.xss +++ b/MapoDb/DS_SheetTech.xss @@ -4,15 +4,15 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - + + + + + + @@ -27,7 +27,7 @@ - + 727 @@ -39,7 +39,7 @@ - + 1196 @@ -51,7 +51,7 @@ - + 991 @@ -67,7 +67,7 @@ - + 945 diff --git a/MapoDb/DataLayer.cs b/MapoDb/DataLayer.cs index abc6de56..124be2e7 100644 --- a/MapoDb/DataLayer.cs +++ b/MapoDb/DataLayer.cs @@ -23,12 +23,10 @@ namespace MapoDb ///
public MapoDb MapoDbObj = new MapoDb(); - // Table adapter x DS_Applicazione + // Table adapter vari... public DS_applicazioneTableAdapters.AnagraficaGruppiTableAdapter taAG; - // Table adapter x DS_ProdTempi public DS_ProdTempiTableAdapters.AnagArticoliTableAdapter taAnagArt; - public DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagEventi; public DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taAnagStati; public DS_IntServTableAdapters.ProduzioneAs400TableAdapter taAs400; @@ -43,16 +41,10 @@ namespace MapoDb public DS_applicazioneTableAdapters.EventListTableAdapter taEventi; public DS_applicazioneTableAdapters.FluxLogTableAdapter taFL; public DS_IntServTableAdapters.TransitoDatiTableAdapter taIS_TrDati; - - // tablet adapter x IS public DS_IntServTableAdapters.IstanzeKITTableAdapter taIstK; - public DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive; public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine; - - // table adapter x planner public DS_PlanTableAdapters.MachineParamsTableAdapter taMacParams; - public DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter taMSE; public DS_ProdTempiTableAdapters.ODLTableAdapter taODL; public DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taOp; @@ -67,16 +59,15 @@ namespace MapoDb public DS_ProdTempiTableAdapters.RegistroControlliTableAdapter taRC; public DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter taRemReb; public DS_ProdTempiTableAdapters.RegistroScartiTableAdapter taRS; - - // table adapter x utility public DS_UtilityTableAdapters.v_selArticoliTableAdapter taSelArt; - public DS_UtilityTableAdapters.v_selMacchineTableAdapter taSelMacc; public DS_UtilityTableAdapters.v_selODLTableAdapter taSelOdlFree; public DS_applicazioneTableAdapters.SignalLogTableAdapter taSigLog; + public DS_SheetTechTableAdapters.ST_ActualRowTableAdapter taSTAR; public DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taStati; public DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine; public DS_ProdTempiTableAdapters.StatoProdTableAdapter taStatoProd; + public DS_SheetTechTableAdapters.ST_CheckTableAdapter taSTChk; public DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter taTempiCicloRilevati; public DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter taTempoByClass; public DS_IntServTableAdapters.TKS_SearchTableAdapter taTKS; @@ -483,54 +474,53 @@ namespace MapoDb { // istanzio oggetto taAG = new DS_applicazioneTableAdapters.AnagraficaGruppiTableAdapter(); - taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter(); - taStatoMacchine = new DS_applicazioneTableAdapters.StatoMacchineTableAdapter(); + taAnagArt = new DS_ProdTempiTableAdapters.AnagArticoliTableAdapter(); taAnagEventi = new DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter(); taAnagStati = new DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter(); - taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter(); - taStati = new DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); - taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter(); - taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter(); - taOp2ins = new DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter(); - taTranIngr = new DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter(); - taRemReb = new DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter(); - taSigLog = new DS_applicazioneTableAdapters.SignalLogTableAdapter(); - taFL = new DS_applicazioneTableAdapters.FluxLogTableAdapter(); - taAnagArt = new DS_ProdTempiTableAdapters.AnagArticoliTableAdapter(); - taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter(); + taAs400 = new DS_IntServTableAdapters.ProduzioneAs400TableAdapter(); + taCalFF = new DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter(); + taComm = new DS_UtilityTableAdapters.CommentiTableAdapter(); taDatiConf = new DS_ProdTempiTableAdapters.DatiConfermatiTableAdapter(); taDatiMacchine = new DS_ProdTempiTableAdapters.DatiMacchineTableAdapter(); + taDatiProd = new DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter(); taDatiProdMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaTableAdapter(); taDatiProdMacchPer = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter(); taDatiStatoMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter(); - taPostazioni = new DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter(); - taTurniMacc = new DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter(); - taPzProd2conf = new DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter(); - taTempiCicloRilevati = new DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter(); - taDatiProd = new DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter(); - taTempoByClass = new DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter(); - taCalFF = new DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter(); + taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter(); + taFL = new DS_applicazioneTableAdapters.FluxLogTableAdapter(); + taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter(); + taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter(); + taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter(); + taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter(); + taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter(); taMSE = new DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter(); + taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter(); + taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter(); + taOp2ins = new DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter(); + taPlanCalDisp = new DS_PlanTableAdapters.CalDispTableAdapter(); + taPlanCalStop = new DS_PlanTableAdapters.CalStopTableAdapter(); + taPlanRichieste = new DS_PlanTableAdapters.RichiesteTableAdapter(); taPODL = new DS_ProdTempiTableAdapters.PromesseODLTableAdapter(); + taPostazioni = new DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter(); + taPromOut = new DS_PlanTableAdapters.PromesseOUTTableAdapter(); + taPzProd2conf = new DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter(); taRC = new DS_ProdTempiTableAdapters.RegistroControlliTableAdapter(); + taRemReb = new DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter(); taRS = new DS_ProdTempiTableAdapters.RegistroScartiTableAdapter(); - taStatoProd = new DS_ProdTempiTableAdapters.StatoProdTableAdapter(); - taSelArt = new DS_UtilityTableAdapters.v_selArticoliTableAdapter(); taSelMacc = new DS_UtilityTableAdapters.v_selMacchineTableAdapter(); taSelOdlFree = new DS_UtilityTableAdapters.v_selODLTableAdapter(); - taComm = new DS_UtilityTableAdapters.CommentiTableAdapter(); - - taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter(); - taPlanCalStop = new DS_PlanTableAdapters.CalStopTableAdapter(); - taPlanCalDisp = new DS_PlanTableAdapters.CalDispTableAdapter(); - taPlanRichieste = new DS_PlanTableAdapters.RichiesteTableAdapter(); - taPromOut = new DS_PlanTableAdapters.PromesseOUTTableAdapter(); - - taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter(); - taAs400 = new DS_IntServTableAdapters.ProduzioneAs400TableAdapter(); + taSigLog = new DS_applicazioneTableAdapters.SignalLogTableAdapter(); + taSTAR = new DS_SheetTechTableAdapters.ST_ActualRowTableAdapter(); + taStati = new DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); + taStatoMacchine = new DS_applicazioneTableAdapters.StatoMacchineTableAdapter(); + taStatoProd = new DS_ProdTempiTableAdapters.StatoProdTableAdapter(); + taSTChk = new DS_SheetTechTableAdapters.ST_CheckTableAdapter(); + taTempiCicloRilevati = new DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter(); + taTempoByClass = new DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter(); taTKS = new DS_IntServTableAdapters.TKS_SearchTableAdapter(); - taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter(); + taTranIngr = new DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter(); + taTurniMacc = new DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter(); taWKS = new DS_IntServTableAdapters.WipSetupKitTableAdapter(); } @@ -544,54 +534,54 @@ namespace MapoDb string connectionStringES3 = memLayer.ML.confReadString("MoonProConnectionStringES3"); // connections del db taAG.Connection.ConnectionString = connectionString; - taMacchine.Connection.ConnectionString = connectionString; - taStatoMacchine.Connection.ConnectionString = connectionString; + taAnagArt.Connection.ConnectionString = connectionString; taAnagEventi.Connection.ConnectionString = connectionString; taAnagStati.Connection.ConnectionString = connectionString; - taKeepAlive.Connection.ConnectionString = connectionString; - taStati.Connection.ConnectionString = connectionString; - taEventi.Connection.ConnectionString = connectionString; - taOp.Connection.ConnectionString = connectionString; - taOp2ins.Connection.ConnectionString = connectionString; - taTranIngr.Connection.ConnectionString = connectionString; - taRemReb.Connection.ConnectionString = connectionString; - taSigLog.Connection.ConnectionString = connectionString; - taFL.Connection.ConnectionString = connectionString; - taAnagArt.Connection.ConnectionString = connectionString; - taODL.Connection.ConnectionString = connectionString; + taAs400.Connection.ConnectionString = connectionStringIS; + taCalFF.Connection.ConnectionString = connectionString; + taComm.Connection.ConnectionString = connectionString; taDatiConf.Connection.ConnectionString = connectionString; taDatiMacchine.Connection.ConnectionString = connectionString; + taDatiProd.Connection.ConnectionString = connectionString; taDatiProdMacch.Connection.ConnectionString = connectionString; taDatiProdMacchPer.Connection.ConnectionString = connectionString; taDatiStatoMacch.Connection.ConnectionString = connectionString; - taPostazioni.Connection.ConnectionString = connectionString; - taTurniMacc.Connection.ConnectionString = connectionString; - taPzProd2conf.Connection.ConnectionString = connectionString; - taTempiCicloRilevati.Connection.ConnectionString = connectionString; - taDatiProd.Connection.ConnectionString = connectionString; - taTempoByClass.Connection.ConnectionString = connectionString; - taCalFF.Connection.ConnectionString = connectionString; + taEventi.Connection.ConnectionString = connectionString; + taFL.Connection.ConnectionString = connectionString; + taIS_TrDati.Connection.ConnectionString = connectionStringIS; + taIstK.Connection.ConnectionString = connectionStringIS; + taKeepAlive.Connection.ConnectionString = connectionString; + taMacchine.Connection.ConnectionString = connectionString; + taMacParams.Connection.ConnectionString = connectionStringES3; taMSE.Connection.ConnectionString = connectionString; + taODL.Connection.ConnectionString = connectionString; + taOp.Connection.ConnectionString = connectionString; + taOp2ins.Connection.ConnectionString = connectionString; + taPlanCalDisp.Connection.ConnectionString = connectionStringES3; + taPlanCalStop.Connection.ConnectionString = connectionStringES3; + taPlanRichieste.Connection.ConnectionString = connectionStringES3; taPODL.Connection.ConnectionString = connectionString; + taPostazioni.Connection.ConnectionString = connectionString; + taPromOut.Connection.ConnectionString = connectionStringES3; + taPzProd2conf.Connection.ConnectionString = connectionString; taRC.Connection.ConnectionString = connectionString; + taRemReb.Connection.ConnectionString = connectionString; taRS.Connection.ConnectionString = connectionString; - taStatoProd.Connection.ConnectionString = connectionString; taSelArt.Connection.ConnectionString = connectionString; taSelMacc.Connection.ConnectionString = connectionString; taSelOdlFree.Connection.ConnectionString = connectionString; - taComm.Connection.ConnectionString = connectionString; - // area planner - taMacParams.Connection.ConnectionString = connectionStringES3; - taPlanCalStop.Connection.ConnectionString = connectionStringES3; - taPlanCalDisp.Connection.ConnectionString = connectionStringES3; - taPlanRichieste.Connection.ConnectionString = connectionStringES3; - taPromOut.Connection.ConnectionString = connectionStringES3; - // area IS - taIS_TrDati.Connection.ConnectionString = connectionStringIS; - taIstK.Connection.ConnectionString = connectionStringIS; - taAs400.Connection.ConnectionString = connectionStringIS; - taWKS.Connection.ConnectionString = connectionStringIS; + taSigLog.Connection.ConnectionString = connectionString; + taSTAR.Connection.ConnectionString = connectionString; + taStati.Connection.ConnectionString = connectionString; + taStatoMacchine.Connection.ConnectionString = connectionString; + taStatoProd.Connection.ConnectionString = connectionString; + taSTChk.Connection.ConnectionString = connectionString; + taTempiCicloRilevati.Connection.ConnectionString = connectionString; + taTempoByClass.Connection.ConnectionString = connectionString; taTKS.Connection.ConnectionString = connectionStringIS; + taTranIngr.Connection.ConnectionString = connectionString; + taTurniMacc.Connection.ConnectionString = connectionString; + taWKS.Connection.ConnectionString = connectionStringIS; } #endregion Protected Methods