diff --git a/ETS_Data/DS_WebScip.xsd b/ETS_Data/DS_WebScip.xsd index d8cbff1..6b6e106 100644 --- a/ETS_Data/DS_WebScip.xsd +++ b/ETS_Data/DS_WebScip.xsd @@ -452,6 +452,17 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A + + + + dbo.stp_tbDocs_LettCons_byCommessa + + + + + + + @@ -933,7 +944,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1005,7 +1016,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1173,7 +1184,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1201,7 +1212,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1215,7 +1226,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1223,7 +1234,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1296,7 +1307,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - + @@ -1340,8 +1351,8 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path, - - + + \ No newline at end of file diff --git a/ETS_Data/DS_utilsProjEts.Designer.cs b/ETS_Data/DS_utilsProjEts.Designer.cs index b210590..62eb4a2 100644 --- a/ETS_Data/DS_utilsProjEts.Designer.cs +++ b/ETS_Data/DS_utilsProjEts.Designer.cs @@ -40,6 +40,8 @@ namespace ETS_Data { private v_selFornitoriClaDataTable tablev_selFornitoriCla; + private v_FattureETSDataTable tablev_FattureETS; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -92,6 +94,9 @@ namespace ETS_Data { if ((ds.Tables["v_selFornitoriCla"] != null)) { base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"])); } + if ((ds.Tables["v_FattureETS"] != null)) { + base.Tables.Add(new v_FattureETSDataTable(ds.Tables["v_FattureETS"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -190,6 +195,16 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_FattureETSDataTable v_FattureETS { + get { + return this.tablev_FattureETS; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -281,6 +296,9 @@ namespace ETS_Data { if ((ds.Tables["v_selFornitoriCla"] != null)) { base.Tables.Add(new v_selFornitoriClaDataTable(ds.Tables["v_selFornitoriCla"])); } + if ((ds.Tables["v_FattureETS"] != null)) { + base.Tables.Add(new v_FattureETSDataTable(ds.Tables["v_FattureETS"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -362,6 +380,12 @@ namespace ETS_Data { this.tablev_selFornitoriCla.InitVars(); } } + this.tablev_FattureETS = ((v_FattureETSDataTable)(base.Tables["v_FattureETS"])); + if ((initTable == true)) { + if ((this.tablev_FattureETS != null)) { + this.tablev_FattureETS.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -388,6 +412,8 @@ namespace ETS_Data { base.Tables.Add(this.tablev_selYear); this.tablev_selFornitoriCla = new v_selFornitoriClaDataTable(); base.Tables.Add(this.tablev_selFornitoriCla); + this.tablev_FattureETS = new v_FattureETSDataTable(); + base.Tables.Add(this.tablev_FattureETS); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -438,6 +464,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_FattureETS() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -517,6 +549,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_selFornitoriClaRowChangeEventHandler(object sender, v_selFornitoriClaRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_FattureETSRowChangeEventHandler(object sender, v_FattureETSRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -2715,6 +2750,372 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_FattureETSDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnNumeroCommessa; + + private global::System.Data.DataColumn columnAnnoCommessa; + + private global::System.Data.DataColumn columnCommessa; + + private global::System.Data.DataColumn columnEmitt; + + private global::System.Data.DataColumn columnDest; + + private global::System.Data.DataColumn columnTipologia; + + private global::System.Data.DataColumn columnNrFatt; + + private global::System.Data.DataColumn columnDataFatt; + + private global::System.Data.DataColumn columnImporto; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSDataTable() { + this.TableName = "v_FattureETS"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_FattureETSDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_FattureETSDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumeroCommessaColumn { + get { + return this.columnNumeroCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AnnoCommessaColumn { + get { + return this.columnAnnoCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CommessaColumn { + get { + return this.columnCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn EmittColumn { + get { + return this.columnEmitt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DestColumn { + get { + return this.columnDest; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TipologiaColumn { + get { + return this.columnTipologia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NrFattColumn { + get { + return this.columnNrFatt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataFattColumn { + get { + return this.columnDataFatt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ImportoColumn { + get { + return this.columnImporto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSRow this[int index] { + get { + return ((v_FattureETSRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_FattureETSRowChangeEventHandler v_FattureETSRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_FattureETSRowChangeEventHandler v_FattureETSRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_FattureETSRowChangeEventHandler v_FattureETSRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_FattureETSRowChangeEventHandler v_FattureETSRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_FattureETSRow(v_FattureETSRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSRow Addv_FattureETSRow(int NumeroCommessa, int AnnoCommessa, string Commessa, string Emitt, string Dest, string Tipologia, string NrFatt, System.DateTime DataFatt, decimal Importo) { + v_FattureETSRow rowv_FattureETSRow = ((v_FattureETSRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + NumeroCommessa, + AnnoCommessa, + Commessa, + Emitt, + Dest, + Tipologia, + NrFatt, + DataFatt, + Importo}; + rowv_FattureETSRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_FattureETSRow); + return rowv_FattureETSRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_FattureETSDataTable cln = ((v_FattureETSDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_FattureETSDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnNumeroCommessa = base.Columns["NumeroCommessa"]; + this.columnAnnoCommessa = base.Columns["AnnoCommessa"]; + this.columnCommessa = base.Columns["Commessa"]; + this.columnEmitt = base.Columns["Emitt"]; + this.columnDest = base.Columns["Dest"]; + this.columnTipologia = base.Columns["Tipologia"]; + this.columnNrFatt = base.Columns["NrFatt"]; + this.columnDataFatt = base.Columns["DataFatt"]; + this.columnImporto = base.Columns["Importo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnNumeroCommessa = new global::System.Data.DataColumn("NumeroCommessa", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumeroCommessa); + this.columnAnnoCommessa = new global::System.Data.DataColumn("AnnoCommessa", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAnnoCommessa); + this.columnCommessa = new global::System.Data.DataColumn("Commessa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCommessa); + this.columnEmitt = new global::System.Data.DataColumn("Emitt", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEmitt); + this.columnDest = new global::System.Data.DataColumn("Dest", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDest); + this.columnTipologia = new global::System.Data.DataColumn("Tipologia", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTipologia); + this.columnNrFatt = new global::System.Data.DataColumn("NrFatt", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNrFatt); + this.columnDataFatt = new global::System.Data.DataColumn("DataFatt", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFatt); + this.columnImporto = new global::System.Data.DataColumn("Importo", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImporto); + this.columnCommessa.MaxLength = 9; + this.columnEmitt.AllowDBNull = false; + this.columnEmitt.MaxLength = 20; + this.columnDest.AllowDBNull = false; + this.columnDest.MaxLength = 200; + this.columnTipologia.MaxLength = 20; + this.columnNrFatt.MaxLength = 15; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSRow Newv_FattureETSRow() { + return ((v_FattureETSRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_FattureETSRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_FattureETSRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_FattureETSRowChanged != null)) { + this.v_FattureETSRowChanged(this, new v_FattureETSRowChangeEvent(((v_FattureETSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_FattureETSRowChanging != null)) { + this.v_FattureETSRowChanging(this, new v_FattureETSRowChangeEvent(((v_FattureETSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_FattureETSRowDeleted != null)) { + this.v_FattureETSRowDeleted(this, new v_FattureETSRowChangeEvent(((v_FattureETSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_FattureETSRowDeleting != null)) { + this.v_FattureETSRowDeleting(this, new v_FattureETSRowChangeEvent(((v_FattureETSRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_FattureETSRow(v_FattureETSRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_utilsProjEts ds = new DS_utilsProjEts(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_FattureETSDataTable"; + 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. /// @@ -3203,6 +3604,239 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_FattureETSRow : global::System.Data.DataRow { + + private v_FattureETSDataTable tablev_FattureETS; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_FattureETSRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_FattureETS = ((v_FattureETSDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumeroCommessa { + get { + try { + return ((int)(this[this.tablev_FattureETS.NumeroCommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumeroCommessa\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.NumeroCommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int AnnoCommessa { + get { + try { + return ((int)(this[this.tablev_FattureETS.AnnoCommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'AnnoCommessa\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.AnnoCommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Commessa { + get { + try { + return ((string)(this[this.tablev_FattureETS.CommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Commessa\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.CommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Emitt { + get { + return ((string)(this[this.tablev_FattureETS.EmittColumn])); + } + set { + this[this.tablev_FattureETS.EmittColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Dest { + get { + return ((string)(this[this.tablev_FattureETS.DestColumn])); + } + set { + this[this.tablev_FattureETS.DestColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Tipologia { + get { + try { + return ((string)(this[this.tablev_FattureETS.TipologiaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tipologia\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.TipologiaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NrFatt { + get { + try { + return ((string)(this[this.tablev_FattureETS.NrFattColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NrFatt\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.NrFattColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataFatt { + get { + try { + return ((global::System.DateTime)(this[this.tablev_FattureETS.DataFattColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataFatt\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.DataFattColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal Importo { + get { + try { + return ((decimal)(this[this.tablev_FattureETS.ImportoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Importo\' in table \'v_FattureETS\' is DBNull.", e); + } + } + set { + this[this.tablev_FattureETS.ImportoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumeroCommessaNull() { + return this.IsNull(this.tablev_FattureETS.NumeroCommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumeroCommessaNull() { + this[this.tablev_FattureETS.NumeroCommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsAnnoCommessaNull() { + return this.IsNull(this.tablev_FattureETS.AnnoCommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetAnnoCommessaNull() { + this[this.tablev_FattureETS.AnnoCommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCommessaNull() { + return this.IsNull(this.tablev_FattureETS.CommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCommessaNull() { + this[this.tablev_FattureETS.CommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTipologiaNull() { + return this.IsNull(this.tablev_FattureETS.TipologiaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTipologiaNull() { + this[this.tablev_FattureETS.TipologiaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNrFattNull() { + return this.IsNull(this.tablev_FattureETS.NrFattColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNrFattNull() { + this[this.tablev_FattureETS.NrFattColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataFattNull() { + return this.IsNull(this.tablev_FattureETS.DataFattColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataFattNull() { + this[this.tablev_FattureETS.DataFattColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsImportoNull() { + return this.IsNull(this.tablev_FattureETS.ImportoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetImportoNull() { + this[this.tablev_FattureETS.ImportoColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -3474,6 +4108,40 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_FattureETSRowChangeEvent : global::System.EventArgs { + + private v_FattureETSRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSRowChangeEvent(v_FattureETSRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace ETS_Data.DS_utilsProjEtsTableAdapters { @@ -5091,6 +5759,212 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_FattureETSTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_FattureETSTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_FattureETS"; + tableMapping.ColumnMappings.Add("NumeroCommessa", "NumeroCommessa"); + tableMapping.ColumnMappings.Add("AnnoCommessa", "AnnoCommessa"); + tableMapping.ColumnMappings.Add("Commessa", "Commessa"); + tableMapping.ColumnMappings.Add("Emitt", "Emitt"); + tableMapping.ColumnMappings.Add("Dest", "Dest"); + tableMapping.ColumnMappings.Add("Tipologia", "Tipologia"); + tableMapping.ColumnMappings.Add("NrFatt", "NrFatt"); + tableMapping.ColumnMappings.Add("DataFatt", "DataFatt"); + tableMapping.ColumnMappings.Add("Importo", "Importo"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT NumeroCommessa, AnnoCommessa, Commessa, Emitt, Dest, Tipologia, NrFatt, Da" + + "taFatt, Importo FROM dbo.v_FattureETS"; + 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_vFattGetByComm"; + 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("@NumeroCommessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnoCommessa", 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_utilsProjEts.v_FattureETSDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_utilsProjEts.v_FattureETSDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utilsProjEts.v_FattureETSDataTable dataTable = new DS_utilsProjEts.v_FattureETSDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_utilsProjEts.v_FattureETSDataTable getByCommessa(global::System.Nullable NumeroCommessa, global::System.Nullable AnnoCommessa) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((NumeroCommessa.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(NumeroCommessa.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((AnnoCommessa.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(AnnoCommessa.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_utilsProjEts.v_FattureETSDataTable dataTable = new DS_utilsProjEts.v_FattureETSDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/ETS_Data/DS_utilsProjEts.xsd b/ETS_Data/DS_utilsProjEts.xsd index 58efe9a..707b1ee 100644 --- a/ETS_Data/DS_utilsProjEts.xsd +++ b/ETS_Data/DS_utilsProjEts.xsd @@ -273,6 +273,43 @@ ORDER BY label + + + + + + SELECT NumeroCommessa, AnnoCommessa, Commessa, Emitt, Dest, Tipologia, NrFatt, DataFatt, Importo FROM dbo.v_FattureETS + + + + + + + + + + + + + + + + + + + + + dbo.stp_vFattGetByComm + + + + + + + + + + @@ -281,7 +318,7 @@ ORDER BY label - + @@ -295,7 +332,7 @@ ORDER BY label - + @@ -311,7 +348,7 @@ ORDER BY label - + @@ -326,7 +363,7 @@ ORDER BY label - + @@ -346,7 +383,7 @@ ORDER BY label - + @@ -366,21 +403,21 @@ ORDER BY label - + - + - + @@ -407,6 +444,51 @@ ORDER BY label + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ETS_Data/DS_utilsProjEts.xss b/ETS_Data/DS_utilsProjEts.xss index 4713192..38d35eb 100644 --- a/ETS_Data/DS_utilsProjEts.xss +++ b/ETS_Data/DS_utilsProjEts.xss @@ -6,14 +6,15 @@ --> - - - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs index 12a2bc4..b0c8faf 100644 --- a/ETS_Data/DataProxy_ProjEts.cs +++ b/ETS_Data/DataProxy_ProjEts.cs @@ -30,6 +30,7 @@ namespace ETS_Data public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro; public DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter taSelCom; public DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter taSelForn; + public DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter taFattETS; /// /// init dei table adapters @@ -52,6 +53,7 @@ namespace ETS_Data taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter(); taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter(); taSelForn = new DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter(); + taFattETS = new DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter(); } /// /// effettua setup dei connection strings da web.config delal singola applicazione @@ -75,6 +77,7 @@ namespace ETS_Data taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelForn.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taFattETS.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); } #endregion diff --git a/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd index b22f568..9a9a9fc 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -1486,7 +1486,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1529,7 +1529,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1579,7 +1579,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1668,7 +1668,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1712,7 +1712,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1757,7 +1757,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1837,7 +1837,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1885,7 +1885,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1902,7 +1902,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1923,7 +1923,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -1944,7 +1944,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -2079,7 +2079,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -2098,7 +2098,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -2109,7 +2109,7 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - + @@ -2140,12 +2140,12 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - - - - - - + + + + + + @@ -2223,12 +2223,12 @@ SELECT Anno, Sett, UsernameAD, dataConf FROM ReleasedWeek WHERE (Anno = @Anno) A - - - - - - + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index a24173c..34ea611 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -16,11 +16,11 @@ - + - - + + diff --git a/ETS_Data/Ds_ProjEts1.Designer.cs b/ETS_Data/Ds_ProjEts1.Designer.cs index 6da5d63..da7b167 100644 --- a/ETS_Data/Ds_ProjEts1.Designer.cs +++ b/ETS_Data/Ds_ProjEts1.Designer.cs @@ -6894,7 +6894,7 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public ResocontoCommRow AddResocontoCommRow(int idxFase, int AnnoCommessa, int NumeroCommessa, string nickname, decimal BCWS, decimal BCWSFasi_money, int BCWSFasi_time, int ACWPFasi_money, int ACWPFasi_time, int ratio_money, int ratio_time, int Fatturato) { + public ResocontoCommRow AddResocontoCommRow(int idxFase, int AnnoCommessa, int NumeroCommessa, string nickname, decimal BCWS, decimal BCWSFasi_money, decimal BCWSFasi_time, decimal ACWPFasi_money, decimal ACWPFasi_time, decimal ratio_money, decimal ratio_time, decimal Fatturato) { ResocontoCommRow rowResocontoCommRow = ((ResocontoCommRow)(this.NewRow())); object[] columnValuesArray = new object[] { idxFase, @@ -6967,17 +6967,17 @@ namespace ETS_Data { base.Columns.Add(this.columnBCWS); this.columnBCWSFasi_money = new global::System.Data.DataColumn("BCWSFasi_money", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnBCWSFasi_money); - this.columnBCWSFasi_time = new global::System.Data.DataColumn("BCWSFasi_time", typeof(int), null, global::System.Data.MappingType.Element); + this.columnBCWSFasi_time = new global::System.Data.DataColumn("BCWSFasi_time", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnBCWSFasi_time); - this.columnACWPFasi_money = new global::System.Data.DataColumn("ACWPFasi_money", typeof(int), null, global::System.Data.MappingType.Element); + this.columnACWPFasi_money = new global::System.Data.DataColumn("ACWPFasi_money", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnACWPFasi_money); - this.columnACWPFasi_time = new global::System.Data.DataColumn("ACWPFasi_time", typeof(int), null, global::System.Data.MappingType.Element); + this.columnACWPFasi_time = new global::System.Data.DataColumn("ACWPFasi_time", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnACWPFasi_time); - this.columnratio_money = new global::System.Data.DataColumn("ratio_money", typeof(int), null, global::System.Data.MappingType.Element); + this.columnratio_money = new global::System.Data.DataColumn("ratio_money", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnratio_money); - this.columnratio_time = new global::System.Data.DataColumn("ratio_time", typeof(int), null, global::System.Data.MappingType.Element); + this.columnratio_time = new global::System.Data.DataColumn("ratio_time", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnratio_time); - this.columnFatturato = new global::System.Data.DataColumn("Fatturato", typeof(int), null, global::System.Data.MappingType.Element); + this.columnFatturato = new global::System.Data.DataColumn("Fatturato", typeof(decimal), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnFatturato); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxFase}, true)); @@ -11318,10 +11318,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int BCWSFasi_time { + public decimal BCWSFasi_time { get { try { - return ((int)(this[this.tableResocontoComm.BCWSFasi_timeColumn])); + return ((decimal)(this[this.tableResocontoComm.BCWSFasi_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'BCWSFasi_time\' in table \'ResocontoComm\' is DBNull.", e); @@ -11334,10 +11334,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int ACWPFasi_money { + public decimal ACWPFasi_money { get { try { - return ((int)(this[this.tableResocontoComm.ACWPFasi_moneyColumn])); + return ((decimal)(this[this.tableResocontoComm.ACWPFasi_moneyColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'ACWPFasi_money\' in table \'ResocontoComm\' is DBNull.", e); @@ -11350,10 +11350,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int ACWPFasi_time { + public decimal ACWPFasi_time { get { try { - return ((int)(this[this.tableResocontoComm.ACWPFasi_timeColumn])); + return ((decimal)(this[this.tableResocontoComm.ACWPFasi_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'ACWPFasi_time\' in table \'ResocontoComm\' is DBNull.", e); @@ -11366,10 +11366,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int ratio_money { + public decimal ratio_money { get { try { - return ((int)(this[this.tableResocontoComm.ratio_moneyColumn])); + return ((decimal)(this[this.tableResocontoComm.ratio_moneyColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'ratio_money\' in table \'ResocontoComm\' is DBNull.", e); @@ -11382,10 +11382,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int ratio_time { + public decimal ratio_time { get { try { - return ((int)(this[this.tableResocontoComm.ratio_timeColumn])); + return ((decimal)(this[this.tableResocontoComm.ratio_timeColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'ratio_time\' in table \'ResocontoComm\' is DBNull.", e); @@ -11398,10 +11398,10 @@ namespace ETS_Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public int Fatturato { + public decimal Fatturato { get { try { - return ((int)(this[this.tableResocontoComm.FatturatoColumn])); + return ((decimal)(this[this.tableResocontoComm.FatturatoColumn])); } catch (global::System.InvalidCastException e) { throw new global::System.Data.StrongTypingException("The value for column \'Fatturato\' in table \'ResocontoComm\' is DBNull.", e); diff --git a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj index d3c3f8e..5201b22 100644 --- a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj +++ b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj @@ -326,6 +326,7 @@ + @@ -607,6 +608,13 @@ mod_fasi.ascx + + mod_fattETS.ascx + ASPXCodeBehind + + + mod_fattETS.ascx + mod_filtroComm.ascx ASPXCodeBehind diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx new file mode 100644 index 0000000..654ca46 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx @@ -0,0 +1,53 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fattETS.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_fattETS" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.cs new file mode 100644 index 0000000..56b0e3f --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using ETS_Data; + +namespace PROJ_ETS.WebUserControls +{ + public partial class mod_fattETS : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + public string NumeroCommessa + { + get + { + return NumeroComm.Text; + } + set + { + NumeroComm.Text = value; + } + } + public string AnnoCommessa + { + get + { + return AnnoComm.Text; + } + set + { + AnnoComm.Text = value; + } + } + } +} \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.designer.cs new file mode 100644 index 0000000..d85786c --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_fattETS.ascx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PROJ_ETS.WebUserControls { + + + public partial class mod_fattETS { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// NumeroComm control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox NumeroComm; + + /// + /// AnnoComm control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox AnnoComm; + } +} diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_riepilogo.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_riepilogo.ascx index b2016cd..3303e77 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_riepilogo.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_riepilogo.ascx @@ -1,9 +1,22 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_riepilogo.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_riepilogo" %> + +<%@ Register Src="mod_fattETS.ascx" TagName="mod_fattETS" TagPrefix="uc1" %> + + + + + + + - + + + + @@ -11,7 +24,7 @@ - + @@ -21,7 +34,7 @@ - + @@ -51,20 +64,14 @@ - - elenco fatture... - - anno-num | data | importo - - anno-num | data | importo - - anno-num | data | importo + + - + @@ -103,3 +110,4 @@ + diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 3da4d3e..1b60479 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll index 282811e..55d812f 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ