diff --git a/GMW/GMW/ElencoListePrelievo.aspx b/GMW/GMW/ElencoListePrelievo.aspx index f3057a7c..287a45cd 100644 --- a/GMW/GMW/ElencoListePrelievo.aspx +++ b/GMW/GMW/ElencoListePrelievo.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master" AutoEventWireup="true" CodeBehind="ElencoListePrelievo.aspx.cs" Inherits="GMW.ElencoListePrelievo" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" CodeBehind="ElencoListePrelievo.aspx.cs" Inherits="GMW.ElencoListePrelievo" %> <%@ Register src="WebUserControls/mod_elencoListePrelievo.ascx" tagname="mod_elencoListePrelievo" tagprefix="uc1" %> diff --git a/GMW/GMW/GMW.csproj b/GMW/GMW/GMW.csproj index 6af5ae98..5977467c 100644 --- a/GMW/GMW/GMW.csproj +++ b/GMW/GMW/GMW.csproj @@ -810,6 +810,16 @@ + + + + + + + + + + diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx index 83d4db0f..3ec80a91 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx @@ -4,18 +4,21 @@ <%@ Register Src="mod_viewRigheListaPrelievo.ascx" TagName="mod_viewRigheListaPrelievo" TagPrefix="uc1" %> <%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %> - +<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %> +
- - - - diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs index 15738bae..ebf9d8e9 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.cs @@ -303,11 +303,29 @@ namespace GMW.WebUserControls { mod_viewRigheListaPrelievo1.Visible = false; mod_periodoAnalisi1.setPeriodoFree(); + mod_filtroStato.ods = odsFiltroStati; } // registro evento update mod_viewRigheListaPrelievo1.eh_nuovoValore += new EventHandler(mod_viewRigheListaPrelievo1_eh_nuovoValore); + mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate); } - + /// + /// aggiorno x update selettore date + /// + /// + /// + void mod_periodoAnalisi1_eh_doUpdate(object sender, EventArgs e) + { + // aggiorno controllo corrente! + updateOds(); + // ridisegno controllo child! + aggiornaElencoRighe(); + } + /// + /// aggiorno x update valori righe prelievo + /// + /// + /// void mod_viewRigheListaPrelievo1_eh_nuovoValore(object sender, EventArgs e) { // aggiorno controllo corrente! @@ -524,7 +542,48 @@ namespace GMW.WebUserControls // faccio update! break; } - + } + /// + /// chiamato post modifica valore check/selezione nel selettore filtro impianto + /// + /// + /// + public void eh_selectedStato(object sender, EventArgs e) + { + ods.FilterParameters.Clear(); + ods.FilterExpression = "(CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%')"; + // parametro ricerca attuale + SessionParameter parametroFiltro = new SessionParameter(); + parametroFiltro.SessionField = "valoreCercato"; + parametroFiltro.Name = "ricerca"; + parametroFiltro.DefaultValue = "*"; + ods.FilterParameters.Add(parametroFiltro); + if (mod_filtroStato.valore != "*") + { + ods.FilterExpression += " AND CodStatoLista = {1}"; + ControlParameter parametroLista= new ControlParameter(); + parametroLista.ControlID = "mod_filtroStato"; + parametroLista.PropertyName = "valore"; + parametroLista.Name = "CodStato"; + parametroLista.DefaultValue = "0"; + ods.FilterParameters.Add(parametroLista); + } +#if false + // chiamo procedura che aggiorna ods principale + ods.DataBind(); + updateOds(); + // ridisegno controllo child! + aggiornaElencoRighe(); +#endif + } + /// + /// restituisce URL immagine del codice da mostrare + /// + /// + /// + public string pathImgStato(object codStato) + { + return string.Format("~/images/circle_s_{0}.png", codStato); } #endregion diff --git a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs index c6080c76..39e7bed4 100644 --- a/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs +++ b/GMW/GMW/WebUserControls/mod_elencoListePrelievo.ascx.designer.cs @@ -22,6 +22,24 @@ namespace GMW.WebUserControls { /// protected global::mod_periodoAnalisi mod_periodoAnalisi1; + /// + /// mod_filtroStato control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::mod_filtro mod_filtroStato; + + /// + /// odsFiltroStati control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroStati; + /// /// grView control. /// diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll index 5affb8a0..46e9f8d5 100644 Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll index 5b34f7c8..d0d00fa3 100644 Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ diff --git a/GMW/GMW/images/circle_l_0.png b/GMW/GMW/images/circle_l_0.png new file mode 100644 index 00000000..1efa4ab8 Binary files /dev/null and b/GMW/GMW/images/circle_l_0.png differ diff --git a/GMW/GMW/images/circle_l_1.png b/GMW/GMW/images/circle_l_1.png new file mode 100644 index 00000000..75db3f6e Binary files /dev/null and b/GMW/GMW/images/circle_l_1.png differ diff --git a/GMW/GMW/images/circle_l_2.png b/GMW/GMW/images/circle_l_2.png new file mode 100644 index 00000000..e4de33ea Binary files /dev/null and b/GMW/GMW/images/circle_l_2.png differ diff --git a/GMW/GMW/images/circle_l_3.png b/GMW/GMW/images/circle_l_3.png new file mode 100644 index 00000000..f0f1b52a Binary files /dev/null and b/GMW/GMW/images/circle_l_3.png differ diff --git a/GMW/GMW/images/circle_l_4.png b/GMW/GMW/images/circle_l_4.png new file mode 100644 index 00000000..d7a35cb0 Binary files /dev/null and b/GMW/GMW/images/circle_l_4.png differ diff --git a/GMW/GMW/images/circle_s_0.png b/GMW/GMW/images/circle_s_0.png new file mode 100644 index 00000000..a6c029a0 Binary files /dev/null and b/GMW/GMW/images/circle_s_0.png differ diff --git a/GMW/GMW/images/circle_s_1.png b/GMW/GMW/images/circle_s_1.png new file mode 100644 index 00000000..27ad1638 Binary files /dev/null and b/GMW/GMW/images/circle_s_1.png differ diff --git a/GMW/GMW/images/circle_s_2.png b/GMW/GMW/images/circle_s_2.png new file mode 100644 index 00000000..f19c8433 Binary files /dev/null and b/GMW/GMW/images/circle_s_2.png differ diff --git a/GMW/GMW/images/circle_s_3.png b/GMW/GMW/images/circle_s_3.png new file mode 100644 index 00000000..70ea5a69 Binary files /dev/null and b/GMW/GMW/images/circle_s_3.png differ diff --git a/GMW/GMW/images/circle_s_4.png b/GMW/GMW/images/circle_s_4.png new file mode 100644 index 00000000..bb56b4b9 Binary files /dev/null and b/GMW/GMW/images/circle_s_4.png differ diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll index 5affb8a0..46e9f8d5 100644 Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache index 519c351b..6ce8a1af 100644 Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/GMW/GMW_data/DS_Utility.Designer.cs b/GMW/GMW_data/DS_Utility.Designer.cs index 39ff70b2..f78d88c7 100644 --- a/GMW/GMW_data/DS_Utility.Designer.cs +++ b/GMW/GMW_data/DS_Utility.Designer.cs @@ -37,6 +37,8 @@ namespace GMW_data { private v_selPeriodiTradDataTable tablev_selPeriodiTrad; + private v_selStatiListeDataTable tablev_selStatiListe; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -81,6 +83,9 @@ namespace GMW_data { if ((ds.Tables["v_selPeriodiTrad"] != null)) { base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"])); } + if ((ds.Tables["v_selStatiListe"] != null)) { + base.Tables.Add(new v_selStatiListeDataTable(ds.Tables["v_selStatiListe"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -153,6 +158,15 @@ namespace GMW_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selStatiListeDataTable v_selStatiListe { + get { + return this.tablev_selStatiListe; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.BrowsableAttribute(true)] [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] @@ -230,6 +244,9 @@ namespace GMW_data { if ((ds.Tables["v_selPeriodiTrad"] != null)) { base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"])); } + if ((ds.Tables["v_selStatiListe"] != null)) { + base.Tables.Add(new v_selStatiListeDataTable(ds.Tables["v_selStatiListe"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -296,6 +313,12 @@ namespace GMW_data { this.tablev_selPeriodiTrad.InitVars(); } } + this.tablev_selStatiListe = ((v_selStatiListeDataTable)(base.Tables["v_selStatiListe"])); + if ((initTable == true)) { + if ((this.tablev_selStatiListe != null)) { + this.tablev_selStatiListe.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -317,6 +340,8 @@ namespace GMW_data { base.Tables.Add(this.tableSTP); this.tablev_selPeriodiTrad = new v_selPeriodiTradDataTable(); base.Tables.Add(this.tablev_selPeriodiTrad); + this.tablev_selStatiListe = new v_selStatiListeDataTable(); + base.Tables.Add(this.tablev_selStatiListe); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -349,6 +374,11 @@ namespace GMW_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializev_selStatiListe() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { @@ -414,6 +444,8 @@ namespace GMW_data { public delegate void v_selPeriodiTradRowChangeEventHandler(object sender, v_selPeriodiTradRowChangeEvent e); + public delegate void v_selStatiListeRowChangeEventHandler(object sender, v_selStatiListeRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2035,6 +2067,253 @@ namespace GMW_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selStatiListeDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeDataTable() { + this.TableName = "v_selStatiListe"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selStatiListeDataTable(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()] + protected v_selStatiListeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRow this[int index] { + get { + return ((v_selStatiListeRow)(this.Rows[index])); + } + } + + public event v_selStatiListeRowChangeEventHandler v_selStatiListeRowChanging; + + public event v_selStatiListeRowChangeEventHandler v_selStatiListeRowChanged; + + public event v_selStatiListeRowChangeEventHandler v_selStatiListeRowDeleting; + + public event v_selStatiListeRowChangeEventHandler v_selStatiListeRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Addv_selStatiListeRow(v_selStatiListeRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRow Addv_selStatiListeRow(int value, string label) { + v_selStatiListeRow rowv_selStatiListeRow = ((v_selStatiListeRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selStatiListeRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selStatiListeRow); + return rowv_selStatiListeRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRow FindByvalue(int value) { + return ((v_selStatiListeRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { + v_selStatiListeDataTable cln = ((v_selStatiListeDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selStatiListeDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(int), 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.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.columnlabel.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRow Newv_selStatiListeRow() { + return ((v_selStatiListeRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selStatiListeRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { + return typeof(v_selStatiListeRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selStatiListeRowChanged != null)) { + this.v_selStatiListeRowChanged(this, new v_selStatiListeRowChangeEvent(((v_selStatiListeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selStatiListeRowChanging != null)) { + this.v_selStatiListeRowChanging(this, new v_selStatiListeRowChangeEvent(((v_selStatiListeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selStatiListeRowDeleted != null)) { + this.v_selStatiListeRowDeleted(this, new v_selStatiListeRowChangeEvent(((v_selStatiListeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selStatiListeRowDeleting != null)) { + this.v_selStatiListeRowDeleting(this, new v_selStatiListeRowChangeEvent(((v_selStatiListeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void Removev_selStatiListeRow(v_selStatiListeRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_Utility ds = new DS_Utility(); + 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_selStatiListeDataTable"; + 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. /// @@ -2470,6 +2749,56 @@ namespace GMW_data { } } + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class v_selStatiListeRow : global::System.Data.DataRow { + + private v_selStatiListeDataTable tablev_selStatiListe; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal v_selStatiListeRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selStatiListe = ((v_selStatiListeDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public int value { + get { + return ((int)(this[this.tablev_selStatiListe.valueColumn])); + } + set { + this[this.tablev_selStatiListe.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public string label { + get { + try { + return ((string)(this[this.tablev_selStatiListe.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selStatiListe\' is DBNull.", e); + } + } + set { + this[this.tablev_selStatiListe.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool IslabelNull() { + return this.IsNull(this.tablev_selStatiListe.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void SetlabelNull() { + this[this.tablev_selStatiListe.labelColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -2655,6 +2984,37 @@ namespace GMW_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class v_selStatiListeRowChangeEvent : global::System.EventArgs { + + private v_selStatiListeRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRowChangeEvent(v_selStatiListeRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public v_selStatiListeRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GMW_data.DS_UtilityTableAdapters { @@ -4075,6 +4435,164 @@ namespace GMW_data.DS_UtilityTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selStatiListeTableAdapter : 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()] + public v_selStatiListeTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public 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()] + 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()] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + 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_selStatiListe"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selStatiListe"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selStatiListeDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selStatiListeDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selStatiListeDataTable dataTable = new DS_Utility.v_selStatiListeDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/GMW/GMW_data/DS_Utility.xsd b/GMW/GMW_data/DS_Utility.xsd index 0a855b72..e6c2e96f 100644 --- a/GMW/GMW_data/DS_Utility.xsd +++ b/GMW/GMW_data/DS_Utility.xsd @@ -268,6 +268,23 @@ WHERE (value = @value) + + + + + + SELECT value, label FROM dbo.v_selStatiListe + + + + + + + + + + + @@ -279,21 +296,21 @@ WHERE (value = @value) - + - + - + @@ -306,22 +323,22 @@ WHERE (value = @value) - - + + - + - + @@ -334,35 +351,15 @@ WHERE (value = @value) - - + + - - - - - - - - - - - - - - - - - - - - - + @@ -376,21 +373,41 @@ WHERE (value = @value) - + + + + + + + - + + + + + + + + + + + + + + + - + @@ -403,29 +420,29 @@ WHERE (value = @value) - - + + - + - + - + - + @@ -435,6 +452,20 @@ WHERE (value = @value) + + + + + + + + + + + + + + @@ -463,5 +494,9 @@ WHERE (value = @value) + + + + \ No newline at end of file diff --git a/GMW/GMW_data/DS_Utility.xss b/GMW/GMW_data/DS_Utility.xss index aaea9431..64fdcf5f 100644 --- a/GMW/GMW_data/DS_Utility.xss +++ b/GMW/GMW_data/DS_Utility.xss @@ -6,12 +6,13 @@ --> - - - - - - + + + + + + + \ No newline at end of file diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll index 5b34f7c8..d0d00fa3 100644 Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll index 5b34f7c8..d0d00fa3 100644 Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll index fc616df4..490e6e7b 100644 Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll differ
-
+
+
+ + +
-
+ @@ -47,7 +50,7 @@ - + @@ -66,7 +69,8 @@ - + + <%----%> @@ -107,7 +111,7 @@ +