diff --git a/Data/BaseUserControl.cs b/Data/BaseUserControl.cs new file mode 100644 index 0000000..3c7f121 --- /dev/null +++ b/Data/BaseUserControl.cs @@ -0,0 +1,141 @@ +using SteamWare; +using System.Web; + +namespace Data +{ + /// + /// Base class for action-enabled user controls + /// It is not meant to be be used directly. + /// + public class BaseUserControl : System.Web.UI.UserControl + { + /// + /// Verifica se utente ABBIA diritti PAM + /// + public bool hasPAM + { + get + { + return devicesAuthProxy.stObj.userHasRight("PAM"); + } + } + /// + /// Verifica se utente ABBIA diritti PAZ + /// + public bool hasPAZ + { + get + { + return devicesAuthProxy.stObj.userHasRight("PAZ"); + } + } + /// + /// Verifica se utente ABBIA diritti PBO + /// + public bool hasPBO + { + get + { + return devicesAuthProxy.stObj.userHasRight("PBO"); + } + } + public bool isPAM + { + get + { + return Page.Request.Url.AbsolutePath.Contains("/PAM/"); + } + } + public bool isPAZ + { + get + { + return Page.Request.Url.AbsolutePath.Contains("/PAZ/"); + } + } + public bool isPBO + { + get + { + return Page.Request.Url.AbsolutePath.Contains("/PBO/"); + } + } + public bool isPCO + { + get + { + return Page.Request.Url.AbsolutePath.Contains("/PCO/"); + } + } + /// + /// Richiesta di cui mostrare la history + /// + public int idxRichiesta + { + get + { + int answ = 0; + int.TryParse(Request.QueryString["idxRichiesta"], out answ); + return answ; + } + } + /// + /// KEY amministratore in sessione + /// + public int idxAmm + { + get + { + return memLayer.ML.IntSessionObj("idxAmm"); + } + set + { + memLayer.ML.setSessionVal("idxAmm", value); + } + } + /// + /// KEY fornitore in sessione + /// + public int idxFornitore + { + get + { + return memLayer.ML.IntSessionObj("idxFornitore"); + } + } + /// + /// modalità edit corrente + /// + public ER_EditMode currMode + { + get + { + return (ER_EditMode)memLayer.ML.objSessionObj("ER_EditMode"); + } + set + { + memLayer.ML.setSessionVal("ER_EditMode", value); + } + } + /// + /// Pagina corrente x redirect + /// + public string currPage + { + get + { + return HttpContext.Current.Request.Url.PathAndQuery; + } + } + /// + /// titolo pagina + /// + public string titolo + { + get + { + return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", ""); + } + } + } +} diff --git a/Data/DS_app.Designer.cs b/Data/DS_app.Designer.cs index f91a533..5781c02 100644 --- a/Data/DS_app.Designer.cs +++ b/Data/DS_app.Designer.cs @@ -56,10 +56,10 @@ namespace Data { private FattureDataTable tableFatture; - private GruppiCondDataTable tableGruppiCond; - private StatoRichByFornDataTable tableStatoRichByForn; + private GruppiCondDataTable tableGruppiCond; + private global::System.Data.DataRelation relationFK_AnagCondomini_AnagAmministratori; private global::System.Data.DataRelation relationRelFornitore2Area_AnagFornitori; @@ -146,12 +146,12 @@ namespace Data { if ((ds.Tables["Fatture"] != null)) { base.Tables.Add(new FattureDataTable(ds.Tables["Fatture"])); } - if ((ds.Tables["GruppiCond"] != null)) { - base.Tables.Add(new GruppiCondDataTable(ds.Tables["GruppiCond"])); - } if ((ds.Tables["StatoRichByForn"] != null)) { base.Tables.Add(new StatoRichByFornDataTable(ds.Tables["StatoRichByForn"])); } + if ((ds.Tables["GruppiCond"] != null)) { + base.Tables.Add(new GruppiCondDataTable(ds.Tables["GruppiCond"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -334,9 +334,9 @@ namespace Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public GruppiCondDataTable GruppiCond { + public StatoRichByFornDataTable StatoRichByForn { get { - return this.tableGruppiCond; + return this.tableStatoRichByForn; } } @@ -344,9 +344,9 @@ namespace Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Browsable(false)] [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public StatoRichByFornDataTable StatoRichByForn { + public GruppiCondDataTable GruppiCond { get { - return this.tableStatoRichByForn; + return this.tableGruppiCond; } } @@ -465,12 +465,12 @@ namespace Data { if ((ds.Tables["Fatture"] != null)) { base.Tables.Add(new FattureDataTable(ds.Tables["Fatture"])); } - if ((ds.Tables["GruppiCond"] != null)) { - base.Tables.Add(new GruppiCondDataTable(ds.Tables["GruppiCond"])); - } if ((ds.Tables["StatoRichByForn"] != null)) { base.Tables.Add(new StatoRichByFornDataTable(ds.Tables["StatoRichByForn"])); } + if ((ds.Tables["GruppiCond"] != null)) { + base.Tables.Add(new GruppiCondDataTable(ds.Tables["GruppiCond"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -600,18 +600,18 @@ namespace Data { this.tableFatture.InitVars(); } } - this.tableGruppiCond = ((GruppiCondDataTable)(base.Tables["GruppiCond"])); - if ((initTable == true)) { - if ((this.tableGruppiCond != null)) { - this.tableGruppiCond.InitVars(); - } - } this.tableStatoRichByForn = ((StatoRichByFornDataTable)(base.Tables["StatoRichByForn"])); if ((initTable == true)) { if ((this.tableStatoRichByForn != null)) { this.tableStatoRichByForn.InitVars(); } } + this.tableGruppiCond = ((GruppiCondDataTable)(base.Tables["GruppiCond"])); + if ((initTable == true)) { + if ((this.tableGruppiCond != null)) { + this.tableGruppiCond.InitVars(); + } + } this.relationFK_AnagCondomini_AnagAmministratori = this.Relations["FK_AnagCondomini_AnagAmministratori"]; this.relationRelFornitore2Area_AnagFornitori = this.Relations["RelFornitore2Area_AnagFornitori"]; this.relationAnagAree_RelFornitore2Area = this.Relations["AnagAree_RelFornitore2Area"]; @@ -659,10 +659,10 @@ namespace Data { base.Tables.Add(this.tableAnagActs); this.tableFatture = new FattureDataTable(); base.Tables.Add(this.tableFatture); - this.tableGruppiCond = new GruppiCondDataTable(); - base.Tables.Add(this.tableGruppiCond); this.tableStatoRichByForn = new StatoRichByFornDataTable(); base.Tables.Add(this.tableStatoRichByForn); + this.tableGruppiCond = new GruppiCondDataTable(); + base.Tables.Add(this.tableGruppiCond); this.relationFK_AnagCondomini_AnagAmministratori = new global::System.Data.DataRelation("FK_AnagCondomini_AnagAmministratori", new global::System.Data.DataColumn[] { this.tableAnagAmministratori.idxAmmColumn}, new global::System.Data.DataColumn[] { this.tableAnagCondomini.idxAmmColumn}, false); @@ -783,13 +783,13 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - private bool ShouldSerializeGruppiCond() { + private bool ShouldSerializeStatoRichByForn() { return false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - private bool ShouldSerializeStatoRichByForn() { + private bool ShouldSerializeGruppiCond() { return false; } @@ -897,10 +897,10 @@ namespace Data { public delegate void FattureRowChangeEventHandler(object sender, FattureRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public delegate void GruppiCondRowChangeEventHandler(object sender, GruppiCondRowChangeEvent e); + public delegate void StatoRichByFornRowChangeEventHandler(object sender, StatoRichByFornRowChangeEvent e); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public delegate void StatoRichByFornRowChangeEventHandler(object sender, StatoRichByFornRowChangeEvent e); + public delegate void GruppiCondRowChangeEventHandler(object sender, GruppiCondRowChangeEvent e); /// ///Represents the strongly named DataTable class. @@ -7227,270 +7227,6 @@ namespace Data { } } - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class GruppiCondDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidxAmm; - - private global::System.Data.DataColumn columngruppo; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public GruppiCondDataTable() { - this.TableName = "GruppiCond"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - internal GruppiCondDataTable(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", "15.0.0.0")] - protected GruppiCondDataTable(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", "15.0.0.0")] - public global::System.Data.DataColumn idxAmmColumn { - get { - return this.columnidxAmm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn gruppoColumn { - get { - return this.columngruppo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")] - public GruppiCondRow this[int index] { - get { - return ((GruppiCondRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public event GruppiCondRowChangeEventHandler GruppiCondRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public event GruppiCondRowChangeEventHandler GruppiCondRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public event GruppiCondRowChangeEventHandler GruppiCondRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public event GruppiCondRowChangeEventHandler GruppiCondRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void AddGruppiCondRow(GruppiCondRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public GruppiCondRow AddGruppiCondRow(int idxAmm, string gruppo) { - GruppiCondRow rowGruppiCondRow = ((GruppiCondRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - idxAmm, - gruppo}; - rowGruppiCondRow.ItemArray = columnValuesArray; - this.Rows.Add(rowGruppiCondRow); - return rowGruppiCondRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public override global::System.Data.DataTable Clone() { - GruppiCondDataTable cln = ((GruppiCondDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new GruppiCondDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - internal void InitVars() { - this.columnidxAmm = base.Columns["idxAmm"]; - this.columngruppo = base.Columns["gruppo"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - private void InitClass() { - this.columnidxAmm = new global::System.Data.DataColumn("idxAmm", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidxAmm); - this.columngruppo = new global::System.Data.DataColumn("gruppo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngruppo); - this.columnidxAmm.AllowDBNull = false; - this.columngruppo.ReadOnly = true; - this.columngruppo.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public GruppiCondRow NewGruppiCondRow() { - return ((GruppiCondRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new GruppiCondRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(GruppiCondRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.GruppiCondRowChanged != null)) { - this.GruppiCondRowChanged(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.GruppiCondRowChanging != null)) { - this.GruppiCondRowChanging(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.GruppiCondRowDeleted != null)) { - this.GruppiCondRowDeleted(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.GruppiCondRowDeleting != null)) { - this.GruppiCondRowDeleting(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void RemoveGruppiCondRow(GruppiCondRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_app ds = new DS_app(); - 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 = "GruppiCondDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - /// ///Represents the strongly named DataTable class. /// @@ -7892,6 +7628,274 @@ namespace Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class GruppiCondDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnchiave; + + private global::System.Data.DataColumn columnvalore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public GruppiCondDataTable() { + this.TableName = "GruppiCond"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal GruppiCondDataTable(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", "15.0.0.0")] + protected GruppiCondDataTable(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", "15.0.0.0")] + public global::System.Data.DataColumn chiaveColumn { + get { + return this.columnchiave; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public global::System.Data.DataColumn valoreColumn { + get { + return this.columnvalore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.0.0.0")] + public GruppiCondRow this[int index] { + get { + return ((GruppiCondRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event GruppiCondRowChangeEventHandler GruppiCondRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event GruppiCondRowChangeEventHandler GruppiCondRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event GruppiCondRowChangeEventHandler GruppiCondRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public event GruppiCondRowChangeEventHandler GruppiCondRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void AddGruppiCondRow(GruppiCondRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public GruppiCondRow AddGruppiCondRow(string chiave, string valore) { + GruppiCondRow rowGruppiCondRow = ((GruppiCondRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + chiave, + valore}; + rowGruppiCondRow.ItemArray = columnValuesArray; + this.Rows.Add(rowGruppiCondRow); + return rowGruppiCondRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public override global::System.Data.DataTable Clone() { + GruppiCondDataTable cln = ((GruppiCondDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new GruppiCondDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal void InitVars() { + this.columnchiave = base.Columns["chiave"]; + this.columnvalore = base.Columns["valore"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitClass() { + this.columnchiave = new global::System.Data.DataColumn("chiave", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnchiave); + this.columnvalore = new global::System.Data.DataColumn("valore", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalore); + this.Constraints.Add(new global::System.Data.UniqueConstraint("GruppiCondKey1", new global::System.Data.DataColumn[] { + this.columnchiave}, false)); + this.columnchiave.ReadOnly = true; + this.columnchiave.Unique = true; + this.columnchiave.MaxLength = 50; + this.columnvalore.ReadOnly = true; + this.columnvalore.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public GruppiCondRow NewGruppiCondRow() { + return ((GruppiCondRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new GruppiCondRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(GruppiCondRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.GruppiCondRowChanged != null)) { + this.GruppiCondRowChanged(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.GruppiCondRowChanging != null)) { + this.GruppiCondRowChanging(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.GruppiCondRowDeleted != null)) { + this.GruppiCondRowDeleted(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.GruppiCondRowDeleting != null)) { + this.GruppiCondRowDeleting(this, new GruppiCondRowChangeEvent(((GruppiCondRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void RemoveGruppiCondRow(GruppiCondRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_app ds = new DS_app(); + 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 = "GruppiCondDataTable"; + 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. /// @@ -11055,60 +11059,6 @@ namespace Data { } } - /// - ///Represents strongly named DataRow class. - /// - public partial class GruppiCondRow : global::System.Data.DataRow { - - private GruppiCondDataTable tableGruppiCond; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - internal GruppiCondRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableGruppiCond = ((GruppiCondDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public int idxAmm { - get { - return ((int)(this[this.tableGruppiCond.idxAmmColumn])); - } - set { - this[this.tableGruppiCond.idxAmmColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public string gruppo { - get { - try { - return ((string)(this[this.tableGruppiCond.gruppoColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'gruppo\' nella tabella \'GruppiCond\' è DBNull.", e); - } - } - set { - this[this.tableGruppiCond.gruppoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool IsgruppoNull() { - return this.IsNull(this.tableGruppiCond.gruppoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void SetgruppoNull() { - this[this.tableGruppiCond.gruppoColumn] = global::System.Convert.DBNull; - } - } - /// ///Represents strongly named DataRow class. /// @@ -11433,6 +11383,77 @@ namespace Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class GruppiCondRow : global::System.Data.DataRow { + + private GruppiCondDataTable tableGruppiCond; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + internal GruppiCondRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableGruppiCond = ((GruppiCondDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string chiave { + get { + try { + return ((string)(this[this.tableGruppiCond.chiaveColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'chiave\' nella tabella \'GruppiCond\' è DBNull.", e); + } + } + set { + this[this.tableGruppiCond.chiaveColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public string valore { + get { + try { + return ((string)(this[this.tableGruppiCond.valoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'valore\' nella tabella \'GruppiCond\' è DBNull.", e); + } + } + set { + this[this.tableGruppiCond.valoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IschiaveNull() { + return this.IsNull(this.tableGruppiCond.chiaveColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetchiaveNull() { + this[this.tableGruppiCond.chiaveColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public bool IsvaloreNull() { + return this.IsNull(this.tableGruppiCond.valoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + public void SetvaloreNull() { + this[this.tableGruppiCond.valoreColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -11981,22 +12002,22 @@ namespace Data { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public class GruppiCondRowChangeEvent : global::System.EventArgs { + public class StatoRichByFornRowChangeEvent : global::System.EventArgs { - private GruppiCondRow eventRow; + private StatoRichByFornRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public GruppiCondRowChangeEvent(GruppiCondRow row, global::System.Data.DataRowAction action) { + public StatoRichByFornRowChangeEvent(StatoRichByFornRow 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", "15.0.0.0")] - public GruppiCondRow Row { + public StatoRichByFornRow Row { get { return this.eventRow; } @@ -12015,22 +12036,22 @@ namespace Data { ///Row event argument class /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public class StatoRichByFornRowChangeEvent : global::System.EventArgs { + public class GruppiCondRowChangeEvent : global::System.EventArgs { - private StatoRichByFornRow eventRow; + private GruppiCondRow eventRow; private global::System.Data.DataRowAction eventAction; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public StatoRichByFornRowChangeEvent(StatoRichByFornRow row, global::System.Data.DataRowAction action) { + public GruppiCondRowChangeEvent(GruppiCondRow 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", "15.0.0.0")] - public StatoRichByFornRow Row { + public GruppiCondRow Row { get { return this.eventRow; } @@ -17360,197 +17381,6 @@ SELECT idxDoc, idxRichiesta, idxFornitore, numDoc, dataFatt, intervento, Imponib } } - /// - ///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 GruppiCondTableAdapter : 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", "15.0.0.0")] - public GruppiCondTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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 = "GruppiCond"; - tableMapping.ColumnMappings.Add("idxAmm", "idxAmm"); - tableMapping.ColumnMappings.Add("gruppo", "gruppo"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::Data.Properties.Settings.Default.B2BCondConnectionString; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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 *\r\nFROM v_GruppiByAmm"; - 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_GC_getByAmm"; - 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("@idxAmm", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_app.GruppiCondDataTable 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", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DS_app.GruppiCondDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DS_app.GruppiCondDataTable dataTable = new DS_app.GruppiCondDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_app.GruppiCondDataTable getByAmm(global::System.Nullable idxAmm) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((idxAmm.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxAmm.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - DS_app.GruppiCondDataTable dataTable = new DS_app.GruppiCondDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - } - /// ///Represents the connection and commands used to retrieve and save data. /// @@ -17807,6 +17637,188 @@ SELECT idxDoc, idxRichiesta, idxFornitore, numDoc, dataFatt, intervento, Imponib } } + /// + ///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 GruppiCondTableAdapter : 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", "15.0.0.0")] + public GruppiCondTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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", "15.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", "15.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", "15.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", "15.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", "15.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 = "GruppiCond"; + tableMapping.ColumnMappings.Add("chiave", "chiave"); + tableMapping.ColumnMappings.Add("valore", "valore"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::Data.Properties.Settings.Default.B2BCondConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_GC_getByAmm"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAmm", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.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_app.GruppiCondDataTable dataTable, global::System.Nullable idxAmm) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxAmm.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxAmm.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + 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", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_app.GruppiCondDataTable GetData(global::System.Nullable idxAmm) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxAmm.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxAmm.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_app.GruppiCondDataTable dataTable = new DS_app.GruppiCondDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/Data/DS_app.xsd b/Data/DS_app.xsd index 2141675..67104eb 100644 --- a/Data/DS_app.xsd +++ b/Data/DS_app.xsd @@ -1066,36 +1066,6 @@ SELECT idxDoc, idxRichiesta, idxFornitore, numDoc, dataFatt, intervento, Imponib - - - - - - SELECT * -FROM v_GruppiByAmm - - - - - - - - - - - - - - dbo.stp_GC_getByAmm - - - - - - - - - @@ -1130,6 +1100,26 @@ FROM v_GruppiByAmm + + + + + + dbo.stp_GC_getByAmm + + + + + + + + + + + + + + @@ -1815,20 +1805,6 @@ FROM v_GruppiByAmm - - - - - - - - - - - - - - @@ -1852,6 +1828,26 @@ FROM v_GruppiByAmm + + + + + + + + + + + + + + + + + + + + @@ -1913,6 +1909,10 @@ FROM v_GruppiByAmm + + + + diff --git a/Data/DS_app.xss b/Data/DS_app.xss index 082d88f..932b877 100644 --- a/Data/DS_app.xss +++ b/Data/DS_app.xss @@ -4,26 +4,26 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + - + - + - + - - - + + + diff --git a/Data/Data.csproj b/Data/Data.csproj index c05b5be..d7d07bf 100644 --- a/Data/Data.csproj +++ b/Data/Data.csproj @@ -45,6 +45,9 @@ ASPXCodeBehind + + ASPXCodeBehind + DS_app.xsd diff --git a/Jenkinsfile b/Jenkinsfile index 8cc4be4..8969124 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=202']) { + withEnv(['NEXT_BUILD_NUMBER=203']) { // env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'SOSCONDOMINI' diff --git a/PUB/PAM/AnagCond2Forn.aspx b/PUB/PAM/AnagCond2Forn.aspx index c535846..351b47c 100644 --- a/PUB/PAM/AnagCond2Forn.aspx +++ b/PUB/PAM/AnagCond2Forn.aspx @@ -1,5 +1,19 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/SitePAM.master" AutoEventWireup="true" CodeBehind="AnagCond2Forn.aspx.cs" Inherits="PUB.PAM.AnagCond2Forn" %> + +<%@ Register Src="~/WebUserContols/mod_anagCond.ascx" TagPrefix="uc1" TagName="mod_anagCond" %> +<%@ Register Src="~/WebUserContols/mod_F2C.ascx" TagPrefix="uc1" TagName="mod_F2C" %> + +
+
+
+ +
+
+ +
+
+
diff --git a/PUB/PAM/AnagCond2Forn.aspx.cs b/PUB/PAM/AnagCond2Forn.aspx.cs index aef946c..e1f2c2e 100644 --- a/PUB/PAM/AnagCond2Forn.aspx.cs +++ b/PUB/PAM/AnagCond2Forn.aspx.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; namespace PUB.PAM { @@ -11,7 +6,38 @@ namespace PUB.PAM { protected void Page_Load(object sender, EventArgs e) { + mod_anagCond.eh_selected += Mod_anagCond_eh_selected; + mod_anagCond.eh_reset += Mod_anagCond_eh_reset; + } + private void Mod_anagCond_eh_reset(object sender, EventArgs e) + { + togglDetail(false); + } + + private void Mod_anagCond_eh_selected(object sender, EventArgs e) + { + mod_F2C.idxCond = mod_anagCond.idxCond; + togglDetail(true); + } + + + private void togglDetail(bool showDetail) + { + // cambio classe div + visibilità... + divSide.Visible = showDetail; + divMain.Attributes.Remove("class"); + divSide.Attributes.Remove("class"); + if (showDetail) + { + divMain.Attributes.Add("class", "col-8"); + divSide.Attributes.Add("class", "col-4"); + } + else + { + divMain.Attributes.Add("class", "col-12"); + divSide.Attributes.Add("class", "col-1"); + } } } } \ No newline at end of file diff --git a/PUB/PAM/AnagCond2Forn.aspx.designer.cs b/PUB/PAM/AnagCond2Forn.aspx.designer.cs index 6bf3e00..76060eb 100644 --- a/PUB/PAM/AnagCond2Forn.aspx.designer.cs +++ b/PUB/PAM/AnagCond2Forn.aspx.designer.cs @@ -1,17 +1,51 @@ //------------------------------------------------------------------------------ -// +// // Codice generato da uno strumento. // // Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// il codice viene rigenerato. +// //------------------------------------------------------------------------------ -namespace PUB.PAM -{ - - - public partial class AnagCond2Forn - { - } +namespace PUB.PAM { + + + public partial class AnagCond2Forn { + + /// + /// Controllo divMain. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain; + + /// + /// Controllo mod_anagCond. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::PUB.WebUserContols.mod_anagCond mod_anagCond; + + /// + /// Controllo divSide. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSide; + + /// + /// Controllo mod_F2C. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::PUB.WebUserContols.mod_F2C mod_F2C; + } } diff --git a/PUB/PBO/AnagCond2Forn.aspx b/PUB/PBO/AnagCond2Forn.aspx index 587b4c0..443c042 100644 --- a/PUB/PBO/AnagCond2Forn.aspx +++ b/PUB/PBO/AnagCond2Forn.aspx @@ -2,8 +2,8 @@ <%@ Register Src="~/WebUserContols/mod_anagCond.ascx" TagPrefix="uc1" TagName="mod_anagCond" %> <%@ Register Src="~/WebUserContols/mod_F2C.ascx" TagPrefix="uc1" TagName="mod_F2C" %> - - + +
diff --git a/PUB/SitePBO.master.cs b/PUB/SitePBO.master.cs index b4c21e4..cb71519 100644 --- a/PUB/SitePBO.master.cs +++ b/PUB/SitePBO.master.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; +using Data; +using SteamWare; +using System; using System.Web.UI; -using System.Web.UI.WebControls; namespace PUB { @@ -11,7 +9,17 @@ namespace PUB { protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + memLayer.ML.setSessionVal("ER_EditMode", ER_EditMode.mPBO); + bool userAuth = devicesAuthProxy.stObj.userHasRight("PBO"); + // se ha permesso --> salvo KEY di riferimento... + if (userAuth) + { + memLayer.ML.setSessionVal("idxAmm", "0"); + memLayer.ML.setSessionVal("idxFornitore", "0"); + } + } } } } \ No newline at end of file diff --git a/PUB/WebUserContols/mod_ER_selCondominio.ascx b/PUB/WebUserContols/mod_ER_selCondominio.ascx index 5fe2b13..10fd2a9 100644 --- a/PUB/WebUserContols/mod_ER_selCondominio.ascx +++ b/PUB/WebUserContols/mod_ER_selCondominio.ascx @@ -4,18 +4,16 @@
- <%----%> -
- - - -
+
+ + <%----%> + +
- + - <%----%> @@ -23,7 +21,7 @@ - + diff --git a/PUB/WebUserContols/mod_ER_selCondominio.ascx.cs b/PUB/WebUserContols/mod_ER_selCondominio.ascx.cs index 2133d44..e438474 100644 --- a/PUB/WebUserContols/mod_ER_selCondominio.ascx.cs +++ b/PUB/WebUserContols/mod_ER_selCondominio.ascx.cs @@ -1,11 +1,10 @@ using Data; using SteamWare; using System; -using System.Data; namespace PUB.WebUserContols { - public partial class mod_ER_selCondominio : System.Web.UI.UserControl + public partial class mod_ER_selCondominio : BaseUserControl { /// /// indicato (nuovo) numero righe x pagina @@ -22,7 +21,9 @@ namespace PUB.WebUserContols fixSelCondomini(); } } - + /// + /// Imposta metodo sel condomini... + /// private void preselGroup() { switch (currMode) @@ -30,9 +31,18 @@ namespace PUB.WebUserContols case ER_EditMode.mPAM: ddlGruppo.Visible = true; ddlGruppo.SelectedValue = currGroup; + ddlCondominio.DataSourceID = "odsCondominiByAmm"; + break; + case ER_EditMode.mPBO: + ddlGruppo.Visible = true; + ddlGruppo.SelectedValue = currGroup; + ddlCondominio.DataSourceID = "odsCondominiByAmm"; + break; + case ER_EditMode.mPAZ: + ddlGruppo.Visible = false; + ddlCondominio.DataSourceID = "odsCondominiByForn"; break; case ER_EditMode.mND: - case ER_EditMode.mPAZ: default: // resetto currGroup = ""; @@ -40,20 +50,6 @@ namespace PUB.WebUserContols } } - /// - /// modalità edit corrente - /// - public ER_EditMode currMode - { - get - { - return (ER_EditMode)memLayer.ML.objSessionObj("ER_EditMode"); - } - set - { - memLayer.ML.setSessionVal("ER_EditMode", value); - } - } /// /// gruppo selezionato... /// @@ -69,24 +65,13 @@ namespace PUB.WebUserContols } } /// - /// Imposta metodo sel condomini... + /// determino se permettere cambio condomini... /// private void fixSelCondomini() - { - switch (currMode) + { + if (currMode == ER_EditMode.mPAM || isPAM) { - case ER_EditMode.mND: - break; - case ER_EditMode.mPAM: - ddlCondominio.DataSourceID = "odsCondominiByAmm"; - ddlGruppo.Visible = true; - break; - case ER_EditMode.mPAZ: - ddlCondominio.DataSourceID = "odsCondominiByForn"; - ddlGruppo.Visible = false; - break; - default: - break; + ddlCondominio.Enabled = !(titolo == "AnagCond2Forn" || titolo == "Condomini"); } } public void saveSelections() @@ -145,5 +130,6 @@ namespace PUB.WebUserContols currGroup = ddlGruppo.SelectedValue; saveSelections(); } + } } \ No newline at end of file diff --git a/PUB/WebUserContols/mod_anagCond.ascx b/PUB/WebUserContols/mod_anagCond.ascx index e2e20bc..45f78cb 100644 --- a/PUB/WebUserContols/mod_anagCond.ascx +++ b/PUB/WebUserContols/mod_anagCond.ascx @@ -1,5 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagCond.ascx.cs" Inherits="PUB.WebUserContols.mod_anagCond" %> + <%@ Register Src="~/WebUserContols/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %> +<%@ Register Src="~/WebUserContols/mod_ER_selCondominio.ascx" TagPrefix="uc1" TagName="mod_ER_selCondominio" %>
@@ -14,6 +16,10 @@
+
+ + +
@@ -21,17 +27,6 @@ - <%-- - - - - - - - - - - --%> @@ -61,18 +56,18 @@ - + - + - - + + - + <%--

su click mostro i dati di statistiche: es num condomini, num interventi periodo, fatturato last 12 mesi generato, ...

--%> @@ -80,7 +75,7 @@