From ba2e9f1afa7b4e48c0fc730d7878ed720ca60e24 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 16 Jul 2018 16:35:00 +0200 Subject: [PATCH] aggiunto mod ER x incoro e richieste con filtro status FIXED --- PUB/WebUserContols/mod_ER_grid.ascx | 7 + PUB/WebUserContols/mod_ER_inCorso.ascx | 18 ++ PUB/WebUserContols/mod_ER_inCorso.ascx.cs | 17 ++ .../mod_ER_inCorso.ascx.designer.cs | 15 ++ PUB/WebUserContols/mod_ER_richieste.ascx | 80 +++++++++ PUB/WebUserContols/mod_ER_richieste.ascx.cs | 108 ++++++++++++ .../mod_ER_richieste.ascx.designer.cs | 159 ++++++++++++++++++ 7 files changed, 404 insertions(+) create mode 100644 PUB/WebUserContols/mod_ER_inCorso.ascx create mode 100644 PUB/WebUserContols/mod_ER_inCorso.ascx.cs create mode 100644 PUB/WebUserContols/mod_ER_inCorso.ascx.designer.cs create mode 100644 PUB/WebUserContols/mod_ER_richieste.ascx create mode 100644 PUB/WebUserContols/mod_ER_richieste.ascx.cs create mode 100644 PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs diff --git a/PUB/WebUserContols/mod_ER_grid.ascx b/PUB/WebUserContols/mod_ER_grid.ascx index 6369dd1..c693312 100644 --- a/PUB/WebUserContols/mod_ER_grid.ascx +++ b/PUB/WebUserContols/mod_ER_grid.ascx @@ -33,6 +33,13 @@ + <%--
+
Flex item
+
Flex item
+
Third flex item
+
--%> + +
diff --git a/PUB/WebUserContols/mod_ER_inCorso.ascx b/PUB/WebUserContols/mod_ER_inCorso.ascx new file mode 100644 index 0000000..f572b3e --- /dev/null +++ b/PUB/WebUserContols/mod_ER_inCorso.ascx @@ -0,0 +1,18 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_inCorso.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_inCorso" %> + +
+
Interventi
+
+
Elenco degli interventi in corso
+
    +
  • Primo intervento
  • +
  • Primo intervento
  • +
  • Primo intervento
  • +
  • Primo intervento
  • +
  • Primo intervento
  • +
  • Primo intervento
  • +
+

With supporting text below as a natural lead-in to additional content.

+ Gestione Interventi +
+
diff --git a/PUB/WebUserContols/mod_ER_inCorso.ascx.cs b/PUB/WebUserContols/mod_ER_inCorso.ascx.cs new file mode 100644 index 0000000..49fa36c --- /dev/null +++ b/PUB/WebUserContols/mod_ER_inCorso.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_inCorso : 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_inCorso.ascx.designer.cs b/PUB/WebUserContols/mod_ER_inCorso.ascx.designer.cs new file mode 100644 index 0000000..c1ef781 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_inCorso.ascx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// 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_inCorso { + } +} diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx b/PUB/WebUserContols/mod_ER_richieste.ascx new file mode 100644 index 0000000..04b4432 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_richieste.ascx @@ -0,0 +1,80 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_richieste.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_richieste" %> +<%@ Register Src="~/WebUserContols/mod_ER_grid.ascx" TagPrefix="uc1" TagName="mod_ER_grid" %> + +
+
+
+
+
Richieste
+
+
+ + + + + + + + +
+
+ Apri nuova » +
+
+
+
+
+
Inserimento nuova richiesta
+
+
Area
+
+ + + + +
+
Fornitore
+
+ + + + + + + + + +
+
+ + +
+
Messaggio
+
+ +
+
Contatto
+
+ +
+
Tel Contatto
+
+ +
+
+ + Registra richiesta + +
+
+
+
+
Elenco Richieste Aperte Amministratore
+
+
+ +
+
+
+
+
diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx.cs b/PUB/WebUserContols/mod_ER_richieste.ascx.cs new file mode 100644 index 0000000..663aa58 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_richieste.ascx.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Data; +using SteamWare; + +namespace PUB.WebUserContols +{ + public partial class mod_ER_richieste : System.Web.UI.UserControl + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + // salvo le selezioni... + saveSelections(); + } + } + + private void saveSelections() + { + mod_ER_grid.idxCond = ddlCondominio.SelectedValue; + } + + protected void ddlCondominio_SelectedIndexChanged(object sender, EventArgs e) + { + // se la selezione c'è --> permetto AGGIUNGI + lbtAddNew.Visible = (ddlCondominio.SelectedIndex > 0); + saveSelections(); + } + + protected void lbtAddNew_Click(object sender, EventArgs e) + { + if (divInsNew.Visible) + { + lbtAddNew.Text = "Apri nuova »"; + } + else + { + lbtAddNew.Text = "⇄ CHIUDI"; + } + divInsNew.Visible = !divInsNew.Visible; + divElenco.Visible = !divInsNew.Visible; + if (divInsNew.Visible) + { + // aggiorno + chkShowAll.Checked = false; + fixSelCond(); + refreshFornitori(); + } + } + + protected void ddlArea_SelectedIndexChanged(object sender, EventArgs e) + { + refreshFornitori(); + } + + private void refreshFornitori() + { + ddlFornitore.Items.Clear(); + ddlFornitore.DataBind(); + saveSelections(); + } + + protected void chkShowAll_CheckedChanged(object sender, EventArgs e) + { + fixSelCond(); + } + + private void fixSelCond() + { + // se è selezionato imposto nell'hiddenField 0, altrimenti valore selezionato da ddlCOndomini + if (chkShowAll.Checked) + { + hfCond.Value = "0"; + } + else + { + hfCond.Value = ddlCondominio.SelectedValue; + } + } + + protected void lblAddNew_Click(object sender, EventArgs e) + { + int idxCond = 0; + int idxForn = 0; + int.TryParse(hfCond.Value, out idxCond); + int.TryParse(ddlFornitore.SelectedValue, out idxForn); + string codCollab = "A1.C1"; //!!!FARE!!! ora è hard coded... + // Registro richiesta... + DtProxy.man.taElRich.InsertQuery(idxCond, idxForn, DateTime.Now, codCollab, txtContatto.Text.Trim(), txtTelefono.Text.Trim(), txtMessaggio.Text.Trim()); + Response.Redirect(devicesAuthProxy.pagCorrente); + } + + protected void ddlStatoMin_SelectedIndexChanged(object sender, EventArgs e) + { + saveSelections(); + } + + protected void ddlStatoMax_SelectedIndexChanged(object sender, EventArgs e) + { + saveSelections(); + } + } +} \ No newline at end of file diff --git a/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs b/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs new file mode 100644 index 0000000..f082a09 --- /dev/null +++ b/PUB/WebUserContols/mod_ER_richieste.ascx.designer.cs @@ -0,0 +1,159 @@ +//------------------------------------------------------------------------------ +// +// 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_richieste { + + /// + /// Controllo ddlCondominio. + /// + /// + /// 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.DropDownList ddlCondominio; + + /// + /// Controllo odsCondomini. + /// + /// + /// 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 odsCondomini; + + /// + /// Controllo lbtAddNew. + /// + /// + /// 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.LinkButton lbtAddNew; + + /// + /// Controllo divInsNew. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsNew; + + /// + /// Controllo ddlArea. + /// + /// + /// 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.DropDownList ddlArea; + + /// + /// Controllo odsArea. + /// + /// + /// 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 odsArea; + + /// + /// Controllo ddlFornitore. + /// + /// + /// 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.DropDownList ddlFornitore; + + /// + /// Controllo odsFornitore. + /// + /// + /// 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 odsFornitore; + + /// + /// Controllo hfCond. + /// + /// + /// 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.HiddenField hfCond; + + /// + /// Controllo chkShowAll. + /// + /// + /// 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.CheckBox chkShowAll; + + /// + /// Controllo txtMessaggio. + /// + /// + /// 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.TextBox txtMessaggio; + + /// + /// Controllo txtContatto. + /// + /// + /// 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.TextBox txtContatto; + + /// + /// Controllo txtTelefono. + /// + /// + /// 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.TextBox txtTelefono; + + /// + /// Controllo lblAddNew. + /// + /// + /// 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.LinkButton lblAddNew; + + /// + /// Controllo divElenco. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divElenco; + + /// + /// Controllo mod_ER_grid. + /// + /// + /// 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_grid mod_ER_grid; + } +}