Inserita pagina User x selezionare ruolo x testing
This commit is contained in:
+29
-6
@@ -15,6 +15,14 @@ select,
|
||||
textarea {
|
||||
max-width: 280px;
|
||||
}
|
||||
/* gestione icone */
|
||||
.icona {
|
||||
font-size: 2em;
|
||||
}
|
||||
.titolo {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
/* Responsive: Portrait tablets and up */
|
||||
@media screen and (min-width: 768px) {
|
||||
.jumbotron {
|
||||
@@ -23,12 +31,27 @@ textarea {
|
||||
.body-content {
|
||||
padding: 0;
|
||||
}
|
||||
.navbar-nav {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
/* gestione icone */
|
||||
.icona {
|
||||
font-size: 2em;
|
||||
@media screen and (min-width: 1024px) {
|
||||
.navbar-nav {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
}
|
||||
.titolo {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
@media screen and (min-width: 1366px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.0em;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1440px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1920px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
+46
-20
@@ -1,33 +1,21 @@
|
||||
/* Move down content because we have a fixed navbar that is 50px tall */
|
||||
body {
|
||||
padding-top: 50px;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* Wrapping element */
|
||||
/* Set some basic padding to keep content from hitting the edges */
|
||||
.body-content {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
/* Set widths on the form inputs since otherwise they're 100% wide */
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
|
||||
/* Responsive: Portrait tablets and up */
|
||||
@media screen and (min-width: 768px) {
|
||||
.jumbotron {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.body-content {
|
||||
padding: 0;
|
||||
}
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +24,45 @@ textarea {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.titolo{
|
||||
font-size:1.2em;
|
||||
.titolo {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive: Portrait tablets and up */
|
||||
@media screen and (min-width: 768px) {
|
||||
.jumbotron {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.body-content {
|
||||
padding: 0;
|
||||
}
|
||||
.navbar-nav {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1024px) {
|
||||
.navbar-nav {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1366px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.0em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1440px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1920px) {
|
||||
.navbar-nav {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
body{padding-top:50px;padding-bottom:20px;}.body-content{padding-left:15px;padding-right:15px;}input,select,textarea{max-width:280px;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}}.icona{font-size:2em;}.titolo{font-size:1.2em;font-weight:bold;}
|
||||
body{padding-top:50px;padding-bottom:20px;}.body-content{padding-left:15px;padding-right:15px;}input,select,textarea{max-width:280px;}.icona{font-size:2em;}.titolo{font-size:1.2em;font-weight:bold;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}.navbar-nav{font-size:.8em;}}@media screen and (min-width:1024px){.navbar-nav{font-size:.9em;}}@media screen and (min-width:1366px){.navbar-nav{font-size:1em;}}@media screen and (min-width:1440px){.navbar-nav{font-size:1.1em;}}@media screen and (min-width:1920px){.navbar-nav{font-size:1.2em;}}
|
||||
+6
-1
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace PUB
|
||||
{
|
||||
@@ -11,7 +12,11 @@ namespace PUB
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
// verifico se ho in sessione il TIPO utente, altrimenti importo condomini.it
|
||||
if(memLayer.ML.StringSessionObj("UserRole")=="")
|
||||
{
|
||||
memLayer.ML.setSessionVal("UserRole", "condomini.it");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-3
@@ -16,7 +16,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>PUB</RootNamespace>
|
||||
<AssemblyName>PUB</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
@@ -27,6 +27,7 @@
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
<TypeScriptToolsVersion>2.6</TypeScriptToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -90,13 +91,11 @@
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.4.1\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
@@ -126,6 +125,7 @@
|
||||
<Reference Include="Microsoft.AspNet.FriendlyUrls">
|
||||
<HintPath>..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -201,6 +201,7 @@
|
||||
<Content Include="Scripts\esm\popper-utils.min.js.map" />
|
||||
<Content Include="Scripts\esm\popper-utils.js.map" />
|
||||
<Content Include="Services\WS_data.asmx" />
|
||||
<Content Include="User.aspx" />
|
||||
<Content Include="WebUserContols\mod_anagAmmin.ascx" />
|
||||
<Content Include="WebUserContols\mod_anagAziende.ascx" />
|
||||
<Content Include="WebUserContols\mod_anagCond.ascx" />
|
||||
@@ -391,6 +392,13 @@
|
||||
<Compile Include="Site.Master.designer.cs">
|
||||
<DependentUpon>Site.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="User.aspx.cs">
|
||||
<DependentUpon>User.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="User.aspx.designer.cs">
|
||||
<DependentUpon>User.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_anagAmmin.ascx.cs">
|
||||
<DependentUpon>mod_anagAmmin.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -560,6 +568,10 @@
|
||||
<TypeScriptCompile Include="Scripts\index.d.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWare\SteamWareLib\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Data\Data.csproj">
|
||||
<Project>{9b687b05-64db-436c-864a-bc0a9a37e4b4}</Project>
|
||||
<Name>Data</Name>
|
||||
|
||||
@@ -9,6 +9,13 @@ namespace PUB
|
||||
{
|
||||
public partial class SiteMaster : MasterPage
|
||||
{
|
||||
/// <summary>
|
||||
/// Forza update
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
tpl_header.doUpdate();
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="PUB.User" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="jumbotron p-2 my-1">
|
||||
<h2>Selezione utente</h2>
|
||||
</div>
|
||||
<div class="container-fluid my-1 bg-light">
|
||||
<asp:RadioButtonList runat="server" ID="rblRole" AutoPostBack="true" RepeatDirection="Horizontal" OnSelectedIndexChanged="rblRole_SelectedIndexChanged">
|
||||
<asp:ListItem class="btn btn-info" Value="condomini.it">Condomini.it</asp:ListItem>
|
||||
<asp:ListItem class="btn btn-danger" Value="amministratore">Amministratore</asp:ListItem>
|
||||
<asp:ListItem class="btn btn-warning" Value="azienda">Azienda</asp:ListItem>
|
||||
<asp:ListItem class="btn btn-primary" Value="condominio">Condominio</asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
<p>
|
||||
Ruolo selezionato: <b><asp:label runat="server" ID="lblRuolo"><%: UserRole %></asp:label></b></p>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,61 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace PUB
|
||||
{
|
||||
public partial class User : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// provo a selezionare SE ho valore...
|
||||
if (UserRole == "")
|
||||
{
|
||||
UserRole="condomini.it";
|
||||
}
|
||||
if (UserRole != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
rblRole.SelectedValue = UserRole;
|
||||
rblRole.DataBind();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void rblRole_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
rblRole.SelectedValue = UserRole;
|
||||
}
|
||||
|
||||
protected void rblRole_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
UserRole=rblRole.SelectedValue;
|
||||
((SiteMaster)this.Master).doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// Ruolo utente
|
||||
/// </summary>
|
||||
public string UserRole
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("UserRole");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("UserRole", value);
|
||||
lblRuolo.Text = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+33
@@ -0,0 +1,33 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PUB {
|
||||
|
||||
|
||||
public partial class User {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo rblRole.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RadioButtonList rblRole;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblRuolo.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblRuolo;
|
||||
}
|
||||
}
|
||||
+33
-25
@@ -1,61 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Per altre informazioni su come configurare l'applicazione ASP.NET, vedere
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<!--
|
||||
Per una descrizione delle modifiche al file web.config, vedere il sito Web all'indirizzo http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
Gli attributi seguenti possono essere impostati sul tag <httpRuntime>.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.6.2" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.1" />
|
||||
<httpRuntime targetFramework="4.6.1" />
|
||||
<compilation debug="true" targetFramework="4.6.2"/>
|
||||
<httpRuntime targetFramework="4.6.1"/>
|
||||
<pages>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
<add namespace="System.Web.Optimization"/>
|
||||
</namespaces>
|
||||
<controls>
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/>
|
||||
</controls>
|
||||
</pages>
|
||||
<httpModules>
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
|
||||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.AspNet.TelemetryCorrelation" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.3.0" newVersion="1.0.3.0" />
|
||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.AspNet.TelemetryCorrelation" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.3.0" newVersion="1.0.3.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<modules>
|
||||
<remove name="ApplicationInsightsWebTracking" />
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
|
||||
<remove name="TelemetryCorrelationHttpModule" />
|
||||
<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
|
||||
<remove name="ApplicationInsightsWebTracking"/>
|
||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
|
||||
<remove name="TelemetryCorrelationHttpModule"/>
|
||||
<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler"/>
|
||||
</modules>
|
||||
</system.webServer>
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
||||
@@ -4,7 +4,7 @@
|
||||
<h5 class="card-header alert alert-secondary text-uppercase">Amministratori</h5>
|
||||
<div class="card-body" id="detailScad">
|
||||
<h5 class="card-title">Elenco Amministratori</h5>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="idxAmm" DataSourceID="ods" ForeColor="#333333" GridLines="None" CssClass="table table-striped table-sm table-responsive2" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="idxAmm" DataSourceID="ods" ForeColor="#333333" GridLines="None" CssClass="table table-striped table-sm table-responsive-md" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
@@ -30,7 +30,7 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<%--<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
@@ -39,7 +39,7 @@
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />--%>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="Data.DS_appTableAdapters.AnagAmministratoriTableAdapter" UpdateMethod="Update">
|
||||
<DeleteParameters>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<li class="nav-item" runat="server" id="lnkPCO"><a class="nav-link" runat="server" href="~/PCO/MyDashboard"><i class="fas fa-tachometer-alt text-primary"></i> Dashboard Condominio</a></li>
|
||||
<li class="nav-item"><a class="nav-link" runat="server" href="~/About"><i class="fas fa-info"></i> Informazioni</a></li>
|
||||
<li class="nav-item"><a class="nav-link" runat="server" href="~/Contact"><i class="fas fa-anchor"></i> Contatto</a></li>
|
||||
<li class="nav-item"><a class="nav-link" runat="server" href="~/User"><i class="fas fa-user"></i> User</a></li>
|
||||
</ul>
|
||||
<div class="form-inline my-2 my-lg-0">
|
||||
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -11,6 +12,35 @@ namespace PUB.WebUserContols
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
lnkPAM.Visible = false;
|
||||
lnkPAZ.Visible = false;
|
||||
lnkPBO.Visible = false;
|
||||
lnkPCO.Visible = false;
|
||||
switch (UserRole)
|
||||
{
|
||||
case "amministratore":
|
||||
lnkPAM.Visible = true;
|
||||
break;
|
||||
case "azienda":
|
||||
lnkPAZ.Visible = true;
|
||||
break;
|
||||
case "condomini.it":
|
||||
lnkPBO.Visible = true;
|
||||
break;
|
||||
case "condominio":
|
||||
lnkPCO.Visible = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#if false
|
||||
lnkPAM.Visible = isPAM;
|
||||
lnkPAZ.Visible = isPAZ;
|
||||
@@ -19,6 +49,20 @@ namespace PUB.WebUserContols
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ruolo utente
|
||||
/// </summary>
|
||||
public string UserRole
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("UserRole");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("UserRole", value);
|
||||
}
|
||||
}
|
||||
public bool isPAM
|
||||
{
|
||||
get
|
||||
|
||||
@@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Data", "Data\Data.csproj",
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADM", "ADM\ADM.csproj", "{D40DD30F-DE90-4E9E-93AD-7E5917CF8499}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\SteamWare\SteamWareLib\SteamWare.csproj", "{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -27,6 +29,10 @@ Global
|
||||
{D40DD30F-DE90-4E9E-93AD-7E5917CF8499}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D40DD30F-DE90-4E9E-93AD-7E5917CF8499}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D40DD30F-DE90-4E9E-93AD-7E5917CF8499}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
Reference in New Issue
Block a user