diff --git a/CMS-SC-Data/DS_Applicazione.Designer.cs b/CMS-SC-Data/DS_Applicazione.Designer.cs index cf99b82..c933277 100644 --- a/CMS-SC-Data/DS_Applicazione.Designer.cs +++ b/CMS-SC-Data/DS_Applicazione.Designer.cs @@ -56,6 +56,8 @@ namespace CMS_SC_Data { private DFRDataTable tableDFR; + private FRGLDataTable tableFRGL; + private global::System.Data.DataRelation relationFK_DettScheda_AnagSchede1; private global::System.Data.DataRelation relationFK_ElencoMacchineCN_ElencoFamMacc; @@ -152,6 +154,9 @@ namespace CMS_SC_Data { if ((ds.Tables["DFR"] != null)) { base.Tables.Add(new DFRDataTable(ds.Tables["DFR"])); } + if ((ds.Tables["FRGL"] != null)) { + base.Tables.Add(new FRGLDataTable(ds.Tables["FRGL"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -330,6 +335,16 @@ namespace CMS_SC_Data { } } + [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 FRGLDataTable FRGL { + get { + return this.tableFRGL; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -445,6 +460,9 @@ namespace CMS_SC_Data { if ((ds.Tables["DFR"] != null)) { base.Tables.Add(new DFRDataTable(ds.Tables["DFR"])); } + if ((ds.Tables["FRGL"] != null)) { + base.Tables.Add(new FRGLDataTable(ds.Tables["FRGL"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -574,6 +592,12 @@ namespace CMS_SC_Data { this.tableDFR.InitVars(); } } + this.tableFRGL = ((FRGLDataTable)(base.Tables["FRGL"])); + if ((initTable == true)) { + if ((this.tableFRGL != null)) { + this.tableFRGL.InitVars(); + } + } this.relationFK_DettScheda_AnagSchede1 = this.Relations["FK_DettScheda_AnagSchede1"]; this.relationFK_ElencoMacchineCN_ElencoFamMacc = this.Relations["FK_ElencoMacchineCN_ElencoFamMacc"]; this.relationFK_ValidVal_DettScheda = this.Relations["FK_ValidVal_DettScheda"]; @@ -626,6 +650,8 @@ namespace CMS_SC_Data { base.Tables.Add(this.tableStatoCollaudi); this.tableDFR = new DFRDataTable(); base.Tables.Add(this.tableDFR); + this.tableFRGL = new FRGLDataTable(); + base.Tables.Add(this.tableFRGL); this.relationFK_DettScheda_AnagSchede1 = new global::System.Data.DataRelation("FK_DettScheda_AnagSchede1", new global::System.Data.DataColumn[] { this.tableAnagSchede.CodSchedaColumn, this.tableAnagSchede.VersColumn}, new global::System.Data.DataColumn[] { @@ -774,6 +800,12 @@ namespace CMS_SC_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private bool ShouldSerializeFRGL() { + 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) { @@ -877,6 +909,9 @@ namespace CMS_SC_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public delegate void DFRRowChangeEventHandler(object sender, DFRRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public delegate void FRGLRowChangeEventHandler(object sender, FRGLRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -7003,6 +7038,361 @@ namespace CMS_SC_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FRGLDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxRec; + + private global::System.Data.DataColumn columnUSER_NAME; + + private global::System.Data.DataColumn columnIdxDossier; + + private global::System.Data.DataColumn columnGenDate; + + private global::System.Data.DataColumn columnMatricola; + + private global::System.Data.DataColumn columnFaseAct; + + private global::System.Data.DataColumn columnRevAct; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public FRGLDataTable() { + this.TableName = "FRGL"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal FRGLDataTable(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 FRGLDataTable(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 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 USER_NAMEColumn { + get { + return this.columnUSER_NAME; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn IdxDossierColumn { + get { + return this.columnIdxDossier; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn GenDateColumn { + get { + return this.columnGenDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn MatricolaColumn { + get { + return this.columnMatricola; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn FaseActColumn { + get { + return this.columnFaseAct; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public global::System.Data.DataColumn RevActColumn { + get { + return this.columnRevAct; + } + } + + [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 FRGLRow this[int index] { + get { + return ((FRGLRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event FRGLRowChangeEventHandler FRGLRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event FRGLRowChangeEventHandler FRGLRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event FRGLRowChangeEventHandler FRGLRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public event FRGLRowChangeEventHandler FRGLRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void AddFRGLRow(FRGLRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public FRGLRow AddFRGLRow(string USER_NAME, int IdxDossier, System.DateTime GenDate, string Matricola, string FaseAct, int RevAct) { + FRGLRow rowFRGLRow = ((FRGLRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + USER_NAME, + IdxDossier, + GenDate, + Matricola, + FaseAct, + RevAct}; + rowFRGLRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFRGLRow); + return rowFRGLRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public FRGLRow FindByidxRec(int idxRec) { + return ((FRGLRow)(this.Rows.Find(new object[] { + idxRec}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public override global::System.Data.DataTable Clone() { + FRGLDataTable cln = ((FRGLDataTable)(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 FRGLDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal void InitVars() { + this.columnidxRec = base.Columns["idxRec"]; + this.columnUSER_NAME = base.Columns["USER_NAME"]; + this.columnIdxDossier = base.Columns["IdxDossier"]; + this.columnGenDate = base.Columns["GenDate"]; + this.columnMatricola = base.Columns["Matricola"]; + this.columnFaseAct = base.Columns["FaseAct"]; + this.columnRevAct = base.Columns["RevAct"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + private void InitClass() { + this.columnidxRec = new global::System.Data.DataColumn("idxRec", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxRec); + this.columnUSER_NAME = new global::System.Data.DataColumn("USER_NAME", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUSER_NAME); + this.columnIdxDossier = new global::System.Data.DataColumn("IdxDossier", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxDossier); + this.columnGenDate = new global::System.Data.DataColumn("GenDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnGenDate); + this.columnMatricola = new global::System.Data.DataColumn("Matricola", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricola); + this.columnFaseAct = new global::System.Data.DataColumn("FaseAct", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFaseAct); + this.columnRevAct = new global::System.Data.DataColumn("RevAct", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRevAct); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxRec}, true)); + this.columnidxRec.AutoIncrement = true; + this.columnidxRec.AutoIncrementSeed = -1; + this.columnidxRec.AutoIncrementStep = -1; + this.columnidxRec.AllowDBNull = false; + this.columnidxRec.ReadOnly = true; + this.columnidxRec.Unique = true; + this.columnUSER_NAME.AllowDBNull = false; + this.columnUSER_NAME.MaxLength = 50; + this.columnIdxDossier.AllowDBNull = false; + this.columnGenDate.AllowDBNull = false; + this.columnMatricola.AllowDBNull = false; + this.columnMatricola.MaxLength = 50; + this.columnFaseAct.AllowDBNull = false; + this.columnFaseAct.MaxLength = 50; + this.columnRevAct.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public FRGLRow NewFRGLRow() { + return ((FRGLRow)(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 FRGLRow(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(FRGLRow); + } + + [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.FRGLRowChanged != null)) { + this.FRGLRowChanged(this, new FRGLRowChangeEvent(((FRGLRow)(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.FRGLRowChanging != null)) { + this.FRGLRowChanging(this, new FRGLRowChangeEvent(((FRGLRow)(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.FRGLRowDeleted != null)) { + this.FRGLRowDeleted(this, new FRGLRowChangeEvent(((FRGLRow)(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.FRGLRowDeleting != null)) { + this.FRGLRowDeleting(this, new FRGLRowChangeEvent(((FRGLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public void RemoveFRGLRow(FRGLRow 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_Applicazione ds = new DS_Applicazione(); + 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 = "FRGLDataTable"; + 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. /// @@ -9555,6 +9945,98 @@ namespace CMS_SC_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class FRGLRow : global::System.Data.DataRow { + + private FRGLDataTable tableFRGL; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + internal FRGLRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFRGL = ((FRGLDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int idxRec { + get { + return ((int)(this[this.tableFRGL.idxRecColumn])); + } + set { + this[this.tableFRGL.idxRecColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string USER_NAME { + get { + return ((string)(this[this.tableFRGL.USER_NAMEColumn])); + } + set { + this[this.tableFRGL.USER_NAMEColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int IdxDossier { + get { + return ((int)(this[this.tableFRGL.IdxDossierColumn])); + } + set { + this[this.tableFRGL.IdxDossierColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public System.DateTime GenDate { + get { + return ((global::System.DateTime)(this[this.tableFRGL.GenDateColumn])); + } + set { + this[this.tableFRGL.GenDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string Matricola { + get { + return ((string)(this[this.tableFRGL.MatricolaColumn])); + } + set { + this[this.tableFRGL.MatricolaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public string FaseAct { + get { + return ((string)(this[this.tableFRGL.FaseActColumn])); + } + set { + this[this.tableFRGL.FaseActColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public int RevAct { + get { + return ((int)(this[this.tableFRGL.RevActColumn])); + } + set { + this[this.tableFRGL.RevActColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -10098,6 +10580,40 @@ namespace CMS_SC_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + public class FRGLRowChangeEvent : global::System.EventArgs { + + private FRGLRow 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 FRGLRowChangeEvent(FRGLRow 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 FRGLRow 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 CMS_SC_Data.DS_ApplicazioneTableAdapters { @@ -17568,6 +18084,306 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa } } + /// + ///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 FRGLTableAdapter : 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 FRGLTableAdapter() { + 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 = "FRGL"; + tableMapping.ColumnMappings.Add("idxRec", "idxRec"); + tableMapping.ColumnMappings.Add("USER_NAME", "USER_NAME"); + tableMapping.ColumnMappings.Add("IdxDossier", "IdxDossier"); + tableMapping.ColumnMappings.Add("GenDate", "GenDate"); + tableMapping.ColumnMappings.Add("Matricola", "Matricola"); + tableMapping.ColumnMappings.Add("FaseAct", "FaseAct"); + tableMapping.ColumnMappings.Add("RevAct", "RevAct"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [FullReportGenLog] WHERE (([idxRec] = @Original_idxRec))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxRec", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [FullReportGenLog] ([USER_NAME], [IdxDossier], [GenDate], [Matricola], [FaseAct], [RevAct]) VALUES (@USER_NAME, @IdxDossier, @GenDate, @Matricola, @FaseAct, @RevAct); +SELECT idxRec, USER_NAME, IdxDossier, GenDate, Matricola, FaseAct, RevAct FROM FullReportGenLog WHERE (idxRec = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@USER_NAME", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "USER_NAME", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FaseAct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaseAct", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RevAct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RevAct", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [FullReportGenLog] SET [USER_NAME] = @USER_NAME, [IdxDossier] = @IdxDossier, [GenDate] = @GenDate, [Matricola] = @Matricola, [FaseAct] = @FaseAct, [RevAct] = @RevAct WHERE (([idxRec] = @Original_idxRec)); +SELECT idxRec, USER_NAME, IdxDossier, GenDate, Matricola, FaseAct, RevAct FROM FullReportGenLog WHERE (idxRec = @idxRec)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@USER_NAME", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "USER_NAME", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenDate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FaseAct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaseAct", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RevAct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RevAct", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxRec", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxRec", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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::CMS_SC_Data.Properties.Settings.Default.CMS_SCConnectionString; + } + + [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[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM FullReportGenLog"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_FRGL_insertQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@USER_NAME", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matricola", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FaseAct", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RevAct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Applicazione.FRGLDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "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_Applicazione.FRGLDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.FRGLDataTable dataTable = new DS_Applicazione.FRGLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [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 Update(DS_Applicazione.FRGLDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [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 Update(DS_Applicazione dataSet) { + return this.Adapter.Update(dataSet, "FRGL"); + } + + [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 Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [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 Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [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 USER_NAME, global::System.Nullable IdxDossier, global::System.Nullable GenDate, string Matricola, string FaseAct, global::System.Nullable RevAct) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((USER_NAME == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(USER_NAME)); + } + if ((IdxDossier.HasValue == true)) { + command.Parameters[2].Value = ((int)(IdxDossier.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((GenDate.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(GenDate.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Matricola == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Matricola)); + } + if ((FaseAct == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(FaseAct)); + } + if ((RevAct.HasValue == true)) { + command.Parameters[6].Value = ((int)(RevAct.Value)); + } + else { + command.Parameters[6].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)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -17596,6 +18412,8 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa private UserParamTableAdapter _userParamTableAdapter; + private FRGLTableAdapter _fRGLTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -17723,6 +18541,20 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public FRGLTableAdapter FRGLTableAdapter { + get { + return this._fRGLTableAdapter; + } + set { + this._fRGLTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -17774,6 +18606,10 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa && (this._userParamTableAdapter.Connection != null))) { return this._userParamTableAdapter.Connection; } + if (((this._fRGLTableAdapter != null) + && (this._fRGLTableAdapter.Connection != null))) { + return this._fRGLTableAdapter.Connection; + } return null; } set { @@ -17811,6 +18647,9 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa if ((this._userParamTableAdapter != null)) { count = (count + 1); } + if ((this._fRGLTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -17849,30 +18688,12 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa allChangedRows.AddRange(updatedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._userParamTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._validValTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ValidVal.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._validValTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._schemaCollMaccTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._schemaCollMaccTableAdapter.Update(updatedRows)); + result = (result + this._userParamTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -17885,12 +18706,39 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa allChangedRows.AddRange(updatedRows); } } - if ((this._userParamTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._schemaCollMaccTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._userParamTableAdapter.Update(updatedRows)); + result = (result + this._schemaCollMaccTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._validValTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ValidVal.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._validValTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagFasiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._fRGLTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.FRGL.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._fRGLTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -17928,27 +18776,11 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa allAddedRows.AddRange(addedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._userParamTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._validValTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ValidVal.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._validValTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._schemaCollMaccTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._schemaCollMaccTableAdapter.Update(addedRows)); + result = (result + this._userParamTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -17960,11 +18792,35 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa allAddedRows.AddRange(addedRows); } } - if ((this._userParamTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._schemaCollMaccTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._userParamTableAdapter.Update(addedRows)); + result = (result + this._schemaCollMaccTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._validValTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ValidVal.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._validValTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagFasiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._fRGLTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.FRGL.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._fRGLTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -17978,27 +18834,19 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._userParamTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._fRGLTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.FRGL.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._userParamTableAdapter.Update(deletedRows)); + result = (result + this._fRGLTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } - if ((this._tags2MacchineTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Tags2Macchine.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._tags2MacchineTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._schemaCollMaccTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._schemaCollMaccTableAdapter.Update(deletedRows)); + result = (result + this._anagFasiTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -18010,11 +18858,27 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa allChangedRows.AddRange(deletedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._schemaCollMaccTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.SchemaCollMacc.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(deletedRows)); + result = (result + this._schemaCollMaccTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._tags2MacchineTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Tags2Macchine.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._tags2MacchineTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._userParamTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.UserParam.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._userParamTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -18121,6 +18985,11 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + "a stessa stringa di connessione."); } + if (((this._fRGLTableAdapter != null) + && (this.MatchTableAdapterConnection(this._fRGLTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" + + "a stessa stringa di connessione."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" + @@ -18226,6 +19095,15 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa adaptersWithAcceptChangesDuringUpdate.Add(this._userParamTableAdapter.Adapter); } } + if ((this._fRGLTableAdapter != null)) { + revertConnections.Add(this._fRGLTableAdapter, this._fRGLTableAdapter.Connection); + this._fRGLTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._fRGLTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._fRGLTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._fRGLTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._fRGLTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -18316,6 +19194,10 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa this._userParamTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userParamTableAdapter])); this._userParamTableAdapter.Transaction = null; } + if ((this._fRGLTableAdapter != null)) { + this._fRGLTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._fRGLTableAdapter])); + this._fRGLTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/CMS-SC-Data/DS_Applicazione.xsd b/CMS-SC-Data/DS_Applicazione.xsd index 8d53031..17436d9 100644 --- a/CMS-SC-Data/DS_Applicazione.xsd +++ b/CMS-SC-Data/DS_Applicazione.xsd @@ -1573,6 +1573,84 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + + + DELETE FROM [FullReportGenLog] WHERE (([idxRec] = @Original_idxRec)) + + + + + + + + INSERT INTO [FullReportGenLog] ([USER_NAME], [IdxDossier], [GenDate], [Matricola], [FaseAct], [RevAct]) VALUES (@USER_NAME, @IdxDossier, @GenDate, @Matricola, @FaseAct, @RevAct); +SELECT idxRec, USER_NAME, IdxDossier, GenDate, Matricola, FaseAct, RevAct FROM FullReportGenLog WHERE (idxRec = SCOPE_IDENTITY()) + + + + + + + + + + + + + SELECT * +FROM FullReportGenLog + + + + + + UPDATE [FullReportGenLog] SET [USER_NAME] = @USER_NAME, [IdxDossier] = @IdxDossier, [GenDate] = @GenDate, [Matricola] = @Matricola, [FaseAct] = @FaseAct, [RevAct] = @RevAct WHERE (([idxRec] = @Original_idxRec)); +SELECT idxRec, USER_NAME, IdxDossier, GenDate, Matricola, FaseAct, RevAct FROM FullReportGenLog WHERE (idxRec = @idxRec) + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_FRGL_insertQuery + + + + + + + + + + + + + + @@ -1581,7 +1659,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1602,7 +1680,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1640,7 +1718,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1660,7 +1738,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1702,7 +1780,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1751,7 +1829,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1776,7 +1854,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1834,7 +1912,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1881,7 +1959,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -1919,7 +1997,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2014,7 +2092,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2151,7 +2229,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2171,7 +2249,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2191,7 +2269,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2218,7 +2296,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2275,7 +2353,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa - + @@ -2290,6 +2368,37 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2368,19 +2477,23 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa + + + + - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/CMS-SC-Data/DS_Applicazione.xss b/CMS-SC-Data/DS_Applicazione.xss index 250c80b..f6e6eee 100644 --- a/CMS-SC-Data/DS_Applicazione.xss +++ b/CMS-SC-Data/DS_Applicazione.xss @@ -4,27 +4,28 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + 355 @@ -36,7 +37,7 @@ - + 898 @@ -48,7 +49,7 @@ - + 420 @@ -60,7 +61,7 @@ - + 204 @@ -72,7 +73,7 @@ - + 598 @@ -84,7 +85,7 @@ - + 1053 @@ -100,7 +101,7 @@ - + 355 @@ -112,7 +113,7 @@ - + 1070 @@ -124,7 +125,7 @@ - + 1329 @@ -136,7 +137,7 @@ - + 1476 diff --git a/CMS-SC-Data/DtProxy.cs b/CMS-SC-Data/DtProxy.cs index 4d33b41..8245fb8 100644 --- a/CMS-SC-Data/DtProxy.cs +++ b/CMS-SC-Data/DtProxy.cs @@ -1,9 +1,4 @@ using SteamWare; -using System; -using System.Collections.Generic; -using System.Data; -using System.IO; -using System.Web; namespace CMS_SC_Data { @@ -30,6 +25,7 @@ namespace CMS_SC_Data taED = new DS_ApplicazioneTableAdapters.ElencoDossierTableAdapter(); taEFM = new DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter(); taEM = new DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter(); + taFRGL = new DS_ApplicazioneTableAdapters.FRGLTableAdapter(); taMis = new DS_ApplicazioneTableAdapters.MisureTableAdapter(); taRep = new DS_ApplicazioneTableAdapters.ReportDataTableAdapter(); taSCFM = new DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter(); @@ -58,6 +54,7 @@ namespace CMS_SC_Data taED.Connection.ConnectionString = connStr; taEFM.Connection.ConnectionString = connStr; taEM.Connection.ConnectionString = connStr; + taFRGL.Connection.ConnectionString = connStr; taMis.Connection.ConnectionString = connStr; taRep.Connection.ConnectionString = connStr; taSCFM.Connection.ConnectionString = connStr; @@ -83,6 +80,7 @@ namespace CMS_SC_Data public DS_ApplicazioneTableAdapters.ElencoDossierTableAdapter taED; public DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter taEFM; public DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter taEM; + public DS_ApplicazioneTableAdapters.FRGLTableAdapter taFRGL; public DS_ApplicazioneTableAdapters.MisureTableAdapter taMis; public DS_ApplicazioneTableAdapters.ReportDataTableAdapter taRep; public DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter taSCFM; @@ -139,5 +137,5 @@ namespace CMS_SC_Data #endregion } - + } diff --git a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll deleted file mode 100644 index 2076f53..0000000 Binary files a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and /dev/null differ diff --git a/CMS-SC-Data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll b/CMS-SC-Data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll deleted file mode 100644 index caf973d..0000000 Binary files a/CMS-SC-Data/obj/Debug/TempPE/DS_Utility.Designer.cs.dll and /dev/null differ diff --git a/CMS_SC/ReportCompleto.aspx.cs b/CMS_SC/ReportCompleto.aspx.cs index 492747c..6e102de 100644 --- a/CMS_SC/ReportCompleto.aspx.cs +++ b/CMS_SC/ReportCompleto.aspx.cs @@ -27,8 +27,17 @@ namespace CMS_SC //mod_reportCompleto.Fase = ddlFase.SelectedValue; //mod_reportCompleto.Lingua = ddlLingue.SelectedValue; fixSelReport(); + fixFullReportVisibility(); } } + /// + /// Controllo visibilità button full report: SOLO SE utente ha permesso... + /// + private void fixFullReportVisibility() + { + + } + /// /// Valore dossier salvato nell'hidden input /// @@ -102,36 +111,38 @@ namespace CMS_SC protected void lbtExportWithAttach_Click(object sender, EventArgs e) { - // effettua merge Report Completo + allegati - - // step 1: genera directory lavoro - string currOutPath = $"\\tmp\\{idxDossier}"; - fileMover.obj.setDirectoryMapPath(currOutPath); - fileMover.obj.checkDir(); - // path scehde! - string urlSchede = memLayer.ML.CRS("urlSchede"); - string pdfInFullPath = ""; - // step 2: esporta pdf collaudo in dir temporanea !!!FARE!!! - - // step 3: colleziona allegati schede e li copia in locale - var tabDati = DtProxy.man.taASC.getByDossier(idxDossier); - List elencoPdf = new List(); - foreach (var item in tabDati) + // effettua merge Report Completo + allegati: registro in primis la richiesta! + var tabDoss = DtProxy.man.taED.getByDossier(idxDossier); + if (tabDoss.Count > 0) { - pdfInFullPath = ""; - if (!elencoPdf.Contains(item.Path)) + var currDoss = tabDoss[0]; + DtProxy.man.taFRGL.insertQuery(OpAuth.currAuth.email, idxDossier, DateTime.Now, currDoss.Matricola, currDoss.FaseAct, currDoss.RevAct); + // step 1: genera directory lavoro + string currOutPath = $"\\tmp\\{idxDossier}"; + fileMover.obj.setDirectoryMapPath(currOutPath); + fileMover.obj.checkDir(); + // path scehde! + string urlSchede = memLayer.ML.CRS("urlSchede"); + string pdfInFullPath = ""; + List elencoPdf = new List(); + // step 2: esporta pdf collaudo in dir temporanea come PRIMO file !!!FARE!!! + + // step 3: colleziona allegati schede e li copia in locale + var tabDati = DtProxy.man.taASC.getByDossier(idxDossier); + foreach (var item in tabDati) { - pdfInFullPath = Server.MapPath(string.Format(urlSchede, item.Path)); - elencoPdf.Add(pdfInFullPath); + pdfInFullPath = ""; + if (!elencoPdf.Contains(item.Path)) + { + pdfInFullPath = Server.MapPath(string.Format(urlSchede, item.Path)); + elencoPdf.Add(pdfInFullPath); + } } + // step 4: MERGE di tutti i pdf nel file di output + string outFile = $"{Server.MapPath(currOutPath)}\\ReportFull_{idxDossier}.pdf"; + pdfUtils.mergePdfFiles(outFile, elencoPdf); + // step 5: rimanda a pagina x download nuovo file composto... } - // step 4: MERGE di tutti i pdf nell'output - string outFile = $"{Server.MapPath(currOutPath)}\\FULL_{idxDossier}.pdf"; - pdfUtils.mergePdfFiles(outFile, elencoPdf); - // step 5 cancellazione documenti collezionati - - // step 6: rimanda a pagina x download nuovo file composto... - } } } \ No newline at end of file