diff --git a/AppData/DS_App.Designer.cs b/AppData/DS_App.Designer.cs index ed3a870..f3241a2 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. /// @@ -707,6 +742,8 @@ namespace AppData { private global::System.Data.DataColumn columnQtaRic; + private global::System.Data.DataColumn columnTimeEst; + private global::System.Data.DataColumn columnQtaEv; private global::System.Data.DataColumn columnPrior; @@ -790,6 +827,14 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TimeEstColumn { + get { + return this.columnTimeEst; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn QtaEvColumn { @@ -899,13 +944,14 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public TaskListRow AddTaskListRow(string NumTask, string CodGruppo, string CodArt, int QtaRic, int QtaEv, int Prior, bool Concluso, System.DateTime DataIns, int NumRec, int CurrStatus, decimal MinTotWrk, decimal TCMedio, decimal MinTotFix) { + public TaskListRow AddTaskListRow(string NumTask, string CodGruppo, string CodArt, int QtaRic, decimal TimeEst, int QtaEv, int Prior, bool Concluso, System.DateTime DataIns, int NumRec, int CurrStatus, decimal MinTotWrk, decimal TCMedio, decimal MinTotFix) { TaskListRow rowTaskListRow = ((TaskListRow)(this.NewRow())); object[] columnValuesArray = new object[] { NumTask, CodGruppo, CodArt, QtaRic, + TimeEst, QtaEv, Prior, Concluso, @@ -948,6 +994,7 @@ namespace AppData { this.columnCodGruppo = base.Columns["CodGruppo"]; this.columnCodArt = base.Columns["CodArt"]; this.columnQtaRic = base.Columns["QtaRic"]; + this.columnTimeEst = base.Columns["TimeEst"]; this.columnQtaEv = base.Columns["QtaEv"]; this.columnPrior = base.Columns["Prior"]; this.columnConcluso = base.Columns["Concluso"]; @@ -970,6 +1017,8 @@ namespace AppData { 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.columnTimeEst = new global::System.Data.DataColumn("TimeEst", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTimeEst); this.columnQtaEv = new global::System.Data.DataColumn("QtaEv", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnQtaEv); this.columnPrior = new global::System.Data.DataColumn("Prior", typeof(int), null, global::System.Data.MappingType.Element); @@ -998,6 +1047,7 @@ namespace AppData { this.columnCodArt.AllowDBNull = false; this.columnCodArt.MaxLength = 50; this.columnQtaRic.AllowDBNull = false; + this.columnTimeEst.ReadOnly = true; this.columnPrior.AllowDBNull = false; this.columnConcluso.AllowDBNull = false; this.columnDataIns.AllowDBNull = false; @@ -1743,6 +1793,8 @@ namespace AppData { private global::System.Data.DataColumn columnQtaRic; + private global::System.Data.DataColumn columnTempoPrev; + private global::System.Data.DataColumn columnCodOpr; private global::System.Data.DataColumn columnNomeOpr; @@ -1838,6 +1890,14 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn TempoPrevColumn { + get { + return this.columnTempoPrev; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public global::System.Data.DataColumn CodOprColumn { @@ -1963,7 +2023,23 @@ namespace AppData { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public TaskRecRow AddTaskRecRow(string NumTask, string CodTag, string CodArt, int QtaRic, string CodOpr, string NomeOpr, string CodPost, string Descrizione, string CodFase, string DescrFase, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) { + public TaskRecRow AddTaskRecRow( + string NumTask, + string CodTag, + string CodArt, + int QtaRic, + decimal TempoPrev, + string CodOpr, + string NomeOpr, + string CodPost, + string Descrizione, + string CodFase, + string DescrFase, + System.DateTime DtStart, + System.DateTime DtEnd, + int QtaEv, + decimal DurataMin, + decimal TCiclo) { TaskRecRow rowTaskRecRow = ((TaskRecRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1971,6 +2047,7 @@ namespace AppData { CodTag, CodArt, QtaRic, + TempoPrev, CodOpr, NomeOpr, CodPost, @@ -2016,6 +2093,7 @@ namespace AppData { this.columnCodTag = base.Columns["CodTag"]; this.columnCodArt = base.Columns["CodArt"]; this.columnQtaRic = base.Columns["QtaRic"]; + this.columnTempoPrev = base.Columns["TempoPrev"]; this.columnCodOpr = base.Columns["CodOpr"]; this.columnNomeOpr = base.Columns["NomeOpr"]; this.columnCodPost = base.Columns["CodPost"]; @@ -2042,6 +2120,8 @@ namespace AppData { 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.columnTempoPrev = new global::System.Data.DataColumn("TempoPrev", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoPrev); this.columnCodOpr = new global::System.Data.DataColumn("CodOpr", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnCodOpr); this.columnNomeOpr = new global::System.Data.DataColumn("NomeOpr", typeof(string), null, global::System.Data.MappingType.Element); @@ -2079,6 +2159,7 @@ namespace AppData { this.columnCodArt.AllowDBNull = false; this.columnCodArt.MaxLength = 50; this.columnQtaRic.AllowDBNull = false; + this.columnTempoPrev.AllowDBNull = false; this.columnCodOpr.AllowDBNull = false; this.columnCodOpr.MaxLength = 50; this.columnNomeOpr.ReadOnly = true; @@ -5587,6 +5668,401 @@ 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 columnTempoPrev; + + 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 TempoPrevColumn { + get { + return this.columnTempoPrev; + } + } + + [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, decimal TempoPrev, 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, + TempoPrev, + 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.columnTempoPrev = base.Columns["TempoPrev"]; + 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.columnTempoPrev = new global::System.Data.DataColumn("TempoPrev", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoPrev); + 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.columnTempoPrev.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. /// @@ -5645,6 +6121,22 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TimeEst { + get { + try { + return ((decimal)(this[this.tableTaskList.TimeEstColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TimeEst\' nella tabella \'TaskList\' è DBNull.", e); + } + } + set { + this[this.tableTaskList.TimeEstColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public int QtaEv { @@ -5774,6 +6266,18 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public bool IsTimeEstNull() { + return this.IsNull(this.tableTaskList.TimeEstColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTimeEstNull() { + this[this.tableTaskList.TimeEstColumn] = global::System.Convert.DBNull; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool IsQtaEvNull() { @@ -6057,6 +6561,17 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public decimal TempoPrev { + get { + return ((decimal)(this[this.tableTaskRec.TempoPrevColumn])); + } + set { + this[this.tableTaskRec.TempoPrevColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public string CodOpr { @@ -7666,6 +8181,284 @@ 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 decimal TempoPrev { + get { + try { + return ((decimal)(this[this.tableTaskRecAgg.TempoPrevColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoPrev\' nella tabella \'TaskRecAgg\' è DBNull.", e); + } + } + set { + this[this.tableTaskRecAgg.TempoPrevColumn] = 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 IsTempoPrevNull() { + return this.IsNull(this.tableTaskRecAgg.TempoPrevColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void SetTempoPrevNull() { + this[this.tableTaskRecAgg.TempoPrevColumn] = 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 /// @@ -8107,6 +8900,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 { @@ -8237,6 +9064,7 @@ namespace AppData.DS_AppTableAdapters { tableMapping.ColumnMappings.Add("CodGruppo", "CodGruppo"); tableMapping.ColumnMappings.Add("CodArt", "CodArt"); tableMapping.ColumnMappings.Add("QtaRic", "QtaRic"); + tableMapping.ColumnMappings.Add("TimeEst", "TimeEst"); tableMapping.ColumnMappings.Add("QtaEv", "QtaEv"); tableMapping.ColumnMappings.Add("Prior", "Prior"); tableMapping.ColumnMappings.Add("Concluso", "Concluso"); @@ -8304,6 +9132,7 @@ namespace AppData.DS_AppTableAdapters { this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumTask", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaRic", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeEst", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; this._commandCollection[7].CommandText = "dbo.stp_TL_updateClose"; @@ -8459,7 +9288,7 @@ namespace AppData.DS_AppTableAdapters { [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")] - public virtual int insertQuery(string NumTask, string CodArt, global::System.Nullable QtaRic) { + public virtual int insertQuery(string NumTask, string CodArt, global::System.Nullable QtaRic, global::System.Nullable TimeEst) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6]; if ((NumTask == null)) { command.Parameters[1].Value = global::System.DBNull.Value; @@ -8479,6 +9308,12 @@ namespace AppData.DS_AppTableAdapters { else { command.Parameters[3].Value = global::System.DBNull.Value; } + if ((TimeEst.HasValue == true)) { + command.Parameters[4].Value = ((double)(TimeEst.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) != global::System.Data.ConnectionState.Open)) { @@ -9466,6 +10301,7 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)"; tableMapping.ColumnMappings.Add("CodTag", "CodTag"); tableMapping.ColumnMappings.Add("CodArt", "CodArt"); tableMapping.ColumnMappings.Add("QtaRic", "QtaRic"); + tableMapping.ColumnMappings.Add("TempoPrev", "TempoPrev"); tableMapping.ColumnMappings.Add("CodOpr", "CodOpr"); tableMapping.ColumnMappings.Add("NomeOpr", "NomeOpr"); tableMapping.ColumnMappings.Add("CodPost", "CodPost"); @@ -13499,6 +14335,191 @@ 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("TempoPrev", "TempoPrev"); + 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 9cfae08..4c3c817 100644 --- a/AppData/DS_App.xsd +++ b/AppData/DS_App.xsd @@ -23,6 +23,7 @@ + @@ -100,6 +101,7 @@ + @@ -286,6 +288,7 @@ FROM v_TaskRec + @@ -1126,6 +1129,36 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + + + + + + dbo.stp_TRA_GetByFilt + + + + + + + + + + + + + + + + + + + + + + + + @@ -1134,7 +1167,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1159,6 +1192,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + @@ -1171,7 +1205,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1193,7 +1227,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1220,7 +1254,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1246,6 +1280,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + @@ -1296,7 +1331,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1338,7 +1373,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1400,7 +1435,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1434,7 +1469,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1526,7 +1561,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1575,7 +1610,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1635,7 +1670,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1663,7 +1698,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1698,7 +1733,7 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) - + @@ -1725,6 +1760,34 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag) + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1774,5 +1837,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 0bf15c4..bdeec2e 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/AppData/mUtils.cs b/AppData/mUtils.cs index 729c0ca..0ea1907 100644 --- a/AppData/mUtils.cs +++ b/AppData/mUtils.cs @@ -4,84 +4,116 @@ namespace AppData { public class mUtils { + #region Public Fields - #region definizione Regexp /// - /// RegExp x Cod ARTICOLO + /// Array di regole di sostituzione per valori Time /// - public static string reCodArt = memLayer.ML.cdv("regExp_CodArt"); + public static string[] lRepCleanTime = memLayer.ML.CRS("confAddTaskCleanTime").Split('#'); + /// - /// RegExp x Cod OPERATORE + /// OPZIONE: indica che è da eseguire il preprocessing /// - public static string reCodOper = memLayer.ML.cdv("regExp_CodOper"); - /// - /// RegExp x Cod POSTAZIONE - /// - public static string reCodPost = memLayer.ML.cdv("regExp_CodPost"); - /// - /// RegExp x Cod COMMESSA (NumTask) - /// - public static string reNumTask = memLayer.ML.cdv("regExp_NumTask"); - /// - /// RegExp x QTA - /// - public static string reQta = memLayer.ML.cdv("regExp_QtaRic"); - /// - /// RegExp x RESET / CANCEL - /// - public static string reReset = memLayer.ML.cdv("regExp_KO"); - /// - /// RegExp x CONFERMA ADD - /// - public static string reAddNew = memLayer.ML.cdv("regExp_AddNew"); - /// - /// RegExp x CONFERMA DELETE - /// - public static string reDelete = memLayer.ML.cdv("regExp_DEL"); - /// - /// Comando x RESET OPERATORE - /// - public static string reCmdResetOper = memLayer.ML.cdv("regExp_CmdResetOper"); - /// - /// Comando x RESET COMMESSA (NumTask) - /// - public static string reCmdResetNumTask = memLayer.ML.cdv("regExp_CmdResetNumTask"); - /// - /// Comando x PAUSA (es COMMESSA/NumTask) - /// - public static string reCmdPause = memLayer.ML.cdv("regExp_CmdPause"); - /// - /// Comando x CHIUSURA COMMESSA (NumTask) - /// - public static string reCmdClose = memLayer.ML.cdv("regExp_CmdClose"); + public static bool OptBCodePrepDo = memLayer.ML.CRB("OptBCodePrepDo"); /// /// OPZIONE: indica che è abilitato BCode /// public static bool OptUseBCode = memLayer.ML.CRB("OptUseBCode"); - /// - /// OPZIONE: indica che è abilitata selezione TASK/COMMESSA - /// - public static bool OptUseSelTask = memLayer.ML.CRB("OptUseSelTask"); + /// /// OPZIONE: indica che è abilitata selezione TAG /// public static bool OptUseSelTag = memLayer.ML.CRB("OptUseSelTag"); /// - /// OPZIONE: indica che è da eseguire il preprocessing + /// OPZIONE: indica che è abilitata selezione TASK/COMMESSA /// - public static bool OptBCodePrepDo = memLayer.ML.CRB("OptBCodePrepDo"); + public static bool OptUseSelTask = memLayer.ML.CRB("OptUseSelTask"); + + /// + /// RegExp x CONFERMA ADD + /// + public static string reAddNew = memLayer.ML.cdv("regExp_AddNew"); + + /// + /// Comando x CHIUSURA COMMESSA (NumTask) + /// + public static string reCmdClose = memLayer.ML.cdv("regExp_CmdClose"); + + /// + /// Comando x PAUSA (es COMMESSA/NumTask) + /// + public static string reCmdPause = memLayer.ML.cdv("regExp_CmdPause"); + + /// + /// Comando x RESET COMMESSA (NumTask) + /// + public static string reCmdResetNumTask = memLayer.ML.cdv("regExp_CmdResetNumTask"); + + /// + /// Comando x RESET OPERATORE + /// + public static string reCmdResetOper = memLayer.ML.cdv("regExp_CmdResetOper"); + + /// + /// RegExp x Cod ARTICOLO + /// + public static string reCodArt = memLayer.ML.cdv("regExp_CodArt"); + + /// + /// RegExp x Cod OPERATORE + /// + public static string reCodOper = memLayer.ML.cdv("regExp_CodOper"); + + /// + /// RegExp x Cod POSTAZIONE + /// + public static string reCodPost = memLayer.ML.cdv("regExp_CodPost"); + + /// + /// RegExp x CONFERMA DELETE + /// + public static string reDelete = memLayer.ML.cdv("regExp_DEL"); + + /// + /// RegExp x Cod COMMESSA (NumTask) + /// + public static string reNumTask = memLayer.ML.cdv("regExp_NumTask"); + /// /// RegExp x Cod dati raw x preprocessare /// public static string rePreproc = memLayer.ML.cdv("regExp_Preproc"); + /// /// RegExp x Cod dati da TENERE post preprocessing /// public static string rePreprocKeep = memLayer.ML.cdv("regExp_PreprocKeep"); - #endregion + /// + /// RegExp x QTA + /// + public static string reQta = memLayer.ML.cdv("regExp_QtaRic"); + + /// + /// RegExp x RESET / CANCEL + /// + public static string reReset = memLayer.ML.cdv("regExp_KO"); + + /// + /// RegExp x TempoPrevisto + /// + public static string reTempoPrev = memLayer.ML.cdv("regExp_TimePrev"); + + /// + /// Fattore conversione tempo stimato letto da BCode (def 1 = NO conversione, 10=da dividere per 10) + /// + public static int TimeEstFactor = memLayer.ML.cdvi("confAddTaskTimeFactor"); + + #endregion Public Fields + + #region Public Properties /// /// Codice Operatore @@ -96,7 +128,7 @@ namespace AppData if (answ == "") { answ = memLayer.ML.getCookieVal("CTrack_CodOpr"); - // se non vuoto salvo... + // se non vuoto salvo... memLayer.ML.setSessionVal("CodOpr", answ); } return answ; @@ -108,6 +140,7 @@ namespace AppData memLayer.ML.emptySessionVal("NomeOpr"); } } + /// /// Codice postazione di lavoro /// @@ -120,7 +153,7 @@ namespace AppData if (string.IsNullOrEmpty(answ)) { answ = memLayer.ML.getCookieVal("CTrack_CodPost"); - // se non vuoto salvo... + // se non vuoto salvo... memLayer.ML.setSessionVal("CodPost", answ); } return answ; @@ -132,33 +165,6 @@ namespace AppData memLayer.ML.emptySessionVal("DescPost"); } } - /// - /// Restituisce boolean se post corrente sia multi operatore - /// - public static bool postIsMulti - { - get - { - bool answ = false; - if (memLayer.ML.isInSessionObject("postIsMulti")) - { - answ = memLayer.ML.BoolSessionObj("postIsMulti"); - } - else - { - string rawAnsw = memLayer.ML.getCookieVal("CTrack_postIsMulti"); - bool.TryParse(rawAnsw, out answ); - // se non vuoto salvo... - memLayer.ML.setSessionVal("postIsMulti", answ); - } - return answ; - } - set - { - memLayer.ML.setSessionVal("postIsMulti", value); - memLayer.ML.setCookieVal("CTrack_postIsMulti", value.ToString()); - } - } /// /// oggetto valore opzionale letto 8e scorporato da barcode), es TAG in commessa + tag @@ -183,5 +189,35 @@ namespace AppData memLayer.ML.setSessionVal("optValueBC", value, false); } } + + /// + /// Restituisce boolean se post corrente sia multi operatore + /// + public static bool postIsMulti + { + get + { + bool answ = false; + if (memLayer.ML.isInSessionObject("postIsMulti")) + { + answ = memLayer.ML.BoolSessionObj("postIsMulti"); + } + else + { + string rawAnsw = memLayer.ML.getCookieVal("CTrack_postIsMulti"); + bool.TryParse(rawAnsw, out answ); + // se non vuoto salvo... + memLayer.ML.setSessionVal("postIsMulti", answ); + } + return answ; + } + set + { + memLayer.ML.setSessionVal("postIsMulti", value); + memLayer.ML.setCookieVal("CTrack_postIsMulti", value.ToString()); + } + } + + #endregion Public Properties } -} +} \ 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/Web.config b/C-TRACK/Web.config index 6005156..879307f 100644 --- a/C-TRACK/Web.config +++ b/C-TRACK/Web.config @@ -4,69 +4,72 @@ https://go.microsoft.com/fwlink/?LinkId=169433 --> - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -279,101 +282,99 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/C-TRACK/WebUserControls/mod_addTask.ascx b/C-TRACK/WebUserControls/mod_addTask.ascx index 9971445..d7f8e62 100644 --- a/C-TRACK/WebUserControls/mod_addTask.ascx +++ b/C-TRACK/WebUserControls/mod_addTask.ascx @@ -1,20 +1,29 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_addTask.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_addTask" %> -
-
-
- Cod.ARTICOLO -
<%: CodArticolo %>
+<%@ Register Src="~/WebUserControls/mod_periodo.ascx" TagPrefix="uc1" TagName="mod_periodo" %> + +
+
+
+ Data Export +
+
+ Cod.ARTICOLO +
<%: CodArticolo %>
+
+
+ COMMESSA +
<%: NumTask %>
+
+
+ QUANTITA +
<%: Quantita %>
+
+
+ TEMPO prev +
<%: TimeEst %>
+
+
+ RESET +
-
- COMMESSA -
<%: NumTask %>
-
-
- QUANTITA -
<%: Quantita %>
-
-
- RESET -
-
-
+
\ No newline at end of file diff --git a/C-TRACK/WebUserControls/mod_addTask.ascx.cs b/C-TRACK/WebUserControls/mod_addTask.ascx.cs index 7531c5b..6410b93 100644 --- a/C-TRACK/WebUserControls/mod_addTask.ascx.cs +++ b/C-TRACK/WebUserControls/mod_addTask.ascx.cs @@ -1,182 +1,255 @@ using AppData; using SteamWare; using System; +using System.Linq; using System.Text.RegularExpressions; namespace C_TRACK.WebUserControls { - public partial class mod_addTask : System.Web.UI.UserControl - { - /// - /// evento aggiunta record - /// - public event EventHandler eh_created; - protected void Page_Load(object sender, EventArgs e) + public partial class mod_addTask : System.Web.UI.UserControl { - if (!Page.IsPostBack) - { - CodArticolo = ""; - NumTask = ""; - Quantita = 0; - } - checkValori(); - } + #region Public Events - private void checkValori() - { - // verifica quali valori siano disponibili e di conseguenza visualizza COLORE... - divArticolo.Attributes.Remove("class"); - divCommessa.Attributes.Remove("class"); - divQta.Attributes.Remove("class"); - divArticolo.Attributes.Add("class", CodArticolo != "" ? "col-3 text-center table-success text-success" : "col-3 text-center text-secondary"); - divCommessa.Attributes.Add("class", NumTask != "" ? "col-3 text-center table-success text-success" : "col-3 text-center text-secondary"); - divQta.Attributes.Add("class", Quantita > 0 ? "col-3 text-center table-success text-success" : "col-3 text-center text-secondary"); - } - /// - /// Input da processare... - /// - public string newInput - { - set - { - processInput(value); - } - } - /// - /// Effettua riconoscimento input e determina valori commessa / articolo / qta - /// - /// - private void processInput(string value) - { - // verifico se sia un articolo... - Match testReset = Regex.Match(value, mUtils.reReset); - Match testDelete = Regex.Match(value, mUtils.reDelete); - Match testAddNew = Regex.Match(value, mUtils.reAddNew); - Match testCodArt = Regex.Match(value, mUtils.reCodArt); - Match testNumTask = Regex.Match(value, mUtils.reNumTask); - Match testQta = Regex.Match(value, mUtils.reQta); + /// + /// evento aggiunta record + /// + public event EventHandler eh_created; + #endregion Public Events - if (testReset.Success) - { - CodArticolo = ""; - NumTask = ""; - Quantita = 0; - } - else if (testDelete.Success) - { - // creo... - dataLayer.man.taTL.deleteQuery(NumTask); - // resetto! - CodArticolo = ""; - NumTask = ""; - Quantita = 0; - // invoco update... - if (eh_created != null) + #region Public Properties + + /// + /// Cod ARTICOLO corrente + /// + public string CodArticolo { - eh_created(this, new EventArgs()); + get + { + return memLayer.ML.StringSessionObj("currCodArt"); + } + set + { + memLayer.ML.setSessionVal("currCodArt", value); + } } - } - else if (testAddNew.Success) - { - // se qta > 0 ed ho articolo e commessa... - if (Quantita > 0 && CodArticolo != "" && NumTask != "") + + /// + /// Input da processare... + /// + public string newInput { - // creo... - dataLayer.man.taTL.insertQuery(NumTask, CodArticolo, Quantita); - // resetto! - CodArticolo = ""; - NumTask = ""; - Quantita = 0; - // invoco update... - if (eh_created != null) - { - eh_created(this, new EventArgs()); - } + set + { + processInput(value); + } } - } - else if (testCodArt.Success) - { - CodArticolo = value; - } - else if (testNumTask.Success) - { - NumTask = value; - } - else if (testQta.Success) - { - int qta = 0; - int.TryParse(value, out qta); - Quantita = qta; - } - // non match con RegExp --> ricerca ESPLICITA, se abilitato ricerca estesa - if (memLayer.ML.CRB("OptEnableMapoIn") && !(testCodArt.Success || testNumTask.Success)) - { - var tabArt = dataLayer.man.taAnArt.getByKey(value); - if (tabArt.Rows.Count > 0) + /// + /// Cod COMMESSA corrente + /// + public string NumTask { - CodArticolo = value; + get + { + return memLayer.ML.StringSessionObj("currNumTask"); + } + set + { + memLayer.ML.setSessionVal("currNumTask", value); + } } - else + + /// + /// QTA da produrre + /// + public int Quantita { - var tabTask = dataLayer.man.taTL.getByKey(value); - if (tabTask.Rows.Count > 0) - { - NumTask = value; - } + get + { + return memLayer.ML.IntSessionObj("currQta"); + } + set + { + memLayer.ML.setSessionVal("currQta", value); + } } - } - checkValori(); - } + /// + /// Tempo stimato x produzione + /// + public float TimeEst + { + get + { + float answ = -1; + string rawVal = memLayer.ML.StringSessionObj("currTimeEst"); + float.TryParse(rawVal, out answ); + return answ; + } + set + { + memLayer.ML.setSessionVal("currTimeEst", value); + } + } - /// - /// Cod ARTICOLO corrente - /// - public string CodArticolo - { - get - { - return memLayer.ML.StringSessionObj("currCodArt"); - } - set - { - memLayer.ML.setSessionVal("currCodArt", value); - } - } - /// - /// Cod COMMESSA corrente - /// - public string NumTask - { - get - { - return memLayer.ML.StringSessionObj("currNumTask"); - } - set - { - memLayer.ML.setSessionVal("currNumTask", value); - } - } - /// - /// QTA da produrre - /// - public int Quantita - { - get - { - return memLayer.ML.IntSessionObj("currQta"); - } - set - { - memLayer.ML.setSessionVal("currQta", value); - } - } + #endregion Public Properties - protected void lbtReset_Click(object sender, EventArgs e) - { - processInput(memLayer.ML.CRS("regExp_KO")); + #region Private Methods + + private void checkValori() + { + // verifica quali valori siano disponibili e di conseguenza visualizza COLORE... + divArticolo.Attributes.Remove("class"); + divCommessa.Attributes.Remove("class"); + divQta.Attributes.Remove("class"); + divTime.Attributes.Remove("class"); + divArticolo.Attributes.Add("class", CodArticolo != "" ? "col text-center table-success text-success" : "col text-center text-secondary"); + divCommessa.Attributes.Add("class", NumTask != "" ? "col text-center table-success text-success" : "col text-center text-secondary"); + divQta.Attributes.Add("class", Quantita > 0 ? "col text-center table-success text-success" : "col text-center text-secondary"); + divTime.Attributes.Add("class", TimeEst > 0 ? "col text-center table-success text-success" : "col text-center text-secondary"); + } + + /// + /// Effettua riconoscimento input e determina valori commessa / articolo / qta + /// + /// + private void processInput(string value) + { + // verifico se sia un articolo... + Match testReset = Regex.Match(value, mUtils.reReset); + Match testDelete = Regex.Match(value, mUtils.reDelete); + Match testAddNew = Regex.Match(value, mUtils.reAddNew); + Match testCodArt = Regex.Match(value, mUtils.reCodArt); + Match testNumTask = Regex.Match(value, mUtils.reNumTask); + Match testQta = Regex.Match(value, mUtils.reQta); + Match testTempo = Regex.Match(value, mUtils.reTempoPrev); + + if (testReset.Success) + { + CodArticolo = ""; + NumTask = ""; + Quantita = 0; + TimeEst = 0; + } + else if (testDelete.Success) + { + // creo... + dataLayer.man.taTL.deleteQuery(NumTask); + // resetto! + CodArticolo = ""; + NumTask = ""; + Quantita = 0; + // invoco update... + if (eh_created != null) + { + eh_created(this, new EventArgs()); + } + } + else if (testAddNew.Success) + { + // controllo condizione richiesta tempo x setup Task + bool confAddTaskReqTime = memLayer.ML.CRB("confAddTaskReqTime"); + // se NON richiesto --> Time=0 + if (!confAddTaskReqTime) + { + TimeEst = 0; + } + + // se qta > 0 ed ho articolo e commessa... + if (Quantita > 0 && !string.IsNullOrEmpty(CodArticolo) && !string.IsNullOrEmpty(NumTask) && (!confAddTaskReqTime || TimeEst > 0)) + { + // creo... + dataLayer.man.taTL.insertQuery(NumTask, CodArticolo, Quantita, TimeEst); + // resetto! + CodArticolo = ""; + NumTask = ""; + Quantita = 0; + // invoco update... + if (eh_created != null) + { + eh_created(this, new EventArgs()); + } + } + } + else if (testTempo.Success) + { + string newVal = value; + // effettuo pulizia variabile da conf... + foreach (var item in mUtils.lRepCleanTime) + { + string[] repVal = item.Split('|'); + if (repVal.Length > 1) + { + newVal = newVal.Replace(repVal[0], repVal[1]); + } + } + float tPrev = 0; + float.TryParse(newVal, out tPrev); + // se configurata conversione procedo + if (mUtils.TimeEstFactor != 1) + { + tPrev = tPrev / mUtils.TimeEstFactor; + } + // assegno! + TimeEst = tPrev; + } + else if (testCodArt.Success) + { + CodArticolo = value; + } + else if (testNumTask.Success) + { + NumTask = value; + } + else if (testQta.Success) + { + int qta = 0; + int.TryParse(value, out qta); + Quantita = qta; + } + + // non match con RegExp --> ricerca ESPLICITA, se abilitato ricerca estesa + if (memLayer.ML.CRB("OptEnableMapoIn") && !(testCodArt.Success || testNumTask.Success)) + { + var tabArt = dataLayer.man.taAnArt.getByKey(value); + if (tabArt.Rows.Count > 0) + { + CodArticolo = value; + } + else + { + var tabTask = dataLayer.man.taTL.getByKey(value); + if (tabTask.Rows.Count > 0) + { + NumTask = value; + } + } + } + + checkValori(); + } + + #endregion Private Methods + + #region Protected Methods + + protected void lbtReset_Click(object sender, EventArgs e) + { + processInput(memLayer.ML.CRS("regExp_KO")); + } + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + CodArticolo = ""; + NumTask = ""; + Quantita = 0; + } + checkValori(); + } + + #endregion Protected Methods } - } } \ No newline at end of file diff --git a/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs b/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs index 57452d8..6a378e6 100644 --- a/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs +++ b/C-TRACK/WebUserControls/mod_addTask.ascx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace C_TRACK.WebUserControls { - - - public partial class mod_addTask { - +namespace C_TRACK.WebUserControls +{ + + + public partial class mod_addTask + { + /// /// Controllo divAddNew. /// @@ -20,7 +22,25 @@ 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.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. /// @@ -29,7 +49,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.HtmlControls.HtmlGenericControl divArticolo; - + /// /// Controllo lblCodArt. /// @@ -38,7 +58,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.Label lblCodArt; - + /// /// Controllo divCommessa. /// @@ -47,7 +67,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.HtmlControls.HtmlGenericControl divCommessa; - + /// /// Controllo lblNumTask. /// @@ -56,7 +76,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.Label lblNumTask; - + /// /// Controllo divQta. /// @@ -65,7 +85,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.HtmlControls.HtmlGenericControl divQta; - + /// /// Controllo lblQta. /// @@ -74,7 +94,25 @@ 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.Label lblQta; - + + /// + /// Controllo divTime. + /// + /// + /// 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 divTime; + + /// + /// Controllo Label1. + /// + /// + /// 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.Label Label1; + /// /// Controllo divReset. /// @@ -83,7 +121,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.HtmlControls.HtmlGenericControl divReset; - + /// /// Controllo lbtReset. /// 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/WebUserControls/mod_taskList.ascx b/C-TRACK/WebUserControls/mod_taskList.ascx index 350a5c1..bcfaa72 100644 --- a/C-TRACK/WebUserControls/mod_taskList.ascx +++ b/C-TRACK/WebUserControls/mod_taskList.ascx @@ -3,90 +3,91 @@ <%@ Register Src="~/WebUserControls/mod_fasiAttive.ascx" TagPrefix="uc1" TagName="mod_fasiAttive" %>
-
- [1] Caricate -
-
- [2] In Corso -
-
- [3] Concluse -
-
- [0] Tutte Comm -
-
- [4] Fasi Attive -
+
+ [1] Caricate +
+
+ [2] In Corso +
+
+ [3] Concluse +
+
+ [0] Tutte Comm +
+
+ [4] Fasi Attive +
-
- - - NB: tempi espressi in minuti.centesimi - - - - - - - Nessun Risultato - - - - - - - - - +
+ + + NB: tempi espressi in minuti.centesimi + + + + + + + Nessun Risultato + + + + + + + + + - - - - - - - - - - - - - -
- -
- -
-
+ +
+ + + + + + + + + + + + +
+ +
+ +
+
- -
- - -
-
- - -
-
-
+ +
+ + +
+
+ + +
+
+
- -
-
-
- - - - - - - - - - - -
-
+ + + + + + + + + + + + + + + +
+ \ No newline at end of file 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; } } diff --git a/Jenkinsfile b/Jenkinsfile index 7906949..b22652b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,9 +13,9 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=223']) { - // env.versionNumber = VersionNumber(versionNumberString : '1.4.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2018-01-01', skipFailedBuilds: true) - env.versionNumber = VersionNumber(versionNumberString : '1.4.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2018-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') + withEnv(['NEXT_BUILD_NUMBER=224']) { + // env.versionNumber = VersionNumber(versionNumberString : '1.5.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2018-01-01', skipFailedBuilds: true) + env.versionNumber = VersionNumber(versionNumberString : '1.5.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2018-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'C.TRACK' } } diff --git a/README.md b/README.md index f102716..4e849d4 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Ci sono le seguenti maschere principali: * Creazione TASK (commesse) - nuova * MAIN BCode (derivata da XPST) -* DATA EXPORT (esportazione tracciati RAW delel registrazioni x commessa, formato csv reale o da tab con type excel/csv) +* DATA EXPORT (esportazione tracciati RAW delle registrazioni x commessa, formato csv reale o da tab con type excel/csv) ## Modalità operativa @@ -46,7 +46,7 @@ In particolare si tratta di * Totale tempo fasi / pezzi --> TC stimato * Si potrebbe costruire un grafico / curva (opzionale, in secondo periodo) per indicare una CURVA del TCiclo al variare della uantità di pezzi lanciati in un ordine di produzione -## NOte operative +## Note operative Ci sono alcune pagine speciali: diff --git a/README.pdf b/README.pdf index ad08b49..bddd3cb 100644 Binary files a/README.pdf and b/README.pdf differ