diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs index 49dd397..96e84bc 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs +++ b/Projects/WebGIM/GIM_data/DS_applicazione.Designer.cs @@ -70,6 +70,8 @@ namespace GIM_data { private AnagTipoRisorsaDataTable tableAnagTipoRisorsa; + private v_allDataDataTable tablev_allData; + private global::System.Data.DataRelation relationFK_AnagMacchine_AnagImpianti; private global::System.Data.DataRelation relationMacchine2FamMacchine_v_macchine; @@ -199,6 +201,9 @@ namespace GIM_data { if ((ds.Tables["AnagTipoRisorsa"] != null)) { base.Tables.Add(new AnagTipoRisorsaDataTable(ds.Tables["AnagTipoRisorsa"])); } + if ((ds.Tables["v_allData"] != null)) { + base.Tables.Add(new v_allDataDataTable(ds.Tables["v_allData"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -447,6 +452,16 @@ namespace GIM_data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_allDataDataTable v_allData { + get { + return this.tablev_allData; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -583,6 +598,9 @@ namespace GIM_data { if ((ds.Tables["AnagTipoRisorsa"] != null)) { base.Tables.Add(new AnagTipoRisorsaDataTable(ds.Tables["AnagTipoRisorsa"])); } + if ((ds.Tables["v_allData"] != null)) { + base.Tables.Add(new v_allDataDataTable(ds.Tables["v_allData"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -754,6 +772,12 @@ namespace GIM_data { this.tableAnagTipoRisorsa.InitVars(); } } + this.tablev_allData = ((v_allDataDataTable)(base.Tables["v_allData"])); + if ((initTable == true)) { + if ((this.tablev_allData != null)) { + this.tablev_allData.InitVars(); + } + } this.relationFK_AnagMacchine_AnagImpianti = this.Relations["FK_AnagMacchine_AnagImpianti"]; this.relationMacchine2FamMacchine_v_macchine = this.Relations["Macchine2FamMacchine_v_macchine"]; this.relationAnagFamMacchine_v_selFamMacc = this.Relations["AnagFamMacchine_v_selFamMacc"]; @@ -826,6 +850,8 @@ namespace GIM_data { base.Tables.Add(this.tableImpiegoRisorse); this.tableAnagTipoRisorsa = new AnagTipoRisorsaDataTable(); base.Tables.Add(this.tableAnagTipoRisorsa); + this.tablev_allData = new v_allDataDataTable(); + base.Tables.Add(this.tablev_allData); this.relationFK_AnagMacchine_AnagImpianti = new global::System.Data.DataRelation("FK_AnagMacchine_AnagImpianti", new global::System.Data.DataColumn[] { this.tableAnagImpianti.idxImpiantoColumn}, new global::System.Data.DataColumn[] { this.tablev_macchine.idxImpiantoColumn}, false); @@ -1030,6 +1056,12 @@ namespace GIM_data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_allData() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1154,6 +1186,9 @@ namespace GIM_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagTipoRisorsaRowChangeEventHandler(object sender, AnagTipoRisorsaRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_allDataRowChangeEventHandler(object sender, v_allDataRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -8827,6 +8862,634 @@ namespace GIM_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_allDataDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnnumIntMtz; + + private global::System.Data.DataColumn columndataLav; + + private global::System.Data.DataColumn columnturnoLav; + + private global::System.Data.DataColumn columnmatr; + + private global::System.Data.DataColumn columnrichiesta; + + private global::System.Data.DataColumn columncodImpianto; + + private global::System.Data.DataColumn columnnomeImpianto; + + private global::System.Data.DataColumn columncodMacchina; + + private global::System.Data.DataColumn columnnomeMacchina; + + private global::System.Data.DataColumn columndescrizione; + + private global::System.Data.DataColumn columninizioIntervento; + + private global::System.Data.DataColumn columnfineIntervento; + + private global::System.Data.DataColumn columndescrizioneIntervento; + + private global::System.Data.DataColumn columndescrCausale; + + private global::System.Data.DataColumn columnminErogati; + + private global::System.Data.DataColumn columnImportoTot; + + private global::System.Data.DataColumn columndurataMtz; + + private global::System.Data.DataColumn columndurataOff; + + private global::System.Data.DataColumn columnguasto; + + private global::System.Data.DataColumn columnidxStato; + + private global::System.Data.DataColumn columnidxImpianto; + + private global::System.Data.DataColumn columnidxMacchina; + + private global::System.Data.DataColumn columnisFermo; + + private global::System.Data.DataColumn columnscheduled; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataDataTable() { + this.TableName = "v_allData"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_allDataDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_allDataDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn numIntMtzColumn { + get { + return this.columnnumIntMtz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dataLavColumn { + get { + return this.columndataLav; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn turnoLavColumn { + get { + return this.columnturnoLav; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn matrColumn { + get { + return this.columnmatr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn richiestaColumn { + get { + return this.columnrichiesta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codImpiantoColumn { + get { + return this.columncodImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn nomeImpiantoColumn { + get { + return this.columnnomeImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codMacchinaColumn { + get { + return this.columncodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn nomeMacchinaColumn { + get { + return this.columnnomeMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrizioneColumn { + get { + return this.columndescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn inizioInterventoColumn { + get { + return this.columninizioIntervento; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn fineInterventoColumn { + get { + return this.columnfineIntervento; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrizioneInterventoColumn { + get { + return this.columndescrizioneIntervento; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrCausaleColumn { + get { + return this.columndescrCausale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn minErogatiColumn { + get { + return this.columnminErogati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ImportoTotColumn { + get { + return this.columnImportoTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn durataMtzColumn { + get { + return this.columndurataMtz; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn durataOffColumn { + get { + return this.columndurataOff; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn guastoColumn { + get { + return this.columnguasto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxStatoColumn { + get { + return this.columnidxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxImpiantoColumn { + get { + return this.columnidxImpianto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxMacchinaColumn { + get { + return this.columnidxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn isFermoColumn { + get { + return this.columnisFermo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn scheduledColumn { + get { + return this.columnscheduled; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRow this[int index] { + get { + return ((v_allDataRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_allDataRowChangeEventHandler v_allDataRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_allDataRowChangeEventHandler v_allDataRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_allDataRowChangeEventHandler v_allDataRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_allDataRowChangeEventHandler v_allDataRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_allDataRow(v_allDataRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRow Addv_allDataRow( + int numIntMtz, + System.DateTime dataLav, + int turnoLav, + string matr, + System.DateTime richiesta, + string codImpianto, + string nomeImpianto, + string codMacchina, + string nomeMacchina, + string descrizione, + System.DateTime inizioIntervento, + System.DateTime fineIntervento, + string descrizioneIntervento, + string descrCausale, + double minErogati, + decimal ImportoTot, + double durataMtz, + double durataOff, + System.DateTime guasto, + int idxStato, + int idxImpianto, + int idxMacchina, + bool isFermo, + bool scheduled) { + v_allDataRow rowv_allDataRow = ((v_allDataRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + numIntMtz, + dataLav, + turnoLav, + matr, + richiesta, + codImpianto, + nomeImpianto, + codMacchina, + nomeMacchina, + descrizione, + inizioIntervento, + fineIntervento, + descrizioneIntervento, + descrCausale, + minErogati, + ImportoTot, + durataMtz, + durataOff, + guasto, + idxStato, + idxImpianto, + idxMacchina, + isFermo, + scheduled}; + rowv_allDataRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_allDataRow); + return rowv_allDataRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRow FindBynumIntMtz(int numIntMtz) { + return ((v_allDataRow)(this.Rows.Find(new object[] { + numIntMtz}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_allDataDataTable cln = ((v_allDataDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_allDataDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnnumIntMtz = base.Columns["numIntMtz"]; + this.columndataLav = base.Columns["dataLav"]; + this.columnturnoLav = base.Columns["turnoLav"]; + this.columnmatr = base.Columns["matr"]; + this.columnrichiesta = base.Columns["richiesta"]; + this.columncodImpianto = base.Columns["codImpianto"]; + this.columnnomeImpianto = base.Columns["nomeImpianto"]; + this.columncodMacchina = base.Columns["codMacchina"]; + this.columnnomeMacchina = base.Columns["nomeMacchina"]; + this.columndescrizione = base.Columns["descrizione"]; + this.columninizioIntervento = base.Columns["inizioIntervento"]; + this.columnfineIntervento = base.Columns["fineIntervento"]; + this.columndescrizioneIntervento = base.Columns["descrizioneIntervento"]; + this.columndescrCausale = base.Columns["descrCausale"]; + this.columnminErogati = base.Columns["minErogati"]; + this.columnImportoTot = base.Columns["ImportoTot"]; + this.columndurataMtz = base.Columns["durataMtz"]; + this.columndurataOff = base.Columns["durataOff"]; + this.columnguasto = base.Columns["guasto"]; + this.columnidxStato = base.Columns["idxStato"]; + this.columnidxImpianto = base.Columns["idxImpianto"]; + this.columnidxMacchina = base.Columns["idxMacchina"]; + this.columnisFermo = base.Columns["isFermo"]; + this.columnscheduled = base.Columns["scheduled"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnnumIntMtz = new global::System.Data.DataColumn("numIntMtz", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnumIntMtz); + this.columndataLav = new global::System.Data.DataColumn("dataLav", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndataLav); + this.columnturnoLav = new global::System.Data.DataColumn("turnoLav", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnturnoLav); + this.columnmatr = new global::System.Data.DataColumn("matr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmatr); + this.columnrichiesta = new global::System.Data.DataColumn("richiesta", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrichiesta); + this.columncodImpianto = new global::System.Data.DataColumn("codImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodImpianto); + this.columnnomeImpianto = new global::System.Data.DataColumn("nomeImpianto", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnomeImpianto); + this.columncodMacchina = new global::System.Data.DataColumn("codMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodMacchina); + this.columnnomeMacchina = new global::System.Data.DataColumn("nomeMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnomeMacchina); + this.columndescrizione = new global::System.Data.DataColumn("descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrizione); + this.columninizioIntervento = new global::System.Data.DataColumn("inizioIntervento", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columninizioIntervento); + this.columnfineIntervento = new global::System.Data.DataColumn("fineIntervento", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnfineIntervento); + this.columndescrizioneIntervento = new global::System.Data.DataColumn("descrizioneIntervento", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrizioneIntervento); + this.columndescrCausale = new global::System.Data.DataColumn("descrCausale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrCausale); + this.columnminErogati = new global::System.Data.DataColumn("minErogati", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnminErogati); + this.columnImportoTot = new global::System.Data.DataColumn("ImportoTot", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportoTot); + this.columndurataMtz = new global::System.Data.DataColumn("durataMtz", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndurataMtz); + this.columndurataOff = new global::System.Data.DataColumn("durataOff", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndurataOff); + this.columnguasto = new global::System.Data.DataColumn("guasto", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnguasto); + this.columnidxStato = new global::System.Data.DataColumn("idxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxStato); + this.columnidxImpianto = new global::System.Data.DataColumn("idxImpianto", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxImpianto); + this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxMacchina); + this.columnisFermo = new global::System.Data.DataColumn("isFermo", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisFermo); + this.columnscheduled = new global::System.Data.DataColumn("scheduled", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnscheduled); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnnumIntMtz}, true)); + this.columnnumIntMtz.AllowDBNull = false; + this.columnnumIntMtz.Unique = true; + this.columndataLav.ReadOnly = true; + this.columnturnoLav.AllowDBNull = false; + this.columnmatr.AllowDBNull = false; + this.columnmatr.MaxLength = 10; + this.columnrichiesta.AllowDBNull = false; + this.columncodImpianto.MaxLength = 50; + this.columnnomeImpianto.MaxLength = 50; + this.columncodMacchina.MaxLength = 50; + this.columnnomeMacchina.MaxLength = 250; + this.columndescrizione.AllowDBNull = false; + this.columndescrizione.MaxLength = 2500; + this.columndescrizioneIntervento.ReadOnly = true; + this.columndescrizioneIntervento.MaxLength = 2500; + this.columndescrCausale.ReadOnly = true; + this.columndescrCausale.MaxLength = 50; + this.columnminErogati.ReadOnly = true; + this.columnImportoTot.ReadOnly = true; + this.columndurataMtz.ReadOnly = true; + this.columndurataOff.ReadOnly = true; + this.columnguasto.AllowDBNull = false; + this.columnidxStato.AllowDBNull = false; + this.columnidxImpianto.AllowDBNull = false; + this.columnidxMacchina.AllowDBNull = false; + this.columnisFermo.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRow Newv_allDataRow() { + return ((v_allDataRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_allDataRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_allDataRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_allDataRowChanged != null)) { + this.v_allDataRowChanged(this, new v_allDataRowChangeEvent(((v_allDataRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_allDataRowChanging != null)) { + this.v_allDataRowChanging(this, new v_allDataRowChangeEvent(((v_allDataRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_allDataRowDeleted != null)) { + this.v_allDataRowDeleted(this, new v_allDataRowChangeEvent(((v_allDataRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_allDataRowDeleting != null)) { + this.v_allDataRowDeleting(this, new v_allDataRowChangeEvent(((v_allDataRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_allDataRow(v_allDataRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_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 = "v_allDataDataTable"; + 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. /// @@ -12308,6 +12971,523 @@ namespace GIM_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_allDataRow : global::System.Data.DataRow { + + private v_allDataDataTable tablev_allData; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_allDataRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_allData = ((v_allDataDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int numIntMtz { + get { + return ((int)(this[this.tablev_allData.numIntMtzColumn])); + } + set { + this[this.tablev_allData.numIntMtzColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime dataLav { + get { + try { + return ((global::System.DateTime)(this[this.tablev_allData.dataLavColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'dataLav\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.dataLavColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int turnoLav { + get { + return ((int)(this[this.tablev_allData.turnoLavColumn])); + } + set { + this[this.tablev_allData.turnoLavColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string matr { + get { + return ((string)(this[this.tablev_allData.matrColumn])); + } + set { + this[this.tablev_allData.matrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime richiesta { + get { + return ((global::System.DateTime)(this[this.tablev_allData.richiestaColumn])); + } + set { + this[this.tablev_allData.richiestaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codImpianto { + get { + try { + return ((string)(this[this.tablev_allData.codImpiantoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.codImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string nomeImpianto { + get { + try { + return ((string)(this[this.tablev_allData.nomeImpiantoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.nomeImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codMacchina { + get { + try { + return ((string)(this[this.tablev_allData.codMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.codMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string nomeMacchina { + get { + try { + return ((string)(this[this.tablev_allData.nomeMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.nomeMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrizione { + get { + return ((string)(this[this.tablev_allData.descrizioneColumn])); + } + set { + this[this.tablev_allData.descrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime inizioIntervento { + get { + try { + return ((global::System.DateTime)(this[this.tablev_allData.inizioInterventoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'inizioIntervento\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.inizioInterventoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime fineIntervento { + get { + try { + return ((global::System.DateTime)(this[this.tablev_allData.fineInterventoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'fineIntervento\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.fineInterventoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrizioneIntervento { + get { + try { + return ((string)(this[this.tablev_allData.descrizioneInterventoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'descrizioneIntervento\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.descrizioneInterventoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrCausale { + get { + try { + return ((string)(this[this.tablev_allData.descrCausaleColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.descrCausaleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double minErogati { + get { + try { + return ((double)(this[this.tablev_allData.minErogatiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'minErogati\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.minErogatiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal ImportoTot { + get { + try { + return ((decimal)(this[this.tablev_allData.ImportoTotColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ImportoTot\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.ImportoTotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double durataMtz { + get { + try { + return ((double)(this[this.tablev_allData.durataMtzColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'durataMtz\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.durataMtzColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double durataOff { + get { + try { + return ((double)(this[this.tablev_allData.durataOffColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'durataOff\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.durataOffColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime guasto { + get { + return ((global::System.DateTime)(this[this.tablev_allData.guastoColumn])); + } + set { + this[this.tablev_allData.guastoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxStato { + get { + return ((int)(this[this.tablev_allData.idxStatoColumn])); + } + set { + this[this.tablev_allData.idxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxImpianto { + get { + return ((int)(this[this.tablev_allData.idxImpiantoColumn])); + } + set { + this[this.tablev_allData.idxImpiantoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxMacchina { + get { + return ((int)(this[this.tablev_allData.idxMacchinaColumn])); + } + set { + this[this.tablev_allData.idxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool isFermo { + get { + return ((bool)(this[this.tablev_allData.isFermoColumn])); + } + set { + this[this.tablev_allData.isFermoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool scheduled { + get { + try { + return ((bool)(this[this.tablev_allData.scheduledColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'scheduled\' in table \'v_allData\' is DBNull.", e); + } + } + set { + this[this.tablev_allData.scheduledColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdataLavNull() { + return this.IsNull(this.tablev_allData.dataLavColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdataLavNull() { + this[this.tablev_allData.dataLavColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodImpiantoNull() { + return this.IsNull(this.tablev_allData.codImpiantoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodImpiantoNull() { + this[this.tablev_allData.codImpiantoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnomeImpiantoNull() { + return this.IsNull(this.tablev_allData.nomeImpiantoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnomeImpiantoNull() { + this[this.tablev_allData.nomeImpiantoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodMacchinaNull() { + return this.IsNull(this.tablev_allData.codMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodMacchinaNull() { + this[this.tablev_allData.codMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnomeMacchinaNull() { + return this.IsNull(this.tablev_allData.nomeMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnomeMacchinaNull() { + this[this.tablev_allData.nomeMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsinizioInterventoNull() { + return this.IsNull(this.tablev_allData.inizioInterventoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetinizioInterventoNull() { + this[this.tablev_allData.inizioInterventoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsfineInterventoNull() { + return this.IsNull(this.tablev_allData.fineInterventoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetfineInterventoNull() { + this[this.tablev_allData.fineInterventoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdescrizioneInterventoNull() { + return this.IsNull(this.tablev_allData.descrizioneInterventoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdescrizioneInterventoNull() { + this[this.tablev_allData.descrizioneInterventoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdescrCausaleNull() { + return this.IsNull(this.tablev_allData.descrCausaleColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdescrCausaleNull() { + this[this.tablev_allData.descrCausaleColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsminErogatiNull() { + return this.IsNull(this.tablev_allData.minErogatiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetminErogatiNull() { + this[this.tablev_allData.minErogatiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsImportoTotNull() { + return this.IsNull(this.tablev_allData.ImportoTotColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetImportoTotNull() { + this[this.tablev_allData.ImportoTotColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdurataMtzNull() { + return this.IsNull(this.tablev_allData.durataMtzColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdurataMtzNull() { + this[this.tablev_allData.durataMtzColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdurataOffNull() { + return this.IsNull(this.tablev_allData.durataOffColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdurataOffNull() { + this[this.tablev_allData.durataOffColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsscheduledNull() { + return this.IsNull(this.tablev_allData.scheduledColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetscheduledNull() { + this[this.tablev_allData.scheduledColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -13089,6 +14269,40 @@ namespace GIM_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_allDataRowChangeEvent : global::System.EventArgs { + + private v_allDataRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRowChangeEvent(v_allDataRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace GIM_data.DS_applicazioneTableAdapters { @@ -21805,6 +23019,168 @@ ORDER BY numIntMtz DESC"; return returnValue; } } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_allDataTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_allDataTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_allData"; + tableMapping.ColumnMappings.Add("numIntMtz", "numIntMtz"); + tableMapping.ColumnMappings.Add("dataLav", "dataLav"); + tableMapping.ColumnMappings.Add("turnoLav", "turnoLav"); + tableMapping.ColumnMappings.Add("matr", "matr"); + tableMapping.ColumnMappings.Add("richiesta", "richiesta"); + tableMapping.ColumnMappings.Add("codImpianto", "codImpianto"); + tableMapping.ColumnMappings.Add("nomeImpianto", "nomeImpianto"); + tableMapping.ColumnMappings.Add("codMacchina", "codMacchina"); + tableMapping.ColumnMappings.Add("nomeMacchina", "nomeMacchina"); + tableMapping.ColumnMappings.Add("descrizione", "descrizione"); + tableMapping.ColumnMappings.Add("inizioIntervento", "inizioIntervento"); + tableMapping.ColumnMappings.Add("fineIntervento", "fineIntervento"); + tableMapping.ColumnMappings.Add("descrizioneIntervento", "descrizioneIntervento"); + tableMapping.ColumnMappings.Add("descrCausale", "descrCausale"); + tableMapping.ColumnMappings.Add("minErogati", "minErogati"); + tableMapping.ColumnMappings.Add("ImportoTot", "ImportoTot"); + tableMapping.ColumnMappings.Add("durataMtz", "durataMtz"); + tableMapping.ColumnMappings.Add("durataOff", "durataOff"); + tableMapping.ColumnMappings.Add("guasto", "guasto"); + tableMapping.ColumnMappings.Add("idxStato", "idxStato"); + tableMapping.ColumnMappings.Add("idxImpianto", "idxImpianto"); + tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina"); + tableMapping.ColumnMappings.Add("isFermo", "isFermo"); + tableMapping.ColumnMappings.Add("scheduled", "scheduled"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["GIMConnectionString"].ConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = @"SELECT numIntMtz, dataLav, turnoLav, matr, richiesta, codImpianto, nomeImpianto, codMacchina, nomeMacchina, descrizione, inizioIntervento, fineIntervento, descrizioneIntervento, descrCausale, minErogati, ImportoTot, durataMtz, durataOff, guasto, idxStato, idxImpianto, idxMacchina, isFermo, scheduled FROM export.v_allData"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.v_allDataDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.v_allDataDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.v_allDataDataTable dataTable = new DS_applicazione.v_allDataDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } } #pragma warning restore 1591 \ No newline at end of file diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xsd b/Projects/WebGIM/GIM_data/DS_applicazione.xsd index 34cccb5..c6845aa 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xsd +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xsd @@ -1778,6 +1778,45 @@ WHERE (idxCausale = @Original_idxCausale) + + + + + + SELECT numIntMtz, dataLav, turnoLav, matr, richiesta, codImpianto, nomeImpianto, codMacchina, nomeMacchina, descrizione, inizioIntervento, fineIntervento, descrizioneIntervento, descrCausale, minErogati, ImportoTot, durataMtz, durataOff, guasto, idxStato, idxImpianto, idxMacchina, isFermo, scheduled FROM export.v_allData + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2403,6 +2442,84 @@ WHERE (idxCausale = @Original_idxCausale) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2502,6 +2619,10 @@ WHERE (idxCausale = @Original_idxCausale) + + + + diff --git a/Projects/WebGIM/GIM_data/DS_applicazione.xss b/Projects/WebGIM/GIM_data/DS_applicazione.xss index fb10655..c58e0d0 100644 --- a/Projects/WebGIM/GIM_data/DS_applicazione.xss +++ b/Projects/WebGIM/GIM_data/DS_applicazione.xss @@ -4,34 +4,35 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + 1029 @@ -43,7 +44,7 @@ - + 1251 @@ -55,7 +56,7 @@ - + 1239 @@ -67,7 +68,7 @@ - + 679 @@ -79,7 +80,7 @@ - + 810 @@ -91,7 +92,7 @@ - + 448 @@ -103,7 +104,7 @@ - + 301 @@ -115,7 +116,7 @@ - + 631 @@ -131,7 +132,7 @@ - + 1141 @@ -143,7 +144,7 @@ - + 1017 @@ -159,7 +160,7 @@ - + 1362 @@ -175,7 +176,7 @@ - + 922 @@ -187,7 +188,7 @@ - + 1328 @@ -199,7 +200,7 @@ - + 754 @@ -211,7 +212,7 @@ - + 121 @@ -227,7 +228,7 @@ - + 569 diff --git a/Projects/WebGIM/GIM_data/TA_app.cs b/Projects/WebGIM/GIM_data/TA_app.cs index 2574ac4..57fca1b 100644 --- a/Projects/WebGIM/GIM_data/TA_app.cs +++ b/Projects/WebGIM/GIM_data/TA_app.cs @@ -32,6 +32,7 @@ public class TA_app public GIM_data.DS_applicazioneTableAdapters.AnagCausaliTableAdapter taAnagCau; public GIM_data.DS_utilityTableAdapters.v_selOperMtzTableAdapter taSelMatrOp; public GIM_data.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter taImpRis; + public GIM_data.DS_applicazioneTableAdapters.v_allDataTableAdapter taAllData; #endregion @@ -60,6 +61,7 @@ public class TA_app taAnagCau = new GIM_data.DS_applicazioneTableAdapters.AnagCausaliTableAdapter(); taSelMatrOp = new GIM_data.DS_utilityTableAdapters.v_selOperMtzTableAdapter(); taImpRis = new GIM_data.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter(); + taAllData = new GIM_data.DS_applicazioneTableAdapters.v_allDataTableAdapter(); } /// /// Singleton diff --git a/Projects/WebGIM/GIM_data/bin/GIM_data.dll b/Projects/WebGIM/GIM_data/bin/GIM_data.dll index 82e087c..08ad860 100644 Binary files a/Projects/WebGIM/GIM_data/bin/GIM_data.dll and b/Projects/WebGIM/GIM_data/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_data/bin/SteamWare.dll b/Projects/WebGIM/GIM_data/bin/SteamWare.dll index 16d8420..50fae20 100644 Binary files a/Projects/WebGIM/GIM_data/bin/SteamWare.dll and b/Projects/WebGIM/GIM_data/bin/SteamWare.dll differ diff --git a/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx new file mode 100644 index 0000000..dcfaacc --- /dev/null +++ b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx @@ -0,0 +1,60 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExcelExportAllData.aspx.cs" Inherits="GIM_site.ExcelExportAllData" EnableEventValidation="false" %> + + + + + + Excel Export All Data + + +
+
+ + + + + + + <%--DataFormatString="{0:dd/MM/yy}" --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + diff --git a/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.cs b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.cs new file mode 100644 index 0000000..fe9be09 --- /dev/null +++ b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using SteamWare; +using GIM_data; +using System.Text; +using System.Data; + +namespace GIM_site +{ + public partial class ExcelExportAllData : System.Web.UI.Page + { + /// + /// evento dati associati a controllo + /// + /// + /// + protected void grView_DataBound(object sender, EventArgs e) + { + if (grView.Rows.Count > 0) + { + // aggiorno gli headers + foreach (TableCell cella in grView.HeaderRow.Cells) + { + try + { + cella.Text = traduci(cella.Text); + } + catch + { } + } + } + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// fix rendering tabelle standard in webform + /// + /// + public override void VerifyRenderingInServerForm(Control control) + { + // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time. + } + /// + /// Si occupa di rendere l'out HTML come excel file (mimetype) + /// + private void doExport() + { + Response.Clear(); + Response.AddHeader("content-disposition", "attachment; filename=WebGIM_AllData.xls"); + Response.ContentType = "application/vnd.xls"; + Response.Charset = ""; + Response.Cache.SetCacheability(HttpCacheability.NoCache); + System.IO.StringWriter stringWrite = new System.IO.StringWriter(); + System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); + grView.RenderControl(htmlWrite); + Response.Write(stringWrite.ToString()); + Response.End(); + } + /// + /// Si occupa di rendere l'out HTML come excel file (mimetype) + /// + private void doExportCsv() + { + var dataTable = TA_app.obj.taAllData.GetData(); + StringBuilder builder = new StringBuilder(); + List columnNames = new List(); + List rows = new List(); + + foreach (DataColumn column in dataTable.Columns) + { + columnNames.Add(column.ColumnName); + } + + builder.Append(string.Join(",", columnNames.ToArray())).Append("\n"); + + foreach (DataRow row in dataTable.Rows) + { + List currentRow = new List(); + + foreach (DataColumn column in dataTable.Columns) + { + object item = row[column]; + + currentRow.Add(item.ToString().Replace("\n", " ").Replace("\r", "")); + } + + rows.Add(string.Join(memLayer.ML.confReadString("separatoreCsv"), currentRow.ToArray())); + } + + builder.Append(string.Join("\n", rows.ToArray())); + + Response.Clear(); + Response.AddHeader("content-disposition", "attachment; filename=WebGIM_AllData.csv"); + Response.ContentType = "text/csv"; + Response.Charset = ""; + Response.Cache.SetCacheability(HttpCacheability.NoCache); + Response.Write(builder.ToString()); + Response.End(); + } + + #region area protected + + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + if (false) + { + aggiornamento(); + doExport(); + } + else + { + doExportCsv(); + } + } + } + + #endregion + + + public void aggiornamento() + { + grView.AllowPaging = false; + ods.DataBind(); + grView.DataBind(); + } + + } +} \ No newline at end of file diff --git a/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.designer.cs b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.designer.cs new file mode 100644 index 0000000..5fe74ff --- /dev/null +++ b/Projects/WebGIM/GIM_site/ExcelExportAllData.aspx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GIM_site { + + + public partial class ExcelExportAllData { + + /// + /// Head1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/Projects/WebGIM/GIM_site/GIM_site.csproj b/Projects/WebGIM/GIM_site/GIM_site.csproj index 817b7f0..c3fa907 100644 --- a/Projects/WebGIM/GIM_site/GIM_site.csproj +++ b/Projects/WebGIM/GIM_site/GIM_site.csproj @@ -184,6 +184,7 @@ + @@ -655,6 +656,13 @@ AnagTipoRisorsa.aspx + + ExcelExportAllData.aspx + ASPXCodeBehind + + + ExcelExportAllData.aspx + ExcelExportMtzPrev.aspx ASPXCodeBehind diff --git a/Projects/WebGIM/GIM_site/Web.config b/Projects/WebGIM/GIM_site/Web.config index 56b9e53..ebc9459 100644 --- a/Projects/WebGIM/GIM_site/Web.config +++ b/Projects/WebGIM/GIM_site/Web.config @@ -159,7 +159,9 @@ - + + + diff --git a/Projects/WebGIM/GIM_site/WebUserControls/mod_impiegoRisorse.ascx b/Projects/WebGIM/GIM_site/WebUserControls/mod_impiegoRisorse.ascx index 03525d6..bb5d667 100644 --- a/Projects/WebGIM/GIM_site/WebUserControls/mod_impiegoRisorse.ascx +++ b/Projects/WebGIM/GIM_site/WebUserControls/mod_impiegoRisorse.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impiegoRisorse.ascx.cs" Inherits="GIM_site.WebUserControls.mod_impiegoRisorse" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> - + @@ -41,7 +41,17 @@ - + + + + + + + + + + + @@ -49,6 +59,10 @@ + + + + diff --git a/Projects/WebGIM/GIM_site/bin/GIM_data.dll b/Projects/WebGIM/GIM_site/bin/GIM_data.dll index 82e087c..08ad860 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_data.dll and b/Projects/WebGIM/GIM_site/bin/GIM_data.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/GIM_site.dll b/Projects/WebGIM/GIM_site/bin/GIM_site.dll index 0885682..f881c70 100644 Binary files a/Projects/WebGIM/GIM_site/bin/GIM_site.dll and b/Projects/WebGIM/GIM_site/bin/GIM_site.dll differ diff --git a/Projects/WebGIM/GIM_site/bin/SteamWare.dll b/Projects/WebGIM/GIM_site/bin/SteamWare.dll index 16d8420..50fae20 100644 Binary files a/Projects/WebGIM/GIM_site/bin/SteamWare.dll and b/Projects/WebGIM/GIM_site/bin/SteamWare.dll differ