diff --git a/GPW_Admin/BaseUserControl.cs b/GPW_Admin/BaseUserControl.cs
index 788c55a..0345e69 100644
--- a/GPW_Admin/BaseUserControl.cs
+++ b/GPW_Admin/BaseUserControl.cs
@@ -32,6 +32,40 @@ namespace GPW_Admin
#endregion Public Events
+ #region Public Properties
+
+ ///
+ /// pagina corrente (URL finale)
+ ///
+ public string _paginaCorrente { get; set; }
+
+ ///
+ /// controllo stato licenze!
+ ///
+ public bool chkLicOk
+ {
+ get => (licenzeGPW.checkLicenze && licenzeGPW.checkPayload);
+ }
+
+ #endregion Public Properties
+
+ #region Protected Methods
+
+ ///
+ /// salva in variabile pagina il nome della pagina corrente
+ ///
+ protected void PagCorrente()
+ {
+ Uri MyUrl = Request.Url;
+ string delimStr = "/";
+ char[] delimiter = delimStr.ToCharArray();
+ string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter);
+ int n = finalUrl.Length;
+ _paginaCorrente = finalUrl[n - 1].ToString();
+ }
+
+ #endregion Protected Methods
+
#region Public Methods
///
@@ -88,6 +122,21 @@ namespace GPW_Admin
return answ;
}
+ ///
+ /// risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione
+ ///
+ ///
+ public bool isWritable()
+ {
+ bool answ = false;
+ if (_paginaCorrente == null)
+ {
+ PagCorrente();
+ }
+ answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente) && chkLicOk;
+ return answ;
+ }
+
///
/// Verifica se il valore sia < minVal
///
diff --git a/GPW_Admin/Bundle.config b/GPW_Admin/Bundle.config
index b9d5bc6..0b2707d 100644
--- a/GPW_Admin/Bundle.config
+++ b/GPW_Admin/Bundle.config
@@ -1,10 +1,12 @@
+
+
+
+
-
-
diff --git a/GPW_Admin/Content/Site.css b/GPW_Admin/Content/Site.css
index 84bc566..4768ba7 100644
--- a/GPW_Admin/Content/Site.css
+++ b/GPW_Admin/Content/Site.css
@@ -1,15 +1,13 @@
/* Move down content because we have a fixed navbar that is 50px tall */
body {
- /*padding-top: 50px;
- padding-bottom: 20px;*/
font: 'Roboto', sans-serif;
+ /*font: 'Open Sans', sans-serif;*/
}
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
- /*padding-left: 15px;
- padding-right: 15px;*/
font: 'Roboto', sans-serif;
+ /*font: 'Open Sans', sans-serif;*/
}
.textCondens {
font-family: 'Roboto Condensed', sans-serif;
diff --git a/GPW_Admin/Content/Site.less b/GPW_Admin/Content/Site.less
index 0080181..7bc8b23 100644
--- a/GPW_Admin/Content/Site.less
+++ b/GPW_Admin/Content/Site.less
@@ -1,16 +1,14 @@
/* Move down content because we have a fixed navbar that is 50px tall */
body {
- /*padding-top: 50px;
- padding-bottom: 20px;*/
font: 'Roboto', sans-serif;
+ /*font: 'Open Sans', sans-serif;*/
}
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
- /*padding-left: 15px;
- padding-right: 15px;*/
font: 'Roboto', sans-serif;
+ /*font: 'Open Sans', sans-serif;*/
}
.textCondens {
diff --git a/GPW_Admin/Content/Style.css b/GPW_Admin/Content/Style.css
index 19078b1..310c558 100644
--- a/GPW_Admin/Content/Style.css
+++ b/GPW_Admin/Content/Style.css
@@ -3,6 +3,7 @@
@import url('ExtraComp.css');
@import url('BtnReport.css');
@import url('JQClock.css');
+@import url('../font.css');
* {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
diff --git a/GPW_Admin/Content/font.css b/GPW_Admin/Content/font.css
new file mode 100644
index 0000000..77b5c23
--- /dev/null
+++ b/GPW_Admin/Content/font.css
@@ -0,0 +1,24 @@
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 400;
+ src: url('OpenSans.woff') format('woff');
+}
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 300;
+ src: url('OpenSansCondensed.woff') format('woff');
+}
+@font-face {
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 400;
+ src: url('Roboto.woff2') format('woff2');
+}
+@font-face {
+ font-family: 'Roboto Condensed';
+ font-style: normal;
+ font-weight: 300;
+ src: url('RobotoCondensed.woff2') format('woff2');
+}
\ No newline at end of file
diff --git a/GPW_Admin/Content/font.less b/GPW_Admin/Content/font.less
index cc6208e..59d1297 100644
--- a/GPW_Admin/Content/font.less
+++ b/GPW_Admin/Content/font.less
@@ -1,4 +1,4 @@
-/*@font-face {
+@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
@@ -10,18 +10,18 @@
font-style: normal;
font-weight: 300;
src: url('OpenSansCondensed.woff') format('woff');
-}*/
-
-@font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 400;
- src: url('Roboto.woff2') format('woff2');
}
@font-face {
- font-family: 'Roboto Condensed';
- font-style: normal;
- font-weight: 300;
- src: url('RobotoCondensed.woff2') format('woff2');
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 400;
+ src: url('Roboto.woff2') format('woff2');
}
+
+@font-face {
+ font-family: 'Roboto Condensed';
+ font-style: normal;
+ font-weight: 300;
+ src: url('RobotoCondensed.woff2') format('woff2');
+}
\ No newline at end of file
diff --git a/GPW_Admin/Content/font.min.css b/GPW_Admin/Content/font.min.css
new file mode 100644
index 0000000..8b10746
--- /dev/null
+++ b/GPW_Admin/Content/font.min.css
@@ -0,0 +1 @@
+@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:url('OpenSans.woff') format('woff');}@font-face{font-family:'Open Sans Condensed';font-style:normal;font-weight:300;src:url('OpenSansCondensed.woff') format('woff');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:url('Roboto.woff2') format('woff2');}@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:300;src:url('RobotoCondensed.woff2') format('woff2');}
\ No newline at end of file
diff --git a/GPW_Admin/GPW_Admin.csproj b/GPW_Admin/GPW_Admin.csproj
index c54a24b..1755cbc 100644
--- a/GPW_Admin/GPW_Admin.csproj
+++ b/GPW_Admin/GPW_Admin.csproj
@@ -259,6 +259,12 @@
+
+ font.less
+
+
+ font.css
+
diff --git a/GPW_Admin/Test2.aspx b/GPW_Admin/Test2.aspx
index 123230d..9887833 100644
--- a/GPW_Admin/Test2.aspx
+++ b/GPW_Admin/Test2.aspx
@@ -11,7 +11,8 @@
-
+
+
@@ -185,4 +186,4 @@