diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index 0bf419e..328a66f 100644 --- a/AppData/DS_App.Designer.cs +++ b/AppData/DS_App.Designer.cs @@ -50,6 +50,8 @@ namespace AppData { private AnagTagDataTable tableAnagTag; + private TaskRecAggDataTable tableTaskRecAgg; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -117,6 +119,9 @@ namespace AppData { if ((ds.Tables["AnagTag"] != null)) { base.Tables.Add(new AnagTagDataTable(ds.Tables["AnagTag"])); } + if ((ds.Tables["TaskRecAgg"] != null)) { + base.Tables.Add(new TaskRecAggDataTable(ds.Tables["TaskRecAgg"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -265,6 +270,16 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TaskRecAggDataTable TaskRecAgg { + get { + return this.tableTaskRecAgg; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -371,6 +386,9 @@ namespace AppData { if ((ds.Tables["AnagTag"] != null)) { base.Tables.Add(new AnagTagDataTable(ds.Tables["AnagTag"])); } + if ((ds.Tables["TaskRecAgg"] != null)) { + base.Tables.Add(new TaskRecAggDataTable(ds.Tables["TaskRecAgg"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -482,6 +500,12 @@ namespace AppData { this.tableAnagTag.InitVars(); } } + this.tableTaskRecAgg = ((TaskRecAggDataTable)(base.Tables["TaskRecAgg"])); + if ((initTable == true)) { + if ((this.tableTaskRecAgg != null)) { + this.tableTaskRecAgg.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -518,6 +542,8 @@ namespace AppData { base.Tables.Add(this.tableOpr2Post); this.tableAnagTag = new AnagTagDataTable(); base.Tables.Add(this.tableAnagTag); + this.tableTaskRecAgg = new TaskRecAggDataTable(); + base.Tables.Add(this.tableTaskRecAgg); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -598,6 +624,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeTaskRecAgg() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -692,6 +724,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void AnagTagRowChangeEventHandler(object sender, AnagTagRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void TaskRecAggRowChangeEventHandler(object sender, TaskRecAggRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5602,6 +5637,386 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TaskRecAggDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnNumTask; + + private global::System.Data.DataColumn columnCodArt; + + private global::System.Data.DataColumn columnQtaRic; + + private global::System.Data.DataColumn columnIdxRec; + + private global::System.Data.DataColumn columnDtStart; + + private global::System.Data.DataColumn columnDtEnd; + + private global::System.Data.DataColumn columnQtaEv; + + private global::System.Data.DataColumn columnDurataMin; + + private global::System.Data.DataColumn columnTCiclo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public TaskRecAggDataTable() { + this.TableName = "TaskRecAgg"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal TaskRecAggDataTable(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", "16.0.0.0")] + protected TaskRecAggDataTable(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", "16.0.0.0")] + public global::System.Data.DataColumn NumTaskColumn { + get { + return this.columnNumTask; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn CodArtColumn { + get { + return this.columnCodArt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QtaRicColumn { + get { + return this.columnQtaRic; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn IdxRecColumn { + get { + return this.columnIdxRec; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DtStartColumn { + get { + return this.columnDtStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DtEndColumn { + get { + return this.columnDtEnd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn QtaEvColumn { + get { + return this.columnQtaEv; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn DurataMinColumn { + get { + return this.columnDurataMin; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TCicloColumn { + get { + return this.columnTCiclo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] + public TaskRecAggRow this[int index] { + get { + return ((TaskRecAggRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event TaskRecAggRowChangeEventHandler TaskRecAggRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event TaskRecAggRowChangeEventHandler TaskRecAggRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event TaskRecAggRowChangeEventHandler TaskRecAggRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event TaskRecAggRowChangeEventHandler TaskRecAggRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddTaskRecAggRow(TaskRecAggRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public TaskRecAggRow AddTaskRecAggRow(string NumTask, string CodArt, int QtaRic, int IdxRec, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) { + TaskRecAggRow rowTaskRecAggRow = ((TaskRecAggRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + NumTask, + CodArt, + QtaRic, + IdxRec, + DtStart, + DtEnd, + QtaEv, + DurataMin, + TCiclo}; + rowTaskRecAggRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTaskRecAggRow); + return rowTaskRecAggRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public TaskRecAggRow FindByNumTask(string NumTask) { + return ((TaskRecAggRow)(this.Rows.Find(new object[] { + NumTask}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + TaskRecAggDataTable cln = ((TaskRecAggDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TaskRecAggDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnNumTask = base.Columns["NumTask"]; + this.columnCodArt = base.Columns["CodArt"]; + this.columnQtaRic = base.Columns["QtaRic"]; + this.columnIdxRec = base.Columns["IdxRec"]; + this.columnDtStart = base.Columns["DtStart"]; + this.columnDtEnd = base.Columns["DtEnd"]; + this.columnQtaEv = base.Columns["QtaEv"]; + this.columnDurataMin = base.Columns["DurataMin"]; + this.columnTCiclo = base.Columns["TCiclo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnNumTask = new global::System.Data.DataColumn("NumTask", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumTask); + this.columnCodArt = new global::System.Data.DataColumn("CodArt", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArt); + this.columnQtaRic = new global::System.Data.DataColumn("QtaRic", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtaRic); + this.columnIdxRec = new global::System.Data.DataColumn("IdxRec", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxRec); + this.columnDtStart = new global::System.Data.DataColumn("DtStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtStart); + this.columnDtEnd = new global::System.Data.DataColumn("DtEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtEnd); + this.columnQtaEv = new global::System.Data.DataColumn("QtaEv", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtaEv); + this.columnDurataMin = new global::System.Data.DataColumn("DurataMin", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDurataMin); + this.columnTCiclo = new global::System.Data.DataColumn("TCiclo", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCiclo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnNumTask}, true)); + this.columnNumTask.AllowDBNull = false; + this.columnNumTask.Unique = true; + this.columnNumTask.MaxLength = 50; + this.columnCodArt.ReadOnly = true; + this.columnCodArt.MaxLength = 50; + this.columnQtaRic.ReadOnly = true; + this.columnIdxRec.ReadOnly = true; + this.columnDtStart.ReadOnly = true; + this.columnDtEnd.ReadOnly = true; + this.columnQtaEv.ReadOnly = true; + this.columnDurataMin.ReadOnly = true; + this.columnTCiclo.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public TaskRecAggRow NewTaskRecAggRow() { + return ((TaskRecAggRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TaskRecAggRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TaskRecAggRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TaskRecAggRowChanged != null)) { + this.TaskRecAggRowChanged(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TaskRecAggRowChanging != null)) { + this.TaskRecAggRowChanging(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TaskRecAggRowDeleted != null)) { + this.TaskRecAggRowDeleted(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TaskRecAggRowDeleting != null)) { + this.TaskRecAggRowDeleting(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveTaskRecAggRow(TaskRecAggRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 = "TaskRecAggDataTable"; + 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. /// @@ -7709,6 +8124,256 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class TaskRecAggRow : global::System.Data.DataRow { + + private TaskRecAggDataTable tableTaskRecAgg; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal TaskRecAggRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTaskRecAgg = ((TaskRecAggDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string NumTask { + get { + return ((string)(this[this.tableTaskRecAgg.NumTaskColumn])); + } + set { + this[this.tableTaskRecAgg.NumTaskColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string CodArt { + get { + try { + return ((string)(this[this.tableTaskRecAgg.CodArtColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArt\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.CodArtColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QtaRic { + get { + try { + return ((int)(this[this.tableTaskRecAgg.QtaRicColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtaRic\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.QtaRicColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int IdxRec { + get { + try { + return ((int)(this[this.tableTaskRecAgg.IdxRecColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxRec\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.IdxRecColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime DtStart { + get { + try { + return ((global::System.DateTime)(this[this.tableTaskRecAgg.DtStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DtStart\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.DtStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime DtEnd { + get { + try { + return ((global::System.DateTime)(this[this.tableTaskRecAgg.DtEndColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DtEnd\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.DtEndColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int QtaEv { + get { + try { + return ((int)(this[this.tableTaskRecAgg.QtaEvColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtaEv\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.QtaEvColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal DurataMin { + get { + try { + return ((decimal)(this[this.tableTaskRecAgg.DurataMinColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DurataMin\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.DurataMinColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TCiclo { + get { + try { + return ((decimal)(this[this.tableTaskRecAgg.TCicloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TCiclo\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.TCicloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsCodArtNull() { + return this.IsNull(this.tableTaskRecAgg.CodArtColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetCodArtNull() { + this[this.tableTaskRecAgg.CodArtColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQtaRicNull() { + return this.IsNull(this.tableTaskRecAgg.QtaRicColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQtaRicNull() { + this[this.tableTaskRecAgg.QtaRicColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsIdxRecNull() { + return this.IsNull(this.tableTaskRecAgg.IdxRecColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetIdxRecNull() { + this[this.tableTaskRecAgg.IdxRecColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDtStartNull() { + return this.IsNull(this.tableTaskRecAgg.DtStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDtStartNull() { + this[this.tableTaskRecAgg.DtStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDtEndNull() { + return this.IsNull(this.tableTaskRecAgg.DtEndColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDtEndNull() { + this[this.tableTaskRecAgg.DtEndColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsQtaEvNull() { + return this.IsNull(this.tableTaskRecAgg.QtaEvColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetQtaEvNull() { + this[this.tableTaskRecAgg.QtaEvColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsDurataMinNull() { + return this.IsNull(this.tableTaskRecAgg.DurataMinColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetDurataMinNull() { + this[this.tableTaskRecAgg.DurataMinColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTCicloNull() { + return this.IsNull(this.tableTaskRecAgg.TCicloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTCicloNull() { + this[this.tableTaskRecAgg.TCicloColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -8150,6 +8815,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class TaskRecAggRowChangeEvent : global::System.EventArgs { + + private TaskRecAggRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public TaskRecAggRowChangeEvent(TaskRecAggRow 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", "16.0.0.0")] + public TaskRecAggRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace AppData.DS_AppTableAdapters { @@ -13550,6 +14249,190 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)"; } } + /// + ///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 TaskRecAggTableAdapter : 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", "16.0.0.0")] + public TaskRecAggTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "TaskRecAgg"; + tableMapping.ColumnMappings.Add("NumTask", "NumTask"); + tableMapping.ColumnMappings.Add("CodArt", "CodArt"); + tableMapping.ColumnMappings.Add("QtaRic", "QtaRic"); + tableMapping.ColumnMappings.Add("IdxRec", "IdxRec"); + tableMapping.ColumnMappings.Add("DtStart", "DtStart"); + tableMapping.ColumnMappings.Add("DtEnd", "DtEnd"); + tableMapping.ColumnMappings.Add("QtaEv", "QtaEv"); + tableMapping.ColumnMappings.Add("DurataMin", "DurataMin"); + tableMapping.ColumnMappings.Add("TCiclo", "TCiclo"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::AppData.Properties.Settings.Default.C_TRACKConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_TRA_GetByFilt"; + 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("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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.TaskRecAggDataTable getByFilt(string CodArt, global::System.Nullable DtFrom, global::System.Nullable DtTo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CodArt == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArt)); + } + if ((DtFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DtFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DtTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(DtTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_App.TaskRecAggDataTable dataTable = new DS_App.TaskRecAggDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/AppData/DS_App.xsd b/AppData/DS_App.xsd index 1122fee..c94a374 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -1129,6 +1129,35 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + + + + + + dbo.stp_TRA_GetByFilt + + + + + + + + + + + + + + + + + + + + + + + @@ -1729,6 +1758,33 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1778,5 +1834,9 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + + + + \ No newline at end of file diff --git a/AppData/DS_App.xss b/AppData/DS_App.xss index 776deb1..4ac2bc4 100644 --- a/AppData/DS_App.xss +++ b/AppData/DS_App.xss @@ -4,21 +4,22 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AppData/dataLayer.cs b/AppData/dataLayer.cs index 6168c2c..e451558 100644 --- a/AppData/dataLayer.cs +++ b/AppData/dataLayer.cs @@ -2,115 +2,146 @@ namespace AppData { - public class dataLayer - { - /// - /// avvio classe - /// - protected dataLayer() + public class dataLayer { - avvioTA(); - setupConnectionStringBase(); + #region Public Fields + + /// + /// singleton classe + /// + public static dataLayer man = new dataLayer(); + + /// + /// Elenco POSTAZIONI + /// + public DS_AppTableAdapters.AnagFasiTableAdapter taAF; + + /// + /// Elenco TASK + /// + public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV; + + /// + /// Elenco ARTICOLI + /// + public DS_AppTableAdapters.AnagArticoliTableAdapter taAnArt; + + /// + /// Elenco OPERATORI + /// + public DS_AppTableAdapters.AnagOprTableAdapter taAO; + + /// + /// Elenco POSTAZIONI + /// + public DS_AppTableAdapters.AnagPostTableAdapter taAP; + + /// + /// Elenco TAG + /// + public DS_AppTableAdapters.AnagTagTableAdapter taAT; + + /// + /// Elenco PROMESSE ODL + /// + public DS_AppTableAdapters.Opr2PostTableAdapter taO2P; + + /// + /// Elenco PROMESSE ODL + /// + public DS_AppTableAdapters.PODLTableAdapter taPODL; + + /// + /// Elenco TASK + /// + public DS_AppTableAdapters.TraEv2StatiTableAdapter taTE2S; + + /// + /// Elenco TASK + /// + public DS_AppTableAdapters.TaskListTableAdapter taTL; + + /// + /// Elenco TASK + /// + public DS_AppTableAdapters.TaskList2PostTableAdapter taTL2Post; + + /// + /// Elenco TASK + /// + public DS_AppTableAdapters.TaskRecTableAdapter taTR; + + /// + /// Elenco TASK Aggregati + /// + public DS_AppTableAdapters.TaskRecAggTableAdapter taTRA; + + #endregion Public Fields + + #region Protected Constructors + + /// + /// avvio classe + /// + protected dataLayer() + { + avvioTA(); + setupConnectionStringBase(); + } + + #endregion Protected Constructors + + #region Private Methods + + /// + /// avvia table adapters + /// + private void avvioTA() + { + // avvio i table adapters... + taAnArt = new DS_AppTableAdapters.AnagArticoliTableAdapter(); + taAF = new DS_AppTableAdapters.AnagFasiTableAdapter(); + taAO = new DS_AppTableAdapters.AnagOprTableAdapter(); + taAP = new DS_AppTableAdapters.AnagPostTableAdapter(); + taAT = new DS_AppTableAdapters.AnagTagTableAdapter(); + taO2P = new DS_AppTableAdapters.Opr2PostTableAdapter(); + taPODL = new DS_AppTableAdapters.PODLTableAdapter(); + taTL = new DS_AppTableAdapters.TaskListTableAdapter(); + taTL2Post = new DS_AppTableAdapters.TaskList2PostTableAdapter(); + taTR = new DS_AppTableAdapters.TaskRecTableAdapter(); + taTRA = new DS_AppTableAdapters.TaskRecAggTableAdapter(); + taTE2S = new DS_AppTableAdapters.TraEv2StatiTableAdapter(); + + taAKV = new DS_UtilityTableAdapters.AnagKeyValueTableAdapter(); + } + + #endregion Private Methods + + #region Protected Methods + + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + string connString = memLayer.ML.confReadString("CTrackConnectionString"); + // connections strings del db + taAnArt.Connection.ConnectionString = connString; + taAF.Connection.ConnectionString = connString; + taAO.Connection.ConnectionString = connString; + taAP.Connection.ConnectionString = connString; + taAT.Connection.ConnectionString = connString; + taO2P.Connection.ConnectionString = connString; + taPODL.Connection.ConnectionString = connString; + taTL.Connection.ConnectionString = connString; + taTL2Post.Connection.ConnectionString = connString; + taTR.Connection.ConnectionString = connString; + taTRA.Connection.ConnectionString = connString; + taTE2S.Connection.ConnectionString = connString; + + taAKV.Connection.ConnectionString = connString; + } + + #endregion Protected Methods } - /// - /// avvia table adapters - /// - private void avvioTA() - { - // avvio i table adapters... - taAnArt = new DS_AppTableAdapters.AnagArticoliTableAdapter(); - taAF = new DS_AppTableAdapters.AnagFasiTableAdapter(); - taAO = new DS_AppTableAdapters.AnagOprTableAdapter(); - taAP = new DS_AppTableAdapters.AnagPostTableAdapter(); - taAT = new DS_AppTableAdapters.AnagTagTableAdapter(); - taO2P = new DS_AppTableAdapters.Opr2PostTableAdapter(); - taPODL = new DS_AppTableAdapters.PODLTableAdapter(); - taTL = new DS_AppTableAdapters.TaskListTableAdapter(); - taTL2Post = new DS_AppTableAdapters.TaskList2PostTableAdapter(); - taTR = new DS_AppTableAdapters.TaskRecTableAdapter(); - taTE2S = new DS_AppTableAdapters.TraEv2StatiTableAdapter(); - - taAKV = new DS_UtilityTableAdapters.AnagKeyValueTableAdapter(); - } - /// - /// effettua setup dei connection strings da web.config delal singola applicazione - /// - protected virtual void setupConnectionStringBase() - { - string connString = memLayer.ML.confReadString("CTrackConnectionString"); - // connections strings del db - taAnArt.Connection.ConnectionString = connString; - taAF.Connection.ConnectionString = connString; - taAO.Connection.ConnectionString = connString; - taAP.Connection.ConnectionString = connString; - taAT.Connection.ConnectionString = connString; - taO2P.Connection.ConnectionString = connString; - taPODL.Connection.ConnectionString = connString; - taTL.Connection.ConnectionString = connString; - taTL2Post.Connection.ConnectionString = connString; - taTR.Connection.ConnectionString = connString; - taTE2S.Connection.ConnectionString = connString; - - taAKV.Connection.ConnectionString = connString; - } - - /// - /// Elenco ARTICOLI - /// - public DS_AppTableAdapters.AnagArticoliTableAdapter taAnArt; - - /// - /// Elenco POSTAZIONI - /// - public DS_AppTableAdapters.AnagFasiTableAdapter taAF; - /// - /// Elenco OPERATORI - /// - public DS_AppTableAdapters.AnagOprTableAdapter taAO; - /// - /// Elenco POSTAZIONI - /// - public DS_AppTableAdapters.AnagPostTableAdapter taAP; - /// - /// Elenco TAG - /// - public DS_AppTableAdapters.AnagTagTableAdapter taAT; - /// - /// Elenco PROMESSE ODL - /// - public DS_AppTableAdapters.Opr2PostTableAdapter taO2P; - /// - /// Elenco PROMESSE ODL - /// - public DS_AppTableAdapters.PODLTableAdapter taPODL; - /// - /// Elenco TASK - /// - public DS_AppTableAdapters.TaskListTableAdapter taTL; - /// - /// Elenco TASK - /// - public DS_AppTableAdapters.TaskList2PostTableAdapter taTL2Post; - /// - /// Elenco TASK - /// - public DS_AppTableAdapters.TaskRecTableAdapter taTR; - /// - /// Elenco TASK - /// - public DS_AppTableAdapters.TraEv2StatiTableAdapter taTE2S; - - - /// - /// Elenco TASK - /// - public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV; - - /// - /// singleton classe - /// - public static dataLayer man = new dataLayer(); - - - } -} +} \ No newline at end of file diff --git a/C-TRACK/BaseUserControl.cs b/C-TRACK/BaseUserControl.cs new file mode 100644 index 0000000..d920eab --- /dev/null +++ b/C-TRACK/BaseUserControl.cs @@ -0,0 +1,90 @@ +using Newtonsoft.Json; +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace C_TRACK +{ + public class BaseUserControl : System.Web.UI.UserControl + { + #region Public Events + + /// + /// Generico evento di richiesta refresh a aprent + /// + public event EventHandler eh_doRefresh; + + /// + /// Generico evento di richiesta refresh a aprent + /// + public event EventHandler eh_doReset; + + #endregion Public Events + + #region Protected Properties + + /// + /// Codice operatore salvato in cookie + /// + protected string cookieCodOpr + { + get + { + return memLayer.ML.getCookieVal("CTrack_CodOpr"); + } + } + + /// + /// Codice post salvato in cookie + /// + protected string cookieCodPost + { + get + { + return memLayer.ML.getCookieVal("CTrack_CodPost"); + } + } + + #endregion Protected Properties + + #region Public Methods + + /// + /// Chiamata evento + /// + public void raiseEvent() + { + // se qualcuno ascolta sollevo evento nuovo valore... + if (eh_doRefresh != null) + { + eh_doRefresh(this, new EventArgs()); + } + } + + /// + /// Chiamata evento + /// + public void raiseReset() + { + // se qualcuno ascolta sollevo evento nuovo valore... + if (eh_doReset != null) + { + eh_doReset(this, new EventArgs()); + } + } + + /// + /// Wrapper traduzione termini + /// + /// + /// + public string traduci(string lemma) + { + return SteamWare.user_std.UtSn.Traduci(lemma); + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/C-TRACK/C-TRACK.csproj b/C-TRACK/C-TRACK.csproj index 90a3ed9..37f5bca 100644 --- a/C-TRACK/C-TRACK.csproj +++ b/C-TRACK/C-TRACK.csproj @@ -551,6 +551,9 @@ barcode.aspx + + ASPXCodeBehind + closeAllRec.aspx ASPXCodeBehind diff --git a/C-TRACK/WebUserControls/mod_addTask.ascx b/C-TRACK/WebUserControls/mod_addTask.ascx index 304ae22..d7f8e62 100644 --- a/C-TRACK/WebUserControls/mod_addTask.ascx +++ b/C-TRACK/WebUserControls/mod_addTask.ascx @@ -1,6 +1,11 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_addTask.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_addTask" %> +<%@ Register Src="~/WebUserControls/mod_periodo.ascx" TagPrefix="uc1" TagName="mod_periodo" %> +
+
+ Data Export +
Cod.ARTICOLO
<%: CodArticolo %>
diff --git a/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs b/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs index 7254386..6a378e6 100644 --- a/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs +++ b/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs @@ -23,6 +23,24 @@ namespace C_TRACK.WebUserControls /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAddNew; + /// + /// Controllo divExport. + /// + /// + /// 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 divExport; + + /// + /// Controllo hlExport. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HyperLink hlExport; + /// /// Controllo divArticolo. /// diff --git a/C-TRACK/WebUserControls/mod_periodo.ascx b/C-TRACK/WebUserControls/mod_periodo.ascx index 7782f88..c0bff5c 100644 --- a/C-TRACK/WebUserControls/mod_periodo.ascx +++ b/C-TRACK/WebUserControls/mod_periodo.ascx @@ -1,18 +1,10 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_periodo.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_periodo" %>
-
- -
-
-
- -
-
-
-
-
- EXPORT -
-
-
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/C-TRACK/WebUserControls/mod_periodo.ascx.cs b/C-TRACK/WebUserControls/mod_periodo.ascx.cs index b428c51..77980de 100644 --- a/C-TRACK/WebUserControls/mod_periodo.ascx.cs +++ b/C-TRACK/WebUserControls/mod_periodo.ascx.cs @@ -3,59 +3,61 @@ using System.Web.UI; namespace C_TRACK.WebUserControls { - public partial class mod_periodo : System.Web.UI.UserControl - { - protected void Page_Load(object sender, EventArgs e) + public partial class mod_periodo : BaseUserControl { - if (!Page.IsPostBack) - { - dataFrom = DateTime.Today.AddMonths(-1); - dataTo = DateTime.Today.AddDays(1); - updateUrl(); - } - } + #region Public Properties - protected DateTime dataFrom - { - get - { - DateTime answ = DateTime.Today; - DateTime.TryParse(txtFrom.Text.Trim(), out answ); - return answ; - } - set - { - txtFrom.Text = value.ToString("yyyy-MM-dd"); - } - } + public DateTime dataFrom + { + get + { + DateTime answ = DateTime.Today; + DateTime.TryParse(txtFrom.Text.Trim(), out answ); + return answ; + } + set + { + txtFrom.Text = value.ToString("yyyy-MM-dd"); + } + } - protected DateTime dataTo - { - get - { - DateTime answ = DateTime.Today; - DateTime.TryParse(txtTo.Text.Trim(), out answ); - return answ; - } - set - { - txtTo.Text = value.ToString("yyyy-MM-dd"); - } - } + public DateTime dataTo + { + get + { + DateTime answ = DateTime.Today; + DateTime.TryParse(txtTo.Text.Trim(), out answ); + return answ; + } + set + { + txtTo.Text = value.ToString("yyyy-MM-dd"); + } + } - protected void txtFrom_TextChanged(object sender, EventArgs e) - { - updateUrl(); - } + #endregion Public Properties - protected void txtTo_TextChanged(object sender, EventArgs e) - { - updateUrl(); - } + #region Protected Methods - private void updateUrl() - { - hlExport.NavigateUrl = string.Format("~/doExport?from={0:yyyy-MM-dd}&to={1:yyyy-MM-dd}", dataFrom, dataTo); + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + dataFrom = DateTime.Today.AddMonths(-1); + dataTo = DateTime.Today.AddDays(1); + } + } + + protected void txtFrom_TextChanged(object sender, EventArgs e) + { + raiseEvent(); + } + + protected void txtTo_TextChanged(object sender, EventArgs e) + { + raiseEvent(); + } + + #endregion Protected Methods } - } } \ No newline at end of file diff --git a/C-TRACK/WebUserControls/mod_periodo.ascx.designer.cs b/C-TRACK/WebUserControls/mod_periodo.ascx.designer.cs index fb4a820..f908db8 100644 --- a/C-TRACK/WebUserControls/mod_periodo.ascx.designer.cs +++ b/C-TRACK/WebUserControls/mod_periodo.ascx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace C_TRACK.WebUserControls { - - - public partial class mod_periodo { - +namespace C_TRACK.WebUserControls +{ + + + public partial class mod_periodo + { + /// /// Controllo txtFrom. /// @@ -20,7 +22,7 @@ namespace C_TRACK.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.TextBox txtFrom; - + /// /// Controllo txtTo. /// @@ -29,14 +31,5 @@ namespace C_TRACK.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.TextBox txtTo; - - /// - /// Controllo hlExport. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HyperLink hlExport; } } diff --git a/C-TRACK/doExport.aspx.cs b/C-TRACK/doExport.aspx.cs index ced6d84..df95bdc 100644 --- a/C-TRACK/doExport.aspx.cs +++ b/C-TRACK/doExport.aspx.cs @@ -5,84 +5,132 @@ using System.Text; namespace C_TRACK { - public partial class doExport : System.Web.UI.Page - { - protected void Page_Load(object sender, EventArgs e) + public partial class doExport : System.Web.UI.Page { - string delimiter = ","; + #region Protected Properties - //prepare the output stream - Response.Clear(); - Response.ContentType = "text/csv"; - Response.AppendHeader("Content-Disposition", "attachment; filename=ctrack_report.csv"); - - string value = ""; - StringBuilder builder = new StringBuilder(); - - // recupero oggetti parametrici... - string from = Request.QueryString["from"]; - string to = Request.QueryString["to"]; - DateTime dateFrom = DateTime.Today.AddYears(-1); - DateTime dateTo = DateTime.Today.AddDays(1); - // se è diverso da vuoto faccio parse... - if (from != "" && from !=null) - { - DateTime.TryParse(from, out dateFrom); - } - if (to != "" && to != null) - { - DateTime.TryParse(to, out dateTo); - } - - // leggo tabella - var dt = dataLayer.man.taTR.getByFilt("", dateFrom, dateTo); - - //write the csv column headers - for (int i = 0; i < dt.Columns.Count; i++) - { - - value = dt.Columns[i].ColumnName; - // Implement special handling for values that contain comma or quote - // Enclose in quotes and double up any double quotes - if (value.IndexOfAny(new char[] { '"', ',' }) != -1) - builder.AppendFormat("\"{0}\"", value.Replace("\"", "\"\"")); - else + protected DateTime dateFrom { - builder.Append(value); - + get + { + DateTime answ = DateTime.Today.AddYears(-1); + // se è diverso da vuoto faccio parse... + if (!string.IsNullOrEmpty(from)) + { + DateTime.TryParse(from, out answ); + } + return answ; + } } - Response.Write(value); - Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine); - builder.Clear(); - } - - //write the data - foreach (DataRow row in dt.Rows) - { - for (int i = 0; i < dt.Columns.Count; i++) + protected DateTime dateTo { - value = row[i].ToString(); - // Implement special handling for values that contain comma or quote - // Enclose in quotes and double up any double quotes - - if (value.IndexOfAny(new char[] { '"', ',' }) != -1) - builder.AppendFormat("\"{0}\"", value.Replace("\"", "\"\"")); - else - { - builder.Append(value); - - } - - Response.Write(builder.ToString()); - Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine); - builder.Clear(); + get + { + DateTime answ = DateTime.Today.AddDays(1); + // se è diverso da vuoto faccio parse... + if (!string.IsNullOrEmpty(to)) + { + DateTime.TryParse(to, out answ); + } + return answ; + } } - } - Response.End(); + protected string from + { + get + { + return Request.QueryString["from"]; + } + } + protected string mode + { + get + { + return Request.QueryString["mode"]; + } + } + protected string to + { + get + { + return Request.QueryString["to"]; + } + } + + #endregion Protected Properties + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + string delimiter = ","; + + //prepare the output stream + Response.Clear(); + Response.ContentType = "text/csv"; + Response.AppendHeader("Content-Disposition", "attachment; filename=ctrack_report.csv"); + + string value = ""; + StringBuilder builder = new StringBuilder(); + DataTable dt = new DataTable(); + + // leggo tabella secondo il MODO + if (mode == "aggr") + { + dt = (DataTable)dataLayer.man.taTRA.getByFilt("", dateFrom, dateTo); + } + else + { + dt = (DataTable)dataLayer.man.taTR.getByFilt("", dateFrom, dateTo); + } + + // write the csv column headers + for (int i = 0; i < dt.Columns.Count; i++) + { + value = dt.Columns[i].ColumnName; + // Implement special handling for values that contain comma or quote + // Enclose in quotes and double up any double quotes + if (value.IndexOfAny(new char[] { '"', ',' }) != -1) + builder.AppendFormat("\"{0}\"", value.Replace("\"", "\"\"")); + else + { + builder.Append(value); + } + + Response.Write(value); + Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine); + builder.Clear(); + } + + //write the data + foreach (DataRow row in dt.Rows) + { + for (int i = 0; i < dt.Columns.Count; i++) + { + value = row[i].ToString(); + // Implement special handling for values that contain comma or quote + // Enclose in quotes and double up any double quotes + + if (value.IndexOfAny(new char[] { '"', ',' }) != -1) + builder.AppendFormat("\"{0}\"", value.Replace("\"", "\"\"")); + else + { + builder.Append(value); + } + + Response.Write(builder.ToString()); + Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine); + builder.Clear(); + } + } + + Response.End(); + } + + #endregion Protected Methods } - } } \ No newline at end of file diff --git a/C-TRACK/export.aspx b/C-TRACK/export.aspx index 73d4c14..84d71e4 100644 --- a/C-TRACK/export.aspx +++ b/C-TRACK/export.aspx @@ -3,17 +3,26 @@ <%@ Register Src="~/WebUserControls/mod_checkOpr.ascx" TagPrefix="uc1" TagName="mod_checkOpr" %> <%@ Register Src="~/WebUserControls/mod_periodo.ascx" TagPrefix="uc1" TagName="mod_periodo" %> - -
-
- Gestione Commesse +
+
+ Gestione Commesse +
+
+ +
+
+ +
+
+ Export FULL +
+
+ Export Compatto +
+
+
-
- - -
-
- + \ No newline at end of file diff --git a/C-TRACK/export.aspx.cs b/C-TRACK/export.aspx.cs index e42d461..9843539 100644 --- a/C-TRACK/export.aspx.cs +++ b/C-TRACK/export.aspx.cs @@ -7,11 +7,30 @@ using System.Web.UI.WebControls; namespace C_TRACK { - public partial class export : System.Web.UI.Page - { - protected void Page_Load(object sender, EventArgs e) + public partial class export : System.Web.UI.Page { + #region Private Methods + private void mod_periodo_eh_doRefresh(object sender, EventArgs e) + { + updateUrl(); + } + + private void updateUrl() + { + hlExportFull.NavigateUrl = string.Format("~/doExport?mode=full&from={0:yyyy-MM-dd}&to={1:yyyy-MM-dd}", mod_periodo.dataFrom, mod_periodo.dataTo); + hlExportComp.NavigateUrl = string.Format("~/doExport?mode=aggr&from={0:yyyy-MM-dd}&to={1:yyyy-MM-dd}", mod_periodo.dataFrom, mod_periodo.dataTo); + } + + #endregion Private Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + mod_periodo.eh_doRefresh += mod_periodo_eh_doRefresh; + } + + #endregion Protected Methods } - } } \ No newline at end of file diff --git a/C-TRACK/export.aspx.designer.cs b/C-TRACK/export.aspx.designer.cs index 8db2a21..e86cb40 100644 --- a/C-TRACK/export.aspx.designer.cs +++ b/C-TRACK/export.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace C_TRACK { - - - public partial class export { - +namespace C_TRACK +{ + + + public partial class export + { + /// /// Controllo mod_checkOpr. /// @@ -20,7 +22,7 @@ namespace C_TRACK { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::C_TRACK.WebUserControls.mod_checkOpr mod_checkOpr; - + /// /// Controllo mod_periodo. /// @@ -29,5 +31,23 @@ namespace C_TRACK { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::C_TRACK.WebUserControls.mod_periodo mod_periodo; + + /// + /// Controllo hlExportFull. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HyperLink hlExportFull; + + /// + /// Controllo hlExportComp. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HyperLink hlExportComp; } }