diff --git a/NKC_WF/Default.aspx b/NKC_WF/Default.aspx new file mode 100644 index 0000000..dadba84 --- /dev/null +++ b/NKC_WF/Default.aspx @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NKC_WF.Default" %> + + + + + + + + + +
+
+

Welcome!

+
+
+ + diff --git a/NKC_WF/Default.aspx.cs b/NKC_WF/Default.aspx.cs new file mode 100644 index 0000000..6228fc4 --- /dev/null +++ b/NKC_WF/Default.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 NKC_WF +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + Response.Redirect("site/Default"); + } + } +} \ No newline at end of file diff --git a/NKC_WF/Default.aspx.designer.cs b/NKC_WF/Default.aspx.designer.cs new file mode 100644 index 0000000..14d2bae --- /dev/null +++ b/NKC_WF/Default.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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 NKC_WF +{ + + + public partial class Default + { + + /// + /// Controllo form1. + /// + /// + /// 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.HtmlForm form1; + } +} diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 2f46bcd..1bffb8a 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -233,6 +233,7 @@ + @@ -427,6 +428,13 @@ VersGen.cs + + Default.aspx + ASPXCodeBehind + + + Default.aspx + Home.aspx ASPXCodeBehind diff --git a/NKC_WF/WebUserControls/cmp_footer.ascx.cs b/NKC_WF/WebUserControls/cmp_footer.ascx.cs index 51c2aad..5ab3655 100644 --- a/NKC_WF/WebUserControls/cmp_footer.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_footer.ascx.cs @@ -1,4 +1,5 @@ -using System; +using SteamWare; +using System; using System.Configuration; namespace NKC_WF.WebUserControls @@ -34,7 +35,7 @@ namespace NKC_WF.WebUserControls private void setClock() { lblDateTime.Text = DateTime.Now.ToString("ddd dd.MM.yyyy, HH:mm:ss"); - lblCodOperatore.Text = $"{AppData.DataLayer.man.CodSoggCurrUser} - {AppData.DataLayer.man.CognNomeCurrUser}"; + lblCodOperatore.Text = $"{user_std.UtSn.CognomeNome} ({Page.User.Identity.Name})"; } } } \ No newline at end of file diff --git a/NKC_WF/site/TestAuth.aspx b/NKC_WF/site/TestAuth.aspx index 870d7f2..876cd0a 100644 --- a/NKC_WF/site/TestAuth.aspx +++ b/NKC_WF/site/TestAuth.aspx @@ -3,4 +3,12 @@

User Auth test

<%: User.Identity.Name %> + + + + + + + + diff --git a/NKC_WF/site/TestAuth.aspx.cs b/NKC_WF/site/TestAuth.aspx.cs index a4dc21a..58393fc 100644 --- a/NKC_WF/site/TestAuth.aspx.cs +++ b/NKC_WF/site/TestAuth.aspx.cs @@ -13,5 +13,39 @@ namespace NKC_WF.site { } + + protected void ddlSelData_SelectedIndexChanged(object sender, EventArgs e) + { + // a seconda delal richeista mostro qualcosa di diverso... + string selVal = ddlSelData.SelectedValue; + string dataVal = $"

{selVal}

"; + dataVal += "
    "; + switch (selVal) + { + case "diritti": + var diritti = SteamWare.user_std.UtSn.diritti; + foreach (var item in diritti) + { + dataVal += $"
  • CDC {item.COD_CDC} | MOD {item.COD_MODULO} | FUN {item.COD_FUNZIONE}
  • "; + } + break; + case "mappa": + var mappa = SteamWare.user_std.UtSn.mappaSito; + dataVal += $"
  • {mappa}
  • "; + break; + case "permessi": + var permessi = SteamWare.user_std.UtSn.permessi; + foreach (var item in permessi) + { + dataVal += $"
  • COD {item.COD_PERMESSO} | NOME {item.NOME} | URL {item.URL}
  • "; + } + break; + case "0": + default: + break; + } + dataVal += "
"; + litOut.Text = dataVal; + } } } \ No newline at end of file diff --git a/NKC_WF/site/TestAuth.aspx.designer.cs b/NKC_WF/site/TestAuth.aspx.designer.cs index e56e7f8..319bfaa 100644 --- a/NKC_WF/site/TestAuth.aspx.designer.cs +++ b/NKC_WF/site/TestAuth.aspx.designer.cs @@ -13,5 +13,23 @@ namespace NKC_WF.site public partial class TestAuth { + + /// + /// Controllo ddlSelData. + /// + /// + /// 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 ddlSelData; + + /// + /// Controllo litOut. + /// + /// + /// 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.Literal litOut; } }