diff --git a/ETS_Data/Ds_ProjEts.Designer.cs b/ETS_Data/Ds_ProjEts.Designer.cs index c792f9f..4a7771c 100644 --- a/ETS_Data/Ds_ProjEts.Designer.cs +++ b/ETS_Data/Ds_ProjEts.Designer.cs @@ -42,12 +42,12 @@ namespace ETS_Data { private AnagTipoRisorseDataTable tableAnagTipoRisorse; - private BazaarRisorseDataTable tableBazaarRisorse; - private Dip2ATRDataTable tableDip2ATR; private DipendentiDataTable tableDipendenti; + private BazaarRisorseDataTable tableBazaarRisorse; + private global::System.Data.DataRelation relationAnagProgetti_AnagFasi; private global::System.Data.DataRelation relationDatiCommessa_AnagFasi; @@ -115,15 +115,15 @@ namespace ETS_Data { if ((ds.Tables["AnagTipoRisorse"] != null)) { base.Tables.Add(new AnagTipoRisorseDataTable(ds.Tables["AnagTipoRisorse"])); } - if ((ds.Tables["BazaarRisorse"] != null)) { - base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"])); - } if ((ds.Tables["Dip2ATR"] != null)) { base.Tables.Add(new Dip2ATRDataTable(ds.Tables["Dip2ATR"])); } if ((ds.Tables["Dipendenti"] != null)) { base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"])); } + if ((ds.Tables["BazaarRisorse"] != null)) { + base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -232,16 +232,6 @@ namespace ETS_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 BazaarRisorseDataTable BazaarRisorse { - get { - return this.tableBazaarRisorse; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -262,6 +252,16 @@ namespace ETS_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 BazaarRisorseDataTable BazaarRisorse { + get { + return this.tableBazaarRisorse; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -356,15 +356,15 @@ namespace ETS_Data { if ((ds.Tables["AnagTipoRisorse"] != null)) { base.Tables.Add(new AnagTipoRisorseDataTable(ds.Tables["AnagTipoRisorse"])); } - if ((ds.Tables["BazaarRisorse"] != null)) { - base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"])); - } if ((ds.Tables["Dip2ATR"] != null)) { base.Tables.Add(new Dip2ATRDataTable(ds.Tables["Dip2ATR"])); } if ((ds.Tables["Dipendenti"] != null)) { base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"])); } + if ((ds.Tables["BazaarRisorse"] != null)) { + base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -452,12 +452,6 @@ namespace ETS_Data { this.tableAnagTipoRisorse.InitVars(); } } - this.tableBazaarRisorse = ((BazaarRisorseDataTable)(base.Tables["BazaarRisorse"])); - if ((initTable == true)) { - if ((this.tableBazaarRisorse != null)) { - this.tableBazaarRisorse.InitVars(); - } - } this.tableDip2ATR = ((Dip2ATRDataTable)(base.Tables["Dip2ATR"])); if ((initTable == true)) { if ((this.tableDip2ATR != null)) { @@ -470,6 +464,12 @@ namespace ETS_Data { this.tableDipendenti.InitVars(); } } + this.tableBazaarRisorse = ((BazaarRisorseDataTable)(base.Tables["BazaarRisorse"])); + if ((initTable == true)) { + if ((this.tableBazaarRisorse != null)) { + this.tableBazaarRisorse.InitVars(); + } + } this.relationAnagProgetti_AnagFasi = this.Relations["AnagProgetti_AnagFasi"]; this.relationDatiCommessa_AnagFasi = this.Relations["DatiCommessa_AnagFasi"]; this.relationDatiCommessa_DatiCommForn = this.Relations["DatiCommessa_DatiCommForn"]; @@ -504,12 +504,12 @@ namespace ETS_Data { base.Tables.Add(this.tableBdgtRisorseFasi); this.tableAnagTipoRisorse = new AnagTipoRisorseDataTable(); base.Tables.Add(this.tableAnagTipoRisorse); - this.tableBazaarRisorse = new BazaarRisorseDataTable(); - base.Tables.Add(this.tableBazaarRisorse); this.tableDip2ATR = new Dip2ATRDataTable(); base.Tables.Add(this.tableDip2ATR); this.tableDipendenti = new DipendentiDataTable(); base.Tables.Add(this.tableDipendenti); + this.tableBazaarRisorse = new BazaarRisorseDataTable(); + base.Tables.Add(this.tableBazaarRisorse); this.relationAnagProgetti_AnagFasi = new global::System.Data.DataRelation("AnagProgetti_AnagFasi", new global::System.Data.DataColumn[] { this.tableAnagProgetti.idxProgettoColumn}, new global::System.Data.DataColumn[] { this.tableAnagFasi.idxProgettoColumn}, false); @@ -590,12 +590,6 @@ namespace ETS_Data { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private bool ShouldSerializeBazaarRisorse() { - return false; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializeDip2ATR() { @@ -608,6 +602,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeBazaarRisorse() { + 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) { @@ -690,15 +690,15 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagTipoRisorseRowChangeEventHandler(object sender, AnagTipoRisorseRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public delegate void BazaarRisorseRowChangeEventHandler(object sender, BazaarRisorseRowChangeEvent e); - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void Dip2ATRRowChangeEventHandler(object sender, Dip2ATRRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void DipendentiRowChangeEventHandler(object sender, DipendentiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void BazaarRisorseRowChangeEventHandler(object sender, BazaarRisorseRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4658,359 +4658,6 @@ namespace ETS_Data { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class BazaarRisorseDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnAnno; - - private global::System.Data.DataColumn columnSett; - - private global::System.Data.DataColumn columnidxDipendente; - - private global::System.Data.DataColumn columnidxFase; - - private global::System.Data.DataColumn columnAllocazione; - - private global::System.Data.DataColumn columnSchemaWeek; - - private global::System.Data.DataColumn columnOreTot; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public BazaarRisorseDataTable() { - this.TableName = "BazaarRisorse"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal BazaarRisorseDataTable(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 BazaarRisorseDataTable(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 AnnoColumn { - get { - return this.columnAnno; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn SettColumn { - get { - return this.columnSett; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn idxDipendenteColumn { - get { - return this.columnidxDipendente; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn idxFaseColumn { - get { - return this.columnidxFase; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn AllocazioneColumn { - get { - return this.columnAllocazione; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn SchemaWeekColumn { - get { - return this.columnSchemaWeek; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public global::System.Data.DataColumn OreTotColumn { - get { - return this.columnOreTot; - } - } - - [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 BazaarRisorseRow this[int index] { - get { - return ((BazaarRisorseRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void AddBazaarRisorseRow(BazaarRisorseRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public BazaarRisorseRow AddBazaarRisorseRow(int Anno, int Sett, int idxDipendente, int idxFase, int Allocazione, string SchemaWeek, int OreTot) { - BazaarRisorseRow rowBazaarRisorseRow = ((BazaarRisorseRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - Anno, - Sett, - idxDipendente, - idxFase, - Allocazione, - SchemaWeek, - OreTot}; - rowBazaarRisorseRow.ItemArray = columnValuesArray; - this.Rows.Add(rowBazaarRisorseRow); - return rowBazaarRisorseRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public BazaarRisorseRow FindByAnnoSettidxDipendenteidxFase(int Anno, int Sett, int idxDipendente, int idxFase) { - return ((BazaarRisorseRow)(this.Rows.Find(new object[] { - Anno, - Sett, - idxDipendente, - idxFase}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public override global::System.Data.DataTable Clone() { - BazaarRisorseDataTable cln = ((BazaarRisorseDataTable)(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 BazaarRisorseDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal void InitVars() { - this.columnAnno = base.Columns["Anno"]; - this.columnSett = base.Columns["Sett"]; - this.columnidxDipendente = base.Columns["idxDipendente"]; - this.columnidxFase = base.Columns["idxFase"]; - this.columnAllocazione = base.Columns["Allocazione"]; - this.columnSchemaWeek = base.Columns["SchemaWeek"]; - this.columnOreTot = base.Columns["OreTot"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - private void InitClass() { - this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnAnno); - this.columnSett = new global::System.Data.DataColumn("Sett", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSett); - this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidxDipendente); - this.columnidxFase = new global::System.Data.DataColumn("idxFase", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidxFase); - this.columnAllocazione = new global::System.Data.DataColumn("Allocazione", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnAllocazione); - this.columnSchemaWeek = new global::System.Data.DataColumn("SchemaWeek", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSchemaWeek); - this.columnOreTot = new global::System.Data.DataColumn("OreTot", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnOreTot); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnAnno, - this.columnSett, - this.columnidxDipendente, - this.columnidxFase}, true)); - this.columnAnno.AllowDBNull = false; - this.columnSett.AllowDBNull = false; - this.columnidxDipendente.AllowDBNull = false; - this.columnidxFase.AllowDBNull = false; - this.columnSchemaWeek.ReadOnly = true; - this.columnSchemaWeek.MaxLength = 255; - this.columnOreTot.ReadOnly = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public BazaarRisorseRow NewBazaarRisorseRow() { - return ((BazaarRisorseRow)(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 BazaarRisorseRow(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(BazaarRisorseRow); - } - - [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.BazaarRisorseRowChanged != null)) { - this.BazaarRisorseRowChanged(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowChanging != null)) { - this.BazaarRisorseRowChanging(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowDeleted != null)) { - this.BazaarRisorseRowDeleted(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowDeleting != null)) { - this.BazaarRisorseRowDeleting(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void RemoveBazaarRisorseRow(BazaarRisorseRow 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_ProjEts ds = new Ds_ProjEts(); - 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 = "BazaarRisorseDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - /// ///Represents the strongly named DataTable class. /// @@ -5967,6 +5614,359 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class BazaarRisorseDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnAnno; + + private global::System.Data.DataColumn columnSett; + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnidxFase; + + private global::System.Data.DataColumn columnAllocazione; + + private global::System.Data.DataColumn columnSchemaWeek; + + private global::System.Data.DataColumn columnOreTot; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public BazaarRisorseDataTable() { + this.TableName = "BazaarRisorse"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal BazaarRisorseDataTable(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 BazaarRisorseDataTable(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 AnnoColumn { + get { + return this.columnAnno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SettColumn { + get { + return this.columnSett; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxDipendenteColumn { + get { + return this.columnidxDipendente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxFaseColumn { + get { + return this.columnidxFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AllocazioneColumn { + get { + return this.columnAllocazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SchemaWeekColumn { + get { + return this.columnSchemaWeek; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OreTotColumn { + get { + return this.columnOreTot; + } + } + + [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 BazaarRisorseRow this[int index] { + get { + return ((BazaarRisorseRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddBazaarRisorseRow(BazaarRisorseRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public BazaarRisorseRow AddBazaarRisorseRow(int Anno, int Sett, int idxDipendente, int idxFase, int Allocazione, string SchemaWeek, int OreTot) { + BazaarRisorseRow rowBazaarRisorseRow = ((BazaarRisorseRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Anno, + Sett, + idxDipendente, + idxFase, + Allocazione, + SchemaWeek, + OreTot}; + rowBazaarRisorseRow.ItemArray = columnValuesArray; + this.Rows.Add(rowBazaarRisorseRow); + return rowBazaarRisorseRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public BazaarRisorseRow FindByAnnoSettidxDipendenteidxFase(int Anno, int Sett, int idxDipendente, int idxFase) { + return ((BazaarRisorseRow)(this.Rows.Find(new object[] { + Anno, + Sett, + idxDipendente, + idxFase}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + BazaarRisorseDataTable cln = ((BazaarRisorseDataTable)(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 BazaarRisorseDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnAnno = base.Columns["Anno"]; + this.columnSett = base.Columns["Sett"]; + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnidxFase = base.Columns["idxFase"]; + this.columnAllocazione = base.Columns["Allocazione"]; + this.columnSchemaWeek = base.Columns["SchemaWeek"]; + this.columnOreTot = base.Columns["OreTot"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAnno); + this.columnSett = new global::System.Data.DataColumn("Sett", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSett); + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnidxFase = new global::System.Data.DataColumn("idxFase", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxFase); + this.columnAllocazione = new global::System.Data.DataColumn("Allocazione", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAllocazione); + this.columnSchemaWeek = new global::System.Data.DataColumn("SchemaWeek", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSchemaWeek); + this.columnOreTot = new global::System.Data.DataColumn("OreTot", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOreTot); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnAnno, + this.columnSett, + this.columnidxDipendente, + this.columnidxFase}, true)); + this.columnAnno.AllowDBNull = false; + this.columnSett.AllowDBNull = false; + this.columnidxDipendente.AllowDBNull = false; + this.columnidxFase.AllowDBNull = false; + this.columnSchemaWeek.ReadOnly = true; + this.columnSchemaWeek.MaxLength = 255; + this.columnOreTot.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public BazaarRisorseRow NewBazaarRisorseRow() { + return ((BazaarRisorseRow)(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 BazaarRisorseRow(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(BazaarRisorseRow); + } + + [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.BazaarRisorseRowChanged != null)) { + this.BazaarRisorseRowChanged(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowChanging != null)) { + this.BazaarRisorseRowChanging(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowDeleted != null)) { + this.BazaarRisorseRowDeleted(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(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.BazaarRisorseRowDeleting != null)) { + this.BazaarRisorseRowDeleting(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveBazaarRisorseRow(BazaarRisorseRow 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_ProjEts ds = new Ds_ProjEts(); + 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 = "BazaarRisorseDataTable"; + 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. /// @@ -8922,149 +8922,6 @@ namespace ETS_Data { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class BazaarRisorseRow : global::System.Data.DataRow { - - private BazaarRisorseDataTable tableBazaarRisorse; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - internal BazaarRisorseRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableBazaarRisorse = ((BazaarRisorseDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int Anno { - get { - return ((int)(this[this.tableBazaarRisorse.AnnoColumn])); - } - set { - this[this.tableBazaarRisorse.AnnoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int Sett { - get { - return ((int)(this[this.tableBazaarRisorse.SettColumn])); - } - set { - this[this.tableBazaarRisorse.SettColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int idxDipendente { - get { - return ((int)(this[this.tableBazaarRisorse.idxDipendenteColumn])); - } - set { - this[this.tableBazaarRisorse.idxDipendenteColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int idxFase { - get { - return ((int)(this[this.tableBazaarRisorse.idxFaseColumn])); - } - set { - this[this.tableBazaarRisorse.idxFaseColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int Allocazione { - get { - try { - return ((int)(this[this.tableBazaarRisorse.AllocazioneColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Allocazione\' in table \'BazaarRisorse\' is DBNull.", e); - } - } - set { - this[this.tableBazaarRisorse.AllocazioneColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public string SchemaWeek { - get { - try { - return ((string)(this[this.tableBazaarRisorse.SchemaWeekColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SchemaWeek\' in table \'BazaarRisorse\' is DBNull.", e); - } - } - set { - this[this.tableBazaarRisorse.SchemaWeekColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int OreTot { - get { - try { - return ((int)(this[this.tableBazaarRisorse.OreTotColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'OreTot\' in table \'BazaarRisorse\' is DBNull.", e); - } - } - set { - this[this.tableBazaarRisorse.OreTotColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsAllocazioneNull() { - return this.IsNull(this.tableBazaarRisorse.AllocazioneColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetAllocazioneNull() { - this[this.tableBazaarRisorse.AllocazioneColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsSchemaWeekNull() { - return this.IsNull(this.tableBazaarRisorse.SchemaWeekColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetSchemaWeekNull() { - this[this.tableBazaarRisorse.SchemaWeekColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public bool IsOreTotNull() { - return this.IsNull(this.tableBazaarRisorse.OreTotColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public void SetOreTotNull() { - this[this.tableBazaarRisorse.OreTotColumn] = global::System.Convert.DBNull; - } - } - /// ///Represents strongly named DataRow class. /// @@ -9884,6 +9741,149 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class BazaarRisorseRow : global::System.Data.DataRow { + + private BazaarRisorseDataTable tableBazaarRisorse; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal BazaarRisorseRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableBazaarRisorse = ((BazaarRisorseDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Anno { + get { + return ((int)(this[this.tableBazaarRisorse.AnnoColumn])); + } + set { + this[this.tableBazaarRisorse.AnnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Sett { + get { + return ((int)(this[this.tableBazaarRisorse.SettColumn])); + } + set { + this[this.tableBazaarRisorse.SettColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxDipendente { + get { + return ((int)(this[this.tableBazaarRisorse.idxDipendenteColumn])); + } + set { + this[this.tableBazaarRisorse.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxFase { + get { + return ((int)(this[this.tableBazaarRisorse.idxFaseColumn])); + } + set { + this[this.tableBazaarRisorse.idxFaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Allocazione { + get { + try { + return ((int)(this[this.tableBazaarRisorse.AllocazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Allocazione\' in table \'BazaarRisorse\' is DBNull.", e); + } + } + set { + this[this.tableBazaarRisorse.AllocazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string SchemaWeek { + get { + try { + return ((string)(this[this.tableBazaarRisorse.SchemaWeekColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'SchemaWeek\' in table \'BazaarRisorse\' is DBNull.", e); + } + } + set { + this[this.tableBazaarRisorse.SchemaWeekColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int OreTot { + get { + try { + return ((int)(this[this.tableBazaarRisorse.OreTotColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'OreTot\' in table \'BazaarRisorse\' is DBNull.", e); + } + } + set { + this[this.tableBazaarRisorse.OreTotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsAllocazioneNull() { + return this.IsNull(this.tableBazaarRisorse.AllocazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetAllocazioneNull() { + this[this.tableBazaarRisorse.AllocazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSchemaWeekNull() { + return this.IsNull(this.tableBazaarRisorse.SchemaWeekColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSchemaWeekNull() { + this[this.tableBazaarRisorse.SchemaWeekColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsOreTotNull() { + return this.IsNull(this.tableBazaarRisorse.OreTotColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetOreTotNull() { + this[this.tableBazaarRisorse.OreTotColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -10190,40 +10190,6 @@ namespace ETS_Data { } } - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public class BazaarRisorseRowChangeEvent : global::System.EventArgs { - - private BazaarRisorseRow 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 BazaarRisorseRowChangeEvent(BazaarRisorseRow 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 BazaarRisorseRow 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; - } - } - } - /// ///Row event argument class /// @@ -10291,6 +10257,40 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class BazaarRisorseRowChangeEvent : global::System.EventArgs { + + private BazaarRisorseRow 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 BazaarRisorseRowChangeEvent(BazaarRisorseRow 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 BazaarRisorseRow 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 ETS_Data.Ds_ProjEtsTableAdapters { @@ -14695,515 +14695,6 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE } } - /// - ///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 BazaarRisorseTableAdapter : 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 BazaarRisorseTableAdapter() { - 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 = "BazaarRisorse"; - tableMapping.ColumnMappings.Add("Anno", "Anno"); - tableMapping.ColumnMappings.Add("Sett", "Sett"); - tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); - tableMapping.ColumnMappings.Add("idxFase", "idxFase"); - tableMapping.ColumnMappings.Add("Allocazione", "Allocazione"); - tableMapping.ColumnMappings.Add("SchemaWeek", "SchemaWeek"); - tableMapping.ColumnMappings.Add("OreTot", "OreTot"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.InsertCommand.Connection = this.Connection; - this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione); -SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.UpdateCommand.Connection = this.Connection; - this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))); -SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, 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::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; - } - - [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[4]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM d" + - "bo.BazaarRisorse"; - 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_BAZ_creaBulkByIdxFase"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_BAZ_getByAnnoSett"; - 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("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_BAZ_getByAnnoSettDip"; - this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; - this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [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_ProjEts.BazaarRisorseDataTable 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_ProjEts.BazaarRisorseDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); - 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_ProjEts.BazaarRisorseDataTable getByAnnoSett(global::System.Nullable Anno, global::System.Nullable Sett) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((Anno.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Anno.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Sett.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Sett.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); - 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_ProjEts.BazaarRisorseDataTable getByAnnoSettDip(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxDipendente) { - this.Adapter.SelectCommand = this.CommandCollection[3]; - if ((Anno.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Anno.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Sett.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Sett.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((idxDipendente.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[3].Value = ((int)(idxDipendente.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); - 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_ProjEts.BazaarRisorseDataTable 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_ProjEts dataSet) { - return this.Adapter.Update(dataSet, "BazaarRisorse"); - } - - [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.Delete, true)] - public virtual int Delete(int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Anno)); - this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Sett)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idxDipendente)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_idxFase)); - if ((Original_Allocazione.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Allocazione.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - if ((Original_SchemaWeek == null)) { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_SchemaWeek)); - } - if ((Original_OreTot.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_OreTot.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione) { - this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Anno)); - this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Sett)); - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(idxDipendente)); - this.Adapter.InsertCommand.Parameters[3].Value = ((int)(idxFase)); - if ((Allocazione.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Allocazione.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - 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")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Anno)); - this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Sett)); - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(idxDipendente)); - this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(idxFase)); - if ((Allocazione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Allocazione.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Anno)); - this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Sett)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idxDipendente)); - this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxFase)); - if ((Original_Allocazione.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Allocazione.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((Original_SchemaWeek == null)) { - this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_SchemaWeek)); - } - if ((Original_OreTot.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_OreTot.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { - return this.Update(Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Allocazione, Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Original_Allocazione, Original_SchemaWeek, Original_OreTot); - } - - [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 creaBulkByIdxFase(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxFase) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; - if ((Anno.HasValue == true)) { - command.Parameters[1].Value = ((int)(Anno.Value)); - } - else { - command.Parameters[1].Value = global::System.DBNull.Value; - } - if ((Sett.HasValue == true)) { - command.Parameters[2].Value = ((int)(Sett.Value)); - } - else { - command.Parameters[2].Value = global::System.DBNull.Value; - } - if ((idxFase.HasValue == true)) { - command.Parameters[3].Value = ((int)(idxFase.Value)); - } - else { - command.Parameters[3].Value = global::System.DBNull.Value; - } - 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; - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -15739,7 +15230,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, SIGLA FROM dbo.Dipendenti"; + this._commandCollection[0].CommandText = @"SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, provNascita, nazNascita, codHw, codOrario, mailLastOp, mailDay, mailWeek, mailMonth, email, authKey, numAuth, WOL_MAC, dominio, utente, codDipendenteExt, gruppo, dataAssunzione, dataCessazione, attivo, SIGLA FROM Dipendenti"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; } @@ -15768,6 +15259,563 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa } } + /// + ///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 BazaarRisorseTableAdapter : 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 BazaarRisorseTableAdapter() { + 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 = "BazaarRisorse"; + tableMapping.ColumnMappings.Add("Anno", "Anno"); + tableMapping.ColumnMappings.Add("Sett", "Sett"); + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("idxFase", "idxFase"); + tableMapping.ColumnMappings.Add("Allocazione", "Allocazione"); + tableMapping.ColumnMappings.Add("SchemaWeek", "SchemaWeek"); + tableMapping.ColumnMappings.Add("OreTot", "OreTot"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione); +SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))); +SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, 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::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; + } + + [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[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM d" + + "bo.BazaarRisorse"; + 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_BAZ_creaBulkByIdxFase"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_BAZ_deleteByIdxFase"; + 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("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_BAZ_getByAnnoSett"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_BAZ_getByAnnoSettDip"; + 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("@Anno", 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("@Sett", 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("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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_ProjEts.BazaarRisorseDataTable 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_ProjEts.BazaarRisorseDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); + 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_ProjEts.BazaarRisorseDataTable getByAnnoSett(global::System.Nullable Anno, global::System.Nullable Sett) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((Anno.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Anno.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Sett.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Sett.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); + 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_ProjEts.BazaarRisorseDataTable getByAnnoSettDip(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxDipendente) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((Anno.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Anno.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Sett.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Sett.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((idxDipendente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(idxDipendente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable(); + 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_ProjEts.BazaarRisorseDataTable 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_ProjEts dataSet) { + return this.Adapter.Update(dataSet, "BazaarRisorse"); + } + + [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.Delete, true)] + public virtual int Delete(int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Anno)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Sett)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idxDipendente)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_idxFase)); + if ((Original_Allocazione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Allocazione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Original_SchemaWeek == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_SchemaWeek)); + } + if ((Original_OreTot.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_OreTot.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Anno)); + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Sett)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(idxDipendente)); + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(idxFase)); + if ((Allocazione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Allocazione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Anno)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Sett)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(idxDipendente)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(idxFase)); + if ((Allocazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Allocazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Anno)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Sett)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idxDipendente)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxFase)); + if ((Original_Allocazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Allocazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_SchemaWeek == null)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_SchemaWeek)); + } + if ((Original_OreTot.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_OreTot.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) { + return this.Update(Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Allocazione, Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Original_Allocazione, Original_SchemaWeek, Original_OreTot); + } + + [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 creaBulkByIdxFase(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxFase) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Anno.HasValue == true)) { + command.Parameters[1].Value = ((int)(Anno.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Sett.HasValue == true)) { + command.Parameters[2].Value = ((int)(Sett.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((idxFase.HasValue == true)) { + command.Parameters[3].Value = ((int)(idxFase.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + 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 deleteByIdxFase(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxFase) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((Anno.HasValue == true)) { + command.Parameters[1].Value = ((int)(Anno.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Sett.HasValue == true)) { + command.Parameters[2].Value = ((int)(Sett.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((idxFase.HasValue == true)) { + command.Parameters[3].Value = ((int)(idxFase.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + 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 /// @@ -15794,10 +15842,10 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa private AnagTipoRisorseTableAdapter _anagTipoRisorseTableAdapter; - private BazaarRisorseTableAdapter _bazaarRisorseTableAdapter; - private Dip2ATRTableAdapter _dip2ATRTableAdapter; + private BazaarRisorseTableAdapter _bazaarRisorseTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -15916,12 +15964,12 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa [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 BazaarRisorseTableAdapter BazaarRisorseTableAdapter { + public Dip2ATRTableAdapter Dip2ATRTableAdapter { get { - return this._bazaarRisorseTableAdapter; + return this._dip2ATRTableAdapter; } set { - this._bazaarRisorseTableAdapter = value; + this._dip2ATRTableAdapter = value; } } @@ -15930,12 +15978,12 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa [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 Dip2ATRTableAdapter Dip2ATRTableAdapter { + public BazaarRisorseTableAdapter BazaarRisorseTableAdapter { get { - return this._dip2ATRTableAdapter; + return this._bazaarRisorseTableAdapter; } set { - this._dip2ATRTableAdapter = value; + this._bazaarRisorseTableAdapter = value; } } @@ -15986,14 +16034,14 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa && (this._anagTipoRisorseTableAdapter.Connection != null))) { return this._anagTipoRisorseTableAdapter.Connection; } - if (((this._bazaarRisorseTableAdapter != null) - && (this._bazaarRisorseTableAdapter.Connection != null))) { - return this._bazaarRisorseTableAdapter.Connection; - } if (((this._dip2ATRTableAdapter != null) && (this._dip2ATRTableAdapter.Connection != null))) { return this._dip2ATRTableAdapter.Connection; } + if (((this._bazaarRisorseTableAdapter != null) + && (this._bazaarRisorseTableAdapter.Connection != null))) { + return this._bazaarRisorseTableAdapter.Connection; + } return null; } set { @@ -16028,10 +16076,10 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa if ((this._anagTipoRisorseTableAdapter != null)) { count = (count + 1); } - if ((this._bazaarRisorseTableAdapter != null)) { + if ((this._dip2ATRTableAdapter != null)) { count = (count + 1); } - if ((this._dip2ATRTableAdapter != null)) { + if ((this._bazaarRisorseTableAdapter != null)) { count = (count + 1); } return count; @@ -16108,15 +16156,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa allChangedRows.AddRange(updatedRows); } } - if ((this._bazaarRisorseTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._bazaarRisorseTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } if ((this._dip2ATRTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -16126,6 +16165,15 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa allChangedRows.AddRange(updatedRows); } } + if ((this._bazaarRisorseTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._bazaarRisorseTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -16192,14 +16240,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa allAddedRows.AddRange(addedRows); } } - if ((this._bazaarRisorseTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._bazaarRisorseTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } if ((this._dip2ATRTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -16208,6 +16248,14 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa allAddedRows.AddRange(addedRows); } } + if ((this._bazaarRisorseTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._bazaarRisorseTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -16218,14 +16266,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(Ds_ProjEts dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._dip2ATRTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._dip2ATRTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._bazaarRisorseTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -16234,6 +16274,14 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa allChangedRows.AddRange(deletedRows); } } + if ((this._dip2ATRTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._dip2ATRTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._bdgtRisorseFasiTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -16364,13 +16412,13 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._bazaarRisorseTableAdapter != null) - && (this.MatchTableAdapterConnection(this._bazaarRisorseTableAdapter.Connection) == false))) { + if (((this._dip2ATRTableAdapter != null) + && (this.MatchTableAdapterConnection(this._dip2ATRTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } - if (((this._dip2ATRTableAdapter != null) - && (this.MatchTableAdapterConnection(this._dip2ATRTableAdapter.Connection) == false))) { + if (((this._bazaarRisorseTableAdapter != null) + && (this.MatchTableAdapterConnection(this._bazaarRisorseTableAdapter.Connection) == false))) { throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } @@ -16469,15 +16517,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa adaptersWithAcceptChangesDuringUpdate.Add(this._anagTipoRisorseTableAdapter.Adapter); } } - if ((this._bazaarRisorseTableAdapter != null)) { - revertConnections.Add(this._bazaarRisorseTableAdapter, this._bazaarRisorseTableAdapter.Connection); - this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._bazaarRisorseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._bazaarRisorseTableAdapter.Adapter); - } - } if ((this._dip2ATRTableAdapter != null)) { revertConnections.Add(this._dip2ATRTableAdapter, this._dip2ATRTableAdapter.Connection); this._dip2ATRTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); @@ -16487,6 +16526,15 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa adaptersWithAcceptChangesDuringUpdate.Add(this._dip2ATRTableAdapter.Adapter); } } + if ((this._bazaarRisorseTableAdapter != null)) { + revertConnections.Add(this._bazaarRisorseTableAdapter, this._bazaarRisorseTableAdapter.Connection); + this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._bazaarRisorseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._bazaarRisorseTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -16573,14 +16621,14 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa this._anagTipoRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoRisorseTableAdapter])); this._anagTipoRisorseTableAdapter.Transaction = null; } - if ((this._bazaarRisorseTableAdapter != null)) { - this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._bazaarRisorseTableAdapter])); - this._bazaarRisorseTableAdapter.Transaction = null; - } if ((this._dip2ATRTableAdapter != null)) { this._dip2ATRTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dip2ATRTableAdapter])); this._dip2ATRTableAdapter.Transaction = null; } + if ((this._bazaarRisorseTableAdapter != null)) { + this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._bazaarRisorseTableAdapter])); + this._bazaarRisorseTableAdapter.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/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd index 7a2b496..2f358e6 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -931,120 +931,6 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE - - - - - - DELETE FROM [dbo].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))) - - - - - - - - - - - - - - - - - INSERT INTO [dbo].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione); -SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase) - - - - - - - - - - - - SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM dbo.BazaarRisorse - - - - - - UPDATE [dbo].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))); -SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dbo.stp_BAZ_creaBulkByIdxFase - - - - - - - - - - - - - dbo.stp_BAZ_getByAnnoSett - - - - - - - - - - - - dbo.stp_BAZ_getByAnnoSettDip - - - - - - - - - - - @@ -1153,6 +1039,133 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa + + + + + + DELETE FROM [dbo].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))) + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione); +SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase) + + + + + + + + + + + + SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM dbo.BazaarRisorse + + + + + + UPDATE [dbo].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot))); +SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_BAZ_creaBulkByIdxFase + + + + + + + + + + + + + dbo.stp_BAZ_deleteByIdxFase + + + + + + + + + + + + + dbo.stp_BAZ_getByAnnoSett + + + + + + + + + + + + dbo.stp_BAZ_getByAnnoSettDip + + + + + + + + + + + @@ -1161,7 +1174,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1204,7 +1217,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1254,7 +1267,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1343,7 +1356,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1387,7 +1400,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1432,7 +1445,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1512,7 +1525,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1560,7 +1573,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1577,7 +1590,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1598,26 +1611,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - - - - - - - - - - - - - - - - - - - - + @@ -1638,7 +1632,7 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - + @@ -1773,6 +1767,25 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa + + + + + + + + + + + + + + + + + + + @@ -1812,13 +1825,6 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa - - - - - - - @@ -1828,15 +1834,22 @@ SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa + + + + + + + - - - - - - + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index 06803f7..94d5fdf 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -15,9 +15,9 @@ - - - + + + @@ -56,7 +56,7 @@ - + 1107 diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs index 4bab390..5fcfa67 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs @@ -61,7 +61,6 @@ namespace PROJ_ETS.WebUserControls public void doUpdate() { caricaDatiBlocco(); - creaLabelTooltipCelle(); disegnaTabella(); } /// @@ -109,7 +108,9 @@ namespace PROJ_ETS.WebUserControls // recupero il numero di TUTTE le celle Ds_ProjEts.BazaarRisorseRow rigaBaz; Ds_ProjEts.DipendentiRow rigaDip; + DS_utilsProjEts.v_selCommesseRow rigaComm; string css = ""; + string tooltip = ""; try { // carico TUTTE le celle del bazaar... @@ -141,6 +142,7 @@ namespace PROJ_ETS.WebUserControls // carico valori x la singola cella rigaBaz = (Ds_ProjEts.BazaarRisorseRow)tabBaz.Select(string.Format("idxDipendente={0} AND idxFase={1}", tabD2ATR[pos_x].idxDipendente, tabBazSingle[pos_y].idxFase))[0]; rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", tabD2ATR[pos_x].idxDipendente))[0]; + rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", tabBazSingle[pos_y].idxFase))[0]; if (rigaBaz.OreTot == 0) { css = "cTab cEmp"; @@ -165,7 +167,8 @@ namespace PROJ_ETS.WebUserControls { css = "cTab cOvr"; } - TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, "LMMGV", css, rigaBaz.idxDipendente, string.Format("{0} {1}", rigaDip.Nome, rigaDip.Cognome), rigaDip.SIGLA, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot); + tooltip = string.Format("{2} / {0} {1}", rigaDip.Cognome, rigaDip.Nome, rigaComm.label.Substring(0, 9)); + TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, tooltip, css, rigaBaz.idxDipendente, string.Format("{0} {1}", rigaDip.Nome, rigaDip.Cognome), rigaDip.SIGLA, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot); // aggiorno totali righe/colonne (comemsse/dip) oreTotDip[pos_x] += rigaBaz.OreTot; oreTotComm[pos_y] += rigaBaz.OreTot; @@ -174,41 +177,6 @@ namespace PROJ_ETS.WebUserControls } } /// - /// Aggiorna la mappa celle x label e tooltip - /// - private void creaLabelTooltipCelle() - { -#if false - // ...in base al setup mostro anche il disponibile o meno... - string formato = ""; - if (memLayer.ML.confReadBool("showSizeCellaInDettMag")) - { - formato = "{0}
{1}"; - } - else - { - formato = "{0}"; - } - // faccio ciclo x ogni oggetto blocco.. - for (int pos_y = 0; pos_y < numY; pos_y++) - { - for (int pos_x = 0; pos_x < numX; pos_x++) - { - // calcolo la capacità della cella... e mostro secondo formato definito prima - TabellaRisorse[pos_x, pos_y].Label = string.Format(formato, TabellaRisorse[pos_x, pos_y].NumUdc, TabellaRisorse[pos_x, pos_y].Capacita); - // se è attiva = 0 aggiorno label - if (!TabellaRisorse[pos_x, pos_y].Attiva) - { - TabellaRisorse[pos_x, pos_y].Css = "cTab cIna"; - //TabellaRisorse[pos_x, pos_y].Label = string.Format("[{0}]", TabellaRisorse[pos_x, pos_y].Label); - // ... e tooltip - TabellaRisorse[pos_x, pos_y].ToolTip = string.Format("{0}{1}{2}", traduci("cTab cIna"), Environment.NewLine, TabellaRisorse[pos_x, pos_y].ToolTip); - } - } - } -#endif - } - /// /// disegna la riga di intestazione/chiusura x dipendenti /// /// true = mostra totale ore / false = mostra sigla dip + nome/cognome tooltip @@ -264,15 +232,21 @@ namespace PROJ_ETS.WebUserControls //cella! TableCell cell; cell = new TableCell(); - cell.CssClass = "cBia"; + cell.CssClass = "cBia divDx"; + rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", tabBazSingle[pos_y].idxFase))[0]; if (showOre) { - cell.Text = string.Format("{0:0#} h", oreTotComm[pos_y]); - cell.ToolTip = ""; + // aggiungo button x fare elemento cliccabile + LinkButton lnkbDel = new LinkButton(); + lnkbDel.ToolTip = string.Format("Click per eliminare commessa {0}", rigaComm.label.Substring(0, 9)); + lnkbDel.Text = string.Format("{0:0#} h [elimina]", oreTotComm[pos_y]); + lnkbDel.Click += new EventHandler(lnkbDel_Click); + lnkbDel.CommandArgument = rigaComm.value.ToString(); + lnkbDel.OnClientClick = "return confirm('Confermi eliminazione record?')"; + cell.Controls.Add(lnkbDel); } else { - rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", tabBazSingle[pos_y].idxFase))[0]; cell.Text = rigaComm.label.Substring(0, 9); cell.ToolTip = rigaComm.label; } @@ -280,6 +254,25 @@ namespace PROJ_ETS.WebUserControls return cell; } /// + /// intercetta richiesta di eliminazione dell'intera riga delal commessa... + /// + /// + /// + void lnkbDel_Click(object sender, EventArgs e) + { + LinkButton lnk = (LinkButton)sender; + // calcolo i parametri passati + int idxFase = 0; + try + { + idxFase = Convert.ToInt32(lnk.CommandArgument.ToString()); + DataProxy_ProjEts.DP.taBaz.deleteByIdxFase(anno, settimana, idxFase); + } + catch + { } + doUpdate(); + } + /// /// intercetta richiesta di zoom e zoomma sull'Udc in esame... /// /// @@ -441,7 +434,7 @@ namespace PROJ_ETS.WebUserControls { // devo salvare file con le info relative... value = Convert.ToInt32(((Label)riga.FindControl("lblValue")).Text); - DataProxy_ProjEts.DP.taBaz.creaBulkByIdxFase(Convert.ToInt32(ddlAnno.SelectedValue), Convert.ToInt32(ddlWeek.SelectedValue), value); + DataProxy_ProjEts.DP.taBaz.creaBulkByIdxFase(anno, settimana, value); } } // aggiorno gridView... @@ -451,6 +444,7 @@ namespace PROJ_ETS.WebUserControls { eh_newVal(this, new EventArgs()); } + doUpdate(); } /// diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 9a283e7..7beff2d 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll index 8c5e4b8..a865693 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ