diff --git a/WebSCR.v11.suo b/WebSCR.v11.suo index 5155d85..88b6b51 100644 Binary files a/WebSCR.v11.suo and b/WebSCR.v11.suo differ diff --git a/WebSCR/WebSCR.csproj b/WebSCR/WebSCR.csproj index 4d6067e..36f7478 100644 --- a/WebSCR/WebSCR.csproj +++ b/WebSCR/WebSCR.csproj @@ -380,6 +380,7 @@ Web.config + Designer diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll index 0cd9956..82f87f2 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs index 1c05c78..5daf5bc 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -2096,6 +2096,16 @@ namespace WebSCR_data { private global::System.Data.DataColumn columnDataOra; + private global::System.Data.DataColumn columnTipoOrario; + + private global::System.Data.DataColumn columnCodCliente; + + private global::System.Data.DataColumn columnCognome; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnCodFis; + private global::System.Data.DataColumn columnCodSquadra; private global::System.Data.DataColumn columnDescrSquadra; @@ -2106,28 +2116,6 @@ namespace WebSCR_data { private global::System.Data.DataColumn columnInform; - private global::System.Data.DataColumn columnMinTotCons; - - private global::System.Data.DataColumn columnMinViaggio; - - private global::System.Data.DataColumn columnFinePrev; - - private global::System.Data.DataColumn columnNumOp; - - private global::System.Data.DataColumn columnCodCliente; - - private global::System.Data.DataColumn columnCognome; - - private global::System.Data.DataColumn columnNome; - - private global::System.Data.DataColumn columnCodFis; - - private global::System.Data.DataColumn columnOraIndic; - - private global::System.Data.DataColumn columnRifOC; - - private global::System.Data.DataColumn columnUrlDoc; - private global::System.Data.DataColumn columnIndir; private global::System.Data.DataColumn columnCap; @@ -2136,12 +2124,32 @@ namespace WebSCR_data { private global::System.Data.DataColumn columnProv; - private global::System.Data.DataColumn columnTempo; + private global::System.Data.DataColumn columnidxZona; - private global::System.Data.DataColumn columnZona; + private global::System.Data.DataColumn columnMinTotCons; + + private global::System.Data.DataColumn columnMinViaggio; + + private global::System.Data.DataColumn columnFinePrev; private global::System.Data.DataColumn columnNoteGen; + private global::System.Data.DataColumn columnRifOC; + + private global::System.Data.DataColumn columnUrlDoc; + + private global::System.Data.DataColumn columnNumOp; + + private global::System.Data.DataColumn columnRitUsato; + + private global::System.Data.DataColumn columnAscensore; + + private global::System.Data.DataColumn columnPianoCons; + + private global::System.Data.DataColumn columnUserMod; + + private global::System.Data.DataColumn columnDataMod; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public ImpegniDataTable() { @@ -2191,6 +2199,46 @@ namespace WebSCR_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TipoOrarioColumn { + get { + return this.columnTipoOrario; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodClienteColumn { + get { + return this.columnCodCliente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CognomeColumn { + get { + return this.columnCognome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodFisColumn { + get { + return this.columnCodFis; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn CodSquadraColumn { @@ -2231,94 +2279,6 @@ namespace WebSCR_data { } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn MinTotConsColumn { - get { - return this.columnMinTotCons; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn MinViaggioColumn { - get { - return this.columnMinViaggio; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn FinePrevColumn { - get { - return this.columnFinePrev; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn NumOpColumn { - get { - return this.columnNumOp; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn CodClienteColumn { - get { - return this.columnCodCliente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn CognomeColumn { - get { - return this.columnCognome; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn NomeColumn { - get { - return this.columnNome; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn CodFisColumn { - get { - return this.columnCodFis; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn OraIndicColumn { - get { - return this.columnOraIndic; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn RifOCColumn { - get { - return this.columnRifOC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn UrlDocColumn { - get { - return this.columnUrlDoc; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public global::System.Data.DataColumn IndirColumn { @@ -2353,17 +2313,33 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn TempoColumn { + public global::System.Data.DataColumn idxZonaColumn { get { - return this.columnTempo; + return this.columnidxZona; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn ZonaColumn { + public global::System.Data.DataColumn MinTotConsColumn { get { - return this.columnZona; + return this.columnMinTotCons; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MinViaggioColumn { + get { + return this.columnMinViaggio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FinePrevColumn { + get { + return this.columnFinePrev; } } @@ -2375,6 +2351,70 @@ namespace WebSCR_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RifOCColumn { + get { + return this.columnRifOC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn UrlDocColumn { + get { + return this.columnUrlDoc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumOpColumn { + get { + return this.columnNumOp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RitUsatoColumn { + get { + return this.columnRitUsato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AscensoreColumn { + get { + return this.columnAscensore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PianoConsColumn { + get { + return this.columnPianoCons; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn UserModColumn { + get { + return this.columnUserMod; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataModColumn { + get { + return this.columnDataMod; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -2415,56 +2455,64 @@ namespace WebSCR_data { public ImpegniRow AddImpegniRow( int IdxImpegno, System.DateTime DataOra, + string TipoOrario, + string CodCliente, + string Cognome, + string Nome, + string CodFis, string CodSquadra, string DescrSquadra, bool Elettrod, bool Clima, bool Inform, - int MinTotCons, - int MinViaggio, - System.DateTime FinePrev, - int NumOp, - string CodCliente, - string Cognome, - string Nome, - string CodFis, - bool OraIndic, - string RifOC, - string UrlDoc, string Indir, string Cap, string Localita, string Prov, - int Tempo, - string Zona, - string NoteGen) { + int idxZona, + int MinTotCons, + int MinViaggio, + System.DateTime FinePrev, + string NoteGen, + string RifOC, + string UrlDoc, + int NumOp, + bool RitUsato, + bool Ascensore, + int PianoCons, + string UserMod, + System.DateTime DataMod) { ImpegniRow rowImpegniRow = ((ImpegniRow)(this.NewRow())); object[] columnValuesArray = new object[] { IdxImpegno, DataOra, + TipoOrario, + CodCliente, + Cognome, + Nome, + CodFis, CodSquadra, DescrSquadra, Elettrod, Clima, Inform, - MinTotCons, - MinViaggio, - FinePrev, - NumOp, - CodCliente, - Cognome, - Nome, - CodFis, - OraIndic, - RifOC, - UrlDoc, Indir, Cap, Localita, Prov, - Tempo, - Zona, - NoteGen}; + idxZona, + MinTotCons, + MinViaggio, + FinePrev, + NoteGen, + RifOC, + UrlDoc, + NumOp, + RitUsato, + Ascensore, + PianoCons, + UserMod, + DataMod}; rowImpegniRow.ItemArray = columnValuesArray; this.Rows.Add(rowImpegniRow); return rowImpegniRow; @@ -2472,11 +2520,9 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public ImpegniRow FindByIdxImpegnoCodSquadraCodCliente(int IdxImpegno, string CodSquadra, string CodCliente) { + public ImpegniRow FindByIdxImpegno(int IdxImpegno) { return ((ImpegniRow)(this.Rows.Find(new object[] { - IdxImpegno, - CodSquadra, - CodCliente}))); + IdxImpegno}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2498,29 +2544,33 @@ namespace WebSCR_data { internal void InitVars() { this.columnIdxImpegno = base.Columns["IdxImpegno"]; this.columnDataOra = base.Columns["DataOra"]; + this.columnTipoOrario = base.Columns["TipoOrario"]; + this.columnCodCliente = base.Columns["CodCliente"]; + this.columnCognome = base.Columns["Cognome"]; + this.columnNome = base.Columns["Nome"]; + this.columnCodFis = base.Columns["CodFis"]; this.columnCodSquadra = base.Columns["CodSquadra"]; this.columnDescrSquadra = base.Columns["DescrSquadra"]; this.columnElettrod = base.Columns["Elettrod"]; this.columnClima = base.Columns["Clima"]; this.columnInform = base.Columns["Inform"]; - this.columnMinTotCons = base.Columns["MinTotCons"]; - this.columnMinViaggio = base.Columns["MinViaggio"]; - this.columnFinePrev = base.Columns["FinePrev"]; - this.columnNumOp = base.Columns["NumOp"]; - this.columnCodCliente = base.Columns["CodCliente"]; - this.columnCognome = base.Columns["Cognome"]; - this.columnNome = base.Columns["Nome"]; - this.columnCodFis = base.Columns["CodFis"]; - this.columnOraIndic = base.Columns["OraIndic"]; - this.columnRifOC = base.Columns["RifOC"]; - this.columnUrlDoc = base.Columns["UrlDoc"]; this.columnIndir = base.Columns["Indir"]; this.columnCap = base.Columns["Cap"]; this.columnLocalita = base.Columns["Localita"]; this.columnProv = base.Columns["Prov"]; - this.columnTempo = base.Columns["Tempo"]; - this.columnZona = base.Columns["Zona"]; + this.columnidxZona = base.Columns["idxZona"]; + this.columnMinTotCons = base.Columns["MinTotCons"]; + this.columnMinViaggio = base.Columns["MinViaggio"]; + this.columnFinePrev = base.Columns["FinePrev"]; this.columnNoteGen = base.Columns["NoteGen"]; + this.columnRifOC = base.Columns["RifOC"]; + this.columnUrlDoc = base.Columns["UrlDoc"]; + this.columnNumOp = base.Columns["NumOp"]; + this.columnRitUsato = base.Columns["RitUsato"]; + this.columnAscensore = base.Columns["Ascensore"]; + this.columnPianoCons = base.Columns["PianoCons"]; + this.columnUserMod = base.Columns["UserMod"]; + this.columnDataMod = base.Columns["DataMod"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2530,6 +2580,16 @@ namespace WebSCR_data { base.Columns.Add(this.columnIdxImpegno); this.columnDataOra = new global::System.Data.DataColumn("DataOra", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDataOra); + this.columnTipoOrario = new global::System.Data.DataColumn("TipoOrario", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTipoOrario); + this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodCliente); + this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognome); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnCodFis = new global::System.Data.DataColumn("CodFis", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodFis); this.columnCodSquadra = new global::System.Data.DataColumn("CodSquadra", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodSquadra); this.columnDescrSquadra = new global::System.Data.DataColumn("DescrSquadra", typeof(string), null, global::System.Data.MappingType.Element); @@ -2540,28 +2600,6 @@ namespace WebSCR_data { base.Columns.Add(this.columnClima); this.columnInform = new global::System.Data.DataColumn("Inform", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnInform); - this.columnMinTotCons = new global::System.Data.DataColumn("MinTotCons", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMinTotCons); - this.columnMinViaggio = new global::System.Data.DataColumn("MinViaggio", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMinViaggio); - this.columnFinePrev = new global::System.Data.DataColumn("FinePrev", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnFinePrev); - this.columnNumOp = new global::System.Data.DataColumn("NumOp", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNumOp); - this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodCliente); - this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCognome); - this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnNome); - this.columnCodFis = new global::System.Data.DataColumn("CodFis", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCodFis); - this.columnOraIndic = new global::System.Data.DataColumn("OraIndic", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOraIndic); - this.columnRifOC = new global::System.Data.DataColumn("RifOC", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnRifOC); - this.columnUrlDoc = new global::System.Data.DataColumn("UrlDoc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnUrlDoc); this.columnIndir = new global::System.Data.DataColumn("Indir", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnIndir); this.columnCap = new global::System.Data.DataColumn("Cap", typeof(string), null, global::System.Data.MappingType.Element); @@ -2570,18 +2608,44 @@ namespace WebSCR_data { base.Columns.Add(this.columnLocalita); this.columnProv = new global::System.Data.DataColumn("Prov", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnProv); - this.columnTempo = new global::System.Data.DataColumn("Tempo", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTempo); - this.columnZona = new global::System.Data.DataColumn("Zona", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnZona); + this.columnidxZona = new global::System.Data.DataColumn("idxZona", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxZona); + this.columnMinTotCons = new global::System.Data.DataColumn("MinTotCons", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinTotCons); + this.columnMinViaggio = new global::System.Data.DataColumn("MinViaggio", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinViaggio); + this.columnFinePrev = new global::System.Data.DataColumn("FinePrev", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFinePrev); this.columnNoteGen = new global::System.Data.DataColumn("NoteGen", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnNoteGen); + this.columnRifOC = new global::System.Data.DataColumn("RifOC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRifOC); + this.columnUrlDoc = new global::System.Data.DataColumn("UrlDoc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUrlDoc); + this.columnNumOp = new global::System.Data.DataColumn("NumOp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumOp); + this.columnRitUsato = new global::System.Data.DataColumn("RitUsato", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRitUsato); + this.columnAscensore = new global::System.Data.DataColumn("Ascensore", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAscensore); + this.columnPianoCons = new global::System.Data.DataColumn("PianoCons", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPianoCons); + this.columnUserMod = new global::System.Data.DataColumn("UserMod", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUserMod); + this.columnDataMod = new global::System.Data.DataColumn("DataMod", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataMod); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnIdxImpegno, - this.columnCodSquadra, - this.columnCodCliente}, true)); + this.columnIdxImpegno}, true)); this.columnIdxImpegno.AllowDBNull = false; + this.columnIdxImpegno.Unique = true; this.columnDataOra.AllowDBNull = false; + this.columnTipoOrario.AllowDBNull = false; + this.columnTipoOrario.MaxLength = 10; + this.columnCodCliente.AllowDBNull = false; + this.columnCodCliente.MaxLength = 50; + this.columnCognome.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnCodFis.MaxLength = 50; this.columnCodSquadra.AllowDBNull = false; this.columnCodSquadra.MaxLength = 50; this.columnDescrSquadra.AllowDBNull = false; @@ -2589,20 +2653,6 @@ namespace WebSCR_data { this.columnElettrod.AllowDBNull = false; this.columnClima.AllowDBNull = false; this.columnInform.AllowDBNull = false; - this.columnMinTotCons.AllowDBNull = false; - this.columnMinViaggio.AllowDBNull = false; - this.columnFinePrev.ReadOnly = true; - this.columnNumOp.AllowDBNull = false; - this.columnCodCliente.AllowDBNull = false; - this.columnCodCliente.MaxLength = 50; - this.columnCognome.MaxLength = 50; - this.columnNome.MaxLength = 50; - this.columnCodFis.MaxLength = 50; - this.columnOraIndic.AllowDBNull = false; - this.columnRifOC.AllowDBNull = false; - this.columnRifOC.MaxLength = 50; - this.columnUrlDoc.AllowDBNull = false; - this.columnUrlDoc.MaxLength = 2147483647; this.columnIndir.AllowDBNull = false; this.columnIndir.MaxLength = 50; this.columnCap.AllowDBNull = false; @@ -2611,11 +2661,23 @@ namespace WebSCR_data { this.columnLocalita.MaxLength = 50; this.columnProv.AllowDBNull = false; this.columnProv.MaxLength = 2; - this.columnTempo.ReadOnly = true; - this.columnZona.ReadOnly = true; - this.columnZona.MaxLength = 50; + this.columnidxZona.AllowDBNull = false; + this.columnMinTotCons.AllowDBNull = false; + this.columnMinViaggio.AllowDBNull = false; + this.columnFinePrev.ReadOnly = true; this.columnNoteGen.AllowDBNull = false; this.columnNoteGen.MaxLength = 250; + this.columnRifOC.AllowDBNull = false; + this.columnRifOC.MaxLength = 50; + this.columnUrlDoc.AllowDBNull = false; + this.columnUrlDoc.MaxLength = 2147483647; + this.columnNumOp.AllowDBNull = false; + this.columnRitUsato.AllowDBNull = false; + this.columnAscensore.AllowDBNull = false; + this.columnPianoCons.AllowDBNull = false; + this.columnUserMod.AllowDBNull = false; + this.columnUserMod.MaxLength = 50; + this.columnDataMod.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -4752,105 +4814,12 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string CodSquadra { + public string TipoOrario { get { - return ((string)(this[this.tableImpegni.CodSquadraColumn])); + return ((string)(this[this.tableImpegni.TipoOrarioColumn])); } set { - this[this.tableImpegni.CodSquadraColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string DescrSquadra { - get { - return ((string)(this[this.tableImpegni.DescrSquadraColumn])); - } - set { - this[this.tableImpegni.DescrSquadraColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool Elettrod { - get { - return ((bool)(this[this.tableImpegni.ElettrodColumn])); - } - set { - this[this.tableImpegni.ElettrodColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool Clima { - get { - return ((bool)(this[this.tableImpegni.ClimaColumn])); - } - set { - this[this.tableImpegni.ClimaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool Inform { - get { - return ((bool)(this[this.tableImpegni.InformColumn])); - } - set { - this[this.tableImpegni.InformColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int MinTotCons { - get { - return ((int)(this[this.tableImpegni.MinTotConsColumn])); - } - set { - this[this.tableImpegni.MinTotConsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int MinViaggio { - get { - return ((int)(this[this.tableImpegni.MinViaggioColumn])); - } - set { - this[this.tableImpegni.MinViaggioColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public System.DateTime FinePrev { - get { - try { - return ((global::System.DateTime)(this[this.tableImpegni.FinePrevColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FinePrev\' in table \'Impegni\' is DBNull.", e); - } - } - set { - this[this.tableImpegni.FinePrevColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int NumOp { - get { - return ((int)(this[this.tableImpegni.NumOpColumn])); - } - set { - this[this.tableImpegni.NumOpColumn] = value; + this[this.tableImpegni.TipoOrarioColumn] = value; } } @@ -4915,34 +4884,56 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool OraIndic { + public string CodSquadra { get { - return ((bool)(this[this.tableImpegni.OraIndicColumn])); + return ((string)(this[this.tableImpegni.CodSquadraColumn])); } set { - this[this.tableImpegni.OraIndicColumn] = value; + this[this.tableImpegni.CodSquadraColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string RifOC { + public string DescrSquadra { get { - return ((string)(this[this.tableImpegni.RifOCColumn])); + return ((string)(this[this.tableImpegni.DescrSquadraColumn])); } set { - this[this.tableImpegni.RifOCColumn] = value; + this[this.tableImpegni.DescrSquadraColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string UrlDoc { + public bool Elettrod { get { - return ((string)(this[this.tableImpegni.UrlDocColumn])); + return ((bool)(this[this.tableImpegni.ElettrodColumn])); } set { - this[this.tableImpegni.UrlDocColumn] = value; + this[this.tableImpegni.ElettrodColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Clima { + get { + return ((bool)(this[this.tableImpegni.ClimaColumn])); + } + set { + this[this.tableImpegni.ClimaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Inform { + get { + return ((bool)(this[this.tableImpegni.InformColumn])); + } + set { + this[this.tableImpegni.InformColumn] = value; } } @@ -4992,33 +4983,50 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int Tempo { + public int idxZona { get { - try { - return ((int)(this[this.tableImpegni.TempoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Tempo\' in table \'Impegni\' is DBNull.", e); - } + return ((int)(this[this.tableImpegni.idxZonaColumn])); } set { - this[this.tableImpegni.TempoColumn] = value; + this[this.tableImpegni.idxZonaColumn] = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string Zona { + public int MinTotCons { + get { + return ((int)(this[this.tableImpegni.MinTotConsColumn])); + } + set { + this[this.tableImpegni.MinTotConsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MinViaggio { + get { + return ((int)(this[this.tableImpegni.MinViaggioColumn])); + } + set { + this[this.tableImpegni.MinViaggioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime FinePrev { get { try { - return ((string)(this[this.tableImpegni.ZonaColumn])); + return ((global::System.DateTime)(this[this.tableImpegni.FinePrevColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Zona\' in table \'Impegni\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("The value for column \'FinePrev\' in table \'Impegni\' is DBNull.", e); } } set { - this[this.tableImpegni.ZonaColumn] = value; + this[this.tableImpegni.FinePrevColumn] = value; } } @@ -5035,14 +5043,90 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsFinePrevNull() { - return this.IsNull(this.tableImpegni.FinePrevColumn); + public string RifOC { + get { + return ((string)(this[this.tableImpegni.RifOCColumn])); + } + set { + this[this.tableImpegni.RifOCColumn] = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetFinePrevNull() { - this[this.tableImpegni.FinePrevColumn] = global::System.Convert.DBNull; + public string UrlDoc { + get { + return ((string)(this[this.tableImpegni.UrlDocColumn])); + } + set { + this[this.tableImpegni.UrlDocColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumOp { + get { + return ((int)(this[this.tableImpegni.NumOpColumn])); + } + set { + this[this.tableImpegni.NumOpColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool RitUsato { + get { + return ((bool)(this[this.tableImpegni.RitUsatoColumn])); + } + set { + this[this.tableImpegni.RitUsatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Ascensore { + get { + return ((bool)(this[this.tableImpegni.AscensoreColumn])); + } + set { + this[this.tableImpegni.AscensoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PianoCons { + get { + return ((int)(this[this.tableImpegni.PianoConsColumn])); + } + set { + this[this.tableImpegni.PianoConsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string UserMod { + get { + return ((string)(this[this.tableImpegni.UserModColumn])); + } + set { + this[this.tableImpegni.UserModColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataMod { + get { + return ((global::System.DateTime)(this[this.tableImpegni.DataModColumn])); + } + set { + this[this.tableImpegni.DataModColumn] = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -5083,26 +5167,14 @@ namespace WebSCR_data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsTempoNull() { - return this.IsNull(this.tableImpegni.TempoColumn); + public bool IsFinePrevNull() { + return this.IsNull(this.tableImpegni.FinePrevColumn); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetTempoNull() { - this[this.tableImpegni.TempoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsZonaNull() { - return this.IsNull(this.tableImpegni.ZonaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetZonaNull() { - this[this.tableImpegni.ZonaColumn] = global::System.Convert.DBNull; + public void SetFinePrevNull() { + this[this.tableImpegni.FinePrevColumn] = global::System.Convert.DBNull; } } @@ -8617,30 +8689,33 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo tableMapping.DataSetTable = "Impegni"; tableMapping.ColumnMappings.Add("IdxImpegno", "IdxImpegno"); tableMapping.ColumnMappings.Add("DataOra", "DataOra"); + tableMapping.ColumnMappings.Add("TipoOrario", "TipoOrario"); + tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); + tableMapping.ColumnMappings.Add("Cognome", "Cognome"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("CodFis", "CodFis"); tableMapping.ColumnMappings.Add("CodSquadra", "CodSquadra"); tableMapping.ColumnMappings.Add("DescrSquadra", "DescrSquadra"); tableMapping.ColumnMappings.Add("Elettrod", "Elettrod"); tableMapping.ColumnMappings.Add("Clima", "Clima"); tableMapping.ColumnMappings.Add("Inform", "Inform"); - tableMapping.ColumnMappings.Add("MinTotCons", "MinTotCons"); - tableMapping.ColumnMappings.Add("MinViaggio", "MinViaggio"); - tableMapping.ColumnMappings.Add("FinePrev", "FinePrev"); - tableMapping.ColumnMappings.Add("Expr1", "NumOp"); - tableMapping.ColumnMappings.Add("CodCliente", "CodCliente"); - tableMapping.ColumnMappings.Add("Cognome", "Cognome"); - tableMapping.ColumnMappings.Add("Nome", "Nome"); - tableMapping.ColumnMappings.Add("CodFis", "CodFis"); - tableMapping.ColumnMappings.Add("OraIndic", "OraIndic"); - tableMapping.ColumnMappings.Add("RifOC", "RifOC"); - tableMapping.ColumnMappings.Add("UrlDoc", "UrlDoc"); - tableMapping.ColumnMappings.Add("NumOp", "NumOp"); tableMapping.ColumnMappings.Add("Indir", "Indir"); tableMapping.ColumnMappings.Add("Cap", "Cap"); tableMapping.ColumnMappings.Add("Localita", "Localita"); tableMapping.ColumnMappings.Add("Prov", "Prov"); - tableMapping.ColumnMappings.Add("Tempo", "Tempo"); - tableMapping.ColumnMappings.Add("Zona", "Zona"); + tableMapping.ColumnMappings.Add("idxZona", "idxZona"); + tableMapping.ColumnMappings.Add("MinTotCons", "MinTotCons"); + tableMapping.ColumnMappings.Add("MinViaggio", "MinViaggio"); + tableMapping.ColumnMappings.Add("FinePrev", "FinePrev"); tableMapping.ColumnMappings.Add("NoteGen", "NoteGen"); + tableMapping.ColumnMappings.Add("RifOC", "RifOC"); + tableMapping.ColumnMappings.Add("UrlDoc", "UrlDoc"); + tableMapping.ColumnMappings.Add("NumOp", "NumOp"); + tableMapping.ColumnMappings.Add("RitUsato", "RitUsato"); + tableMapping.ColumnMappings.Add("Ascensore", "Ascensore"); + tableMapping.ColumnMappings.Add("PianoCons", "PianoCons"); + tableMapping.ColumnMappings.Add("UserMod", "UserMod"); + tableMapping.ColumnMappings.Add("DataMod", "DataMod"); this._adapter.TableMappings.Add(tableMapping); } @@ -8654,10 +8729,10 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo [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[5]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_elencoImpegni"; + this._commandCollection[0].CommandText = "SELECT * FROM v_elencoImpegni"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -8686,11 +8761,33 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Prov", global::System.Data.SqlDbType.NVarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_Imp_updStart"; + this._commandCollection[4].CommandText = "dbo.stp_Imp_updateQuery"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraNew", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOra", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoOrario", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Indir", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cap", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Localita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Prov", global::System.Data.SqlDbType.NVarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSquadra", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RifOC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NoteGen", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UrlDoc", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumOp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RitUsato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Ascensore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PianoCons", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_Imp_updStart"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraNew", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -8824,8 +8921,149 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo [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 updStart(global::System.Nullable IdxImpegno, global::System.Nullable DataOraNew) { + public virtual int updateQuery( + global::System.Nullable Original_IdxImpegno, + global::System.Nullable DataOra, + string TipoOrario, + string Indir, + string Cap, + string Localita, + string Prov, + string CodSquadra, + string CodCliente, + string RifOC, + string NoteGen, + string UrlDoc, + global::System.Nullable NumOp, + global::System.Nullable RitUsato, + global::System.Nullable Ascensore, + global::System.Nullable PianoCons, + string UserMod) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((Original_IdxImpegno.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_IdxImpegno.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataOra.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataOra.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((TipoOrario == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(TipoOrario)); + } + if ((Indir == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Indir)); + } + if ((Cap == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Cap)); + } + if ((Localita == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(Localita)); + } + if ((Prov == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(Prov)); + } + if ((CodSquadra == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(CodSquadra)); + } + if ((CodCliente == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(CodCliente)); + } + if ((RifOC == null)) { + command.Parameters[10].Value = global::System.DBNull.Value; + } + else { + command.Parameters[10].Value = ((string)(RifOC)); + } + if ((NoteGen == null)) { + command.Parameters[11].Value = global::System.DBNull.Value; + } + else { + command.Parameters[11].Value = ((string)(NoteGen)); + } + if ((UrlDoc == null)) { + command.Parameters[12].Value = global::System.DBNull.Value; + } + else { + command.Parameters[12].Value = ((string)(UrlDoc)); + } + if ((NumOp.HasValue == true)) { + command.Parameters[13].Value = ((int)(NumOp.Value)); + } + else { + command.Parameters[13].Value = global::System.DBNull.Value; + } + if ((RitUsato.HasValue == true)) { + command.Parameters[14].Value = ((int)(RitUsato.Value)); + } + else { + command.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Ascensore.HasValue == true)) { + command.Parameters[15].Value = ((int)(Ascensore.Value)); + } + else { + command.Parameters[15].Value = global::System.DBNull.Value; + } + if ((PianoCons.HasValue == true)) { + command.Parameters[16].Value = ((int)(PianoCons.Value)); + } + else { + command.Parameters[16].Value = global::System.DBNull.Value; + } + if ((UserMod == null)) { + command.Parameters[17].Value = global::System.DBNull.Value; + } + else { + command.Parameters[17].Value = ((string)(UserMod)); + } + 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; + } + + [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 updStart(global::System.Nullable IdxImpegno, global::System.Nullable DataOraNew) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((IdxImpegno.HasValue == true)) { command.Parameters[1].Value = ((int)(IdxImpegno.Value)); } diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index e1c3a04..d1f9f8c 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -515,8 +515,7 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo - SELECT * -FROM v_elencoImpegni + SELECT * FROM v_elencoImpegni @@ -525,30 +524,33 @@ FROM v_elencoImpegni + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -591,6 +593,33 @@ FROM v_elencoImpegni + + + + dbo.stp_Imp_updateQuery + + + + + + + + + + + + + + + + + + + + + + + @@ -774,7 +803,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -798,7 +827,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -834,7 +863,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -859,7 +888,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -977,32 +1006,18 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + - + - + - - - - - - - - - - - - - - @@ -1031,21 +1046,23 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - - + - + - + + + + @@ -1074,14 +1091,10 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - - - - - - - - + + + + @@ -1089,10 +1102,36 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -1102,7 +1141,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1118,7 +1157,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1148,7 +1187,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + @@ -1186,8 +1225,6 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - - @@ -1206,7 +1243,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq - + \ No newline at end of file diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 424d0cf..2905030 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -10,7 +10,7 @@ - + diff --git a/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferences.cache b/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..504ccbc Binary files /dev/null and b/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll index 458a6bf..756551d 100644 Binary files a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ