diff --git a/WebSCR.v11.suo b/WebSCR.v11.suo index c0776e5..7272ee1 100644 Binary files a/WebSCR.v11.suo and b/WebSCR.v11.suo differ diff --git a/WebSCR/Upload/Client.aspx.cs b/WebSCR/Upload/Client.aspx.cs index e7f439e..8c8e59b 100644 --- a/WebSCR/Upload/Client.aspx.cs +++ b/WebSCR/Upload/Client.aspx.cs @@ -1,10 +1,10 @@ -using SteamWare; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using SteamWare; using WebSCR_data; namespace WebSCR.Upload diff --git a/WebSCR/Upload/Document.aspx b/WebSCR/Upload/Document.aspx new file mode 100644 index 0000000..938a1d2 --- /dev/null +++ b/WebSCR/Upload/Document.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Document.aspx.cs" Inherits="WebSCR.Upload.Document" %> + + + + + + + + +
+
+ Restituisce ULTIMO record inserito (cod cliente masismo) altrimenti accetta dati x nuovo record cliente... +
+
+ + diff --git a/WebSCR/Upload/Document.aspx.cs b/WebSCR/Upload/Document.aspx.cs new file mode 100644 index 0000000..d889e45 --- /dev/null +++ b/WebSCR/Upload/Document.aspx.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; +using WebSCR_data; + +namespace WebSCR.Upload +{ + public partial class Document : System.Web.UI.Page + { + /// + /// recupera valore querystring + /// + /// + /// + protected string qsVal(string nome) + { + return memLayer.ML.QSS(nome); + } + protected void Page_Load(object sender, EventArgs e) + { + string answ = "ND"; + /* + * http://webscr.steamware.net/Rigamonti/Upload/Document?TIPOPROTOC=OC&NUMERO=000000&ESERPROTOC=2015&NUMEPROTOC=000000&DATAPROTOC=20150521&ESERRIFERI=&NUMERIFERI=&TIPORIFERI=&DATARIFERI=&NUMEDOCRIF=&DATADOCRIF=&ESERCOLLEG=&CLI_FOR=C000000&DESTINATAR=C000000&RGSOC_DEST=SE+CI+FOSSE&INDIR_DEST=OPZIONALE&LOCAL_DEST=OPZIONALE&CAP_DEST=OPZIONALE&ULT_AGG=20150521 + */ + // legge i get x processare dati input + string TIPOPROTOC = ""; + string NUMERO = ""; + string ESERPROTOC = ""; + string NUMEPROTOC = ""; + string DATAPROTOC = ""; + string ESERRIFERI = ""; + string NUMERIFERI = ""; + string TIPORIFERI = ""; + string DATARIFERI = ""; + string NUMEDOCRIF = ""; + string DATADOCRIF = ""; + string ESERCOLLEG = ""; + string CLI_FOR = ""; + string DESTINATAR = ""; + string RGSOC_DEST = ""; + string INDIR_DEST = ""; + string LOCAL_DEST = ""; + string CAP_DEST = ""; + string ULT_AGG = ""; + try + { + TIPOPROTOC = qsVal("TIPOPROTOC"); + NUMERO = qsVal("NUMERO"); + ESERPROTOC = qsVal("ESERPROTOC"); + NUMEPROTOC = qsVal("NUMEPROTOC"); + DATAPROTOC = qsVal("DATAPROTOC"); + ESERRIFERI = qsVal("ESERRIFERI"); + NUMERIFERI = qsVal("NUMERIFERI"); + TIPORIFERI = qsVal("TIPORIFERI"); + DATARIFERI = qsVal("DATARIFERI"); + NUMEDOCRIF = qsVal("NUMEDOCRIF"); + DATADOCRIF = qsVal("DATADOCRIF"); + ESERCOLLEG = qsVal("ESERCOLLEG"); + CLI_FOR = qsVal("CLI_FOR"); + DESTINATAR = qsVal("DESTINATAR"); + RGSOC_DEST = qsVal("RGSOC_DEST"); + INDIR_DEST = qsVal("INDIR_DEST"); + LOCAL_DEST = qsVal("LOCAL_DEST"); + CAP_DEST = qsVal("CAP_DEST"); + ULT_AGG = qsVal("ULT_AGG"); + if (memLayer.ML.CRI("_logLevel") > 6) + { + logger.lg.scriviLog(string.Format("Valori letti:{0}TIPOPROTOC: {1}{0}NUMERO: {2}{0}ESERPROTOC: {3}{0}NUMEPROTOC: {4}{0}DATAPROTOC: {5}{0}ESERRIFERI: {6}{0}NUMERIFERI: {7}{0}TIPORIFERI: {8}{0}DATARIFERI: {9}{0}NUMEDOCRIF: {10}{0}DATADOCRIF: {11}{0}ESERCOLLEG: {12}{0}CLI_FOR: {12}{0}DESTINATAR: {12}{0}RGSOC_DEST: {12}{0}INDIR_DEST: {12}{0}LOCAL_DEST: {12}{0}CAP_DEST: {12}{0}ULT_AGG: {12}", Environment.NewLine, TIPOPROTOC, NUMERO, ESERPROTOC, NUMEPROTOC, DATAPROTOC, ESERRIFERI, NUMERIFERI, TIPORIFERI, DATARIFERI, NUMEDOCRIF, DATADOCRIF, ESERCOLLEG, CLI_FOR, DESTINATAR, RGSOC_DEST, INDIR_DEST, LOCAL_DEST, CAP_DEST, ULT_AGG), tipoLog.INFO); + } + } + catch + { } + // provo a fare insert!!! + if (TIPOPROTOC != null && NUMEPROTOC != null) + { + if (TIPOPROTOC != "" && NUMEPROTOC != "") + { + try + { + // ora processo e salvo il valore del microstato... + DtProxy.man.taDocs.upsert(TIPOPROTOC, NUMERO, ESERPROTOC, NUMEPROTOC, DATAPROTOC, ESERRIFERI, NUMERIFERI, TIPORIFERI, DATARIFERI, NUMEDOCRIF, DATADOCRIF, ESERCOLLEG, CLI_FOR, DESTINATAR, RGSOC_DEST, INDIR_DEST, LOCAL_DEST, CAP_DEST, ULT_AGG); + answ = "OK"; // registro in risposta che è andato tutto bene... + } + catch (Exception exc) + { + if (memLayer.ML.confReadInt("_logLevel") > 5) + { + string errore = string.Format("Errore: {0}{1}", Environment.NewLine, exc); + logger.lg.scriviLog(errore, tipoLog.EXCEPTION); + answ = errore; + } + } + } + else + { + // restituisco ultimo DOCUMENTO inserito + try + { + DS_Applicazione.DB2_DOCSRow riga = DtProxy.man.taDocs.getLast()[0]; + answ = string.Format("{0}{1}", riga.TIPOPROTOC, riga.NUMEPROTOC); + } + catch + { + answ = "ko"; + } + } + } + else + { + // restituisco ultimo COD CLIENTE inserito + try + { + answ = DtProxy.man.taAC.getLast()[0].CodCliente; + } + catch + { + answ = "ko"; + } + } + + // ripulisco pagina restituita e tolgo html (solo codice ok/NO) + Response.Clear(); + Response.Write(answ); + Context.Response.End(); + } + } +} \ No newline at end of file diff --git a/WebSCR/Upload/Document.aspx.designer.cs b/WebSCR/Upload/Document.aspx.designer.cs new file mode 100644 index 0000000..3fbd281 --- /dev/null +++ b/WebSCR/Upload/Document.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebSCR.Upload +{ + + + public partial class Document + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll index a81f16f..095e38d 100644 Binary files a/WebSCR/bin/SteamWare.dll and b/WebSCR/bin/SteamWare.dll differ diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll index 02a14ed..a5f3ba9 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll index aa546e0..eda4de7 100644 Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ diff --git a/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache b/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache index a1ceb03..205500e 100644 Binary files a/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache and b/WebSCR/obj/Debug/WebSCR.csprojResolveAssemblyReference.cache differ diff --git a/WebSCR/obj/Debug/WebSCR.dll b/WebSCR/obj/Debug/WebSCR.dll index 02a14ed..a5f3ba9 100644 Binary files a/WebSCR/obj/Debug/WebSCR.dll and b/WebSCR/obj/Debug/WebSCR.dll differ diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index a1281e2..4d869e6 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -46,6 +46,8 @@ namespace WebSCR_data { private v_clientiZoneDataTable tablev_clientiZone; + private DB2_DOCSDataTable tableDB2_DOCS; + private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -109,6 +111,9 @@ namespace WebSCR_data { if ((ds.Tables["v_clientiZone"] != null)) { base.Tables.Add(new v_clientiZoneDataTable(ds.Tables["v_clientiZone"])); } + if ((ds.Tables["DB2_DOCS"] != null)) { + base.Tables.Add(new DB2_DOCSDataTable(ds.Tables["DB2_DOCS"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -237,6 +242,16 @@ namespace WebSCR_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DB2_DOCSDataTable DB2_DOCS { + get { + return this.tableDB2_DOCS; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -337,6 +352,9 @@ namespace WebSCR_data { if ((ds.Tables["v_clientiZone"] != null)) { base.Tables.Add(new v_clientiZoneDataTable(ds.Tables["v_clientiZone"])); } + if ((ds.Tables["DB2_DOCS"] != null)) { + base.Tables.Add(new DB2_DOCSDataTable(ds.Tables["DB2_DOCS"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -436,6 +454,12 @@ namespace WebSCR_data { this.tablev_clientiZone.InitVars(); } } + this.tableDB2_DOCS = ((DB2_DOCSDataTable)(base.Tables["DB2_DOCS"])); + if ((initTable == true)) { + if ((this.tableDB2_DOCS != null)) { + this.tableDB2_DOCS.InitVars(); + } + } this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"]; } @@ -469,6 +493,8 @@ namespace WebSCR_data { base.Tables.Add(this.tableDettImpegno); this.tablev_clientiZone = new v_clientiZoneDataTable(); base.Tables.Add(this.tablev_clientiZone); + this.tableDB2_DOCS = new DB2_DOCSDataTable(); + base.Tables.Add(this.tableDB2_DOCS); this.relationFK_Disponibilita_AnagSquadre = new global::System.Data.DataRelation("FK_Disponibilita_AnagSquadre", new global::System.Data.DataColumn[] { this.tableAnagSquadre.CodSquadraColumn}, new global::System.Data.DataColumn[] { this.tableDisponibilita.CodSquadraColumn}, false); @@ -541,6 +567,12 @@ namespace WebSCR_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDB2_DOCS() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -629,6 +661,9 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_clientiZoneRowChangeEventHandler(object sender, v_clientiZoneRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DB2_DOCSRowChangeEventHandler(object sender, DB2_DOCSRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4962,6 +4997,554 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DB2_DOCSDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnTIPOPROTOC; + + private global::System.Data.DataColumn columnNUMERO; + + private global::System.Data.DataColumn columnESERPROTOC; + + private global::System.Data.DataColumn columnNUMEPROTOC; + + private global::System.Data.DataColumn columnDATAPROTOC; + + private global::System.Data.DataColumn columnESERRIFERI; + + private global::System.Data.DataColumn columnNUMERIFERI; + + private global::System.Data.DataColumn columnTIPORIFERI; + + private global::System.Data.DataColumn columnDATARIFERI; + + private global::System.Data.DataColumn columnNUMEDOCRIF; + + private global::System.Data.DataColumn columnDATADOCRIF; + + private global::System.Data.DataColumn columnESERCOLLEG; + + private global::System.Data.DataColumn columnCLI_FOR; + + private global::System.Data.DataColumn columnDESTINATAR; + + private global::System.Data.DataColumn columnRGSOC_DEST; + + private global::System.Data.DataColumn columnINDIR_DEST; + + private global::System.Data.DataColumn columnLOCAL_DEST; + + private global::System.Data.DataColumn columnCAP_DEST; + + private global::System.Data.DataColumn columnULT_AGG; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSDataTable() { + this.TableName = "DB2_DOCS"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DB2_DOCSDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DB2_DOCSDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TIPOPROTOCColumn { + get { + return this.columnTIPOPROTOC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NUMEROColumn { + get { + return this.columnNUMERO; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ESERPROTOCColumn { + get { + return this.columnESERPROTOC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NUMEPROTOCColumn { + get { + return this.columnNUMEPROTOC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DATAPROTOCColumn { + get { + return this.columnDATAPROTOC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ESERRIFERIColumn { + get { + return this.columnESERRIFERI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NUMERIFERIColumn { + get { + return this.columnNUMERIFERI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TIPORIFERIColumn { + get { + return this.columnTIPORIFERI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DATARIFERIColumn { + get { + return this.columnDATARIFERI; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NUMEDOCRIFColumn { + get { + return this.columnNUMEDOCRIF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DATADOCRIFColumn { + get { + return this.columnDATADOCRIF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ESERCOLLEGColumn { + get { + return this.columnESERCOLLEG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CLI_FORColumn { + get { + return this.columnCLI_FOR; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DESTINATARColumn { + get { + return this.columnDESTINATAR; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RGSOC_DESTColumn { + get { + return this.columnRGSOC_DEST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn INDIR_DESTColumn { + get { + return this.columnINDIR_DEST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LOCAL_DESTColumn { + get { + return this.columnLOCAL_DEST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CAP_DESTColumn { + get { + return this.columnCAP_DEST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ULT_AGGColumn { + get { + return this.columnULT_AGG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRow this[int index] { + get { + return ((DB2_DOCSRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DB2_DOCSRowChangeEventHandler DB2_DOCSRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DB2_DOCSRowChangeEventHandler DB2_DOCSRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DB2_DOCSRowChangeEventHandler DB2_DOCSRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DB2_DOCSRowChangeEventHandler DB2_DOCSRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDB2_DOCSRow(DB2_DOCSRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRow AddDB2_DOCSRow( + string TIPOPROTOC, + string NUMERO, + string ESERPROTOC, + string NUMEPROTOC, + string DATAPROTOC, + string ESERRIFERI, + string NUMERIFERI, + string TIPORIFERI, + string DATARIFERI, + string NUMEDOCRIF, + string DATADOCRIF, + string ESERCOLLEG, + string CLI_FOR, + string DESTINATAR, + string RGSOC_DEST, + string INDIR_DEST, + string LOCAL_DEST, + string CAP_DEST, + string ULT_AGG) { + DB2_DOCSRow rowDB2_DOCSRow = ((DB2_DOCSRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + TIPOPROTOC, + NUMERO, + ESERPROTOC, + NUMEPROTOC, + DATAPROTOC, + ESERRIFERI, + NUMERIFERI, + TIPORIFERI, + DATARIFERI, + NUMEDOCRIF, + DATADOCRIF, + ESERCOLLEG, + CLI_FOR, + DESTINATAR, + RGSOC_DEST, + INDIR_DEST, + LOCAL_DEST, + CAP_DEST, + ULT_AGG}; + rowDB2_DOCSRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDB2_DOCSRow); + return rowDB2_DOCSRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRow FindByNUMERO(string NUMERO) { + return ((DB2_DOCSRow)(this.Rows.Find(new object[] { + NUMERO}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DB2_DOCSDataTable cln = ((DB2_DOCSDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DB2_DOCSDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnTIPOPROTOC = base.Columns["TIPOPROTOC"]; + this.columnNUMERO = base.Columns["NUMERO"]; + this.columnESERPROTOC = base.Columns["ESERPROTOC"]; + this.columnNUMEPROTOC = base.Columns["NUMEPROTOC"]; + this.columnDATAPROTOC = base.Columns["DATAPROTOC"]; + this.columnESERRIFERI = base.Columns["ESERRIFERI"]; + this.columnNUMERIFERI = base.Columns["NUMERIFERI"]; + this.columnTIPORIFERI = base.Columns["TIPORIFERI"]; + this.columnDATARIFERI = base.Columns["DATARIFERI"]; + this.columnNUMEDOCRIF = base.Columns["NUMEDOCRIF"]; + this.columnDATADOCRIF = base.Columns["DATADOCRIF"]; + this.columnESERCOLLEG = base.Columns["ESERCOLLEG"]; + this.columnCLI_FOR = base.Columns["CLI_FOR"]; + this.columnDESTINATAR = base.Columns["DESTINATAR"]; + this.columnRGSOC_DEST = base.Columns["RGSOC_DEST"]; + this.columnINDIR_DEST = base.Columns["INDIR_DEST"]; + this.columnLOCAL_DEST = base.Columns["LOCAL_DEST"]; + this.columnCAP_DEST = base.Columns["CAP_DEST"]; + this.columnULT_AGG = base.Columns["ULT_AGG"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnTIPOPROTOC = new global::System.Data.DataColumn("TIPOPROTOC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTIPOPROTOC); + this.columnNUMERO = new global::System.Data.DataColumn("NUMERO", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNUMERO); + this.columnESERPROTOC = new global::System.Data.DataColumn("ESERPROTOC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnESERPROTOC); + this.columnNUMEPROTOC = new global::System.Data.DataColumn("NUMEPROTOC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNUMEPROTOC); + this.columnDATAPROTOC = new global::System.Data.DataColumn("DATAPROTOC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDATAPROTOC); + this.columnESERRIFERI = new global::System.Data.DataColumn("ESERRIFERI", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnESERRIFERI); + this.columnNUMERIFERI = new global::System.Data.DataColumn("NUMERIFERI", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNUMERIFERI); + this.columnTIPORIFERI = new global::System.Data.DataColumn("TIPORIFERI", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTIPORIFERI); + this.columnDATARIFERI = new global::System.Data.DataColumn("DATARIFERI", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDATARIFERI); + this.columnNUMEDOCRIF = new global::System.Data.DataColumn("NUMEDOCRIF", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNUMEDOCRIF); + this.columnDATADOCRIF = new global::System.Data.DataColumn("DATADOCRIF", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDATADOCRIF); + this.columnESERCOLLEG = new global::System.Data.DataColumn("ESERCOLLEG", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnESERCOLLEG); + this.columnCLI_FOR = new global::System.Data.DataColumn("CLI_FOR", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCLI_FOR); + this.columnDESTINATAR = new global::System.Data.DataColumn("DESTINATAR", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDESTINATAR); + this.columnRGSOC_DEST = new global::System.Data.DataColumn("RGSOC_DEST", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRGSOC_DEST); + this.columnINDIR_DEST = new global::System.Data.DataColumn("INDIR_DEST", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnINDIR_DEST); + this.columnLOCAL_DEST = new global::System.Data.DataColumn("LOCAL_DEST", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLOCAL_DEST); + this.columnCAP_DEST = new global::System.Data.DataColumn("CAP_DEST", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCAP_DEST); + this.columnULT_AGG = new global::System.Data.DataColumn("ULT_AGG", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnULT_AGG); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnNUMERO}, true)); + this.columnTIPOPROTOC.MaxLength = 2; + this.columnNUMERO.AllowDBNull = false; + this.columnNUMERO.Unique = true; + this.columnNUMERO.MaxLength = 7; + this.columnESERPROTOC.MaxLength = 4; + this.columnNUMEPROTOC.MaxLength = 7; + this.columnDATAPROTOC.MaxLength = 8; + this.columnESERRIFERI.MaxLength = 4; + this.columnNUMERIFERI.MaxLength = 7; + this.columnTIPORIFERI.MaxLength = 2; + this.columnDATARIFERI.MaxLength = 8; + this.columnNUMEDOCRIF.MaxLength = 10; + this.columnDATADOCRIF.MaxLength = 8; + this.columnESERCOLLEG.MaxLength = 4; + this.columnCLI_FOR.MaxLength = 10; + this.columnDESTINATAR.MaxLength = 10; + this.columnRGSOC_DEST.MaxLength = 50; + this.columnINDIR_DEST.MaxLength = 35; + this.columnLOCAL_DEST.MaxLength = 35; + this.columnCAP_DEST.MaxLength = 5; + this.columnULT_AGG.MaxLength = 8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRow NewDB2_DOCSRow() { + return ((DB2_DOCSRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DB2_DOCSRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DB2_DOCSRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DB2_DOCSRowChanged != null)) { + this.DB2_DOCSRowChanged(this, new DB2_DOCSRowChangeEvent(((DB2_DOCSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DB2_DOCSRowChanging != null)) { + this.DB2_DOCSRowChanging(this, new DB2_DOCSRowChangeEvent(((DB2_DOCSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DB2_DOCSRowDeleted != null)) { + this.DB2_DOCSRowDeleted(this, new DB2_DOCSRowChangeEvent(((DB2_DOCSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DB2_DOCSRowDeleting != null)) { + this.DB2_DOCSRowDeleting(this, new DB2_DOCSRowChangeEvent(((DB2_DOCSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDB2_DOCSRow(DB2_DOCSRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DB2_DOCSDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -6893,6 +7476,536 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class DB2_DOCSRow : global::System.Data.DataRow { + + private DB2_DOCSDataTable tableDB2_DOCS; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DB2_DOCSRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDB2_DOCS = ((DB2_DOCSDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string TIPOPROTOC { + get { + try { + return ((string)(this[this.tableDB2_DOCS.TIPOPROTOCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TIPOPROTOC\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.TIPOPROTOCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NUMERO { + get { + return ((string)(this[this.tableDB2_DOCS.NUMEROColumn])); + } + set { + this[this.tableDB2_DOCS.NUMEROColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ESERPROTOC { + get { + try { + return ((string)(this[this.tableDB2_DOCS.ESERPROTOCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ESERPROTOC\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.ESERPROTOCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NUMEPROTOC { + get { + try { + return ((string)(this[this.tableDB2_DOCS.NUMEPROTOCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NUMEPROTOC\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.NUMEPROTOCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DATAPROTOC { + get { + try { + return ((string)(this[this.tableDB2_DOCS.DATAPROTOCColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DATAPROTOC\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.DATAPROTOCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ESERRIFERI { + get { + try { + return ((string)(this[this.tableDB2_DOCS.ESERRIFERIColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ESERRIFERI\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.ESERRIFERIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NUMERIFERI { + get { + try { + return ((string)(this[this.tableDB2_DOCS.NUMERIFERIColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NUMERIFERI\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.NUMERIFERIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string TIPORIFERI { + get { + try { + return ((string)(this[this.tableDB2_DOCS.TIPORIFERIColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TIPORIFERI\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.TIPORIFERIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DATARIFERI { + get { + try { + return ((string)(this[this.tableDB2_DOCS.DATARIFERIColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DATARIFERI\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.DATARIFERIColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NUMEDOCRIF { + get { + try { + return ((string)(this[this.tableDB2_DOCS.NUMEDOCRIFColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NUMEDOCRIF\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.NUMEDOCRIFColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DATADOCRIF { + get { + try { + return ((string)(this[this.tableDB2_DOCS.DATADOCRIFColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DATADOCRIF\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.DATADOCRIFColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ESERCOLLEG { + get { + try { + return ((string)(this[this.tableDB2_DOCS.ESERCOLLEGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ESERCOLLEG\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.ESERCOLLEGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CLI_FOR { + get { + try { + return ((string)(this[this.tableDB2_DOCS.CLI_FORColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CLI_FOR\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.CLI_FORColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DESTINATAR { + get { + try { + return ((string)(this[this.tableDB2_DOCS.DESTINATARColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DESTINATAR\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.DESTINATARColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string RGSOC_DEST { + get { + try { + return ((string)(this[this.tableDB2_DOCS.RGSOC_DESTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'RGSOC_DEST\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.RGSOC_DESTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string INDIR_DEST { + get { + try { + return ((string)(this[this.tableDB2_DOCS.INDIR_DESTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'INDIR_DEST\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.INDIR_DESTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string LOCAL_DEST { + get { + try { + return ((string)(this[this.tableDB2_DOCS.LOCAL_DESTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'LOCAL_DEST\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.LOCAL_DESTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CAP_DEST { + get { + try { + return ((string)(this[this.tableDB2_DOCS.CAP_DESTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CAP_DEST\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.CAP_DESTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ULT_AGG { + get { + try { + return ((string)(this[this.tableDB2_DOCS.ULT_AGGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ULT_AGG\' in table \'DB2_DOCS\' is DBNull.", e); + } + } + set { + this[this.tableDB2_DOCS.ULT_AGGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTIPOPROTOCNull() { + return this.IsNull(this.tableDB2_DOCS.TIPOPROTOCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTIPOPROTOCNull() { + this[this.tableDB2_DOCS.TIPOPROTOCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsESERPROTOCNull() { + return this.IsNull(this.tableDB2_DOCS.ESERPROTOCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetESERPROTOCNull() { + this[this.tableDB2_DOCS.ESERPROTOCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNUMEPROTOCNull() { + return this.IsNull(this.tableDB2_DOCS.NUMEPROTOCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNUMEPROTOCNull() { + this[this.tableDB2_DOCS.NUMEPROTOCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDATAPROTOCNull() { + return this.IsNull(this.tableDB2_DOCS.DATAPROTOCColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDATAPROTOCNull() { + this[this.tableDB2_DOCS.DATAPROTOCColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsESERRIFERINull() { + return this.IsNull(this.tableDB2_DOCS.ESERRIFERIColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetESERRIFERINull() { + this[this.tableDB2_DOCS.ESERRIFERIColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNUMERIFERINull() { + return this.IsNull(this.tableDB2_DOCS.NUMERIFERIColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNUMERIFERINull() { + this[this.tableDB2_DOCS.NUMERIFERIColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTIPORIFERINull() { + return this.IsNull(this.tableDB2_DOCS.TIPORIFERIColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTIPORIFERINull() { + this[this.tableDB2_DOCS.TIPORIFERIColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDATARIFERINull() { + return this.IsNull(this.tableDB2_DOCS.DATARIFERIColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDATARIFERINull() { + this[this.tableDB2_DOCS.DATARIFERIColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNUMEDOCRIFNull() { + return this.IsNull(this.tableDB2_DOCS.NUMEDOCRIFColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNUMEDOCRIFNull() { + this[this.tableDB2_DOCS.NUMEDOCRIFColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDATADOCRIFNull() { + return this.IsNull(this.tableDB2_DOCS.DATADOCRIFColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDATADOCRIFNull() { + this[this.tableDB2_DOCS.DATADOCRIFColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsESERCOLLEGNull() { + return this.IsNull(this.tableDB2_DOCS.ESERCOLLEGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetESERCOLLEGNull() { + this[this.tableDB2_DOCS.ESERCOLLEGColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCLI_FORNull() { + return this.IsNull(this.tableDB2_DOCS.CLI_FORColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCLI_FORNull() { + this[this.tableDB2_DOCS.CLI_FORColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDESTINATARNull() { + return this.IsNull(this.tableDB2_DOCS.DESTINATARColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDESTINATARNull() { + this[this.tableDB2_DOCS.DESTINATARColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsRGSOC_DESTNull() { + return this.IsNull(this.tableDB2_DOCS.RGSOC_DESTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetRGSOC_DESTNull() { + this[this.tableDB2_DOCS.RGSOC_DESTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsINDIR_DESTNull() { + return this.IsNull(this.tableDB2_DOCS.INDIR_DESTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetINDIR_DESTNull() { + this[this.tableDB2_DOCS.INDIR_DESTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsLOCAL_DESTNull() { + return this.IsNull(this.tableDB2_DOCS.LOCAL_DESTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetLOCAL_DESTNull() { + this[this.tableDB2_DOCS.LOCAL_DESTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCAP_DESTNull() { + return this.IsNull(this.tableDB2_DOCS.CAP_DESTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCAP_DESTNull() { + this[this.tableDB2_DOCS.CAP_DESTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsULT_AGGNull() { + return this.IsNull(this.tableDB2_DOCS.ULT_AGGColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetULT_AGGNull() { + this[this.tableDB2_DOCS.ULT_AGGColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -7266,6 +8379,40 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DB2_DOCSRowChangeEvent : global::System.EventArgs { + + private DB2_DOCSRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRowChangeEvent(DB2_DOCSRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace WebSCR_data.DS_ApplicazioneTableAdapters { @@ -12103,6 +13250,594 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DB2_DOCSTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DB2_DOCSTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DB2_DOCS"; + tableMapping.ColumnMappings.Add("TIPOPROTOC", "TIPOPROTOC"); + tableMapping.ColumnMappings.Add("NUMERO", "NUMERO"); + tableMapping.ColumnMappings.Add("ESERPROTOC", "ESERPROTOC"); + tableMapping.ColumnMappings.Add("NUMEPROTOC", "NUMEPROTOC"); + tableMapping.ColumnMappings.Add("DATAPROTOC", "DATAPROTOC"); + tableMapping.ColumnMappings.Add("ESERRIFERI", "ESERRIFERI"); + tableMapping.ColumnMappings.Add("NUMERIFERI", "NUMERIFERI"); + tableMapping.ColumnMappings.Add("TIPORIFERI", "TIPORIFERI"); + tableMapping.ColumnMappings.Add("DATARIFERI", "DATARIFERI"); + tableMapping.ColumnMappings.Add("NUMEDOCRIF", "NUMEDOCRIF"); + tableMapping.ColumnMappings.Add("DATADOCRIF", "DATADOCRIF"); + tableMapping.ColumnMappings.Add("ESERCOLLEG", "ESERCOLLEG"); + tableMapping.ColumnMappings.Add("CLI_FOR", "CLI_FOR"); + tableMapping.ColumnMappings.Add("DESTINATAR", "DESTINATAR"); + tableMapping.ColumnMappings.Add("RGSOC_DEST", "RGSOC_DEST"); + tableMapping.ColumnMappings.Add("INDIR_DEST", "INDIR_DEST"); + tableMapping.ColumnMappings.Add("LOCAL_DEST", "LOCAL_DEST"); + tableMapping.ColumnMappings.Add("CAP_DEST", "CAP_DEST"); + tableMapping.ColumnMappings.Add("ULT_AGG", "ULT_AGG"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [raw].[DB2_DOCS] ([TIPOPROTOC], [NUMERO], [ESERPROTOC], [NUMEPROTOC], [DATAPROTOC], [ESERRIFERI], [NUMERIFERI], [TIPORIFERI], [DATARIFERI], [NUMEDOCRIF], [DATADOCRIF], [ESERCOLLEG], [CLI_FOR], [DESTINATAR], [RGSOC_DEST], [INDIR_DEST], [LOCAL_DEST], [CAP_DEST], [ULT_AGG]) VALUES (@TIPOPROTOC, @NUMERO, @ESERPROTOC, @NUMEPROTOC, @DATAPROTOC, @ESERRIFERI, @NUMERIFERI, @TIPORIFERI, @DATARIFERI, @NUMEDOCRIF, @DATADOCRIF, @ESERCOLLEG, @CLI_FOR, @DESTINATAR, @RGSOC_DEST, @INDIR_DEST, @LOCAL_DEST, @CAP_DEST, @ULT_AGG)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIPOPROTOC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TIPOPROTOC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMERO", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMERO", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ESERPROTOC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ESERPROTOC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMEPROTOC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMEPROTOC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATAPROTOC", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATAPROTOC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ESERRIFERI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ESERRIFERI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMERIFERI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMERIFERI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TIPORIFERI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TIPORIFERI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATARIFERI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATARIFERI", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMEDOCRIF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMEDOCRIF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATADOCRIF", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATADOCRIF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ESERCOLLEG", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ESERCOLLEG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CLI_FOR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CLI_FOR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DESTINATAR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DESTINATAR", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RGSOC_DEST", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RGSOC_DEST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INDIR_DEST", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INDIR_DEST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LOCAL_DEST", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LOCAL_DEST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CAP_DEST", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CAP_DEST", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ULT_AGG", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ULT_AGG", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::WebSCR_data.Properties.Settings.Default.WebSCRConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + 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 TIPOPROTOC, NUMERO, ESERPROTOC, NUMEPROTOC, DATAPROTOC, ESERRIFERI, NUMERI" + + "FERI, TIPORIFERI, DATARIFERI, NUMEDOCRIF, DATADOCRIF, ESERCOLLEG, CLI_FOR, DESTI" + + "NATAR, RGSOC_DEST, INDIR_DEST, LOCAL_DEST, CAP_DEST, ULT_AGG FROM raw.DB2_DOCS"; + 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_DOC_GetLast"; + 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[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DOC_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("@TIPOPROTOC", global::System.Data.SqlDbType.NVarChar, 2, 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("@NUMERO", global::System.Data.SqlDbType.NVarChar, 7, 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("@ESERPROTOC", global::System.Data.SqlDbType.NVarChar, 4, 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("@NUMEPROTOC", global::System.Data.SqlDbType.NVarChar, 7, 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("@DATAPROTOC", global::System.Data.SqlDbType.NVarChar, 8, 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("@ESERRIFERI", global::System.Data.SqlDbType.NVarChar, 4, 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("@NUMERIFERI", global::System.Data.SqlDbType.NVarChar, 7, 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("@TIPORIFERI", global::System.Data.SqlDbType.NVarChar, 2, 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("@DATARIFERI", global::System.Data.SqlDbType.NVarChar, 8, 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("@NUMEDOCRIF", global::System.Data.SqlDbType.NVarChar, 10, 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("@DATADOCRIF", global::System.Data.SqlDbType.NVarChar, 8, 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("@ESERCOLLEG", global::System.Data.SqlDbType.NVarChar, 4, 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("@CLI_FOR", global::System.Data.SqlDbType.NVarChar, 10, 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("@DESTINATAR", global::System.Data.SqlDbType.NVarChar, 10, 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("@RGSOC_DEST", 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("@INDIR_DEST", global::System.Data.SqlDbType.NVarChar, 35, 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("@LOCAL_DEST", global::System.Data.SqlDbType.NVarChar, 35, 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("@CAP_DEST", global::System.Data.SqlDbType.NVarChar, 5, 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("@ULT_AGG", global::System.Data.SqlDbType.NVarChar, 8, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.DB2_DOCSDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.DB2_DOCSDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.DB2_DOCSDataTable dataTable = new DS_Applicazione.DB2_DOCSDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.DB2_DOCSDataTable getLast() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + DS_Applicazione.DB2_DOCSDataTable dataTable = new DS_Applicazione.DB2_DOCSDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.DB2_DOCSDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "DB2_DOCS"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert( + string TIPOPROTOC, + string NUMERO, + string ESERPROTOC, + string NUMEPROTOC, + string DATAPROTOC, + string ESERRIFERI, + string NUMERIFERI, + string TIPORIFERI, + string DATARIFERI, + string NUMEDOCRIF, + string DATADOCRIF, + string ESERCOLLEG, + string CLI_FOR, + string DESTINATAR, + string RGSOC_DEST, + string INDIR_DEST, + string LOCAL_DEST, + string CAP_DEST, + string ULT_AGG) { + if ((TIPOPROTOC == null)) { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TIPOPROTOC)); + } + if ((NUMERO == null)) { + throw new global::System.ArgumentNullException("NUMERO"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(NUMERO)); + } + if ((ESERPROTOC == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ESERPROTOC)); + } + if ((NUMEPROTOC == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(NUMEPROTOC)); + } + if ((DATAPROTOC == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(DATAPROTOC)); + } + if ((ESERRIFERI == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ESERRIFERI)); + } + if ((NUMERIFERI == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(NUMERIFERI)); + } + if ((TIPORIFERI == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(TIPORIFERI)); + } + if ((DATARIFERI == null)) { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = ((string)(DATARIFERI)); + } + if ((NUMEDOCRIF == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(NUMEDOCRIF)); + } + if ((DATADOCRIF == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(DATADOCRIF)); + } + if ((ESERCOLLEG == null)) { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(ESERCOLLEG)); + } + if ((CLI_FOR == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(CLI_FOR)); + } + if ((DESTINATAR == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(DESTINATAR)); + } + if ((RGSOC_DEST == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(RGSOC_DEST)); + } + if ((INDIR_DEST == null)) { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = ((string)(INDIR_DEST)); + } + if ((LOCAL_DEST == null)) { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = ((string)(LOCAL_DEST)); + } + if ((CAP_DEST == null)) { + this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = ((string)(CAP_DEST)); + } + if ((ULT_AGG == null)) { + this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = ((string)(ULT_AGG)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int upsert( + string TIPOPROTOC, + string NUMERO, + string ESERPROTOC, + string NUMEPROTOC, + string DATAPROTOC, + string ESERRIFERI, + string NUMERIFERI, + string TIPORIFERI, + string DATARIFERI, + string NUMEDOCRIF, + string DATADOCRIF, + string ESERCOLLEG, + string CLI_FOR, + string DESTINATAR, + string RGSOC_DEST, + string INDIR_DEST, + string LOCAL_DEST, + string CAP_DEST, + string ULT_AGG) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((TIPOPROTOC == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(TIPOPROTOC)); + } + if ((NUMERO == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(NUMERO)); + } + if ((ESERPROTOC == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(ESERPROTOC)); + } + if ((NUMEPROTOC == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(NUMEPROTOC)); + } + if ((DATAPROTOC == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(DATAPROTOC)); + } + if ((ESERRIFERI == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(ESERRIFERI)); + } + if ((NUMERIFERI == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(NUMERIFERI)); + } + if ((TIPORIFERI == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(TIPORIFERI)); + } + if ((DATARIFERI == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(DATARIFERI)); + } + if ((NUMEDOCRIF == null)) { + command.Parameters[10].Value = global::System.DBNull.Value; + } + else { + command.Parameters[10].Value = ((string)(NUMEDOCRIF)); + } + if ((DATADOCRIF == null)) { + command.Parameters[11].Value = global::System.DBNull.Value; + } + else { + command.Parameters[11].Value = ((string)(DATADOCRIF)); + } + if ((ESERCOLLEG == null)) { + command.Parameters[12].Value = global::System.DBNull.Value; + } + else { + command.Parameters[12].Value = ((string)(ESERCOLLEG)); + } + if ((CLI_FOR == null)) { + command.Parameters[13].Value = global::System.DBNull.Value; + } + else { + command.Parameters[13].Value = ((string)(CLI_FOR)); + } + if ((DESTINATAR == null)) { + command.Parameters[14].Value = global::System.DBNull.Value; + } + else { + command.Parameters[14].Value = ((string)(DESTINATAR)); + } + if ((RGSOC_DEST == null)) { + command.Parameters[15].Value = global::System.DBNull.Value; + } + else { + command.Parameters[15].Value = ((string)(RGSOC_DEST)); + } + if ((INDIR_DEST == null)) { + command.Parameters[16].Value = global::System.DBNull.Value; + } + else { + command.Parameters[16].Value = ((string)(INDIR_DEST)); + } + if ((LOCAL_DEST == null)) { + command.Parameters[17].Value = global::System.DBNull.Value; + } + else { + command.Parameters[17].Value = ((string)(LOCAL_DEST)); + } + if ((CAP_DEST == null)) { + command.Parameters[18].Value = global::System.DBNull.Value; + } + else { + command.Parameters[18].Value = ((string)(CAP_DEST)); + } + if ((ULT_AGG == null)) { + command.Parameters[19].Value = global::System.DBNull.Value; + } + else { + command.Parameters[19].Value = ((string)(ULT_AGG)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -12125,6 +13860,8 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq private DisponibilitaTableAdapter _disponibilitaTableAdapter; + private DB2_DOCSTableAdapter _dB2_DOCSTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -12210,6 +13947,20 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public DB2_DOCSTableAdapter DB2_DOCSTableAdapter { + get { + return this._dB2_DOCSTableAdapter; + } + set { + this._dB2_DOCSTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -12249,6 +14000,10 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq && (this._disponibilitaTableAdapter.Connection != null))) { return this._disponibilitaTableAdapter.Connection; } + if (((this._dB2_DOCSTableAdapter != null) + && (this._dB2_DOCSTableAdapter.Connection != null))) { + return this._dB2_DOCSTableAdapter.Connection; + } return null; } set { @@ -12277,6 +14032,9 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq if ((this._disponibilitaTableAdapter != null)) { count = (count + 1); } + if ((this._dB2_DOCSTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -12333,6 +14091,15 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq allChangedRows.AddRange(updatedRows); } } + if ((this._dB2_DOCSTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.DB2_DOCS.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dB2_DOCSTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -12383,6 +14150,14 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq allAddedRows.AddRange(addedRows); } } + if ((this._dB2_DOCSTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.DB2_DOCS.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._dB2_DOCSTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -12393,6 +14168,14 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; + if ((this._dB2_DOCSTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.DB2_DOCS.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._dB2_DOCSTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._disponibilitaTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.Disponibilita.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -12497,6 +14280,11 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._dB2_DOCSTableAdapter != null) + && (this.MatchTableAdapterConnection(this._dB2_DOCSTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -12574,6 +14362,15 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq adaptersWithAcceptChangesDuringUpdate.Add(this._disponibilitaTableAdapter.Adapter); } } + if ((this._dB2_DOCSTableAdapter != null)) { + revertConnections.Add(this._dB2_DOCSTableAdapter, this._dB2_DOCSTableAdapter.Connection); + this._dB2_DOCSTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._dB2_DOCSTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._dB2_DOCSTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._dB2_DOCSTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._dB2_DOCSTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -12652,6 +14449,10 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq this._disponibilitaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._disponibilitaTableAdapter])); this._disponibilitaTableAdapter.Transaction = null; } + if ((this._dB2_DOCSTableAdapter != null)) { + this._dB2_DOCSTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dB2_DOCSTableAdapter])); + this._dB2_DOCSTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index eec6a53..18392d7 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -993,6 +993,106 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + INSERT INTO [raw].[DB2_DOCS] ([TIPOPROTOC], [NUMERO], [ESERPROTOC], [NUMEPROTOC], [DATAPROTOC], [ESERRIFERI], [NUMERIFERI], [TIPORIFERI], [DATARIFERI], [NUMEDOCRIF], [DATADOCRIF], [ESERCOLLEG], [CLI_FOR], [DESTINATAR], [RGSOC_DEST], [INDIR_DEST], [LOCAL_DEST], [CAP_DEST], [ULT_AGG]) VALUES (@TIPOPROTOC, @NUMERO, @ESERPROTOC, @NUMEPROTOC, @DATAPROTOC, @ESERRIFERI, @NUMERIFERI, @TIPORIFERI, @DATARIFERI, @NUMEDOCRIF, @DATADOCRIF, @ESERCOLLEG, @CLI_FOR, @DESTINATAR, @RGSOC_DEST, @INDIR_DEST, @LOCAL_DEST, @CAP_DEST, @ULT_AGG) + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT TIPOPROTOC, NUMERO, ESERPROTOC, NUMEPROTOC, DATAPROTOC, ESERRIFERI, NUMERIFERI, TIPORIFERI, DATARIFERI, NUMEDOCRIF, DATADOCRIF, ESERCOLLEG, CLI_FOR, DESTINATAR, RGSOC_DEST, INDIR_DEST, LOCAL_DEST, CAP_DEST, ULT_AGG FROM raw.DB2_DOCS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DOC_GetLast + + + + + + + + + + dbo.stp_DOC_upsert + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1479,6 +1579,145 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1524,6 +1763,10 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index 675d26a..62b5787 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -29,6 +29,7 @@ namespace WebSCR_data taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); taVcz = new DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter(); + taDocs = new DS_ApplicazioneTableAdapters.DB2_DOCSTableAdapter(); taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter(); } /// @@ -46,6 +47,7 @@ namespace WebSCR_data taImp.Connection.ConnectionString = connStr; taDetImp.Connection.ConnectionString = connStr; taVcz.Connection.ConnectionString = connStr; + taDocs.Connection.ConnectionString = connStr; taFile.Connection.ConnectionString = connStrFiles; } @@ -60,6 +62,7 @@ namespace WebSCR_data public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp; public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp; public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz; + public DS_ApplicazioneTableAdapters.DB2_DOCSTableAdapter taDocs; public DS_UtilityTableAdapters.tblFilesTableAdapter taFile; public static DtProxy man = new DtProxy(); diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll index a81f16f..095e38d 100644 Binary files a/WebSCR_data/bin/Debug/SteamWare.dll and b/WebSCR_data/bin/Debug/SteamWare.dll differ diff --git a/WebSCR_data/bin/Debug/WebSCR_data.dll b/WebSCR_data/bin/Debug/WebSCR_data.dll index aa546e0..eda4de7 100644 Binary files a/WebSCR_data/bin/Debug/WebSCR_data.dll and b/WebSCR_data/bin/Debug/WebSCR_data.dll differ diff --git a/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll index e50e2b0..d9c73fc 100644 Binary files a/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache index 7db7a9d..b8e10a7 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache and b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache differ diff --git a/WebSCR_data/obj/Debug/WebSCR_data.dll b/WebSCR_data/obj/Debug/WebSCR_data.dll index aa546e0..eda4de7 100644 Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ