Aggiunta metodi e pagina x export aggregato o meno

This commit is contained in:
Samuele E. Locatelli
2020-10-25 17:15:45 +01:00
parent 9e0326ffc2
commit 581aa79763
15 changed files with 1465 additions and 291 deletions
+883
View File
@@ -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);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -5602,6 +5637,386 @@ namespace AppData {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class TaskRecAggDataTable : global::System.Data.TypedTableBase<TaskRecAggRow> {
private global::System.Data.DataColumn columnNumTask;
private global::System.Data.DataColumn columnCodArt;
private global::System.Data.DataColumn columnQtaRic;
private global::System.Data.DataColumn columnIdxRec;
private global::System.Data.DataColumn columnDtStart;
private global::System.Data.DataColumn columnDtEnd;
private global::System.Data.DataColumn columnQtaEv;
private global::System.Data.DataColumn columnDurataMin;
private global::System.Data.DataColumn columnTCiclo;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggDataTable() {
this.TableName = "TaskRecAgg";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal TaskRecAggDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected TaskRecAggDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn NumTaskColumn {
get {
return this.columnNumTask;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CodArtColumn {
get {
return this.columnCodArt;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn QtaRicColumn {
get {
return this.columnQtaRic;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn IdxRecColumn {
get {
return this.columnIdxRec;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DtStartColumn {
get {
return this.columnDtStart;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DtEndColumn {
get {
return this.columnDtEnd;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn QtaEvColumn {
get {
return this.columnQtaEv;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DurataMinColumn {
get {
return this.columnDurataMin;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn TCicloColumn {
get {
return this.columnTCiclo;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRow this[int index] {
get {
return ((TaskRecAggRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event TaskRecAggRowChangeEventHandler TaskRecAggRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event TaskRecAggRowChangeEventHandler TaskRecAggRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event TaskRecAggRowChangeEventHandler TaskRecAggRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event TaskRecAggRowChangeEventHandler TaskRecAggRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddTaskRecAggRow(TaskRecAggRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRow AddTaskRecAggRow(string NumTask, string CodArt, int QtaRic, int IdxRec, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, decimal DurataMin, decimal TCiclo) {
TaskRecAggRow rowTaskRecAggRow = ((TaskRecAggRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
NumTask,
CodArt,
QtaRic,
IdxRec,
DtStart,
DtEnd,
QtaEv,
DurataMin,
TCiclo};
rowTaskRecAggRow.ItemArray = columnValuesArray;
this.Rows.Add(rowTaskRecAggRow);
return rowTaskRecAggRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRow FindByNumTask(string NumTask) {
return ((TaskRecAggRow)(this.Rows.Find(new object[] {
NumTask})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
TaskRecAggDataTable cln = ((TaskRecAggDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new TaskRecAggDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnNumTask = base.Columns["NumTask"];
this.columnCodArt = base.Columns["CodArt"];
this.columnQtaRic = base.Columns["QtaRic"];
this.columnIdxRec = base.Columns["IdxRec"];
this.columnDtStart = base.Columns["DtStart"];
this.columnDtEnd = base.Columns["DtEnd"];
this.columnQtaEv = base.Columns["QtaEv"];
this.columnDurataMin = base.Columns["DurataMin"];
this.columnTCiclo = base.Columns["TCiclo"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnNumTask = new global::System.Data.DataColumn("NumTask", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumTask);
this.columnCodArt = new global::System.Data.DataColumn("CodArt", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodArt);
this.columnQtaRic = new global::System.Data.DataColumn("QtaRic", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaRic);
this.columnIdxRec = new global::System.Data.DataColumn("IdxRec", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxRec);
this.columnDtStart = new global::System.Data.DataColumn("DtStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDtStart);
this.columnDtEnd = new global::System.Data.DataColumn("DtEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDtEnd);
this.columnQtaEv = new global::System.Data.DataColumn("QtaEv", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaEv);
this.columnDurataMin = new global::System.Data.DataColumn("DurataMin", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDurataMin);
this.columnTCiclo = new global::System.Data.DataColumn("TCiclo", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTCiclo);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnNumTask}, true));
this.columnNumTask.AllowDBNull = false;
this.columnNumTask.Unique = true;
this.columnNumTask.MaxLength = 50;
this.columnCodArt.ReadOnly = true;
this.columnCodArt.MaxLength = 50;
this.columnQtaRic.ReadOnly = true;
this.columnIdxRec.ReadOnly = true;
this.columnDtStart.ReadOnly = true;
this.columnDtEnd.ReadOnly = true;
this.columnQtaEv.ReadOnly = true;
this.columnDurataMin.ReadOnly = true;
this.columnTCiclo.ReadOnly = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRow NewTaskRecAggRow() {
return ((TaskRecAggRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new TaskRecAggRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(TaskRecAggRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.TaskRecAggRowChanged != null)) {
this.TaskRecAggRowChanged(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.TaskRecAggRowChanging != null)) {
this.TaskRecAggRowChanging(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.TaskRecAggRowDeleted != null)) {
this.TaskRecAggRowDeleted(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.TaskRecAggRowDeleting != null)) {
this.TaskRecAggRowDeleting(this, new TaskRecAggRowChangeEvent(((TaskRecAggRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveTaskRecAggRow(TaskRecAggRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_App ds = new DS_App();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "TaskRecAggDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -7709,6 +8124,256 @@ namespace AppData {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class TaskRecAggRow : global::System.Data.DataRow {
private TaskRecAggDataTable tableTaskRecAgg;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal TaskRecAggRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableTaskRecAgg = ((TaskRecAggDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string NumTask {
get {
return ((string)(this[this.tableTaskRecAgg.NumTaskColumn]));
}
set {
this[this.tableTaskRecAgg.NumTaskColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string CodArt {
get {
try {
return ((string)(this[this.tableTaskRecAgg.CodArtColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArt\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.CodArtColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int QtaRic {
get {
try {
return ((int)(this[this.tableTaskRecAgg.QtaRicColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtaRic\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.QtaRicColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int IdxRec {
get {
try {
return ((int)(this[this.tableTaskRecAgg.IdxRecColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxRec\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.IdxRecColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public System.DateTime DtStart {
get {
try {
return ((global::System.DateTime)(this[this.tableTaskRecAgg.DtStartColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'DtStart\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.DtStartColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public System.DateTime DtEnd {
get {
try {
return ((global::System.DateTime)(this[this.tableTaskRecAgg.DtEndColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'DtEnd\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.DtEndColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int QtaEv {
get {
try {
return ((int)(this[this.tableTaskRecAgg.QtaEvColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'QtaEv\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.QtaEvColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public decimal DurataMin {
get {
try {
return ((decimal)(this[this.tableTaskRecAgg.DurataMinColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'DurataMin\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.DurataMinColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public decimal TCiclo {
get {
try {
return ((decimal)(this[this.tableTaskRecAgg.TCicloColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'TCiclo\' nella tabella \'TaskRecAgg\' è DBNull.", e);
}
}
set {
this[this.tableTaskRecAgg.TCicloColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsCodArtNull() {
return this.IsNull(this.tableTaskRecAgg.CodArtColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetCodArtNull() {
this[this.tableTaskRecAgg.CodArtColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsQtaRicNull() {
return this.IsNull(this.tableTaskRecAgg.QtaRicColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetQtaRicNull() {
this[this.tableTaskRecAgg.QtaRicColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsIdxRecNull() {
return this.IsNull(this.tableTaskRecAgg.IdxRecColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetIdxRecNull() {
this[this.tableTaskRecAgg.IdxRecColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDtStartNull() {
return this.IsNull(this.tableTaskRecAgg.DtStartColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDtStartNull() {
this[this.tableTaskRecAgg.DtStartColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDtEndNull() {
return this.IsNull(this.tableTaskRecAgg.DtEndColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDtEndNull() {
this[this.tableTaskRecAgg.DtEndColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsQtaEvNull() {
return this.IsNull(this.tableTaskRecAgg.QtaEvColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetQtaEvNull() {
this[this.tableTaskRecAgg.QtaEvColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDurataMinNull() {
return this.IsNull(this.tableTaskRecAgg.DurataMinColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDurataMinNull() {
this[this.tableTaskRecAgg.DurataMinColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsTCicloNull() {
return this.IsNull(this.tableTaskRecAgg.TCicloColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetTCicloNull() {
this[this.tableTaskRecAgg.TCicloColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -8150,6 +8815,40 @@ namespace AppData {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class TaskRecAggRowChangeEvent : global::System.EventArgs {
private TaskRecAggRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRowChangeEvent(TaskRecAggRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace AppData.DS_AppTableAdapters {
@@ -13550,6 +14249,190 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)";
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class TaskRecAggTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public TaskRecAggTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "TaskRecAgg";
tableMapping.ColumnMappings.Add("NumTask", "NumTask");
tableMapping.ColumnMappings.Add("CodArt", "CodArt");
tableMapping.ColumnMappings.Add("QtaRic", "QtaRic");
tableMapping.ColumnMappings.Add("IdxRec", "IdxRec");
tableMapping.ColumnMappings.Add("DtStart", "DtStart");
tableMapping.ColumnMappings.Add("DtEnd", "DtEnd");
tableMapping.ColumnMappings.Add("QtaEv", "QtaEv");
tableMapping.ColumnMappings.Add("DurataMin", "DurataMin");
tableMapping.ColumnMappings.Add("TCiclo", "TCiclo");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::AppData.Properties.Settings.Default.C_TRACKConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_TRA_GetByFilt";
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_App.TaskRecAggDataTable getByFilt(string CodArt, global::System.Nullable<global::System.DateTime> DtFrom, global::System.Nullable<global::System.DateTime> 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;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+60
View File
@@ -1129,6 +1129,35 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)</CommandT
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TaskRecAggTableAdapter" GeneratorDataComponentClassName="TaskRecAggTableAdapter" Name="TaskRecAgg" UserDataComponentName="TaskRecAggTableAdapter">
<MainSource>
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TRA_GetByFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="getByFilt" GetMethodModifier="Public" GetMethodName="getByFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="getByFilt" UserSourceName="getByFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TRA_GetByFilt</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtFrom" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtTo" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="NumTask" DataSetColumn="NumTask" />
<Mapping SourceColumn="CodArt" DataSetColumn="CodArt" />
<Mapping SourceColumn="QtaRic" DataSetColumn="QtaRic" />
<Mapping SourceColumn="IdxRec" DataSetColumn="IdxRec" />
<Mapping SourceColumn="DtStart" DataSetColumn="DtStart" />
<Mapping SourceColumn="DtEnd" DataSetColumn="DtEnd" />
<Mapping SourceColumn="QtaEv" DataSetColumn="QtaEv" />
<Mapping SourceColumn="DurataMin" DataSetColumn="DurataMin" />
<Mapping SourceColumn="TCiclo" DataSetColumn="TCiclo" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -1729,6 +1758,33 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)</CommandT
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TaskRecAgg" msprop:Generator_TableClassName="TaskRecAggDataTable" msprop:Generator_TableVarName="tableTaskRecAgg" msprop:Generator_TablePropName="TaskRecAgg" msprop:Generator_RowDeletingName="TaskRecAggRowDeleting" msprop:Generator_RowChangingName="TaskRecAggRowChanging" msprop:Generator_RowEvHandlerName="TaskRecAggRowChangeEventHandler" msprop:Generator_RowDeletedName="TaskRecAggRowDeleted" msprop:Generator_UserTableName="TaskRecAgg" msprop:Generator_RowChangedName="TaskRecAggRowChanged" msprop:Generator_RowEvArgName="TaskRecAggRowChangeEvent" msprop:Generator_RowClassName="TaskRecAggRow">
<xs:complexType>
<xs:sequence>
<xs:element name="NumTask" msprop:Generator_ColumnVarNameInTable="columnNumTask" msprop:Generator_ColumnPropNameInRow="NumTask" msprop:Generator_ColumnPropNameInTable="NumTaskColumn" msprop:Generator_UserColumnName="NumTask">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArt" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCodArt" msprop:Generator_ColumnPropNameInRow="CodArt" msprop:Generator_ColumnPropNameInTable="CodArtColumn" msprop:Generator_UserColumnName="CodArt" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="QtaRic" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnQtaRic" msprop:Generator_ColumnPropNameInRow="QtaRic" msprop:Generator_ColumnPropNameInTable="QtaRicColumn" msprop:Generator_UserColumnName="QtaRic" type="xs:int" minOccurs="0" />
<xs:element name="IdxRec" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnIdxRec" msprop:Generator_ColumnPropNameInRow="IdxRec" msprop:Generator_ColumnPropNameInTable="IdxRecColumn" msprop:Generator_UserColumnName="IdxRec" type="xs:int" minOccurs="0" />
<xs:element name="DtStart" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDtStart" msprop:Generator_ColumnPropNameInRow="DtStart" msprop:Generator_ColumnPropNameInTable="DtStartColumn" msprop:Generator_UserColumnName="DtStart" type="xs:dateTime" minOccurs="0" />
<xs:element name="DtEnd" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDtEnd" msprop:Generator_ColumnPropNameInRow="DtEnd" msprop:Generator_ColumnPropNameInTable="DtEndColumn" msprop:Generator_UserColumnName="DtEnd" type="xs:dateTime" minOccurs="0" />
<xs:element name="QtaEv" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnQtaEv" msprop:Generator_ColumnPropNameInRow="QtaEv" msprop:Generator_ColumnPropNameInTable="QtaEvColumn" msprop:Generator_UserColumnName="QtaEv" type="xs:int" minOccurs="0" />
<xs:element name="DurataMin" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDurataMin" msprop:Generator_ColumnPropNameInRow="DurataMin" msprop:Generator_ColumnPropNameInTable="DurataMinColumn" msprop:Generator_UserColumnName="DurataMin" type="xs:decimal" minOccurs="0" />
<xs:element name="TCiclo" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTCiclo" msprop:Generator_ColumnPropNameInRow="TCiclo" msprop:Generator_ColumnPropNameInTable="TCicloColumn" msprop:Generator_UserColumnName="TCiclo" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -1778,5 +1834,9 @@ SELECT CodTag, TipoTag, DescrTag FROM AnagTag WHERE (CodTag = @CodTag)</CommandT
<xs:selector xpath=".//mstns:AnagTag" />
<xs:field xpath="mstns:CodTag" />
</xs:unique>
<xs:unique name="TaskRecAgg_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TaskRecAgg" />
<xs:field xpath="mstns:NumTask" />
</xs:unique>
</xs:element>
</xs:schema>
+15 -14
View File
@@ -4,21 +4,22 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="250" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="342" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:TaskList" ZOrder="1" X="85" Y="299" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="292" />
<Shape ID="DesignTable:AnagFasi" ZOrder="10" X="887" Y="474" Height="191" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagOpr" ZOrder="13" X="910" Y="728" Height="153" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:TaskRec" ZOrder="4" X="519" Y="541" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:AnagPost" ZOrder="9" X="519" Y="209" Height="267" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:TraEv2Stati" ZOrder="12" X="195" Y="1020" Height="248" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:AnagEventi" ZOrder="11" X="903" Y="966" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PODL" ZOrder="8" X="560" Y="1047" Height="343" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagArticoli" ZOrder="7" X="258" Y="1475" Height="229" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:TaskList2Post" ZOrder="2" X="809" Y="16" Height="400" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagStati" ZOrder="6" X="220" Y="54" Height="191" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Opr2Post" ZOrder="5" X="175" Y="774" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTag" ZOrder="3" X="563" Y="18" Height="153" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:TaskList" ZOrder="2" X="85" Y="299" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="292" />
<Shape ID="DesignTable:AnagFasi" ZOrder="11" X="887" Y="474" Height="191" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagOpr" ZOrder="14" X="910" Y="728" Height="153" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:TaskRec" ZOrder="5" X="519" Y="541" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:AnagPost" ZOrder="10" X="519" Y="209" Height="267" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:TraEv2Stati" ZOrder="13" X="195" Y="1020" Height="248" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:AnagEventi" ZOrder="12" X="903" Y="966" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PODL" ZOrder="9" X="560" Y="1047" Height="343" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagArticoli" ZOrder="8" X="258" Y="1475" Height="229" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:TaskList2Post" ZOrder="3" X="809" Y="16" Height="400" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagStati" ZOrder="7" X="220" Y="54" Height="191" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Opr2Post" ZOrder="6" X="175" Y="774" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTag" ZOrder="4" X="563" Y="18" Height="153" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:TaskRecAgg" ZOrder="1" X="833" Y="1202" Height="248" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
</Shapes>
<Connectors />
</DiagramLayout>
+141 -110
View File
@@ -2,115 +2,146 @@
namespace AppData
{
public class dataLayer
{
/// <summary>
/// avvio classe
/// </summary>
protected dataLayer()
public class dataLayer
{
avvioTA();
setupConnectionStringBase();
#region Public Fields
/// <summary>
/// singleton classe
/// </summary>
public static dataLayer man = new dataLayer();
/// <summary>
/// Elenco POSTAZIONI
/// </summary>
public DS_AppTableAdapters.AnagFasiTableAdapter taAF;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV;
/// <summary>
/// Elenco ARTICOLI
/// </summary>
public DS_AppTableAdapters.AnagArticoliTableAdapter taAnArt;
/// <summary>
/// Elenco OPERATORI
/// </summary>
public DS_AppTableAdapters.AnagOprTableAdapter taAO;
/// <summary>
/// Elenco POSTAZIONI
/// </summary>
public DS_AppTableAdapters.AnagPostTableAdapter taAP;
/// <summary>
/// Elenco TAG
/// </summary>
public DS_AppTableAdapters.AnagTagTableAdapter taAT;
/// <summary>
/// Elenco PROMESSE ODL
/// </summary>
public DS_AppTableAdapters.Opr2PostTableAdapter taO2P;
/// <summary>
/// Elenco PROMESSE ODL
/// </summary>
public DS_AppTableAdapters.PODLTableAdapter taPODL;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TraEv2StatiTableAdapter taTE2S;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskListTableAdapter taTL;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskList2PostTableAdapter taTL2Post;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskRecTableAdapter taTR;
/// <summary>
/// Elenco TASK Aggregati
/// </summary>
public DS_AppTableAdapters.TaskRecAggTableAdapter taTRA;
#endregion Public Fields
#region Protected Constructors
/// <summary>
/// avvio classe
/// </summary>
protected dataLayer()
{
avvioTA();
setupConnectionStringBase();
}
#endregion Protected Constructors
#region Private Methods
/// <summary>
/// avvia table adapters
/// </summary>
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
/// <summary>
/// effettua setup dei connection strings da web.config delal singola applicazione
/// </summary>
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
}
/// <summary>
/// avvia table adapters
/// </summary>
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();
}
/// <summary>
/// effettua setup dei connection strings da web.config delal singola applicazione
/// </summary>
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;
}
/// <summary>
/// Elenco ARTICOLI
/// </summary>
public DS_AppTableAdapters.AnagArticoliTableAdapter taAnArt;
/// <summary>
/// Elenco POSTAZIONI
/// </summary>
public DS_AppTableAdapters.AnagFasiTableAdapter taAF;
/// <summary>
/// Elenco OPERATORI
/// </summary>
public DS_AppTableAdapters.AnagOprTableAdapter taAO;
/// <summary>
/// Elenco POSTAZIONI
/// </summary>
public DS_AppTableAdapters.AnagPostTableAdapter taAP;
/// <summary>
/// Elenco TAG
/// </summary>
public DS_AppTableAdapters.AnagTagTableAdapter taAT;
/// <summary>
/// Elenco PROMESSE ODL
/// </summary>
public DS_AppTableAdapters.Opr2PostTableAdapter taO2P;
/// <summary>
/// Elenco PROMESSE ODL
/// </summary>
public DS_AppTableAdapters.PODLTableAdapter taPODL;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskListTableAdapter taTL;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskList2PostTableAdapter taTL2Post;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TaskRecTableAdapter taTR;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_AppTableAdapters.TraEv2StatiTableAdapter taTE2S;
/// <summary>
/// Elenco TASK
/// </summary>
public DS_UtilityTableAdapters.AnagKeyValueTableAdapter taAKV;
/// <summary>
/// singleton classe
/// </summary>
public static dataLayer man = new dataLayer();
}
}
}
+90
View File
@@ -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
/// <summary>
/// Generico evento di richiesta refresh a aprent
/// </summary>
public event EventHandler eh_doRefresh;
/// <summary>
/// Generico evento di richiesta refresh a aprent
/// </summary>
public event EventHandler eh_doReset;
#endregion Public Events
#region Protected Properties
/// <summary>
/// Codice operatore salvato in cookie
/// </summary>
protected string cookieCodOpr
{
get
{
return memLayer.ML.getCookieVal("CTrack_CodOpr");
}
}
/// <summary>
/// Codice post salvato in cookie
/// </summary>
protected string cookieCodPost
{
get
{
return memLayer.ML.getCookieVal("CTrack_CodPost");
}
}
#endregion Protected Properties
#region Public Methods
/// <summary>
/// Chiamata evento
/// </summary>
public void raiseEvent()
{
// se qualcuno ascolta sollevo evento nuovo valore...
if (eh_doRefresh != null)
{
eh_doRefresh(this, new EventArgs());
}
}
/// <summary>
/// Chiamata evento
/// </summary>
public void raiseReset()
{
// se qualcuno ascolta sollevo evento nuovo valore...
if (eh_doReset != null)
{
eh_doReset(this, new EventArgs());
}
}
/// <summary>
/// Wrapper traduzione termini
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return SteamWare.user_std.UtSn.Traduci(lemma);
}
#endregion Public Methods
}
}
+3
View File
@@ -551,6 +551,9 @@
<Compile Include="barcode.aspx.designer.cs">
<DependentUpon>barcode.aspx</DependentUpon>
</Compile>
<Compile Include="BaseUserControl.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="closeAllRec.aspx.cs">
<DependentUpon>closeAllRec.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+5
View File
@@ -1,6 +1,11 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_addTask.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_addTask" %>
<%@ Register Src="~/WebUserControls/mod_periodo.ascx" TagPrefix="uc1" TagName="mod_periodo" %>
<div runat="server" id="divAddNew">
<div class="row font-weight-bold py-2">
<div class="col text-center" runat="server" id="divExport">
<asp:HyperLink runat="server" ID="hlExport" CssClass="btn btn-warning btn-block" NavigateUrl="~/export.aspx" Target="_blank"><i class="fas fa-download"></i> Data Export</asp:HyperLink>
</div>
<div class="col text-center" runat="server" id="divArticolo">
<asp:Label runat="server" ID="lblCodArt" CssClass="text-secondary">Cod.ARTICOLO</asp:Label>
<div><%: CodArticolo %></div>
+18
View File
@@ -23,6 +23,24 @@ namespace C_TRACK.WebUserControls
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAddNew;
/// <summary>
/// Controllo divExport.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divExport;
/// <summary>
/// Controllo hlExport.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlExport;
/// <summary>
/// Controllo divArticolo.
/// </summary>
+7 -15
View File
@@ -1,18 +1,10 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_periodo.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_periodo" %>
<div class="row">
<div class="col">
<asp:TextBox runat="server" ID="txtFrom" CssClass="form-control" TextMode="Date" AutoPostBack="True" OnTextChanged="txtFrom_TextChanged"></asp:TextBox>
</div>
<div class="col"></div>
<div class="col">
<asp:TextBox runat="server" ID="txtTo" CssClass="form-control" TextMode="Date" AutoPostBack="True" OnTextChanged="txtTo_TextChanged"></asp:TextBox>
</div>
</div>
<div class="row">
<div class="col"></div>
<div class="col">
<asp:HyperLink runat="server" ID="hlExport" Target="_blank" CssClass="btn btn-success btn-block">EXPORT</asp:HyperLink>
</div>
<div class="col"></div>
</div>
<div class="col">
<asp:TextBox runat="server" ID="txtFrom" CssClass="form-control" TextMode="Date" AutoPostBack="True" OnTextChanged="txtFrom_TextChanged"></asp:TextBox>
</div>
<div class="col">
<asp:TextBox runat="server" ID="txtTo" CssClass="form-control" TextMode="Date" AutoPostBack="True" OnTextChanged="txtTo_TextChanged"></asp:TextBox>
</div>
</div>
+50 -48
View File
@@ -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
}
}
}
+8 -15
View File
@@ -7,11 +7,13 @@
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace C_TRACK.WebUserControls {
public partial class mod_periodo {
namespace C_TRACK.WebUserControls
{
public partial class mod_periodo
{
/// <summary>
/// Controllo txtFrom.
/// </summary>
@@ -20,7 +22,7 @@ namespace C_TRACK.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtFrom;
/// <summary>
/// Controllo txtTo.
/// </summary>
@@ -29,14 +31,5 @@ namespace C_TRACK.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtTo;
/// <summary>
/// Controllo hlExport.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlExport;
}
}
+117 -69
View File
@@ -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
}
}
}
+19 -10
View File
@@ -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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
<div class="card">
<div class="card-header text-center text-primary text-uppercase py-1">
<b>Gestione Commesse</b>
<div class="card">
<div class="card-header text-center text-primary text-uppercase py-1">
<b>Gestione Commesse</b>
</div>
<div class="card-body p-1">
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<div class="row my-2">
<div class="col-6">
<uc1:mod_periodo runat="server" ID="mod_periodo" />
</div>
<div class="col-3">
<asp:HyperLink runat="server" ID="hlExportFull" Target="_blank" CssClass="btn btn-success text-light btn-block"><i class="fas fa-download"></i> Export FULL</asp:HyperLink>
</div>
<div class="col-3">
<asp:HyperLink runat="server" ID="hlExportComp" Target="_blank" CssClass="btn btn-success text-light btn-block"><i class="fas fa-download"></i> Export Compatto</asp:HyperLink>
</div>
</div>
</div>
</div>
<div class="card-body p-1">
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_periodo runat="server" id="mod_periodo" />
</div>
</div>
</asp:Content>
</asp:Content>
+23 -4
View File
@@ -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
}
}
}
+26 -6
View File
@@ -7,11 +7,13 @@
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace C_TRACK {
public partial class export {
namespace C_TRACK
{
public partial class export
{
/// <summary>
/// Controllo mod_checkOpr.
/// </summary>
@@ -20,7 +22,7 @@ namespace C_TRACK {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::C_TRACK.WebUserControls.mod_checkOpr mod_checkOpr;
/// <summary>
/// Controllo mod_periodo.
/// </summary>
@@ -29,5 +31,23 @@ namespace C_TRACK {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::C_TRACK.WebUserControls.mod_periodo mod_periodo;
/// <summary>
/// Controllo hlExportFull.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlExportFull;
/// <summary>
/// Controllo hlExportComp.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlExportComp;
}
}