diff --git a/CMS-SC-Data/DS_Applicazione.Designer.cs b/CMS-SC-Data/DS_Applicazione.Designer.cs index 7eb727d..306b688 100644 --- a/CMS-SC-Data/DS_Applicazione.Designer.cs +++ b/CMS-SC-Data/DS_Applicazione.Designer.cs @@ -32,8 +32,12 @@ namespace CMS_SC_Data { private AnagFasiDataTable tableAnagFasi; + private AnagSchedeDataTable tableAnagSchede; + private global::System.Data.DataRelation relationFK_ElencoSchedeMacchina_ElencoMacchineCN; + private global::System.Data.DataRelation relationFK_ElencoSchedeMacchina_AnagSchede; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -74,6 +78,9 @@ namespace CMS_SC_Data { if ((ds.Tables["AnagFasi"] != null)) { base.Tables.Add(new AnagFasiDataTable(ds.Tables["AnagFasi"])); } + if ((ds.Tables["AnagSchede"] != null)) { + base.Tables.Add(new AnagSchedeDataTable(ds.Tables["AnagSchede"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -132,6 +139,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 AnagSchedeDataTable AnagSchede { + get { + return this.tableAnagSchede; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -211,6 +228,9 @@ namespace CMS_SC_Data { if ((ds.Tables["AnagFasi"] != null)) { base.Tables.Add(new AnagFasiDataTable(ds.Tables["AnagFasi"])); } + if ((ds.Tables["AnagSchede"] != null)) { + base.Tables.Add(new AnagSchedeDataTable(ds.Tables["AnagSchede"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -268,7 +288,14 @@ namespace CMS_SC_Data { this.tableAnagFasi.InitVars(); } } + this.tableAnagSchede = ((AnagSchedeDataTable)(base.Tables["AnagSchede"])); + if ((initTable == true)) { + if ((this.tableAnagSchede != null)) { + this.tableAnagSchede.InitVars(); + } + } this.relationFK_ElencoSchedeMacchina_ElencoMacchineCN = this.Relations["FK_ElencoSchedeMacchina_ElencoMacchineCN"]; + this.relationFK_ElencoSchedeMacchina_AnagSchede = this.Relations["FK_ElencoSchedeMacchina_AnagSchede"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -287,10 +314,16 @@ namespace CMS_SC_Data { base.Tables.Add(this.tableElencoSchedeMacchina); this.tableAnagFasi = new AnagFasiDataTable(); base.Tables.Add(this.tableAnagFasi); + this.tableAnagSchede = new AnagSchedeDataTable(); + base.Tables.Add(this.tableAnagSchede); this.relationFK_ElencoSchedeMacchina_ElencoMacchineCN = new global::System.Data.DataRelation("FK_ElencoSchedeMacchina_ElencoMacchineCN", new global::System.Data.DataColumn[] { this.tableElencoMacchineCN.MatricolaColumn}, new global::System.Data.DataColumn[] { this.tableElencoSchedeMacchina.MatricolaColumn}, false); this.Relations.Add(this.relationFK_ElencoSchedeMacchina_ElencoMacchineCN); + this.relationFK_ElencoSchedeMacchina_AnagSchede = new global::System.Data.DataRelation("FK_ElencoSchedeMacchina_AnagSchede", new global::System.Data.DataColumn[] { + this.tableAnagSchede.CodSchedaColumn}, new global::System.Data.DataColumn[] { + this.tableElencoSchedeMacchina.CodSchedaColumn}, false); + this.Relations.Add(this.relationFK_ElencoSchedeMacchina_AnagSchede); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -317,6 +350,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 ShouldSerializeAnagSchede() { + 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) { @@ -384,6 +423,9 @@ namespace CMS_SC_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagFasiRowChangeEventHandler(object sender, AnagFasiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagSchedeRowChangeEventHandler(object sender, AnagSchedeRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -1083,16 +1125,19 @@ namespace CMS_SC_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public ElencoSchedeMacchinaRow AddElencoSchedeMacchinaRow(ElencoMacchineCNRow parentElencoMacchineCNRowByFK_ElencoSchedeMacchina_ElencoMacchineCN, string CodScheda, string Descrizione) { + public ElencoSchedeMacchinaRow AddElencoSchedeMacchinaRow(ElencoMacchineCNRow parentElencoMacchineCNRowByFK_ElencoSchedeMacchina_ElencoMacchineCN, AnagSchedeRow parentAnagSchedeRowByFK_ElencoSchedeMacchina_AnagSchede, string Descrizione) { ElencoSchedeMacchinaRow rowElencoSchedeMacchinaRow = ((ElencoSchedeMacchinaRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, null, - CodScheda, + null, Descrizione}; if ((parentElencoMacchineCNRowByFK_ElencoSchedeMacchina_ElencoMacchineCN != null)) { columnValuesArray[1] = parentElencoMacchineCNRowByFK_ElencoSchedeMacchina_ElencoMacchineCN[0]; } + if ((parentAnagSchedeRowByFK_ElencoSchedeMacchina_AnagSchede != null)) { + columnValuesArray[2] = parentAnagSchedeRowByFK_ElencoSchedeMacchina_AnagSchede[0]; + } rowElencoSchedeMacchinaRow.ItemArray = columnValuesArray; this.Rows.Add(rowElencoSchedeMacchinaRow); return rowElencoSchedeMacchinaRow; @@ -1552,6 +1597,312 @@ namespace CMS_SC_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagSchedeDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodScheda; + + private global::System.Data.DataColumn columnVers; + + private global::System.Data.DataColumn columnDescrizione; + + private global::System.Data.DataColumn columnPath; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagSchedeDataTable() { + this.TableName = "AnagSchede"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagSchedeDataTable(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 AnagSchedeDataTable(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 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 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 PathColumn { + get { + return this.columnPath; + } + } + + [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 AnagSchedeRow this[int index] { + get { + return ((AnagSchedeRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagSchedeRowChangeEventHandler AnagSchedeRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagSchedeRowChangeEventHandler AnagSchedeRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagSchedeRowChangeEventHandler AnagSchedeRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagSchedeRowChangeEventHandler AnagSchedeRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagSchedeRow(AnagSchedeRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagSchedeRow AddAnagSchedeRow(string CodScheda, int Vers, string Descrizione, string Path) { + AnagSchedeRow rowAnagSchedeRow = ((AnagSchedeRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodScheda, + Vers, + Descrizione, + Path}; + rowAnagSchedeRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagSchedeRow); + return rowAnagSchedeRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagSchedeRow FindByCodScheda(string CodScheda) { + return ((AnagSchedeRow)(this.Rows.Find(new object[] { + CodScheda}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagSchedeDataTable cln = ((AnagSchedeDataTable)(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 AnagSchedeDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodScheda = base.Columns["CodScheda"]; + this.columnVers = base.Columns["Vers"]; + this.columnDescrizione = base.Columns["Descrizione"]; + this.columnPath = base.Columns["Path"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + 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.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.columnPath = new global::System.Data.DataColumn("Path", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPath); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodScheda}, true)); + this.columnCodScheda.AllowDBNull = false; + this.columnCodScheda.Unique = true; + this.columnCodScheda.MaxLength = 50; + this.columnVers.AllowDBNull = false; + this.columnDescrizione.AllowDBNull = false; + this.columnDescrizione.MaxLength = 250; + this.columnPath.AllowDBNull = false; + this.columnPath.MaxLength = 2147483647; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagSchedeRow NewAnagSchedeRow() { + return ((AnagSchedeRow)(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 AnagSchedeRow(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(AnagSchedeRow); + } + + [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.AnagSchedeRowChanged != null)) { + this.AnagSchedeRowChanged(this, new AnagSchedeRowChangeEvent(((AnagSchedeRow)(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.AnagSchedeRowChanging != null)) { + this.AnagSchedeRowChanging(this, new AnagSchedeRowChangeEvent(((AnagSchedeRow)(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.AnagSchedeRowDeleted != null)) { + this.AnagSchedeRowDeleted(this, new AnagSchedeRowChangeEvent(((AnagSchedeRow)(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.AnagSchedeRowDeleting != null)) { + this.AnagSchedeRowDeleting(this, new AnagSchedeRowChangeEvent(((AnagSchedeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagSchedeRow(AnagSchedeRow 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 = "AnagSchedeDataTable"; + 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. /// @@ -1733,6 +2084,17 @@ namespace CMS_SC_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagSchedeRow AnagSchedeRow { + get { + return ((AnagSchedeRow)(this.GetParentRow(this.Table.ParentRelations["FK_ElencoSchedeMacchina_AnagSchede"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_ElencoSchedeMacchina_AnagSchede"]); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsDescrizioneNull() { @@ -1800,6 +2162,76 @@ namespace CMS_SC_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagSchedeRow : global::System.Data.DataRow { + + private AnagSchedeDataTable tableAnagSchede; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagSchedeRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagSchede = ((AnagSchedeDataTable)(this.Table)); + } + + [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.tableAnagSchede.CodSchedaColumn])); + } + set { + this[this.tableAnagSchede.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.tableAnagSchede.VersColumn])); + } + set { + this[this.tableAnagSchede.VersColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + return ((string)(this[this.tableAnagSchede.DescrizioneColumn])); + } + set { + this[this.tableAnagSchede.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Path { + get { + return ((string)(this[this.tableAnagSchede.PathColumn])); + } + set { + this[this.tableAnagSchede.PathColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ElencoSchedeMacchinaRow[] GetElencoSchedeMacchinaRows() { + if ((this.Table.ChildRelations["FK_ElencoSchedeMacchina_AnagSchede"] == null)) { + return new ElencoSchedeMacchinaRow[0]; + } + else { + return ((ElencoSchedeMacchinaRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ElencoSchedeMacchina_AnagSchede"]))); + } + } + } + /// ///Row event argument class /// @@ -1935,6 +2367,40 @@ namespace CMS_SC_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagSchedeRowChangeEvent : global::System.EventArgs { + + private AnagSchedeRow 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 AnagSchedeRowChangeEvent(AnagSchedeRow 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 AnagSchedeRow 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 { @@ -3813,6 +4279,524 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; } } + /// + ///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 AnagSchedeTableAdapter : 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 AnagSchedeTableAdapter() { + 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 = "AnagSchede"; + tableMapping.ColumnMappings.Add("CodScheda", "CodScheda"); + tableMapping.ColumnMappings.Add("Vers", "Vers"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + tableMapping.ColumnMappings.Add("Path", "Path"); + 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].[AnagSchede] WHERE (([CodScheda] = @Original_CodScheda) AND ([V" + + "ers] = @Original_Vers) AND ([Descrizione] = @Original_Descrizione))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScheda", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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].[AnagSchede] ([CodScheda], [Vers], [Descrizione], [Path]) VALUE" + + "S (@CodScheda, @Vers, @Descrizione, @Path);\r\nSELECT CodScheda, Vers, Descrizione" + + ", Path FROM AnagSchede WHERE (CodScheda = @CodScheda)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScheda", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path", 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].[AnagSchede] SET [CodScheda] = @CodScheda, [Vers] = @Vers, [Descrizione] = @Descrizione, [Path] = @Path WHERE (([CodScheda] = @Original_CodScheda) AND ([Vers] = @Original_Vers) AND ([Descrizione] = @Original_Descrizione)); +SELECT CodScheda, Vers, Descrizione, Path FROM AnagSchede WHERE (CodScheda = @CodScheda)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScheda", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodScheda", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Vers", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", 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::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[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodScheda, Vers, Descrizione, Path FROM dbo.AnagSchede"; + 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_ASC_DeleteQuery"; + 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("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 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_ASC_InsertQuery"; + 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("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", 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("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 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_ASC_UpdateQuery"; + 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("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", 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("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", 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.AnagSchedeDataTable 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.AnagSchedeDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.AnagSchedeDataTable dataTable = new DS_Applicazione.AnagSchedeDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione.AnagSchedeDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagSchede"); + } + + [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(string Original_CodScheda, int Original_Vers, string Original_Descrizione) { + if ((Original_CodScheda == null)) { + throw new global::System.ArgumentNullException("Original_CodScheda"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodScheda)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Vers)); + if ((Original_Descrizione == null)) { + throw new global::System.ArgumentNullException("Original_Descrizione"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Descrizione)); + } + 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(string CodScheda, int Vers, string Descrizione, string Path) { + if ((CodScheda == null)) { + throw new global::System.ArgumentNullException("CodScheda"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodScheda)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Vers)); + if ((Descrizione == null)) { + throw new global::System.ArgumentNullException("Descrizione"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Descrizione)); + } + if ((Path == null)) { + throw new global::System.ArgumentNullException("Path"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Path)); + } + 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(string CodScheda, int Vers, string Descrizione, string Path, string Original_CodScheda, int Original_Vers, string Original_Descrizione) { + if ((CodScheda == null)) { + throw new global::System.ArgumentNullException("CodScheda"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodScheda)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Vers)); + if ((Descrizione == null)) { + throw new global::System.ArgumentNullException("Descrizione"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Descrizione)); + } + if ((Path == null)) { + throw new global::System.ArgumentNullException("Path"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Path)); + } + if ((Original_CodScheda == null)) { + throw new global::System.ArgumentNullException("Original_CodScheda"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodScheda)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Vers)); + if ((Original_Descrizione == null)) { + throw new global::System.ArgumentNullException("Original_Descrizione"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Descrizione)); + } + 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(int Vers, string Descrizione, string Path, string Original_CodScheda, int Original_Vers, string Original_Descrizione) { + return this.Update(Original_CodScheda, Vers, Descrizione, Path, Original_CodScheda, Original_Vers, Original_Descrizione); + } + + [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, false)] + public virtual int deleteQuery(string Original_CodScheda) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_CodScheda == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodScheda)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int insertQuery(string CodScheda, global::System.Nullable Vers, string Descrizione, string Path) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodScheda == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodScheda)); + } + if ((Vers.HasValue == true)) { + command.Parameters[2].Value = ((int)(Vers.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Descrizione == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Descrizione)); + } + if ((Path == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Path)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int updateQuery(string CodScheda, global::System.Nullable Vers, string Descrizione, string Path, string Original_CodScheda) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((CodScheda == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodScheda)); + } + if ((Vers.HasValue == true)) { + command.Parameters[2].Value = ((int)(Vers.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Descrizione == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Descrizione)); + } + if ((Path == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Path)); + } + if ((Original_CodScheda == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Original_CodScheda)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -3833,6 +4817,8 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; private AnagFasiTableAdapter _anagFasiTableAdapter; + private AnagSchedeTableAdapter _anagSchedeTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -3904,6 +4890,20 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; } } + [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 AnagSchedeTableAdapter AnagSchedeTableAdapter { + get { + return this._anagSchedeTableAdapter; + } + set { + this._anagSchedeTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -3939,6 +4939,10 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; && (this._anagFasiTableAdapter.Connection != null))) { return this._anagFasiTableAdapter.Connection; } + if (((this._anagSchedeTableAdapter != null) + && (this._anagSchedeTableAdapter.Connection != null))) { + return this._anagSchedeTableAdapter.Connection; + } return null; } set { @@ -3964,6 +4968,9 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; if ((this._anagFasiTableAdapter != null)) { count = (count + 1); } + if ((this._anagSchedeTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -3984,6 +4991,15 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; allChangedRows.AddRange(updatedRows); } } + if ((this._anagSchedeTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagSchede.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagSchedeTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._elencoFamMaccTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.ElencoFamMacc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -4029,6 +5045,14 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; allAddedRows.AddRange(addedRows); } } + if ((this._anagSchedeTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagSchede.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagSchedeTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._elencoFamMaccTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.ElencoFamMacc.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -4087,6 +5111,14 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; allChangedRows.AddRange(deletedRows); } } + if ((this._anagSchedeTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagSchede.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagSchedeTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._elencoMacchineCNTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.ElencoMacchineCN.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -4154,6 +5186,11 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._anagSchedeTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagSchedeTableAdapter.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" + @@ -4222,6 +5259,15 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; adaptersWithAcceptChangesDuringUpdate.Add(this._anagFasiTableAdapter.Adapter); } } + if ((this._anagSchedeTableAdapter != null)) { + revertConnections.Add(this._anagSchedeTableAdapter, this._anagSchedeTableAdapter.Connection); + this._anagSchedeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagSchedeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagSchedeTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagSchedeTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagSchedeTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -4296,6 +5342,10 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase)"; this._anagFasiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagFasiTableAdapter])); this._anagFasiTableAdapter.Transaction = null; } + if ((this._anagSchedeTableAdapter != null)) { + this._anagSchedeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagSchedeTableAdapter])); + this._anagSchedeTableAdapter.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/CMS-SC-Data/DS_Applicazione.xsd b/CMS-SC-Data/DS_Applicazione.xsd index 8edf70a..e027d99 100644 --- a/CMS-SC-Data/DS_Applicazione.xsd +++ b/CMS-SC-Data/DS_Applicazione.xsd @@ -65,7 +65,7 @@ SELECT CodFam, DescrFam FROM ElencoFamMacc WHERE (CodFam = @CodFam) - + dbo.stp_AFM_insertQuery @@ -77,7 +77,7 @@ SELECT CodFam, DescrFam FROM ElencoFamMacc WHERE (CodFam = @CodFam) - + dbo.stp_AFM_updateQuery @@ -337,6 +337,103 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) + + + + + + DELETE FROM [dbo].[AnagSchede] WHERE (([CodScheda] = @Original_CodScheda) AND ([Vers] = @Original_Vers) AND ([Descrizione] = @Original_Descrizione)) + + + + + + + + + + INSERT INTO [dbo].[AnagSchede] ([CodScheda], [Vers], [Descrizione], [Path]) VALUES (@CodScheda, @Vers, @Descrizione, @Path); +SELECT CodScheda, Vers, Descrizione, Path FROM AnagSchede WHERE (CodScheda = @CodScheda) + + + + + + + + + + + SELECT CodScheda, Vers, Descrizione, Path FROM dbo.AnagSchede + + + + + + UPDATE [dbo].[AnagSchede] SET [CodScheda] = @CodScheda, [Vers] = @Vers, [Descrizione] = @Descrizione, [Path] = @Path WHERE (([CodScheda] = @Original_CodScheda) AND ([Vers] = @Original_Vers) AND ([Descrizione] = @Original_Descrizione)); +SELECT CodScheda, Vers, Descrizione, Path FROM AnagSchede WHERE (CodScheda = @CodScheda) + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ASC_DeleteQuery + + + + + + + + + + + dbo.stp_ASC_InsertQuery + + + + + + + + + + + + + + dbo.stp_ASC_UpdateQuery + + + + + + + + + + + + + @@ -345,7 +442,7 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) - + @@ -365,7 +462,7 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) - + @@ -399,7 +496,7 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) - + @@ -427,7 +524,7 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) - + @@ -447,6 +544,34 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -465,10 +590,15 @@ SELECT Fase, Descrizione FROM AnagFasi WHERE (Fase = @Fase) + + + + - + + \ No newline at end of file diff --git a/CMS-SC-Data/DS_Applicazione.xss b/CMS-SC-Data/DS_Applicazione.xss index c689895..3ea3bd2 100644 --- a/CMS-SC-Data/DS_Applicazione.xss +++ b/CMS-SC-Data/DS_Applicazione.xss @@ -6,13 +6,14 @@ --> - - - - + + + + + - + 754 @@ -24,5 +25,17 @@ + + + + 1006 + 658 + + + 1006 + 375 + + + \ No newline at end of file diff --git a/CMS-SC-Data/DtProxy.cs b/CMS-SC-Data/DtProxy.cs index ca378b5..9906a49 100644 --- a/CMS-SC-Data/DtProxy.cs +++ b/CMS-SC-Data/DtProxy.cs @@ -27,7 +27,7 @@ namespace CMS_SC_Data taEFM = new DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter(); taEM = new DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter(); taESM = new DS_ApplicazioneTableAdapters.ElencoSchedeMacchinaTableAdapter(); - //taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); + taASC = new DS_ApplicazioneTableAdapters.AnagSchedeTableAdapter(); //taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); //taVcz = new DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter(); //taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter(); @@ -44,7 +44,7 @@ namespace CMS_SC_Data taEFM.Connection.ConnectionString = connStr; taEM.Connection.ConnectionString = connStr; taESM.Connection.ConnectionString = connStr; - //taImp.Connection.ConnectionString = connStr; + taASC.Connection.ConnectionString = connStr; //taDetImp.Connection.ConnectionString = connStr; //taVcz.Connection.ConnectionString = connStr; //taFile.Connection.ConnectionString = connStrFiles; @@ -58,7 +58,7 @@ namespace CMS_SC_Data public DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter taEFM; public DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter taEM; public DS_ApplicazioneTableAdapters.ElencoSchedeMacchinaTableAdapter taESM; - //public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp; + public DS_ApplicazioneTableAdapters.AnagSchedeTableAdapter taASC; //public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp; //public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz; //public DS_UtilityTableAdapters.tblFilesTableAdapter taFile; diff --git a/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll b/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll index 7720e0d..6778b9b 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 4afcead..6ab6391 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 7720e0d..6778b9b 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 a5d00db..3686f39 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/AnagSchedeColl.aspx b/CMS_SC/AnagSchedeColl.aspx index e62ee29..08c0fb1 100644 --- a/CMS_SC/AnagSchedeColl.aspx +++ b/CMS_SC/AnagSchedeColl.aspx @@ -1,7 +1,18 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="AnagSchedeColl.aspx.cs" Inherits="CMS_SC.AnagSchedeColl" %> + +<%@ Register Src="~/WebUserControls/mod_anagSchedeColl.ascx" TagName="mod_anagSchedeColl" TagPrefix="uc1" %> +<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc2" %> +
+
+
+ + +
+
+
diff --git a/CMS_SC/AnagSchedeColl.aspx.cs b/CMS_SC/AnagSchedeColl.aspx.cs index 75bb0d7..1c91a6a 100644 --- a/CMS_SC/AnagSchedeColl.aspx.cs +++ b/CMS_SC/AnagSchedeColl.aspx.cs @@ -11,7 +11,18 @@ namespace CMS_SC { protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + ((Bootstrap)this.Master).showSearch = true; + mod_righePag.numRowPag = 20; + mod_anagSchedeColl.pageSize = mod_righePag.numRowPag; + } + mod_righePag.eh_newNum += mod_righePag_eh_newNum; + } + void mod_righePag_eh_newNum(object sender, EventArgs e) + { + mod_anagSchedeColl.pageSize = mod_righePag.numRowPag; } } } \ No newline at end of file diff --git a/CMS_SC/AnagSchedeColl.aspx.designer.cs b/CMS_SC/AnagSchedeColl.aspx.designer.cs index 6e2662a..40cdd45 100644 --- a/CMS_SC/AnagSchedeColl.aspx.designer.cs +++ b/CMS_SC/AnagSchedeColl.aspx.designer.cs @@ -3,15 +3,31 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ -namespace CMS_SC -{ - - - public partial class AnagSchedeColl - { +namespace CMS_SC { + + + public partial class AnagSchedeColl { + + /// + /// mod_anagSchedeColl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::CMS_SC.WebUserControls.mod_anagSchedeColl mod_anagSchedeColl; + + /// + /// mod_righePag control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_righePag mod_righePag; } } diff --git a/CMS_SC/Bootstrap.Master b/CMS_SC/Bootstrap.Master index 6375f87..bacb49b 100644 --- a/CMS_SC/Bootstrap.Master +++ b/CMS_SC/Bootstrap.Master @@ -77,7 +77,8 @@