diff --git a/ETS_Data/DS_utilsProjEts.Designer.cs b/ETS_Data/DS_utilsProjEts.Designer.cs index 6cc46f8..b210590 100644 --- a/ETS_Data/DS_utilsProjEts.Designer.cs +++ b/ETS_Data/DS_utilsProjEts.Designer.cs @@ -38,6 +38,8 @@ namespace ETS_Data { private v_selYearDataTable tablev_selYear; + private v_selFornitoriClaDataTable tablev_selFornitoriCla; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -87,6 +89,9 @@ namespace ETS_Data { if ((ds.Tables["v_selYear"] != null)) { base.Tables.Add(new v_selYearDataTable(ds.Tables["v_selYear"])); } + if ((ds.Tables["v_selFornitoriCla"] != null)) { + base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -175,6 +180,16 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selFornitoriClaDataTable v_selFornitoriCla { + get { + return this.tablev_selFornitoriCla; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -263,6 +278,9 @@ namespace ETS_Data { if ((ds.Tables["v_selYear"] != null)) { base.Tables.Add(new v_selYearDataTable(ds.Tables["v_selYear"])); } + if ((ds.Tables["v_selFornitoriCla"] != null)) { + base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -338,6 +356,12 @@ namespace ETS_Data { this.tablev_selYear.InitVars(); } } + this.tablev_selFornitoriCla = ((v_selFornitoriClaDataTable)(base.Tables["v_selFornitoriCla"])); + if ((initTable == true)) { + if ((this.tablev_selFornitoriCla != null)) { + this.tablev_selFornitoriCla.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -362,6 +386,8 @@ namespace ETS_Data { base.Tables.Add(this.tablev_selWeek); this.tablev_selYear = new v_selYearDataTable(); base.Tables.Add(this.tablev_selYear); + this.tablev_selFornitoriCla = new v_selFornitoriClaDataTable(); + base.Tables.Add(this.tablev_selFornitoriCla); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -406,6 +432,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selFornitoriCla() { + 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) { @@ -482,6 +514,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_selYearRowChangeEventHandler(object sender, v_selYearRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selFornitoriClaRowChangeEventHandler(object sender, v_selFornitoriClaRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2390,6 +2425,296 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selFornitoriClaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnconditio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selFornitoriClaDataTable() { + this.TableName = "v_selFornitoriCla"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selFornitoriClaDataTable(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 v_selFornitoriClaDataTable(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 valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn conditioColumn { + get { + return this.columnconditio; + } + } + + [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 v_selFornitoriClaRow this[int index] { + get { + return ((v_selFornitoriClaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selFornitoriClaRowChangeEventHandler v_selFornitoriClaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selFornitoriClaRow(v_selFornitoriClaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selFornitoriClaRow Addv_selFornitoriClaRow(string value, string label, string conditio) { + v_selFornitoriClaRow rowv_selFornitoriClaRow = ((v_selFornitoriClaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label, + conditio}; + rowv_selFornitoriClaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selFornitoriClaRow); + return rowv_selFornitoriClaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selFornitoriClaRow FindByvalue(string value) { + return ((v_selFornitoriClaRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selFornitoriClaDataTable cln = ((v_selFornitoriClaDataTable)(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 v_selFornitoriClaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + this.columnconditio = base.Columns["conditio"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconditio); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 5; + this.columnlabel.AllowDBNull = false; + this.columnlabel.MaxLength = 200; + this.columnconditio.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selFornitoriClaRow Newv_selFornitoriClaRow() { + return ((v_selFornitoriClaRow)(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 v_selFornitoriClaRow(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(v_selFornitoriClaRow); + } + + [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.v_selFornitoriClaRowChanged != null)) { + this.v_selFornitoriClaRowChanged(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowChanging != null)) { + this.v_selFornitoriClaRowChanging(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowDeleted != null)) { + this.v_selFornitoriClaRowDeleted(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(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.v_selFornitoriClaRowDeleting != null)) { + this.v_selFornitoriClaRowDeleting(this, new v_selFornitoriClaRowChangeEvent(((v_selFornitoriClaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selFornitoriClaRow(v_selFornitoriClaRow 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_utilsProjEts ds = new DS_utilsProjEts(); + 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 = "v_selFornitoriClaDataTable"; + 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. /// @@ -2813,6 +3138,71 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selFornitoriClaRow : global::System.Data.DataRow { + + private v_selFornitoriClaDataTable tablev_selFornitoriCla; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selFornitoriClaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selFornitoriCla = ((v_selFornitoriClaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selFornitoriCla.valueColumn])); + } + set { + this[this.tablev_selFornitoriCla.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + return ((string)(this[this.tablev_selFornitoriCla.labelColumn])); + } + set { + this[this.tablev_selFornitoriCla.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string conditio { + get { + try { + return ((string)(this[this.tablev_selFornitoriCla.conditioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'conditio\' in table \'v_selFornitoriCla\' is DBNull.", e); + } + } + set { + this[this.tablev_selFornitoriCla.conditioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsconditioNull() { + return this.IsNull(this.tablev_selFornitoriCla.conditioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetconditioNull() { + this[this.tablev_selFornitoriCla.conditioColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -3050,6 +3440,40 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selFornitoriClaRowChangeEvent : global::System.EventArgs { + + private v_selFornitoriClaRow 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 v_selFornitoriClaRowChangeEvent(v_selFornitoriClaRow 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 v_selFornitoriClaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace ETS_Data.DS_utilsProjEtsTableAdapters { @@ -4475,6 +4899,198 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters { } } + /// + ///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 v_selFornitoriClaTableAdapter : 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 v_selFornitoriClaTableAdapter() { + 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 = "v_selFornitoriCla"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("conditio", "conditio"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label, conditio FROM dbo.v_selFornitoriCla"; + 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_VSF_getBySearchLike"; + 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("@ricerca", global::System.Data.SqlDbType.NVarChar, 200, 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_utilsProjEts.v_selFornitoriClaDataTable 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_utilsProjEts.v_selFornitoriClaDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utilsProjEts.v_selFornitoriClaDataTable dataTable = new DS_utilsProjEts.v_selFornitoriClaDataTable(); + 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_utilsProjEts.v_selFornitoriClaDataTable getBySearchLike(string ricerca) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((ricerca == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ricerca)); + } + DS_utilsProjEts.v_selFornitoriClaDataTable dataTable = new DS_utilsProjEts.v_selFornitoriClaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/ETS_Data/DS_utilsProjEts.xsd b/ETS_Data/DS_utilsProjEts.xsd index 6d3fa79..58efe9a 100644 --- a/ETS_Data/DS_utilsProjEts.xsd +++ b/ETS_Data/DS_utilsProjEts.xsd @@ -243,6 +243,36 @@ ORDER BY label + + + + + + SELECT value, label, conditio FROM dbo.v_selFornitoriCla + + + + + + + + + + + + + + + dbo.stp_VSF_getBySearchLike + + + + + + + + + @@ -251,7 +281,7 @@ ORDER BY label - + @@ -265,7 +295,7 @@ ORDER BY label - + @@ -281,7 +311,7 @@ ORDER BY label - + @@ -296,7 +326,7 @@ ORDER BY label - + @@ -316,7 +346,7 @@ ORDER BY label - + @@ -336,20 +366,47 @@ ORDER BY label - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -369,5 +426,9 @@ ORDER BY label + + + + \ No newline at end of file diff --git a/ETS_Data/DS_utilsProjEts.xss b/ETS_Data/DS_utilsProjEts.xss index 6b14a2b..4713192 100644 --- a/ETS_Data/DS_utilsProjEts.xss +++ b/ETS_Data/DS_utilsProjEts.xss @@ -6,13 +6,14 @@ --> - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs index 704ef01..dfb5ac5 100644 --- a/ETS_Data/DataProxy_ProjEts.cs +++ b/ETS_Data/DataProxy_ProjEts.cs @@ -28,6 +28,7 @@ namespace ETS_Data public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli; public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro; public DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter taSelCom; + public DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter taSelForn; /// /// init dei table adapters @@ -48,6 +49,7 @@ namespace ETS_Data taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter(); taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter(); taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter(); + taSelForn = new DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter(); } /// /// effettua setup dei connection strings da web.config delal singola applicazione @@ -69,6 +71,7 @@ namespace ETS_Data taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taSelForn.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); } #endregion @@ -85,45 +88,6 @@ namespace ETS_Data #region utility public esposte - /// - /// invia una mail al destinatario x linkare nuovi devices tramite URL - /// - /// - /// - /// - /// - public bool sendUserAuthEmail(string destinatario, string UserAuthKey, int idxDipendente) - { - bool fatto = false; - string smtpCli = ""; - string mittente = ""; - string oggetto = ""; - string userUrl = ""; - string baseUrl = ""; - string userWebUrl = ""; - string baseWebUrl = ""; - string corpo = ""; - try - { - // compongo la stringa - smtpCli = utils.obj.confReadString("_smtpCli"); - mittente = utils.obj.confReadString("_fromEmail"); - oggetto = "Link autorizzazione device per GPW"; - baseUrl = utils.obj.confReadString("baseUrl"); - baseWebUrl = utils.obj.confReadString("baseWebUrl"); - userUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseUrl); - userWebUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseWebUrl); - corpo = string.Format("Hai ricevuto questa email su richiesta tua o dell'Admin per poter procedere a registrare un (nuovo) devices con GPW:{0}
Per proseguire clicca sul link seguente(rete interna):
{0}{0}{1}{0}{0}

oppure sul link seguente (internet):
{0}{0}{2}{0}{0}

Team GPW Steamware", Environment.NewLine, userUrl, userWebUrl); -#if false - gestEmail.ge.mandaEmail(mittente, destinatario, oggetto, corpo); - fatto = true; -#endif - } - catch - { } - return fatto; - } - /// /// idxDipendente in sessione diff --git a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj index 56218cf..1d6bae8 100644 --- a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj +++ b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj @@ -310,7 +310,6 @@ - @@ -549,13 +548,6 @@ mod_autocomplete.ascx - - mod_commessa.ascx - ASPXCodeBehind - - - mod_commessa.ascx - mod_commesse.ascx ASPXCodeBehind diff --git a/PROJ-ETS/PROJ-ETS/Services/WS_Data.asmx.cs b/PROJ-ETS/PROJ-ETS/Services/WS_Data.asmx.cs index 28de04b..f5f3ab3 100644 --- a/PROJ-ETS/PROJ-ETS/Services/WS_Data.asmx.cs +++ b/PROJ-ETS/PROJ-ETS/Services/WS_Data.asmx.cs @@ -59,6 +59,23 @@ namespace PROJ_ETS.Services return suggerimenti.ToArray(); } + [WebMethod] + [ScriptMethod(ResponseFormat = ResponseFormat.Json)] + public string[] Fornitori(string keywordStartsWith) + { + // inizializzo risposta + List suggerimenti = new List(); + // elenco candidati + DS_utilsProjEts.v_selFornitoriClaDataTable tabella = DataProxy_ProjEts.DP.taSelForn.getBySearchLike(keywordStartsWith); + // aggiungo ogni riga... + foreach (DS_utilsProjEts.v_selFornitoriClaRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(string.Format("{0}#{1}", riga.label, riga.value)); + } + return suggerimenti.ToArray(); + } + [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string[] Commesse(string keywordStartsWith) diff --git a/PROJ-ETS/PROJ-ETS/Test.aspx b/PROJ-ETS/PROJ-ETS/Test.aspx index 12a4351..55819a2 100644 --- a/PROJ-ETS/PROJ-ETS/Test.aspx +++ b/PROJ-ETS/PROJ-ETS/Test.aspx @@ -10,7 +10,7 @@

<%: Title %>.

-

Modify this template to jump-start your ASP.NET application.

+

@@ -19,11 +19,107 @@ - + <%--test dialog--%>

Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.

- + + <%--test autocomplete multiplo--%> + <%-- +
+ + +
--%>
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx index 2abd6e1..5cfe055 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx @@ -1,6 +1,11 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_commForn.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_commForn" %> <%@ Register Src="mod_navDettComm.ascx" TagName="mod_navDettComm" TagPrefix="uc1" %>
+
+ + +
+
@@ -57,7 +62,7 @@
- +
@@ -168,6 +173,8 @@ + +
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.cs index 67f78f5..58a163e 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.cs @@ -140,7 +140,7 @@ namespace PROJ_ETS.WebUserControls protected void btnNewEmpty_Click(object sender, EventArgs e) { int? idxFase = utils.obj.IntSessionObj("idxFase_sel"); - DataProxy_ProjEts.DP.taDCF.Insert(idxFase, "fornitore", "referente", 0, "", "", ""); + DataProxy_ProjEts.DP.taDCF.Insert(idxFase, ddlForn.SelectedValue, "referente", 0, "", "", ""); grView.DataBind(); // sollevo evento nuovo valore... if (eh_nuovoValore != null) @@ -156,7 +156,7 @@ namespace PROJ_ETS.WebUserControls protected void btnNew_Click(object sender, EventArgs e) { int? idxFase = utils.obj.IntSessionObj("idxFase_sel"); - DataProxy_ProjEts.DP.taDCF.Insert(idxFase, "fornitore", "referente", 0, "", "", ""); + DataProxy_ProjEts.DP.taDCF.Insert(idxFase, ddlForn.SelectedValue, "referente", 0, "", "", ""); grView.DataBind(); // sollevo evento nuovo valore... if (eh_nuovoValore != null) diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.designer.cs index 7487bf6..58c78cd 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.designer.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commForn.ascx.designer.cs @@ -12,6 +12,24 @@ namespace PROJ_ETS.WebUserControls { public partial class mod_commForn { + /// + /// lblForn control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblForn; + + /// + /// ddlForn control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlForn; + /// /// grView control. /// @@ -30,6 +48,15 @@ namespace PROJ_ETS.WebUserControls { /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; + /// + /// odsForn control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsForn; + /// /// mod_navDettComm1 control. /// diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 30f6a36..06db26e 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll index f76b667..4e69cfa 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ