From 8be8523ee10fa366718fb287662abccfc81995d2 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 23 Jul 2018 16:36:30 +0200 Subject: [PATCH] inizio pag gestione DETTAGLIO intervento --- Data/DS_app.Designer.cs | 99 ++--- Data/DS_app.xsd | 24 +- PUB/PAM/DettaglioIntervento.aspx | 14 + PUB/PAM/DettaglioIntervento.aspx.cs | 17 + PUB/PAM/DettaglioIntervento.aspx.designer.cs | 24 ++ PUB/PUB.csproj | 16 + PUB/WebUserContols/mod_ER_detail.ascx | 380 ++++++++++++++++++ PUB/WebUserContols/mod_ER_detail.ascx.cs | 17 + .../mod_ER_detail.ascx.designer.cs | 33 ++ PUB/WebUserContols/mod_ER_grid.ascx | 18 +- PUB/WebUserContols/mod_ER_grid.ascx.cs | 72 ++++ 11 files changed, 650 insertions(+), 64 deletions(-) create mode 100644 PUB/PAM/DettaglioIntervento.aspx create mode 100644 PUB/PAM/DettaglioIntervento.aspx.cs create mode 100644 PUB/PAM/DettaglioIntervento.aspx.designer.cs create mode 100644 PUB/WebUserContols/mod_ER_detail.ascx create mode 100644 PUB/WebUserContols/mod_ER_detail.ascx.cs create mode 100644 PUB/WebUserContols/mod_ER_detail.ascx.designer.cs diff --git a/Data/DS_app.Designer.cs b/Data/DS_app.Designer.cs index 8a8db40..9a948cc 100644 --- a/Data/DS_app.Designer.cs +++ b/Data/DS_app.Designer.cs @@ -3427,7 +3427,7 @@ namespace Data { private global::System.Data.DataColumn columncollaboratore; - private global::System.Data.DataColumn columncssPrior; + private global::System.Data.DataColumn columndataIns; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] @@ -3720,9 +3720,9 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public global::System.Data.DataColumn cssPriorColumn { + public global::System.Data.DataColumn dataInsColumn { get { - return this.columncssPrior; + return this.columndataIns; } } @@ -3795,7 +3795,7 @@ namespace Data { string stato, string cssStato, string collaboratore, - string cssPrior) { + System.DateTime dataIns) { ElencolRichRow rowElencolRichRow = ((ElencolRichRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -3830,7 +3830,7 @@ namespace Data { stato, cssStato, collaboratore, - cssPrior}; + dataIns}; rowElencolRichRow.ItemArray = columnValuesArray; this.Rows.Add(rowElencolRichRow); return rowElencolRichRow; @@ -3892,7 +3892,7 @@ namespace Data { this.columnstato = base.Columns["stato"]; this.columncssStato = base.Columns["cssStato"]; this.columncollaboratore = base.Columns["collaboratore"]; - this.columncssPrior = base.Columns["cssPrior"]; + this.columndataIns = base.Columns["dataIns"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3962,8 +3962,8 @@ namespace Data { base.Columns.Add(this.columncssStato); this.columncollaboratore = new global::System.Data.DataColumn("collaboratore", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columncollaboratore); - this.columncssPrior = new global::System.Data.DataColumn("cssPrior", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncssPrior); + this.columndataIns = new global::System.Data.DataColumn("dataIns", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndataIns); this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnidxRichiesta}, true)); this.columnidxRichiesta.AutoIncrement = true; @@ -4008,8 +4008,7 @@ namespace Data { this.columncssStato.MaxLength = 250; this.columncollaboratore.ReadOnly = true; this.columncollaboratore.MaxLength = 501; - this.columncssPrior.ReadOnly = true; - this.columncssPrior.MaxLength = 12; + this.columndataIns.AllowDBNull = false; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -7164,17 +7163,12 @@ namespace Data { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public string cssPrior { + public System.DateTime dataIns { get { - try { - return ((string)(this[this.tableElencolRich.cssPriorColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("Il valore della colonna \'cssPrior\' nella tabella \'ElencolRich\' è DBNull.", e); - } + return ((global::System.DateTime)(this[this.tableElencolRich.dataInsColumn])); } set { - this[this.tableElencolRich.cssPriorColumn] = value; + this[this.tableElencolRich.dataInsColumn] = value; } } @@ -7273,18 +7267,6 @@ namespace Data { public void SetcollaboratoreNull() { this[this.tableElencolRich.collaboratoreColumn] = global::System.Convert.DBNull; } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public bool IscssPriorNull() { - return this.IsNull(this.tableElencolRich.cssPriorColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] - public void SetcssPriorNull() { - this[this.tableElencolRich.cssPriorColumn] = global::System.Convert.DBNull; - } } /// @@ -10731,7 +10713,7 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea) tableMapping.ColumnMappings.Add("stato", "stato"); tableMapping.ColumnMappings.Add("cssStato", "cssStato"); tableMapping.ColumnMappings.Add("collaboratore", "collaboratore"); - tableMapping.ColumnMappings.Add("cssPrior", "cssPrior"); + tableMapping.ColumnMappings.Add("dataIns", "dataIns"); this._adapter.TableMappings.Add(tableMapping); } @@ -10745,10 +10727,10 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea) [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ElencolRich"; + this._commandCollection[0].CommandText = @"SELECT idxRichiesta, idxStato, idxCond, idxPriorita, idxArea, idxFornitore, cod_fornitore, cod_cond, nom_cond, dataIns, dataRich, dataScad, codCollabRich, genContatto, telContatto, messaggio, note, iscritta, ricevuto, data_ricevuto, risolto, data_risolto, fattura, data_fattura, preventivo, data_inizio_preventivo, data_fine_preventivo, primo_controllo, secondo_controllo, controllo_temporale, stato, cssStato, collaboratore FROM v_ElencolRich"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; @@ -10761,24 +10743,30 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea) this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_ER_InsertQuery"; + this._commandCollection[2].CommandText = "dbo.stp_ER_getByKey"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCond", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRich", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codCollabRich", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@genContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@telContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxRichiesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_ER_UpdateText"; + this._commandCollection[3].CommandText = "dbo.stp_ER_InsertQuery"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxRichiesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCond", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRich", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codCollabRich", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@genContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@telContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_ER_UpdateText"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxRichiesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10840,11 +10828,28 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea) return dataTable; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_app.ElencolRichDataTable getByKey(global::System.Nullable idxRichiesta) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((idxRichiesta.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxRichiesta.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_app.ElencolRichDataTable dataTable = new DS_app.ElencolRichDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int InsertQuery(global::System.Nullable idxCond, global::System.Nullable idxFornitore, global::System.Nullable dataRich, string codCollabRich, string genContatto, string telContatto, string messaggio) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((idxCond.HasValue == true)) { command.Parameters[1].Value = ((int)(idxCond.Value)); } @@ -10908,7 +10913,7 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea) [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int UpdateText(global::System.Nullable Original_idxRichiesta, string messaggio, string note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((Original_idxRichiesta.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_idxRichiesta.Value)); } diff --git a/Data/DS_app.xsd b/Data/DS_app.xsd index 48082b3..94fa29b 100644 --- a/Data/DS_app.xsd +++ b/Data/DS_app.xsd @@ -461,8 +461,7 @@ FROM v_AssF2C - SELECT * -FROM v_ElencolRich + SELECT idxRichiesta, idxStato, idxCond, idxPriorita, idxArea, idxFornitore, cod_fornitore, cod_cond, nom_cond, dataIns, dataRich, dataScad, codCollabRich, genContatto, telContatto, messaggio, note, iscritta, ricevuto, data_ricevuto, risolto, data_risolto, fattura, data_fattura, preventivo, data_inizio_preventivo, data_fine_preventivo, primo_controllo, secondo_controllo, controllo_temporale, stato, cssStato, collaboratore FROM v_ElencolRich @@ -501,7 +500,7 @@ FROM v_ElencolRich - + @@ -518,6 +517,17 @@ FROM v_ElencolRich + + + + dbo.stp_ER_getByKey + + + + + + + @@ -1112,13 +1122,7 @@ SELECT idxPriorita, descrPriorita, scadenzaGg FROM AnagPrior WHERE (idxPriorita - - - - - - - + diff --git a/PUB/PAM/DettaglioIntervento.aspx b/PUB/PAM/DettaglioIntervento.aspx new file mode 100644 index 0000000..9b9d77f --- /dev/null +++ b/PUB/PAM/DettaglioIntervento.aspx @@ -0,0 +1,14 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/SitePAM.master" AutoEventWireup="true" CodeBehind="DettaglioIntervento.aspx.cs" Inherits="PUB.PAM.DettaglioIntervento" %> + +<%@ Register Src="~/WebUserContols/mod_ER_detail.ascx" TagPrefix="uc1" TagName="mod_ER_detail" %> + + + +
+
+
+ +
+
+
+
diff --git a/PUB/PAM/DettaglioIntervento.aspx.cs b/PUB/PAM/DettaglioIntervento.aspx.cs new file mode 100644 index 0000000..1498d90 --- /dev/null +++ b/PUB/PAM/DettaglioIntervento.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace PUB.PAM +{ + public partial class DettaglioIntervento : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/PUB/PAM/DettaglioIntervento.aspx.designer.cs b/PUB/PAM/DettaglioIntervento.aspx.designer.cs new file mode 100644 index 0000000..5d10038 --- /dev/null +++ b/PUB/PAM/DettaglioIntervento.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace PUB.PAM { + + + public partial class DettaglioIntervento { + + /// + /// Controllo mod_ER_detail. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::PUB.WebUserContols.mod_ER_detail mod_ER_detail; + } +} diff --git a/PUB/PUB.csproj b/PUB/PUB.csproj index fed61a1..4890483 100644 --- a/PUB/PUB.csproj +++ b/PUB/PUB.csproj @@ -176,6 +176,7 @@ + @@ -222,6 +223,7 @@ + @@ -389,6 +391,13 @@ Condomini.aspx + + DettaglioIntervento.aspx + ASPXCodeBehind + + + DettaglioIntervento.aspx + Interventi.aspx ASPXCodeBehind @@ -625,6 +634,13 @@ mod_ER_conclusi.ascx + + mod_ER_detail.ascx + ASPXCodeBehind + + + mod_ER_detail.ascx + mod_ER_grid.ascx ASPXCodeBehind diff --git a/PUB/WebUserContols/mod_ER_detail.ascx b/PUB/WebUserContols/mod_ER_detail.ascx new file mode 100644 index 0000000..73b6e98 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_detail.ascx @@ -0,0 +1,380 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_detail.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_detail" %> + + + + idxRichiesta: + +
+ idxStato: + +
+ idxCond: + +
+ idxPriorita: + +
+ idxArea: + +
+ idxFornitore: + +
+ cod_fornitore: + +
+ cod_cond: + +
+ nom_cond: + +
+ dataRich: + +
+ dataScad: + +
+ codCollabRich: + +
+ genContatto: + +
+ telContatto: + +
+ messaggio: + +
+ note: + +
+ iscritta: + +
+ ricevuto: + +
+ data_ricevuto: + +
+ risolto: + +
+ data_risolto: + +
+ fattura: + +
+ data_fattura: + +
+ preventivo: + +
+ data_inizio_preventivo: + +
+ data_fine_preventivo: + +
+ primo_controllo: + +
+ secondo_controllo: + +
+ controllo_temporale: + +
+ stato: + +
+ cssStato: + +
+ collaboratore: + +
+ dataIns: + +
+ +   +
+ + idxStato: + +
+ idxCond: + +
+ idxPriorita: + +
+ idxArea: + +
+ idxFornitore: + +
+ cod_fornitore: + +
+ cod_cond: + +
+ nom_cond: + +
+ dataRich: + +
+ dataScad: + +
+ codCollabRich: + +
+ genContatto: + +
+ telContatto: + +
+ messaggio: + +
+ note: + +
+ iscritta: + +
+ ricevuto: + +
+ data_ricevuto: + +
+ risolto: + +
+ data_risolto: + +
+ fattura: + +
+ data_fattura: + +
+ preventivo: + +
+ data_inizio_preventivo: + +
+ data_fine_preventivo: + +
+ primo_controllo: + +
+ secondo_controllo: + +
+ controllo_temporale: + +
+ stato: + +
+ cssStato: + +
+ collaboratore: + +
+ dataIns: + +
+ +   +
+ +
+
+
+
+
Dettaglio richiesta #<%# Eval("IdxRichiesta") %>
+
+
+ condominio <%# Eval("nom_cond") %> (<%# Eval("cod_cond") %>) +
+
+
+
+
+
+
+
+
+
+ | Messaggio + +
+
+ | Note + +
+ +
+
+ <%-- +
Urgenza
+
+ + + +
+
Area
+
+ + + + +
+
Fornitore
+
+ + + + + + + + + +
+
+ + + +
+
Messaggio
+
+ +
+
Contatto
+
+ +
+
Tel Contatto
+
+ +
+
+ + Registra richiesta + +
--%> +
+
+
+ + + + idxStato: + +
+ idxCond: + +
+ idxPriorita: + +
+ idxArea: + +
+ idxFornitore: + +
+ cod_fornitore: + +
+ dataRich: + +
+ dataScad: + +
+ codCollabRich: + +
+ genContatto: + +
+ telContatto: + +
+ iscritta: + +
+ ricevuto: + +
+ data_ricevuto: + +
+ risolto: + +
+ data_risolto: + +
+ fattura: + +
+ data_fattura: + +
+ preventivo: + +
+ data_inizio_preventivo: + +
+ data_fine_preventivo: + +
+ primo_controllo: + +
+ secondo_controllo: + +
+ controllo_temporale: + +
+ stato: + +
+ cssStato: + +
+ collaboratore: + +
+ dataIns: + +
+
+
+ + + + + diff --git a/PUB/WebUserContols/mod_ER_detail.ascx.cs b/PUB/WebUserContols/mod_ER_detail.ascx.cs new file mode 100644 index 0000000..e72471e --- /dev/null +++ b/PUB/WebUserContols/mod_ER_detail.ascx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace PUB.WebUserContols +{ + public partial class mod_ER_detail : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/PUB/WebUserContols/mod_ER_detail.ascx.designer.cs b/PUB/WebUserContols/mod_ER_detail.ascx.designer.cs new file mode 100644 index 0000000..89600f6 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_detail.ascx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace PUB.WebUserContols { + + + public partial class mod_ER_detail { + + /// + /// Controllo frmView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.FormView frmView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/PUB/WebUserContols/mod_ER_grid.ascx b/PUB/WebUserContols/mod_ER_grid.ascx index e1d74da..e3612bc 100644 --- a/PUB/WebUserContols/mod_ER_grid.ascx +++ b/PUB/WebUserContols/mod_ER_grid.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %> - + @@ -27,11 +27,15 @@ - -
- -
- >Urg: <%# Eval("idxPriorita") %> +
+ +
+ +
+
+ Urg: <%# Eval("idxPriorita") %> + +
@@ -97,7 +101,7 @@
Note - +
diff --git a/PUB/WebUserContols/mod_ER_grid.ascx.cs b/PUB/WebUserContols/mod_ER_grid.ascx.cs index 2e78afd..265e4c8 100644 --- a/PUB/WebUserContols/mod_ER_grid.ascx.cs +++ b/PUB/WebUserContols/mod_ER_grid.ascx.cs @@ -10,6 +10,10 @@ namespace PUB.WebUserContols public partial class mod_ER_grid : System.Web.UI.UserControl { public event EventHandler eh_selCond; + /// + /// ultimo comando letto da link button + /// + public string lastCmd { get; set; } protected void Page_Load(object sender, EventArgs e) { @@ -93,7 +97,75 @@ namespace PUB.WebUserContols // sollevo evento selezione condominio... eh_selCond?.Invoke(this, new SelCondEventArgs(idxCond)); } + /// + /// Verifica se sia scaduta + /// + /// + /// + public bool isScad(object _dataScad) + { + bool answ = true; + DateTime dataScad; + //dataRich = DateTime.Today; + //dataScad = dataRich; + try + { + DateTime.TryParse(_dataScad.ToString(), out dataScad); + if (dataScad >= DateTime.Now) + { + answ = false; + } + } + catch + { } + return answ; + } + /// + /// Css x colorazione in abse a scadenza + /// + /// + /// + public string getCssScad(object _dataScad) + { + string answ = "text-danger"; + DateTime dataScad; + //dataRich = DateTime.Today; + //dataScad = dataRich; + try + { + DateTime.TryParse(_dataScad.ToString(), out dataScad); + if (dataScad >= DateTime.Now) + { + answ = "text-success"; + } + } + catch + { } + return answ; + } + + protected void grViewElRich_RowCommand(object sender, GridViewCommandEventArgs e) + { + // verifico se sia riassegnazione... + lastCmd = e.CommandArgument.ToString(); + } + + protected void grViewElRich_SelectedIndexChanged(object sender, EventArgs e) + { + switch (lastCmd) + { + case "Riassegna": + // --> pagina riassegnazione con dettagli... + Response.Redirect(string.Format("DettaglioIntervento?idxRichiesta={0}", grViewElRich.SelectedDataKey["idxRichiesta"])); + break; + default: + break; + } + } } + + + /// /// Evento parametrico sel condominio ///