diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs index 0f479d0..160519b 100644 --- a/ETS_Data/DataProxy_ProjEts.cs +++ b/ETS_Data/DataProxy_ProjEts.cs @@ -21,6 +21,8 @@ namespace ETS_Data public Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter taBRF; public Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter taATR; public Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter taBaz; + public Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter taD2ATR; + public Ds_ProjEtsTableAdapters.DipendentiTableAdapter taDip; /* DS_utilsProjEts */ public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli; public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro; @@ -39,6 +41,8 @@ namespace ETS_Data taBRF = new Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter(); taATR = new Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter(); taBaz = new Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter(); + taD2ATR = new Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter(); + taDip = new Ds_ProjEtsTableAdapters.DipendentiTableAdapter(); taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter(); taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter(); taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter(); @@ -57,6 +61,8 @@ namespace ETS_Data taBRF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taBaz.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taD2ATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taDip.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); diff --git a/ETS_Data/Ds_ProjEts.Designer.cs b/ETS_Data/Ds_ProjEts.Designer.cs index 45754a4..c792f9f 100644 --- a/ETS_Data/Ds_ProjEts.Designer.cs +++ b/ETS_Data/Ds_ProjEts.Designer.cs @@ -44,6 +44,10 @@ namespace ETS_Data { private BazaarRisorseDataTable tableBazaarRisorse; + private Dip2ATRDataTable tableDip2ATR; + + private DipendentiDataTable tableDipendenti; + private global::System.Data.DataRelation relationAnagProgetti_AnagFasi; private global::System.Data.DataRelation relationDatiCommessa_AnagFasi; @@ -114,6 +118,12 @@ namespace ETS_Data { 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"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -232,6 +242,26 @@ 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 Dip2ATRDataTable Dip2ATR { + get { + return this.tableDip2ATR; + } + } + + [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 DipendentiDataTable Dipendenti { + get { + return this.tableDipendenti; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -329,6 +359,12 @@ namespace ETS_Data { 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"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -422,6 +458,18 @@ namespace ETS_Data { this.tableBazaarRisorse.InitVars(); } } + this.tableDip2ATR = ((Dip2ATRDataTable)(base.Tables["Dip2ATR"])); + if ((initTable == true)) { + if ((this.tableDip2ATR != null)) { + this.tableDip2ATR.InitVars(); + } + } + this.tableDipendenti = ((DipendentiDataTable)(base.Tables["Dipendenti"])); + if ((initTable == true)) { + if ((this.tableDipendenti != null)) { + this.tableDipendenti.InitVars(); + } + } this.relationAnagProgetti_AnagFasi = this.Relations["AnagProgetti_AnagFasi"]; this.relationDatiCommessa_AnagFasi = this.Relations["DatiCommessa_AnagFasi"]; this.relationDatiCommessa_DatiCommForn = this.Relations["DatiCommessa_DatiCommForn"]; @@ -458,6 +506,10 @@ namespace ETS_Data { 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.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); @@ -544,6 +596,18 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDip2ATR() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDipendenti() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -629,6 +693,12 @@ namespace ETS_Data { [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); + /// ///Represents the strongly named DataTable class. /// @@ -4941,6 +5011,962 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Dip2ATRDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnCodTipoRisorsa; + + private global::System.Data.DataColumn columnGruppo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Dip2ATRDataTable() { + this.TableName = "Dip2ATR"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Dip2ATRDataTable(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 Dip2ATRDataTable(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 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 CodTipoRisorsaColumn { + get { + return this.columnCodTipoRisorsa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn GruppoColumn { + get { + return this.columnGruppo; + } + } + + [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 Dip2ATRRow this[int index] { + get { + return ((Dip2ATRRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Dip2ATRRowChangeEventHandler Dip2ATRRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Dip2ATRRowChangeEventHandler Dip2ATRRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Dip2ATRRowChangeEventHandler Dip2ATRRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Dip2ATRRowChangeEventHandler Dip2ATRRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDip2ATRRow(Dip2ATRRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Dip2ATRRow AddDip2ATRRow(int idxDipendente, string CodTipoRisorsa, string Gruppo) { + Dip2ATRRow rowDip2ATRRow = ((Dip2ATRRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxDipendente, + CodTipoRisorsa, + Gruppo}; + rowDip2ATRRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDip2ATRRow); + return rowDip2ATRRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Dip2ATRRow FindByidxDipendenteCodTipoRisorsa(int idxDipendente, string CodTipoRisorsa) { + return ((Dip2ATRRow)(this.Rows.Find(new object[] { + idxDipendente, + CodTipoRisorsa}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Dip2ATRDataTable cln = ((Dip2ATRDataTable)(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 Dip2ATRDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnCodTipoRisorsa = base.Columns["CodTipoRisorsa"]; + this.columnGruppo = base.Columns["Gruppo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnCodTipoRisorsa = new global::System.Data.DataColumn("CodTipoRisorsa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodTipoRisorsa); + this.columnGruppo = new global::System.Data.DataColumn("Gruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnGruppo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxDipendente, + this.columnCodTipoRisorsa}, true)); + this.columnidxDipendente.AllowDBNull = false; + this.columnCodTipoRisorsa.AllowDBNull = false; + this.columnCodTipoRisorsa.MaxLength = 50; + this.columnGruppo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Dip2ATRRow NewDip2ATRRow() { + return ((Dip2ATRRow)(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 Dip2ATRRow(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(Dip2ATRRow); + } + + [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.Dip2ATRRowChanged != null)) { + this.Dip2ATRRowChanged(this, new Dip2ATRRowChangeEvent(((Dip2ATRRow)(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.Dip2ATRRowChanging != null)) { + this.Dip2ATRRowChanging(this, new Dip2ATRRowChangeEvent(((Dip2ATRRow)(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.Dip2ATRRowDeleted != null)) { + this.Dip2ATRRowDeleted(this, new Dip2ATRRowChangeEvent(((Dip2ATRRow)(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.Dip2ATRRowDeleting != null)) { + this.Dip2ATRRowDeleting(this, new Dip2ATRRowChangeEvent(((Dip2ATRRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDip2ATRRow(Dip2ATRRow 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 = "Dip2ATRDataTable"; + 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. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DipendentiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnmatricola; + + private global::System.Data.DataColumn columnCF; + + private global::System.Data.DataColumn columnCognome; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columndataNascita; + + private global::System.Data.DataColumn columnluogoNascita; + + private global::System.Data.DataColumn columnprovNascita; + + private global::System.Data.DataColumn columnnazNascita; + + private global::System.Data.DataColumn columncodHw; + + private global::System.Data.DataColumn columncodOrario; + + private global::System.Data.DataColumn columnmailLastOp; + + private global::System.Data.DataColumn columnmailDay; + + private global::System.Data.DataColumn columnmailWeek; + + private global::System.Data.DataColumn columnmailMonth; + + private global::System.Data.DataColumn columnemail; + + private global::System.Data.DataColumn columnauthKey; + + private global::System.Data.DataColumn columnnumAuth; + + private global::System.Data.DataColumn columnWOL_MAC; + + private global::System.Data.DataColumn columndominio; + + private global::System.Data.DataColumn columnutente; + + private global::System.Data.DataColumn columncodDipendenteExt; + + private global::System.Data.DataColumn columngruppo; + + private global::System.Data.DataColumn columndataAssunzione; + + private global::System.Data.DataColumn columndataCessazione; + + private global::System.Data.DataColumn columnattivo; + + private global::System.Data.DataColumn columnSIGLA; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiDataTable() { + this.TableName = "Dipendenti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DipendentiDataTable(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 DipendentiDataTable(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 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 matricolaColumn { + get { + return this.columnmatricola; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CFColumn { + get { + return this.columnCF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CognomeColumn { + get { + return this.columnCognome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dataNascitaColumn { + get { + return this.columndataNascita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn luogoNascitaColumn { + get { + return this.columnluogoNascita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn provNascitaColumn { + get { + return this.columnprovNascita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn nazNascitaColumn { + get { + return this.columnnazNascita; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codHwColumn { + get { + return this.columncodHw; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codOrarioColumn { + get { + return this.columncodOrario; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn mailLastOpColumn { + get { + return this.columnmailLastOp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn mailDayColumn { + get { + return this.columnmailDay; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn mailWeekColumn { + get { + return this.columnmailWeek; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn mailMonthColumn { + get { + return this.columnmailMonth; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn emailColumn { + get { + return this.columnemail; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn authKeyColumn { + get { + return this.columnauthKey; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn numAuthColumn { + get { + return this.columnnumAuth; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn WOL_MACColumn { + get { + return this.columnWOL_MAC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dominioColumn { + get { + return this.columndominio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn utenteColumn { + get { + return this.columnutente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codDipendenteExtColumn { + get { + return this.columncodDipendenteExt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn gruppoColumn { + get { + return this.columngruppo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dataAssunzioneColumn { + get { + return this.columndataAssunzione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dataCessazioneColumn { + get { + return this.columndataCessazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn attivoColumn { + get { + return this.columnattivo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SIGLAColumn { + get { + return this.columnSIGLA; + } + } + + [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 DipendentiRow this[int index] { + get { + return ((DipendentiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DipendentiRowChangeEventHandler DipendentiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDipendentiRow(DipendentiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow AddDipendentiRow( + int idxDipendente, + string matricola, + string CF, + string Cognome, + string Nome, + System.DateTime dataNascita, + string luogoNascita, + string provNascita, + string nazNascita, + string codHw, + string codOrario, + bool mailLastOp, + bool mailDay, + bool mailWeek, + bool mailMonth, + string email, + string authKey, + int numAuth, + string WOL_MAC, + string dominio, + string utente, + string codDipendenteExt, + string gruppo, + System.DateTime dataAssunzione, + System.DateTime dataCessazione, + bool attivo, + string SIGLA) { + DipendentiRow rowDipendentiRow = ((DipendentiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + 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}; + rowDipendentiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDipendentiRow); + return rowDipendentiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow FindByidxDipendente(int idxDipendente) { + return ((DipendentiRow)(this.Rows.Find(new object[] { + idxDipendente}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DipendentiDataTable cln = ((DipendentiDataTable)(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 DipendentiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnmatricola = base.Columns["matricola"]; + this.columnCF = base.Columns["CF"]; + this.columnCognome = base.Columns["Cognome"]; + this.columnNome = base.Columns["Nome"]; + this.columndataNascita = base.Columns["dataNascita"]; + this.columnluogoNascita = base.Columns["luogoNascita"]; + this.columnprovNascita = base.Columns["provNascita"]; + this.columnnazNascita = base.Columns["nazNascita"]; + this.columncodHw = base.Columns["codHw"]; + this.columncodOrario = base.Columns["codOrario"]; + this.columnmailLastOp = base.Columns["mailLastOp"]; + this.columnmailDay = base.Columns["mailDay"]; + this.columnmailWeek = base.Columns["mailWeek"]; + this.columnmailMonth = base.Columns["mailMonth"]; + this.columnemail = base.Columns["email"]; + this.columnauthKey = base.Columns["authKey"]; + this.columnnumAuth = base.Columns["numAuth"]; + this.columnWOL_MAC = base.Columns["WOL_MAC"]; + this.columndominio = base.Columns["dominio"]; + this.columnutente = base.Columns["utente"]; + this.columncodDipendenteExt = base.Columns["codDipendenteExt"]; + this.columngruppo = base.Columns["gruppo"]; + this.columndataAssunzione = base.Columns["dataAssunzione"]; + this.columndataCessazione = base.Columns["dataCessazione"]; + this.columnattivo = base.Columns["attivo"]; + this.columnSIGLA = base.Columns["SIGLA"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnmatricola = new global::System.Data.DataColumn("matricola", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmatricola); + this.columnCF = new global::System.Data.DataColumn("CF", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCF); + this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognome); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columndataNascita = new global::System.Data.DataColumn("dataNascita", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndataNascita); + this.columnluogoNascita = new global::System.Data.DataColumn("luogoNascita", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnluogoNascita); + this.columnprovNascita = new global::System.Data.DataColumn("provNascita", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnprovNascita); + this.columnnazNascita = new global::System.Data.DataColumn("nazNascita", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnazNascita); + this.columncodHw = new global::System.Data.DataColumn("codHw", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodHw); + this.columncodOrario = new global::System.Data.DataColumn("codOrario", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodOrario); + this.columnmailLastOp = new global::System.Data.DataColumn("mailLastOp", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmailLastOp); + this.columnmailDay = new global::System.Data.DataColumn("mailDay", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmailDay); + this.columnmailWeek = new global::System.Data.DataColumn("mailWeek", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmailWeek); + this.columnmailMonth = new global::System.Data.DataColumn("mailMonth", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmailMonth); + this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnemail); + this.columnauthKey = new global::System.Data.DataColumn("authKey", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnauthKey); + this.columnnumAuth = new global::System.Data.DataColumn("numAuth", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnumAuth); + this.columnWOL_MAC = new global::System.Data.DataColumn("WOL_MAC", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnWOL_MAC); + this.columndominio = new global::System.Data.DataColumn("dominio", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndominio); + this.columnutente = new global::System.Data.DataColumn("utente", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnutente); + this.columncodDipendenteExt = new global::System.Data.DataColumn("codDipendenteExt", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodDipendenteExt); + this.columngruppo = new global::System.Data.DataColumn("gruppo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columngruppo); + this.columndataAssunzione = new global::System.Data.DataColumn("dataAssunzione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndataAssunzione); + this.columndataCessazione = new global::System.Data.DataColumn("dataCessazione", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndataCessazione); + this.columnattivo = new global::System.Data.DataColumn("attivo", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnattivo); + this.columnSIGLA = new global::System.Data.DataColumn("SIGLA", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSIGLA); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxDipendente}, true)); + this.columnidxDipendente.AllowDBNull = false; + this.columnidxDipendente.Unique = true; + this.columnmatricola.MaxLength = 50; + this.columnCF.MaxLength = 16; + this.columnCognome.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnluogoNascita.MaxLength = 50; + this.columnprovNascita.MaxLength = 50; + this.columnnazNascita.MaxLength = 50; + this.columncodHw.MaxLength = 50; + this.columncodOrario.MaxLength = 50; + this.columnemail.MaxLength = 250; + this.columnauthKey.MaxLength = 50; + this.columnWOL_MAC.MaxLength = 50; + this.columndominio.MaxLength = 50; + this.columnutente.MaxLength = 50; + this.columncodDipendenteExt.MaxLength = 50; + this.columngruppo.MaxLength = 50; + this.columnSIGLA.MaxLength = 5; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DipendentiRow NewDipendentiRow() { + return ((DipendentiRow)(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 DipendentiRow(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(DipendentiRow); + } + + [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.DipendentiRowChanged != null)) { + this.DipendentiRowChanged(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowChanging != null)) { + this.DipendentiRowChanging(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowDeleted != null)) { + this.DipendentiRowDeleted(this, new DipendentiRowChangeEvent(((DipendentiRow)(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.DipendentiRowDeleting != null)) { + this.DipendentiRowDeleting(this, new DipendentiRowChangeEvent(((DipendentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDipendentiRow(DipendentiRow 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 = "DipendentiDataTable"; + 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. /// @@ -8039,6 +9065,825 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class Dip2ATRRow : global::System.Data.DataRow { + + private Dip2ATRDataTable tableDip2ATR; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Dip2ATRRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDip2ATR = ((Dip2ATRDataTable)(this.Table)); + } + + [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.tableDip2ATR.idxDipendenteColumn])); + } + set { + this[this.tableDip2ATR.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodTipoRisorsa { + get { + return ((string)(this[this.tableDip2ATR.CodTipoRisorsaColumn])); + } + set { + this[this.tableDip2ATR.CodTipoRisorsaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Gruppo { + get { + try { + return ((string)(this[this.tableDip2ATR.GruppoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Gruppo\' in table \'Dip2ATR\' is DBNull.", e); + } + } + set { + this[this.tableDip2ATR.GruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsGruppoNull() { + return this.IsNull(this.tableDip2ATR.GruppoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetGruppoNull() { + this[this.tableDip2ATR.GruppoColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DipendentiRow : global::System.Data.DataRow { + + private DipendentiDataTable tableDipendenti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DipendentiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDipendenti = ((DipendentiDataTable)(this.Table)); + } + + [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.tableDipendenti.idxDipendenteColumn])); + } + set { + this[this.tableDipendenti.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string matricola { + get { + try { + return ((string)(this[this.tableDipendenti.matricolaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'matricola\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.matricolaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CF { + get { + try { + return ((string)(this[this.tableDipendenti.CFColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CF\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.CFColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Cognome { + get { + try { + return ((string)(this[this.tableDipendenti.CognomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.CognomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableDipendenti.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime dataNascita { + get { + try { + return ((global::System.DateTime)(this[this.tableDipendenti.dataNascitaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'dataNascita\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.dataNascitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string luogoNascita { + get { + try { + return ((string)(this[this.tableDipendenti.luogoNascitaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'luogoNascita\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.luogoNascitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string provNascita { + get { + try { + return ((string)(this[this.tableDipendenti.provNascitaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'provNascita\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.provNascitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string nazNascita { + get { + try { + return ((string)(this[this.tableDipendenti.nazNascitaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'nazNascita\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.nazNascitaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codHw { + get { + try { + return ((string)(this[this.tableDipendenti.codHwColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'codHw\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.codHwColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codOrario { + get { + try { + return ((string)(this[this.tableDipendenti.codOrarioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'codOrario\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.codOrarioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool mailLastOp { + get { + try { + return ((bool)(this[this.tableDipendenti.mailLastOpColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'mailLastOp\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.mailLastOpColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool mailDay { + get { + try { + return ((bool)(this[this.tableDipendenti.mailDayColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'mailDay\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.mailDayColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool mailWeek { + get { + try { + return ((bool)(this[this.tableDipendenti.mailWeekColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'mailWeek\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.mailWeekColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool mailMonth { + get { + try { + return ((bool)(this[this.tableDipendenti.mailMonthColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'mailMonth\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.mailMonthColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string email { + get { + try { + return ((string)(this[this.tableDipendenti.emailColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'email\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.emailColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string authKey { + get { + try { + return ((string)(this[this.tableDipendenti.authKeyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'authKey\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.authKeyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int numAuth { + get { + try { + return ((int)(this[this.tableDipendenti.numAuthColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'numAuth\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.numAuthColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string WOL_MAC { + get { + try { + return ((string)(this[this.tableDipendenti.WOL_MACColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'WOL_MAC\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.WOL_MACColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string dominio { + get { + try { + return ((string)(this[this.tableDipendenti.dominioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'dominio\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.dominioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string utente { + get { + try { + return ((string)(this[this.tableDipendenti.utenteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'utente\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.utenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codDipendenteExt { + get { + try { + return ((string)(this[this.tableDipendenti.codDipendenteExtColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'codDipendenteExt\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.codDipendenteExtColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string gruppo { + get { + try { + return ((string)(this[this.tableDipendenti.gruppoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'gruppo\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.gruppoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime dataAssunzione { + get { + try { + return ((global::System.DateTime)(this[this.tableDipendenti.dataAssunzioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'dataAssunzione\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.dataAssunzioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime dataCessazione { + get { + try { + return ((global::System.DateTime)(this[this.tableDipendenti.dataCessazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'dataCessazione\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.dataCessazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool attivo { + get { + try { + return ((bool)(this[this.tableDipendenti.attivoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'attivo\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.attivoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string SIGLA { + get { + try { + return ((string)(this[this.tableDipendenti.SIGLAColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'SIGLA\' in table \'Dipendenti\' is DBNull.", e); + } + } + set { + this[this.tableDipendenti.SIGLAColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsmatricolaNull() { + return this.IsNull(this.tableDipendenti.matricolaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetmatricolaNull() { + this[this.tableDipendenti.matricolaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCFNull() { + return this.IsNull(this.tableDipendenti.CFColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCFNull() { + this[this.tableDipendenti.CFColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCognomeNull() { + return this.IsNull(this.tableDipendenti.CognomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNull() { + this[this.tableDipendenti.CognomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableDipendenti.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableDipendenti.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdataNascitaNull() { + return this.IsNull(this.tableDipendenti.dataNascitaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdataNascitaNull() { + this[this.tableDipendenti.dataNascitaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsluogoNascitaNull() { + return this.IsNull(this.tableDipendenti.luogoNascitaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetluogoNascitaNull() { + this[this.tableDipendenti.luogoNascitaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsprovNascitaNull() { + return this.IsNull(this.tableDipendenti.provNascitaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetprovNascitaNull() { + this[this.tableDipendenti.provNascitaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnazNascitaNull() { + return this.IsNull(this.tableDipendenti.nazNascitaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnazNascitaNull() { + this[this.tableDipendenti.nazNascitaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodHwNull() { + return this.IsNull(this.tableDipendenti.codHwColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodHwNull() { + this[this.tableDipendenti.codHwColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodOrarioNull() { + return this.IsNull(this.tableDipendenti.codOrarioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodOrarioNull() { + this[this.tableDipendenti.codOrarioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsmailLastOpNull() { + return this.IsNull(this.tableDipendenti.mailLastOpColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetmailLastOpNull() { + this[this.tableDipendenti.mailLastOpColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsmailDayNull() { + return this.IsNull(this.tableDipendenti.mailDayColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetmailDayNull() { + this[this.tableDipendenti.mailDayColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsmailWeekNull() { + return this.IsNull(this.tableDipendenti.mailWeekColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetmailWeekNull() { + this[this.tableDipendenti.mailWeekColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsmailMonthNull() { + return this.IsNull(this.tableDipendenti.mailMonthColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetmailMonthNull() { + this[this.tableDipendenti.mailMonthColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsemailNull() { + return this.IsNull(this.tableDipendenti.emailColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetemailNull() { + this[this.tableDipendenti.emailColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsauthKeyNull() { + return this.IsNull(this.tableDipendenti.authKeyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetauthKeyNull() { + this[this.tableDipendenti.authKeyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnumAuthNull() { + return this.IsNull(this.tableDipendenti.numAuthColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnumAuthNull() { + this[this.tableDipendenti.numAuthColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsWOL_MACNull() { + return this.IsNull(this.tableDipendenti.WOL_MACColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetWOL_MACNull() { + this[this.tableDipendenti.WOL_MACColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdominioNull() { + return this.IsNull(this.tableDipendenti.dominioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdominioNull() { + this[this.tableDipendenti.dominioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsutenteNull() { + return this.IsNull(this.tableDipendenti.utenteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetutenteNull() { + this[this.tableDipendenti.utenteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodDipendenteExtNull() { + return this.IsNull(this.tableDipendenti.codDipendenteExtColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodDipendenteExtNull() { + this[this.tableDipendenti.codDipendenteExtColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsgruppoNull() { + return this.IsNull(this.tableDipendenti.gruppoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetgruppoNull() { + this[this.tableDipendenti.gruppoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdataAssunzioneNull() { + return this.IsNull(this.tableDipendenti.dataAssunzioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdataAssunzioneNull() { + this[this.tableDipendenti.dataAssunzioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdataCessazioneNull() { + return this.IsNull(this.tableDipendenti.dataCessazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdataCessazioneNull() { + this[this.tableDipendenti.dataCessazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsattivoNull() { + return this.IsNull(this.tableDipendenti.attivoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetattivoNull() { + this[this.tableDipendenti.attivoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSIGLANull() { + return this.IsNull(this.tableDipendenti.SIGLAColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSIGLANull() { + this[this.tableDipendenti.SIGLAColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -8378,6 +10223,74 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Dip2ATRRowChangeEvent : global::System.EventArgs { + + private Dip2ATRRow 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 Dip2ATRRowChangeEvent(Dip2ATRRow 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 Dip2ATRRow 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 + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DipendentiRowChangeEvent : global::System.EventArgs { + + private DipendentiRow 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 DipendentiRowChangeEvent(DipendentiRow 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 DipendentiRow 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 { @@ -12967,7 +14880,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM [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[2]; + 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" + @@ -12981,6 +14894,21 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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()] @@ -13007,6 +14935,58 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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")] @@ -13224,6 +15204,570 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM } } + /// + ///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 Dip2ATRTableAdapter : 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 Dip2ATRTableAdapter() { + 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 = "Dip2ATR"; + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("CodTipoRisorsa", "CodTipoRisorsa"); + tableMapping.ColumnMappings.Add("Gruppo", "Gruppo"); + 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].[Dip2ATR] WHERE (([idxDipendente] = @Original_idxDipendente) AN" + + "D ([CodTipoRisorsa] = @Original_CodTipoRisorsa) AND ((@IsNull_Gruppo = 1 AND [Gr" + + "uppo] IS NULL) OR ([Gruppo] = @Original_Gruppo)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + 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_CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoRisorsa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Gruppo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", 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].[Dip2ATR] ([idxDipendente], [CodTipoRisorsa], [Gruppo]) VALUES (@idxDipendente, @CodTipoRisorsa, @Gruppo); +SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa = @CodTipoRisorsa) AND (idxDipendente = @idxDipendente)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + 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("@CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", 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].[Dip2ATR] SET [idxDipendente] = @idxDipendente, [CodTipoRisorsa] = @CodTipoRisorsa, [Gruppo] = @Gruppo WHERE (([idxDipendente] = @Original_idxDipendente) AND ([CodTipoRisorsa] = @Original_CodTipoRisorsa) AND ((@IsNull_Gruppo = 1 AND [Gruppo] IS NULL) OR ([Gruppo] = @Original_Gruppo))); +SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa = @CodTipoRisorsa) AND (idxDipendente = @idxDipendente)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + 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("@CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoRisorsa", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Current, 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_CodTipoRisorsa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoRisorsa", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Gruppo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Gruppo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gruppo", 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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM dbo.Dip2ATR"; + 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_D2ATR_getBazOrd"; + 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, "", "", "")); + } + + [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.Dip2ATRDataTable 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.Dip2ATRDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.Dip2ATRDataTable dataTable = new Ds_ProjEts.Dip2ATRDataTable(); + 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.Dip2ATRDataTable getBazOrd() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + Ds_ProjEts.Dip2ATRDataTable dataTable = new Ds_ProjEts.Dip2ATRDataTable(); + 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.Dip2ATRDataTable 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, "Dip2ATR"); + } + + [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_idxDipendente, string Original_CodTipoRisorsa, string Original_Gruppo) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxDipendente)); + if ((Original_CodTipoRisorsa == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoRisorsa"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodTipoRisorsa)); + } + if ((Original_Gruppo == null)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Gruppo)); + } + 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 idxDipendente, string CodTipoRisorsa, string Gruppo) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxDipendente)); + if ((CodTipoRisorsa == null)) { + throw new global::System.ArgumentNullException("CodTipoRisorsa"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodTipoRisorsa)); + } + if ((Gruppo == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Gruppo)); + } + 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 idxDipendente, string CodTipoRisorsa, string Gruppo, int Original_idxDipendente, string Original_CodTipoRisorsa, string Original_Gruppo) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxDipendente)); + if ((CodTipoRisorsa == null)) { + throw new global::System.ArgumentNullException("CodTipoRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodTipoRisorsa)); + } + if ((Gruppo == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Gruppo)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxDipendente)); + if ((Original_CodTipoRisorsa == null)) { + throw new global::System.ArgumentNullException("Original_CodTipoRisorsa"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodTipoRisorsa)); + } + if ((Original_Gruppo == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Gruppo)); + } + 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(string Gruppo, int Original_idxDipendente, string Original_CodTipoRisorsa, string Original_Gruppo) { + return this.Update(Original_idxDipendente, Original_CodTipoRisorsa, Gruppo, Original_idxDipendente, Original_CodTipoRisorsa, Original_Gruppo); + } + } + + /// + ///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 DipendentiTableAdapter : 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 DipendentiTableAdapter() { + 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 = "Dipendenti"; + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("matricola", "matricola"); + tableMapping.ColumnMappings.Add("CF", "CF"); + tableMapping.ColumnMappings.Add("Cognome", "Cognome"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("dataNascita", "dataNascita"); + tableMapping.ColumnMappings.Add("luogoNascita", "luogoNascita"); + tableMapping.ColumnMappings.Add("provNascita", "provNascita"); + tableMapping.ColumnMappings.Add("nazNascita", "nazNascita"); + tableMapping.ColumnMappings.Add("codHw", "codHw"); + tableMapping.ColumnMappings.Add("codOrario", "codOrario"); + tableMapping.ColumnMappings.Add("mailLastOp", "mailLastOp"); + tableMapping.ColumnMappings.Add("mailDay", "mailDay"); + tableMapping.ColumnMappings.Add("mailWeek", "mailWeek"); + tableMapping.ColumnMappings.Add("mailMonth", "mailMonth"); + tableMapping.ColumnMappings.Add("email", "email"); + tableMapping.ColumnMappings.Add("authKey", "authKey"); + tableMapping.ColumnMappings.Add("numAuth", "numAuth"); + tableMapping.ColumnMappings.Add("WOL_MAC", "WOL_MAC"); + tableMapping.ColumnMappings.Add("dominio", "dominio"); + tableMapping.ColumnMappings.Add("utente", "utente"); + tableMapping.ColumnMappings.Add("codDipendenteExt", "codDipendenteExt"); + tableMapping.ColumnMappings.Add("gruppo", "gruppo"); + tableMapping.ColumnMappings.Add("dataAssunzione", "dataAssunzione"); + tableMapping.ColumnMappings.Add("dataCessazione", "dataCessazione"); + tableMapping.ColumnMappings.Add("attivo", "attivo"); + tableMapping.ColumnMappings.Add("SIGLA", "SIGLA"); + this._adapter.TableMappings.Add(tableMapping); + } + + [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[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].CommandType = global::System.Data.CommandType.Text; + } + + [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.DipendentiDataTable 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.DipendentiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.DipendentiDataTable dataTable = new Ds_ProjEts.DipendentiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -13252,6 +15796,8 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM private BazaarRisorseTableAdapter _bazaarRisorseTableAdapter; + private Dip2ATRTableAdapter _dip2ATRTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -13379,6 +15925,20 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public Dip2ATRTableAdapter Dip2ATRTableAdapter { + get { + return this._dip2ATRTableAdapter; + } + set { + this._dip2ATRTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -13430,6 +15990,10 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM && (this._bazaarRisorseTableAdapter.Connection != null))) { return this._bazaarRisorseTableAdapter.Connection; } + if (((this._dip2ATRTableAdapter != null) + && (this._dip2ATRTableAdapter.Connection != null))) { + return this._dip2ATRTableAdapter.Connection; + } return null; } set { @@ -13467,6 +16031,9 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM if ((this._bazaarRisorseTableAdapter != null)) { count = (count + 1); } + if ((this._dip2ATRTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -13550,6 +16117,15 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dip2ATRTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } return result; } @@ -13624,6 +16200,14 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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) + && (0 < addedRows.Length))) { + result = (result + this._dip2ATRTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } return result; } @@ -13634,6 +16218,14 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM [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) @@ -13777,6 +16369,11 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -13881,6 +16478,15 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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)); + this._dip2ATRTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._dip2ATRTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._dip2ATRTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._dip2ATRTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -13971,6 +16577,10 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM 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 ((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 1dbbf6a..6f83a0d 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -1018,6 +1018,151 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM + + + + dbo.stp_BAZ_getByAnnoSett + + + + + + + + + + + + dbo.stp_BAZ_getByAnnoSettDip + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Dip2ATR] WHERE (([idxDipendente] = @Original_idxDipendente) AND ([CodTipoRisorsa] = @Original_CodTipoRisorsa) AND ((@IsNull_Gruppo = 1 AND [Gruppo] IS NULL) OR ([Gruppo] = @Original_Gruppo))) + + + + + + + + + + + INSERT INTO [dbo].[Dip2ATR] ([idxDipendente], [CodTipoRisorsa], [Gruppo]) VALUES (@idxDipendente, @CodTipoRisorsa, @Gruppo); +SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa = @CodTipoRisorsa) AND (idxDipendente = @idxDipendente) + + + + + + + + + + SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM dbo.Dip2ATR + + + + + + UPDATE [dbo].[Dip2ATR] SET [idxDipendente] = @idxDipendente, [CodTipoRisorsa] = @CodTipoRisorsa, [Gruppo] = @Gruppo WHERE (([idxDipendente] = @Original_idxDipendente) AND ([CodTipoRisorsa] = @Original_CodTipoRisorsa) AND ((@IsNull_Gruppo = 1 AND [Gruppo] IS NULL) OR ([Gruppo] = @Original_Gruppo))); +SELECT idxDipendente, CodTipoRisorsa, Gruppo FROM Dip2ATR WHERE (CodTipoRisorsa = @CodTipoRisorsa) AND (idxDipendente = @idxDipendente) + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_D2ATR_getBazOrd + + + + + + + + + + + + + + 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, GrpFunz FROM dbo.Dipendenti + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DIP_getBazOrd + + + + + + @@ -1028,7 +1173,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1071,7 +1216,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1121,7 +1266,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1210,7 +1355,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1254,7 +1399,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1299,7 +1444,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1379,7 +1524,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1427,7 +1572,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1444,7 +1589,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1465,7 +1610,7 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM - + @@ -1484,6 +1629,169 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1530,15 +1838,24 @@ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM + + + + + + + + + - - - - - - + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index e9d1456..8d55c50 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,33 +4,35 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - + + + + + + + + + + + + - + 370 - 274 + 256 495 - 274 + 256 - + 876 @@ -42,7 +44,7 @@ - + 1107 @@ -54,7 +56,7 @@ - + 1107 @@ -74,7 +76,7 @@ - + 495 @@ -90,7 +92,7 @@ - + 172 diff --git a/ETS_Data/ETS_Data.csproj b/ETS_Data/ETS_Data.csproj index 0b18a19..17186be 100644 --- a/ETS_Data/ETS_Data.csproj +++ b/ETS_Data/ETS_Data.csproj @@ -147,6 +147,7 @@ Settings.settings + @@ -198,7 +199,7 @@ Designer MSDataSetGenerator - Ds_ProjEts.Designer.cs + Ds_ProjEts1.Designer.cs Ds_ProjEts.xsd diff --git a/ETS_Data/Type/BazaarRes.cs b/ETS_Data/Type/BazaarRes.cs new file mode 100644 index 0000000..201d9a4 --- /dev/null +++ b/ETS_Data/Type/BazaarRes.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ETS_Data.Type +{ + public class BazaarRes + { + /// + /// Inizializza l'oggetto con i valori dichiarati + /// + /// label da mostrare + /// tooltip da mostrare + /// css da applicare + /// idx dipendente + /// idx della commessa(=fase) + /// schema settimanale + /// ore tot allocate in slot + public BazaarRes(string label, string tooltip, string css, int idxDip, string nomeDip, string siglaDip, int idxFase, string schemaWeek, int oreTot) + { + Label = label; + ToolTip = tooltip; + Css = css; + IdxDipendente = idxDip; + NomeDip = nomeDip; + SiglaDip = siglaDip; + IdxFase = idxFase; + SchemaWeek = schemaWeek; + OreTot = oreTot; + } + public string Label { get; set; } + public string ToolTip { get; set; } + public string Css { get; set; } + public int IdxDipendente { get; set; } + public string NomeDip { get; set; } + public string SiglaDip { get; set; } + public int IdxFase { get; set; } + public string SchemaWeek { get; set; } + public int OreTot { get; set; } + + } +} diff --git a/PROJ-ETS/PROJ-ETS/Content/Style.less b/PROJ-ETS/PROJ-ETS/Content/Style.less index fcf06fd..540c277 100644 --- a/PROJ-ETS/PROJ-ETS/Content/Style.less +++ b/PROJ-ETS/PROJ-ETS/Content/Style.less @@ -899,6 +899,7 @@ div > ul > li > a.selected.menuNav { /* end zona placard*/ /* zona colorazione filtri */ + .filtro_1 { background-color: #8888ff; } diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx index 85175aa..1e1bedd 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx @@ -42,8 +42,8 @@ - - + + @@ -69,36 +69,21 @@ -
+
+ + +
+
+ +

Pianificazione settimanale

-

-   -button "+" x aggiungere progetti (x tutti i dipendenti "marcati" da dip2ATR) -

-

- quando creo su "+" mostro un elenco progetti ATTIVI, potrebbe venire ordianto per -

-

- - ore erogate last week/month -

-

- - data di creazione desc -

-

-   -

-

- deve peremttere ricerca e con "enter" dare l'ok ad inserire = creare 1 record "0" per ogni dip x quel progetto -

ogni progetto inserito deve poter essere anche tolto (con conferma)

-

-   -

avrò una vista che fa "pivot" dei dati della sett/anno indicati, con

diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs index 6152533..d32ea55 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs @@ -14,6 +14,21 @@ namespace PROJ_ETS.WebUserControls /// evento nuovi valori caricati /// public event EventHandler eh_newVal; + protected int numDip = 0; + protected int numComm = 0; + protected int IdxDipSel = 0; + protected int IdxFaseSel = 0; + protected ETS_Data.Type.BazaarRes[,] TabellaRisorse; + /// + /// istante corrente + /// + protected DateTime adesso + { + get + { + return DateTime.Now; + } + } /// /// caricamento pagina /// @@ -23,18 +38,323 @@ namespace PROJ_ETS.WebUserControls { if (!Page.IsPostBack) { - DateTime adesso = DateTime.Now; ddlAnno.SelectedValue = adesso.Year.ToString(); ddlWeek.SelectedValue = (datario.WeekOfYearISO8601(adesso) + 1).ToString(); showPnlAddNewComm(false); } + doUpdate(); + } + /// + /// esegue update controllo + /// + public void doUpdate() + { + caricaDatiBlocco(); + aggiornaCelleOccupate(); + creaLabelTooltipCelle(); + disegnaTabella(); + } + /// + /// anno selezionato + /// + protected int anno + { + get + { + int answ = adesso.Year; + try + { + answ = Convert.ToInt32(ddlAnno.SelectedValue); + } + catch + { } + return answ; + } + } + /// + /// settimana selezionato + /// + protected int settimana + { + get + { + int answ = datario.WeekOfYearISO8601(adesso) + 1; + try + { + answ = Convert.ToInt32(ddlWeek.SelectedValue); + } + catch + { } + return answ; + } } + /// + /// carica i dati del blocco in un oggetto BlockMap (compreso attive/inattive) + /// + private void caricaDatiBlocco() + { + int totCelle = 0; + int idxDip = 0; + // recupero il numero di TUTTE le celle + Ds_ProjEts.BazaarRisorseDataTable tabBaz = new Ds_ProjEts.BazaarRisorseDataTable(); + Ds_ProjEts.BazaarRisorseDataTable tabBazSingle = new Ds_ProjEts.BazaarRisorseDataTable(); + Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable(); + Ds_ProjEts.BazaarRisorseRow rigaBaz; + try + { + // carico TUTTE le celle del bazaar... + tabBaz = DataProxy_ProjEts.DP.taBaz.getByAnnoSett(anno, settimana); + // calcolo il primo dip + idxDip = tabBaz[0].idxDipendente; + // calcolo num celel totali + totCelle = tabBaz.Rows.Count; + // calcolo numero commesse! + tabBazSingle = DataProxy_ProjEts.DP.taBaz.getByAnnoSettDip(anno, settimana, idxDip); + numComm = tabBazSingle.Rows.Count; + // calcolo num commesse! + numDip = totCelle / numComm; + } + catch + { } + if (numDip > 0 && numComm > 0) + { + // inizializzo il mio array... + TabellaRisorse = new ETS_Data.Type.BazaarRes[numDip, numComm]; + // carico 2 array di valori: elenco dipendenti (raggruppato x tipo) ed elenco commesse... + tabDip = DataProxy_ProjEts.DP.taDip.GetData(); + // carico i dati nell'array: di default tutto VUOTO, con posizione attiva... + for (int pos_y = 0; pos_y < numComm; pos_y++) + { + for (int pos_x = 0; pos_x < numDip; pos_x++) + { + // carico valori x la singola cella + rigaBaz = (Ds_ProjEts.BazaarRisorseRow)tabBaz.Select(string.Format("idxDipendente={0} AND idxFase={1}", tabDip[pos_x].idxDipendente, tabBazSingle[pos_y].idxFase))[0]; + //TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, "LMMGV", "cellaLibera", rigaBaz.idxDipendente, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot); + } + } + } + } + /// + /// Aggiorna la mappa con le celle occupate + /// + private void aggiornaCelleOccupate() + { +#if false + // carico il magazzino logico da visualizzare (oppure tutti...) + CodMagLogico = memLayer.ML.IntSessionObj("CodMagLogico_sel"); + // carico altri dati da sessione + string ParticolareSel = memLayer.ML.StringSessionObj("Particolare_sel"); + string DescStatoSel = memLayer.ML.StringSessionObj("DescStato_sel"); + string EsponenteSel = memLayer.ML.StringSessionObj("Esponente_sel"); + // ottengo elenco dettaglio UDC che occupano il blocco... + DS_magazzino.v_UdcDetailDataTable tabUdc = MagClass.magazzino.taDettUDC.getUdcDetailByIdxBlocco(IdxBlocco); + // SE è filtrato x mag logico utilizza altro metodo... + if (CodMagLogico != -1) + { + tabUdc = MagClass.magazzino.taDettUDC.getByIdxBloccoCodMagLog(IdxBlocco, CodMagLogico); + } + // controllo se sia un magazzino mono o multicella... + bool multicella = MagClass.magazzino.taCelle.getByIdxBlocco(IdxBlocco).Rows.Count > 1; + // SE ci sono righe aggiorno il blocco... + if (tabUdc.Rows.Count > 0) + { + // ...sovrascrivo valori di default + foreach (DS_magazzino.v_UdcDetailRow riga in tabUdc) + { + // salvo che ho 1 UDC in + nella cella... + TabellaRisorse[riga.X - 1, riga.Y - 1].NumUdc++; + // controllo se nella cella ci sia il particolare selezionato... + if (ParticolareSel == riga.Particolare && multicella) + { + // controllo se sia anche lo specifico esponente/stato + if (DescStatoSel == riga.DescStato && EsponenteSel == riga.Esponente) + { + TabellaRisorse[riga.X - 1, riga.Y - 1].Css = "cellaSelezDett"; + } + else + { + TabellaRisorse[riga.X - 1, riga.Y - 1].Css = "cellaSelezAll"; + } + } + else + { + // se NON C'E' alcun particolare selezionato ... controllo il blocco! + if (TabellaRisorse[riga.X - 1, riga.Y - 1].Piena) + { + TabellaRisorse[riga.X - 1, riga.Y - 1].Css = "cellaPiena"; + } + else + { + TabellaRisorse[riga.X - 1, riga.Y - 1].Css = "cellaOccupata"; + } + } + TabellaRisorse[riga.X - 1, riga.Y - 1].ToolTip += string.Format("{2} - {0} {1:#}pz{3}", riga.UDC, riga.Qta, riga.Particolare, Environment.NewLine); + } + } +#endif + } + /// + /// 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 = "cellaInattiva"; + //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("CellaInattiva"), 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 + private void setupRigaDip(bool showOre) + { + TableRow riga = new TableRow(); + TableCell cell; + // cella vuota iniziale + cell = new TableCell(); + riga.Cells.Add(cell); + // celle con numeri + for (int pos_x = 0; pos_x < numDip; pos_x++) + { + cell = new TableCell(); + cell.CssClass = "cellaBianca"; + cell.Text = string.Format("{0:0#}", pos_x + 1); + cell.ToolTip = ""; + riga.Cells.Add(cell); + } + // cella vuota finale + cell = new TableCell(); + riga.Cells.Add(cell); + // aggiungo riga! + tblBlocco.Rows.Add(riga); + } + /// + /// crea una cella per il numero dei livelli + /// + /// + /// + /// + private static TableCell setupCellaConteggioY(int pos_y, TableRow riga) + { + TableCell cell; + cell = new TableCell(); + cell.CssClass = "cellaBianca"; + cell.Text = string.Format("{0:0#}", pos_y + 1); + cell.ToolTip = ""; + riga.Cells.Add(cell); + return cell; + } + /// + /// intercetta richiesta di zoom e zoomma sull'Udc in esame... + /// + /// + /// + void lnkb_Click(object sender, EventArgs e) + { + LinkButton lnk = (LinkButton)sender; + // calcolo i parametri passati +#if false + string[] valori = SteamWare.StringSplitter.CSplitter.Split(lnk.CommandArgument.ToString(), "#", true, 2, SteamWare.StringSplitter.ComparisonMethod.Text); + // setto i valori in sessione + IdxCella = Convert.ToInt32(valori[0]); + memLayer.ML.setSessionVal("IdxCellaMag", valori[0], false); + memLayer.ML.setSessionVal("CodCellaMag", valori[1], false); + + // evento selezione che passa dati al modulo operazioniUdc + if (eh_selValore != null) + { + eh_selValore(this, new EventArgs()); + } + Response.Redirect("~/DettaglioBlocco.aspx"); +#endif + } + /// + /// esegue il vero plotting della tabella + /// + private void disegnaTabella() + { + bool tabPresente = tblBlocco.Rows.Count > 0; + if (tabPresente) + { + tblBlocco.Rows.Clear(); + } + // metto prima riga con indicazione valori NUMERICI delle colonne + setupRigaDip(false); + // ciclo nel mio array e creo di conseguenza le celle di tabella + for (int pos_y = numComm - 1; pos_y >= 0; pos_y--) + { + TableRow riga = new TableRow(); + TableCell cell; + // cella con numero livello + cell = setupCellaConteggioY(pos_y, riga); + for (int pos_x = 0; pos_x < numDip; pos_x++) + { + cell = new TableCell(); + cell.CssClass = TabellaRisorse[pos_x, pos_y].Css; + // aggiungo button x fare elemento cliccabile + LinkButton lnkb = new LinkButton(); + lnkb.ToolTip = TabellaRisorse[pos_x, pos_y].ToolTip; + lnkb.Text = TabellaRisorse[pos_x, pos_y].Label; + lnkb.Click += new EventHandler(lnkb_Click); + lnkb.CommandArgument = string.Format("{0}#{1}", TabellaRisorse[pos_x, pos_y].IdxDipendente, TabellaRisorse[pos_x, pos_y].IdxFase); + // controllo se la cella è selezionata, nel caso BOLD! + if (TabellaRisorse[pos_x, pos_y].IdxDipendente == IdxDipSel && TabellaRisorse[pos_x, pos_y].IdxFase == IdxFaseSel) + { + cell.CssClass = "selectedCell"; + btnReset.Visible = true; + } + cell.Controls.Add(lnkb); + // carico in cella di tabella il linkButton + riga.Cells.Add(cell); + } + cell = setupCellaConteggioY(pos_y, riga); + tblBlocco.Rows.Add(riga); + } + // metto ultima riga con indicazione valori NUMERICI del totale ore x dipendente + setupRigaDip(true); + } + + /// + /// gestione visualizzaizone pannello elenco commesse da inserire + /// + /// + /// protected void btnAddNew_Click(object sender, EventArgs e) { showPnlAddNewComm(!pnlAddNew.Visible); } - + /// + /// controllo visibilità pannello + /// + /// private void showPnlAddNewComm(bool showPnlNew) { pnlAddNew.Visible = showPnlNew; @@ -125,5 +445,19 @@ namespace PROJ_ETS.WebUserControls eh_newVal(this, new EventArgs()); } } + + /// + /// resetta disegno + /// + /// + /// + protected void btnReset_Click(object sender, EventArgs e) + { +#if false + memLayer.ML.emptySessionVal("IdxCellaMag"); + memLayer.ML.emptySessionVal("CodCellaMag"); + Response.Redirect("~/DettaglioBlocco.aspx"); +#endif + } } } \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs index 5240eae..4cba358 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs @@ -110,5 +110,23 @@ namespace PROJ_ETS.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Button btnAddSelected; + + /// + /// tblBlocco control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Table tblBlocco; + + /// + /// btnReset control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnReset; } } diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 4159a47..b09c27d 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 b578ad7..a14197d 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ