diff --git a/CMS-SC-Data/DS_Applicazione.Designer.cs b/CMS-SC-Data/DS_Applicazione.Designer.cs index 785e4fa..67a5e3e 100644 --- a/CMS-SC-Data/DS_Applicazione.Designer.cs +++ b/CMS-SC-Data/DS_Applicazione.Designer.cs @@ -52,6 +52,8 @@ namespace CMS_SC_Data { private UserParamDataTable tableUserParam; + private StatoCollaudiDataTable tableStatoCollaudi; + private global::System.Data.DataRelation relationFK_DettScheda_AnagSchede1; private global::System.Data.DataRelation relationFK_ElencoMacchineCN_ElencoFamMacc; @@ -146,6 +148,9 @@ namespace CMS_SC_Data { if ((ds.Tables["UserParam"] != null)) { base.Tables.Add(new UserParamDataTable(ds.Tables["UserParam"])); } + if ((ds.Tables["StatoCollaudi"] != null)) { + base.Tables.Add(new StatoCollaudiDataTable(ds.Tables["StatoCollaudi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -304,6 +309,16 @@ namespace CMS_SC_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 StatoCollaudiDataTable StatoCollaudi { + get { + return this.tableStatoCollaudi; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -413,6 +428,9 @@ namespace CMS_SC_Data { if ((ds.Tables["UserParam"] != null)) { base.Tables.Add(new UserParamDataTable(ds.Tables["UserParam"])); } + if ((ds.Tables["StatoCollaudi"] != null)) { + base.Tables.Add(new StatoCollaudiDataTable(ds.Tables["StatoCollaudi"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -530,6 +548,12 @@ namespace CMS_SC_Data { this.tableUserParam.InitVars(); } } + this.tableStatoCollaudi = ((StatoCollaudiDataTable)(base.Tables["StatoCollaudi"])); + if ((initTable == true)) { + if ((this.tableStatoCollaudi != null)) { + this.tableStatoCollaudi.InitVars(); + } + } this.relationFK_DettScheda_AnagSchede1 = this.Relations["FK_DettScheda_AnagSchede1"]; this.relationFK_ElencoMacchineCN_ElencoFamMacc = this.Relations["FK_ElencoMacchineCN_ElencoFamMacc"]; this.relationFK_ValidVal_DettScheda = this.Relations["FK_ValidVal_DettScheda"]; @@ -580,6 +604,8 @@ namespace CMS_SC_Data { base.Tables.Add(this.tableAnagTags); this.tableUserParam = new UserParamDataTable(); base.Tables.Add(this.tableUserParam); + this.tableStatoCollaudi = new StatoCollaudiDataTable(); + base.Tables.Add(this.tableStatoCollaudi); this.relationFK_DettScheda_AnagSchede1 = new global::System.Data.DataRelation("FK_DettScheda_AnagSchede1", new global::System.Data.DataColumn[] { this.tableAnagSchede.CodSchedaColumn, this.tableAnagSchede.VersColumn}, new global::System.Data.DataColumn[] { @@ -730,6 +756,12 @@ namespace CMS_SC_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeStatoCollaudi() { + 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) { @@ -827,6 +859,9 @@ namespace CMS_SC_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void UserParamRowChangeEventHandler(object sender, UserParamRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void StatoCollaudiRowChangeEventHandler(object sender, StatoCollaudiRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -6081,6 +6116,464 @@ namespace CMS_SC_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class StatoCollaudiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxDossier; + + private global::System.Data.DataColumn columnCodScheda; + + private global::System.Data.DataColumn columnVers; + + private global::System.Data.DataColumn columnNumScheda; + + private global::System.Data.DataColumn columnDescrizione; + + private global::System.Data.DataColumn columnopz; + + private global::System.Data.DataColumn columnFasiEnab; + + private global::System.Data.DataColumn columnOrdinale; + + private global::System.Data.DataColumn columnFase; + + private global::System.Data.DataColumn columnTotMisure; + + private global::System.Data.DataColumn columnMisEffettuate; + + private global::System.Data.DataColumn columnMisOk; + + private global::System.Data.DataColumn columnMisOkDerog; + + private global::System.Data.DataColumn columnStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoCollaudiDataTable() { + this.TableName = "StatoCollaudi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoCollaudiDataTable(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 StatoCollaudiDataTable(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 IdxDossierColumn { + get { + return this.columnIdxDossier; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodSchedaColumn { + get { + return this.columnCodScheda; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn VersColumn { + get { + return this.columnVers; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumSchedaColumn { + get { + return this.columnNumScheda; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneColumn { + get { + return this.columnDescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn opzColumn { + get { + return this.columnopz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FasiEnabColumn { + get { + return this.columnFasiEnab; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OrdinaleColumn { + get { + return this.columnOrdinale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FaseColumn { + get { + return this.columnFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotMisureColumn { + get { + return this.columnTotMisure; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MisEffettuateColumn { + get { + return this.columnMisEffettuate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MisOkColumn { + get { + return this.columnMisOk; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MisOkDerogColumn { + get { + return this.columnMisOkDerog; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn StatoColumn { + get { + return this.columnStato; + } + } + + [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 StatoCollaudiRow this[int index] { + get { + return ((StatoCollaudiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoCollaudiRowChangeEventHandler StatoCollaudiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoCollaudiRowChangeEventHandler StatoCollaudiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoCollaudiRowChangeEventHandler StatoCollaudiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoCollaudiRowChangeEventHandler StatoCollaudiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddStatoCollaudiRow(StatoCollaudiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoCollaudiRow AddStatoCollaudiRow(int IdxDossier, string CodScheda, int Vers, int NumScheda, string Descrizione, string opz, string FasiEnab, int Ordinale, string Fase, int TotMisure, int MisEffettuate, int MisOk, int MisOkDerog, int Stato) { + StatoCollaudiRow rowStatoCollaudiRow = ((StatoCollaudiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxDossier, + CodScheda, + Vers, + NumScheda, + Descrizione, + opz, + FasiEnab, + Ordinale, + Fase, + TotMisure, + MisEffettuate, + MisOk, + MisOkDerog, + Stato}; + rowStatoCollaudiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowStatoCollaudiRow); + return rowStatoCollaudiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoCollaudiRow FindByIdxDossierCodSchedaVersNumScheda(int IdxDossier, string CodScheda, int Vers, int NumScheda) { + return ((StatoCollaudiRow)(this.Rows.Find(new object[] { + IdxDossier, + CodScheda, + Vers, + NumScheda}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + StatoCollaudiDataTable cln = ((StatoCollaudiDataTable)(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 StatoCollaudiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxDossier = base.Columns["IdxDossier"]; + this.columnCodScheda = base.Columns["CodScheda"]; + this.columnVers = base.Columns["Vers"]; + this.columnNumScheda = base.Columns["NumScheda"]; + this.columnDescrizione = base.Columns["Descrizione"]; + this.columnopz = base.Columns["opz"]; + this.columnFasiEnab = base.Columns["FasiEnab"]; + this.columnOrdinale = base.Columns["Ordinale"]; + this.columnFase = base.Columns["Fase"]; + this.columnTotMisure = base.Columns["TotMisure"]; + this.columnMisEffettuate = base.Columns["MisEffettuate"]; + this.columnMisOk = base.Columns["MisOk"]; + this.columnMisOkDerog = base.Columns["MisOkDerog"]; + this.columnStato = base.Columns["Stato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxDossier = new global::System.Data.DataColumn("IdxDossier", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxDossier); + this.columnCodScheda = new global::System.Data.DataColumn("CodScheda", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodScheda); + this.columnVers = new global::System.Data.DataColumn("Vers", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVers); + this.columnNumScheda = new global::System.Data.DataColumn("NumScheda", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumScheda); + this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.columnopz = new global::System.Data.DataColumn("opz", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnopz); + this.columnFasiEnab = new global::System.Data.DataColumn("FasiEnab", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFasiEnab); + this.columnOrdinale = new global::System.Data.DataColumn("Ordinale", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOrdinale); + this.columnFase = new global::System.Data.DataColumn("Fase", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFase); + this.columnTotMisure = new global::System.Data.DataColumn("TotMisure", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotMisure); + this.columnMisEffettuate = new global::System.Data.DataColumn("MisEffettuate", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMisEffettuate); + this.columnMisOk = new global::System.Data.DataColumn("MisOk", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMisOk); + this.columnMisOkDerog = new global::System.Data.DataColumn("MisOkDerog", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMisOkDerog); + this.columnStato = new global::System.Data.DataColumn("Stato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxDossier, + this.columnCodScheda, + this.columnVers, + this.columnNumScheda}, true)); + this.columnIdxDossier.AllowDBNull = false; + this.columnCodScheda.AllowDBNull = false; + this.columnCodScheda.MaxLength = 50; + this.columnVers.AllowDBNull = false; + this.columnNumScheda.AllowDBNull = false; + this.columnDescrizione.MaxLength = 250; + this.columnopz.AllowDBNull = false; + this.columnopz.MaxLength = 50; + this.columnFasiEnab.AllowDBNull = false; + this.columnFasiEnab.MaxLength = 2147483647; + this.columnOrdinale.AllowDBNull = false; + this.columnFase.AllowDBNull = false; + this.columnFase.MaxLength = 50; + this.columnStato.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoCollaudiRow NewStatoCollaudiRow() { + return ((StatoCollaudiRow)(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 StatoCollaudiRow(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(StatoCollaudiRow); + } + + [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.StatoCollaudiRowChanged != null)) { + this.StatoCollaudiRowChanged(this, new StatoCollaudiRowChangeEvent(((StatoCollaudiRow)(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.StatoCollaudiRowChanging != null)) { + this.StatoCollaudiRowChanging(this, new StatoCollaudiRowChangeEvent(((StatoCollaudiRow)(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.StatoCollaudiRowDeleted != null)) { + this.StatoCollaudiRowDeleted(this, new StatoCollaudiRowChangeEvent(((StatoCollaudiRow)(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.StatoCollaudiRowDeleting != null)) { + this.StatoCollaudiRowDeleting(this, new StatoCollaudiRowChangeEvent(((StatoCollaudiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveStatoCollaudiRow(StatoCollaudiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Applicazione ds = new DS_Applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "StatoCollaudiDataTable"; + 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. /// @@ -8234,6 +8727,277 @@ namespace CMS_SC_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class StatoCollaudiRow : global::System.Data.DataRow { + + private StatoCollaudiDataTable tableStatoCollaudi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoCollaudiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableStatoCollaudi = ((StatoCollaudiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxDossier { + get { + return ((int)(this[this.tableStatoCollaudi.IdxDossierColumn])); + } + set { + this[this.tableStatoCollaudi.IdxDossierColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodScheda { + get { + return ((string)(this[this.tableStatoCollaudi.CodSchedaColumn])); + } + set { + this[this.tableStatoCollaudi.CodSchedaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Vers { + get { + return ((int)(this[this.tableStatoCollaudi.VersColumn])); + } + set { + this[this.tableStatoCollaudi.VersColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumScheda { + get { + return ((int)(this[this.tableStatoCollaudi.NumSchedaColumn])); + } + set { + this[this.tableStatoCollaudi.NumSchedaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + try { + return ((string)(this[this.tableStatoCollaudi.DescrizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string opz { + get { + return ((string)(this[this.tableStatoCollaudi.opzColumn])); + } + set { + this[this.tableStatoCollaudi.opzColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string FasiEnab { + get { + return ((string)(this[this.tableStatoCollaudi.FasiEnabColumn])); + } + set { + this[this.tableStatoCollaudi.FasiEnabColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Ordinale { + get { + return ((int)(this[this.tableStatoCollaudi.OrdinaleColumn])); + } + set { + this[this.tableStatoCollaudi.OrdinaleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Fase { + get { + return ((string)(this[this.tableStatoCollaudi.FaseColumn])); + } + set { + this[this.tableStatoCollaudi.FaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TotMisure { + get { + try { + return ((int)(this[this.tableStatoCollaudi.TotMisureColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotMisure\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.TotMisureColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MisEffettuate { + get { + try { + return ((int)(this[this.tableStatoCollaudi.MisEffettuateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MisEffettuate\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.MisEffettuateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MisOk { + get { + try { + return ((int)(this[this.tableStatoCollaudi.MisOkColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MisOk\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.MisOkColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MisOkDerog { + get { + try { + return ((int)(this[this.tableStatoCollaudi.MisOkDerogColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MisOkDerog\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.MisOkDerogColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Stato { + get { + try { + return ((int)(this[this.tableStatoCollaudi.StatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Stato\' in table \'StatoCollaudi\' is DBNull.", e); + } + } + set { + this[this.tableStatoCollaudi.StatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneNull() { + return this.IsNull(this.tableStatoCollaudi.DescrizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneNull() { + this[this.tableStatoCollaudi.DescrizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotMisureNull() { + return this.IsNull(this.tableStatoCollaudi.TotMisureColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotMisureNull() { + this[this.tableStatoCollaudi.TotMisureColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMisEffettuateNull() { + return this.IsNull(this.tableStatoCollaudi.MisEffettuateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMisEffettuateNull() { + this[this.tableStatoCollaudi.MisEffettuateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMisOkNull() { + return this.IsNull(this.tableStatoCollaudi.MisOkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMisOkNull() { + this[this.tableStatoCollaudi.MisOkColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMisOkDerogNull() { + return this.IsNull(this.tableStatoCollaudi.MisOkDerogColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMisOkDerogNull() { + this[this.tableStatoCollaudi.MisOkDerogColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsStatoNull() { + return this.IsNull(this.tableStatoCollaudi.StatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetStatoNull() { + this[this.tableStatoCollaudi.StatoColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -8709,6 +9473,40 @@ namespace CMS_SC_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class StatoCollaudiRowChangeEvent : global::System.EventArgs { + + private StatoCollaudiRow 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 StatoCollaudiRowChangeEvent(StatoCollaudiRow 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 StatoCollaudiRow 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 CMS_SC_Data.DS_ApplicazioneTableAdapters { @@ -15492,6 +16290,218 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa } } + /// + ///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 StatoCollaudiTableAdapter : 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 StatoCollaudiTableAdapter() { + 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 = "StatoCollaudi"; + tableMapping.ColumnMappings.Add("IdxDossier", "IdxDossier"); + tableMapping.ColumnMappings.Add("CodScheda", "CodScheda"); + tableMapping.ColumnMappings.Add("Vers", "Vers"); + tableMapping.ColumnMappings.Add("NumScheda", "NumScheda"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + tableMapping.ColumnMappings.Add("opz", "opz"); + tableMapping.ColumnMappings.Add("FasiEnab", "FasiEnab"); + tableMapping.ColumnMappings.Add("Ordinale", "Ordinale"); + tableMapping.ColumnMappings.Add("Fase", "Fase"); + tableMapping.ColumnMappings.Add("TotMisure", "TotMisure"); + tableMapping.ColumnMappings.Add("MisEffettuate", "MisEffettuate"); + tableMapping.ColumnMappings.Add("MisOk", "MisOk"); + tableMapping.ColumnMappings.Add("MisOkDerog", "MisOkDerog"); + tableMapping.ColumnMappings.Add("Stato", "Stato"); + 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::CMS_SC_Data.Properties.Settings.Default.CMS_SCConnectionString; + } + + [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 IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordina" + + "le, Fase, TotMisure, MisEffettuate, MisOk, MisOkDerog, Stato FROM dbo.v_statoCol" + + "laudi"; + 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_StatoCollByDossier"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDossier", 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("@Fase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.StatoCollaudiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Applicazione.StatoCollaudiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.StatoCollaudiDataTable dataTable = new DS_Applicazione.StatoCollaudiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Applicazione.StatoCollaudiDataTable getByDossFase(global::System.Nullable idxDossier, string Fase) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxDossier.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDossier.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Fase == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(Fase)); + } + DS_Applicazione.StatoCollaudiDataTable dataTable = new DS_Applicazione.StatoCollaudiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/CMS-SC-Data/DS_Applicazione.xsd b/CMS-SC-Data/DS_Applicazione.xsd index 0d1ccf0..e054cf9 100644 --- a/CMS-SC-Data/DS_Applicazione.xsd +++ b/CMS-SC-Data/DS_Applicazione.xsd @@ -981,7 +981,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordin - + dbo.stp_SCM_moveUpDown @@ -994,7 +994,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordin - + dbo.stp_SCM_updateQuery @@ -1429,6 +1429,48 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + + + SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordinale, Fase, TotMisure, MisEffettuate, MisOk, MisOkDerog, Stato FROM dbo.v_statoCollaudi + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_StatoCollByDossier + + + + + + + + + + @@ -1437,7 +1479,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1458,7 +1500,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1496,7 +1538,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1516,7 +1558,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1558,7 +1600,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1607,7 +1649,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1632,7 +1674,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1690,7 +1732,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1736,7 +1778,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1774,7 +1816,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1868,7 +1910,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1982,7 +2024,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2002,7 +2044,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2022,7 +2064,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2049,6 +2091,56 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2121,21 +2213,28 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll b/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll index 1be0e05..f64d7d2 100644 Binary files a/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll and b/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll differ diff --git a/CMS-SC-Data/bin/Debug/SteamWare.dll b/CMS-SC-Data/bin/Debug/SteamWare.dll index 300143f..662fcaf 100644 Binary files a/CMS-SC-Data/bin/Debug/SteamWare.dll and b/CMS-SC-Data/bin/Debug/SteamWare.dll differ diff --git a/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll b/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll index 1be0e05..f64d7d2 100644 Binary files a/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll and b/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll differ diff --git a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll index c04e74a..602d197 100644 Binary files a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ diff --git a/CMS_SC/CMS_SC.csproj b/CMS_SC/CMS_SC.csproj index cfc16ed..d33dd45 100644 --- a/CMS_SC/CMS_SC.csproj +++ b/CMS_SC/CMS_SC.csproj @@ -390,6 +390,7 @@ + @@ -842,6 +843,13 @@ mod_selSchedaUrl.ascx + + mod_StatoCollaudi.ascx + ASPXCodeBehind + + + mod_StatoCollaudi.ascx + mod_tags2macchine.ascx ASPXCodeBehind diff --git a/CMS_SC/StatoDossiers.aspx b/CMS_SC/StatoDossiers.aspx index cfe9618..df4ce2d 100644 --- a/CMS_SC/StatoDossiers.aspx +++ b/CMS_SC/StatoDossiers.aspx @@ -3,8 +3,8 @@ <%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc1" %> <%@ Register Src="~/WebUserControls/mod_elencoDossiers.ascx" TagPrefix="uc1" TagName="mod_elencoDossiers" %> -<%@ Register Src="~/WebUserControls/mod_elencoSchedeDossier.ascx" TagPrefix="uc1" TagName="mod_elencoSchedeDossier" %> -<%@ Register Src="~/WebUserControls/mod_dossier.ascx" TagPrefix="uc1" TagName="mod_dossier" %> +<%@ Register Src="~/WebUserControls/mod_StatoCollaudi.ascx" TagPrefix="uc1" TagName="mod_StatoCollaudi" %> + @@ -25,12 +25,12 @@
- AAA +

<%: traduci("StatoCollaudi") %>

- +
diff --git a/CMS_SC/StatoDossiers.aspx.cs b/CMS_SC/StatoDossiers.aspx.cs index 5c44580..51de33e 100644 --- a/CMS_SC/StatoDossiers.aspx.cs +++ b/CMS_SC/StatoDossiers.aspx.cs @@ -22,7 +22,7 @@ namespace CMS_SC { ((Bootstrap)this.Master).showSearch = true; mod_righePag.numRowPag = 20; - mod_elencoSchedeDossier.pageSize = mod_righePag.numRowPag; + mod_StatoCollaudi.pageSize = mod_righePag.numRowPag; } mod_righePag.eh_newNum += mod_righePag_eh_newNum; mod_elencoDossiers.eh_selezioneValore += mod_elencoDossiers_eh_selezioneValore; @@ -35,7 +35,7 @@ namespace CMS_SC void mod_elencoDossiers_eh_selezioneValore(object sender, EventArgs e) { - mod_elencoSchedeDossier.idxDossier = mod_elencoDossiers.idxDossier.ToString(); + mod_StatoCollaudi.idxDossier = mod_elencoDossiers.idxDossier.ToString(); } /// @@ -57,7 +57,7 @@ namespace CMS_SC void mod_righePag_eh_newNum(object sender, EventArgs e) { - mod_elencoSchedeDossier.pageSize = mod_righePag.numRowPag; + mod_StatoCollaudi.pageSize = mod_righePag.numRowPag; } /// @@ -70,7 +70,7 @@ namespace CMS_SC // inserisco tutte le schede da template x tutte le fasi indicate nella struttura di setup... DtProxy.man.taSCM.insMisFasiMissing(mod_elencoDossiers.idxDossier); mod_elencoDossiers.doUpdate(); - mod_elencoSchedeDossier.doUpdate(); + mod_StatoCollaudi.doUpdate(); } } } \ No newline at end of file diff --git a/CMS_SC/StatoDossiers.aspx.designer.cs b/CMS_SC/StatoDossiers.aspx.designer.cs index 66822ba..0bc0d37 100644 --- a/CMS_SC/StatoDossiers.aspx.designer.cs +++ b/CMS_SC/StatoDossiers.aspx.designer.cs @@ -31,13 +31,13 @@ namespace CMS_SC { protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail; /// - /// mod_elencoSchedeDossier control. + /// mod_StatoCollaudi control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::CMS_SC.WebUserControls.mod_elencoSchedeDossier mod_elencoSchedeDossier; + protected global::CMS_SC.WebUserControls.mod_StatoCollaudi mod_StatoCollaudi; /// /// mod_righePag control. diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx new file mode 100644 index 0000000..e53a681 --- /dev/null +++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx @@ -0,0 +1,69 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_StatoCollaudi.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_StatoCollaudi" %> + + + + + + + + +   + + + + + + + + + + + <%# traduci("moveMis") %> + + + + +
+ +
+
+ +
+
+
+ + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs new file mode 100644 index 0000000..c67543a --- /dev/null +++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using CMS_SC_Data; +using SteamWare; + +namespace CMS_SC.WebUserControls +{ + public partial class mod_StatoCollaudi : SteamWare.UserControl + { + /// + /// selezione valore in DettScheda + /// + public event EventHandler eh_selezioneValore; + /// + /// sollevo evento selezione + /// + protected void raiseEvent() + { + // sollevo evento nuovo valore... + if (eh_selezioneValore != null) + { + eh_selezioneValore(this, new EventArgs()); + } + } + protected void Page_Load(object sender, EventArgs e) + { + + } + /// + /// dimensione pagina grid view + /// + public int pageSize + { + get + { + return grView.PageSize; + } + set + { + grView.PageSize = value; + } + } + /// + /// dossier selezionato + /// + public string idxDossier + { + get + { + return hfIdxDossier.Value; + } + set + { + hfIdxDossier.Value = value; + grView.DataBind(); + } + } + public void doUpdate() + { + grView.DataBind(); + } + /// + /// selezione scheda... + /// + /// + /// + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + // verifico se ho un argomento di tipo moveUp / moveDown... quale comando? + string _comando = ""; + string CodSchedaVersNum = ""; + if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand")) + { + _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand"); + SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); + } + if (_comando != "") + { + CodSchedaVersNum = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]); + // SE c'era comando eseguo move... + switch (_comando) + { + case "moveUp": + case "moveDown": + DtProxy.man.taSCM.moveUpDown(_comando, Convert.ToInt32(idxDossier), CodSchedaVersNum); + break; + //case "clone": + // DtProxy.man.taDS.clone(memLayer.ML.QSS("CodSchedaVers"), grView.SelectedDataKey["CodMisura"].ToString()); + // break; + default: + break; + } + resetSelezione(); + } + else + { + raiseEvent(); + } + } + protected void btnReset_Click(object sender, EventArgs e) + { + resetSelezione(); + } + /// + /// resetto selezione + /// + private void resetSelezione() + { + grView.SelectedIndex = -1; + grView.DataBind(); + raiseEvent(); + } + /// + /// determina visibilità frecce spostamento + /// + /// direzione: UP / DOWN + /// Ordinale + /// + public bool arrowVisible(object _direction, object _Ordinale) + { + bool answ = false; + string direction = _direction.ToString(); + int Ordinale = Convert.ToInt32(_Ordinale.ToString()); + switch (direction) + { + case "UP": + answ = Ordinale > 1; + break; + case "DOWN": + answ = Ordinale < DtProxy.man.taSCM.getByDossier(Convert.ToInt32(idxDossier)).Rows.Count; + break; + default: + break; + } + return answ; + } + /// + /// salvo in session il prox comando + /// + /// + /// + protected void lb_Click(object sender, EventArgs e) + { + SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument); + } + } +} \ No newline at end of file diff --git a/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.designer.cs b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.designer.cs new file mode 100644 index 0000000..d055cd4 --- /dev/null +++ b/CMS_SC/WebUserControls/mod_StatoCollaudi.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CMS_SC.WebUserControls { + + + public partial class mod_StatoCollaudi { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// hfIdxDossier control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxDossier; + } +} diff --git a/CMS_SC/bin/CMS-SC-Data.dll b/CMS_SC/bin/CMS-SC-Data.dll index 1be0e05..f64d7d2 100644 Binary files a/CMS_SC/bin/CMS-SC-Data.dll and b/CMS_SC/bin/CMS-SC-Data.dll differ diff --git a/CMS_SC/bin/CMS_SC.dll b/CMS_SC/bin/CMS_SC.dll index 279dd3e..c04a785 100644 Binary files a/CMS_SC/bin/CMS_SC.dll and b/CMS_SC/bin/CMS_SC.dll differ diff --git a/CMS_SC/bin/SteamWare.dll b/CMS_SC/bin/SteamWare.dll index 300143f..662fcaf 100644 Binary files a/CMS_SC/bin/SteamWare.dll and b/CMS_SC/bin/SteamWare.dll differ diff --git a/CMS_SC/sql/ManualUpdate_2.0_2.1.sql b/CMS_SC/sql/ManualUpdate_2.0_2.1.sql index d6bfea4..3df9f91 100644 --- a/CMS_SC/sql/ManualUpdate_2.0_2.1.sql +++ b/CMS_SC/sql/ManualUpdate_2.0_2.1.sql @@ -29,6 +29,7 @@ FROM Misure -- update vocabolario exec voc.stp_insNewLemma 'btnClonaConfFamMacch', 'Merge da Famiglia Esistente' exec voc.stp_insNewLemma 'StatoDossiers', 'Stato Dossiers' +exec voc.stp_insNewLemma 'StatoCollaudi', 'Stato Collaudi' -- modifiche DB