Merge branch 'release/LicLockGpwAdmin'

This commit is contained in:
Samuele Locatelli
2021-10-20 11:57:01 +02:00
52 changed files with 1396 additions and 1479 deletions
+49
View File
@@ -32,6 +32,40 @@ namespace GPW_Admin
#endregion Public Events
#region Public Properties
/// <summary>
/// pagina corrente (URL finale)
/// </summary>
public string _paginaCorrente { get; set; }
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get => (licenzeGPW.checkLicenze && licenzeGPW.checkPayload);
}
#endregion Public Properties
#region Protected Methods
/// <summary>
/// salva in variabile pagina il nome della pagina corrente
/// </summary>
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
/// <summary>
@@ -88,6 +122,21 @@ namespace GPW_Admin
return answ;
}
/// <summary>
/// risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione
/// </summary>
/// <returns></returns>
public bool isWritable()
{
bool answ = false;
if (_paginaCorrente == null)
{
PagCorrente();
}
answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente) && chkLicOk;
return answ;
}
/// <summary>
/// Verifica se il valore sia < minVal
/// </summary>
+4 -2
View File
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<bundles version="1.0">
<styleBundle path="~/Content/fonts">
<include path="~/Content/font.css" />
<include path="~/Content/font-awesome.css" />
</styleBundle>
<styleBundle path="~/Content/css">
<include path="~/Content/BtnReport.css" />
<include path="~/Content/Site.css" />
<include path="~/Content/fonts.css" />
<include path="~/Content/font-awesome.css" />
</styleBundle>
<styleBundle path="~/Content/bootstrap">
+2 -4
View File
@@ -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;
+2 -4
View File
@@ -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 {
+1
View File
@@ -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;
+24
View File
@@ -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');
}
+12 -12
View File
@@ -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');
}
+1
View File
@@ -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');}
+6
View File
@@ -259,6 +259,12 @@
<Content Include="Content\ExtraComp.css" />
<Content Include="Content\font-awesome.css" />
<Content Include="Content\font-awesome.min.css" />
<Content Include="Content\font.css">
<DependentUpon>font.less</DependentUpon>
</Content>
<Content Include="Content\font.min.css">
<DependentUpon>font.css</DependentUpon>
</Content>
<Content Include="Content\JQClock.css" />
<Content Include="Content\MasterPage.css" />
<Content Include="Content\Site.css">
+3 -2
View File
@@ -11,7 +11,8 @@
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
@@ -185,4 +186,4 @@
</div>
</form>
</body>
</html>
</html>
+26 -17
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin
@@ -15,38 +15,47 @@ namespace GPW_Admin
{
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo form1.
/// form1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
}
@@ -20,6 +20,7 @@
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
+80 -70
View File
@@ -1,157 +1,167 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class AjaxSearch {
public partial class AjaxSearch
{
/// <summary>
/// Controllo Head1.
/// Head1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo form1.
/// form1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// Controllo sm.
/// sm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager sm;
/// <summary>
/// Controllo upTop.
/// upTop control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upTop;
/// <summary>
/// Controllo Mod_menuTop1.
/// Mod_menuTop1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuTop Mod_menuTop1;
/// <summary>
/// Controllo upSx.
/// upSx control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upSx;
/// <summary>
/// Controllo Mod_menuSx1.
/// Mod_menuSx1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuSx Mod_menuSx1;
/// <summary>
/// Controllo upPagina.
/// upPagina control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upPagina;
/// <summary>
/// Controllo Mod_pageTitleAndSearch1.
/// Mod_pageTitleAndSearch1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_pageTitleAndSearch Mod_pageTitleAndSearch1;
/// <summary>
/// Controllo Mod_ricercaGenerica1.
/// Mod_ricercaGenerica1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_ricercaGenerica Mod_ricercaGenerica1;
/// <summary>
/// Controllo mod_pageSize1.
/// mod_pageSize1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize1;
/// <summary>
/// Controllo cph1.
/// cph1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1;
/// <summary>
/// Controllo Mod_menuBottom1.
/// Mod_menuBottom1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuBottom Mod_menuBottom1;
}
+37 -36
View File
@@ -6,45 +6,46 @@
<!DOCTYPE html>
<html lang="it">
<head id="Head1" runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> - GPW</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> - GPW</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
</head>
<body class="body">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="bodyMain">
<div>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</div>
</td>
</tr>
<tr>
<td class="bottomWrite">
<uc1:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="bodyMain">
<div>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</div>
</td>
</tr>
<tr>
<td class="bottomWrite">
<uc1:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
</html>
+61 -61
View File
@@ -6,75 +6,75 @@
<!DOCTYPE html>
<html lang="it">
<head id="Head1" runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW-ADM</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW-ADM</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
// oggetto da legare all'update parziale ajax x sistemare btns & co
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
// oggetto da legare all'update parziale ajax x sistemare btns & co
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
});
});
});
});
</script>
</script>
</head>
<body class="body">
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true"
EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true"
EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<div class="clearDiv">
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="clearDiv bottomWrite">
<asp:UpdatePanel ID="upBott" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuBottomFullpage ID="mod_menuBottomFullpage1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</form>
<div class="clearDiv">
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="clearDiv bottomWrite">
<asp:UpdatePanel ID="upBott" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuBottomFullpage ID="mod_menuBottomFullpage1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</form>
</body>
</html>
</html>
+60 -49
View File
@@ -1,104 +1,115 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebMasterPages {
public partial class AjaxSimpleFull {
namespace GPW_Admin.WebMasterPages
{
public partial class AjaxSimpleFull
{
/// <summary>
/// Controllo Head1.
/// Head1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo form1.
/// form1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// Controllo sm.
/// sm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager sm;
/// <summary>
/// Controllo upMain.
/// upMain control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upMain;
/// <summary>
/// Controllo cph1.
/// cph1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1;
/// <summary>
/// Controllo upBott.
/// upBott control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upBott;
/// <summary>
/// Controllo mod_menuBottomFullpage1.
/// mod_menuBottomFullpage1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.mod_menuBottomFullpage mod_menuBottomFullpage1;
}
+100 -101
View File
@@ -7,117 +7,116 @@
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc5" %>
<%@ Register Src="~/WebUserControls/mod_pageSize.ascx" TagName="mod_pageSize" TagPrefix="uc6" %>
<!DOCTYPE html>
<html lang="it">
<head id="Head1" runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW-ADM</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW-ADM</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
// oggetto da legare all'update parziale ajax x sistemare btns & co
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
// oggetto da legare all'update parziale ajax x sistemare btns & co
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jQuery events here
$("span.radioBtn input").checkboxradio({ icon: false });
$(".JQbutton").button();
$("#accordion").accordion({
heightStyle: "content"
});
});
});
});
});
</script>
</script>
</head>
<body class="body">
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="topMenu" colspan="2">
<div>
<asp:UpdatePanel ID="upTop" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td class="menuSx">
<asp:UpdatePanel ID="upSx" runat="server" UpdateMode="Always" RenderMode="Inline">
<ContentTemplate>
<uc2:mod_menuSx ID="Mod_menuSx1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td class="bodyMain">
<div>
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<div class="boxShadowDark">
<table class="tableContenuto" cellpadding="0" cellspacing="0">
<tr class="topContrDx">
<td style="width: 25%;" valign="baseline">
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
</td>
<td style="width: 75%; text-align: left;">
<div class="divDx">
<uc6:mod_pageSize ID="mod_pageSize1" runat="server" />
</div>
</td>
</tr>
<tr>
<td colspan="2" class="contrRiq">
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="bottomWrite">
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false">
</asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="topMenu" colspan="2">
<div>
<asp:UpdatePanel ID="upTop" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td class="menuSx">
<asp:UpdatePanel ID="upSx" runat="server" UpdateMode="Always" RenderMode="Inline">
<ContentTemplate>
<uc2:mod_menuSx ID="Mod_menuSx1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td class="bodyMain">
<div>
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<div class="boxShadowDark">
<table class="tableContenuto" cellpadding="0" cellspacing="0">
<tr class="topContrDx">
<td style="width: 25%;" valign="baseline">
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
</td>
<td style="width: 75%; text-align: left;">
<div class="divDx">
<uc6:mod_pageSize ID="mod_pageSize1" runat="server" />
</div>
</td>
</tr>
<tr>
<td colspan="2" class="contrRiq">
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="bottomWrite">
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
</html>
+76 -66
View File
@@ -1,148 +1,158 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class AjaxTitle {
public partial class AjaxTitle
{
/// <summary>
/// Controllo Head1.
/// Head1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo form1.
/// form1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// Controllo sm.
/// sm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager sm;
/// <summary>
/// Controllo upTop.
/// upTop control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upTop;
/// <summary>
/// Controllo Mod_menuTop1.
/// Mod_menuTop1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuTop Mod_menuTop1;
/// <summary>
/// Controllo upSx.
/// upSx control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upSx;
/// <summary>
/// Controllo Mod_menuSx1.
/// Mod_menuSx1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuSx Mod_menuSx1;
/// <summary>
/// Controllo upMain.
/// upMain control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upMain;
/// <summary>
/// Controllo Mod_pageTitleAndSearch1.
/// Mod_pageTitleAndSearch1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_pageTitleAndSearch Mod_pageTitleAndSearch1;
/// <summary>
/// Controllo mod_pageSize1.
/// mod_pageSize1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize1;
/// <summary>
/// Controllo cph1.
/// cph1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1;
/// <summary>
/// Controllo Mod_menuBottom1.
/// Mod_menuBottom1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuBottom Mod_menuBottom1;
}
+2 -3
View File
@@ -14,8 +14,6 @@
<meta name="mobile-web-app-capable" content="yes" />
<meta name="description" content="GPW Steamware" />
<meta name="author" content="Steamware" />
<link rel="shortcut icon" href="~/favicon.ico" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>GPW <%: Page.Title %></title>
<asp:PlaceHolder runat="server">
@@ -23,6 +21,7 @@
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@@ -66,7 +65,7 @@
<div class="col-12">
</div>
</div>
<div class="container-flow textCondens">
<div class="container-flow">
<asp:UpdatePanel runat="server" ID="uplBody">
<ContentTemplate>
<asp:ContentPlaceHolder ID="cph1" runat="server">
+38 -29
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebMasterPages
@@ -15,74 +15,83 @@ namespace GPW_Admin.WebMasterPages
{
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo sm.
/// sm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager sm;
/// <summary>
/// Controllo cmp_menuTop.
/// cmp_menuTop control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_menuTop cmp_menuTop;
/// <summary>
/// Controllo uplBody.
/// uplBody control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel uplBody;
/// <summary>
/// Controllo cph1.
/// cph1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1;
/// <summary>
/// Controllo cmp_footer.
/// cmp_footer control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_footer cmp_footer;
}
+63 -63
View File
@@ -9,73 +9,73 @@
<html lang="it">
<head id="Head1" runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPW</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="icon" href="~/images/favicon.png" type="image/png" />
<link rel="shortcut icon" href="~/images/favicon.png" type="image/png" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/jSteamware") %>
</asp:PlaceHolder>
<%--DA VERIFICARE QUESTI in inclusione...--%>
<link href="~/Content/Style.css" rel="stylesheet" type="text/css" />
<link href="~/Content/StyleCustom.css" rel="stylesheet" type="text/css" />
</head>
<body class="body">
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false"></asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="topMenu" colspan="2">
<div>
<asp:UpdatePanel ID="upTop" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td class="menuSx">
<asp:UpdatePanel ID="upSx" runat="server" UpdateMode="Always" RenderMode="Inline">
<ContentTemplate>
<uc2:mod_menuSx ID="Mod_menuSx1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td class="bodyMain">
<div>
<asp:UpdatePanel ID="updPanelPagina" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="bottomWrite">
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
<form id="form1" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableCdn="false"></asp:ScriptManager>
<div class="fullscreen">
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
<tr>
<td class="topMenu" colspan="2">
<div>
<asp:UpdatePanel ID="upTop" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td class="menuSx">
<asp:UpdatePanel ID="upSx" runat="server" UpdateMode="Always" RenderMode="Inline">
<ContentTemplate>
<uc2:mod_menuSx ID="Mod_menuSx1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td class="bodyMain">
<div>
<asp:UpdatePanel ID="updPanelPagina" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="bottomWrite">
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
</html>
+68 -58
View File
@@ -1,130 +1,140 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class MasterAjax {
public partial class MasterAjax
{
/// <summary>
/// Controllo Head1.
/// Head1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// Controllo BundleReference2.
/// BundleReference2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// Controllo BundleReference1.
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// Controllo PlaceHolder1.
/// PlaceHolder1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
/// <summary>
/// Controllo form1.
/// form1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// Controllo sm.
/// sm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager sm;
/// <summary>
/// Controllo upTop.
/// upTop control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upTop;
/// <summary>
/// Controllo Mod_menuTop1.
/// Mod_menuTop1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuTop Mod_menuTop1;
/// <summary>
/// Controllo upSx.
/// upSx control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upSx;
/// <summary>
/// Controllo Mod_menuSx1.
/// Mod_menuSx1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuSx Mod_menuSx1;
/// <summary>
/// Controllo updPanelPagina.
/// updPanelPagina control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel updPanelPagina;
/// <summary>
/// Controllo cph1.
/// cph1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder cph1;
/// <summary>
/// Controllo Mod_menuBottom1.
/// Mod_menuBottom1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_menuBottom Mod_menuBottom1;
}
+45 -52
View File
@@ -24,8 +24,7 @@
<asp:LinkButton ID="lbtReset" runat="server" CssClass="btn btn-sm btn-info" ToolTip='<%# traduci("Reset") %>' CausesValidation="False" OnClick="btnReset_Click" Visible="true"><i class="fa fa-refresh" aria-hidden="true"></i></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtSelect" CssClass="btn btn-sm btn-info" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>'><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' Visible='<%# chkLicOk %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbtUpdate" CssClass="btn btn-sm btn-success" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update") %>'><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
@@ -53,60 +52,54 @@
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="indirizzo" SortExpression="indirizzo">
<ItemTemplate>
<asp:Label ID="lblindirizzo" runat="server" Text='<%# Eval("indirizzo") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtindirizzo" runat="server" Text='<%# Bind("indirizzo") %>' />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtindirizzo" runat="server" Text='<%# Bind("indirizzo") %>' />
</FooterTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="CAP" SortExpression="CAP">
<ItemTemplate>
<asp:Label ID="lblCAP" runat="server" Text='<%# Eval("CAP") %>' />
<div class="row">
<div class="col-12">
<asp:Label ID="lblindirizzo" runat="server" Text='<%# Eval("indirizzo") %>' />
</div>
<div class="col-6">
<asp:Label ID="lblcitta" runat="server" Text='<%# Eval("citta") %>' />
</div>
<div class="col-3 text-right">
<asp:Label ID="lblCAP" runat="server" Text='<%# Eval("CAP") %>' />
</div>
<div class="col-3 text-right">
<asp:Label ID="lblprov" runat="server" Text='<%# Eval("prov") %>' />
</div>
</div>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtCAP" runat="server" Text='<%# Bind("CAP") %>' />
<div class="row">
<div class="col-12">
<asp:TextBox ID="txtindirizzo" runat="server" Text='<%# Bind("indirizzo") %>' />
</div>
<div class="col-6">
<asp:TextBox ID="txtcitta" runat="server" Text='<%# Bind("citta") %>' />
</div>
<div class="col-3 text-right">
<asp:TextBox ID="txtCAP" runat="server" Text='<%# Bind("CAP") %>' />
</div>
<div class="col-3 text-right">
<asp:TextBox ID="txtprov" runat="server" Text='<%# Bind("prov") %>' />
</div>
</div>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtCAP" runat="server" Text='<%# Bind("CAP") %>' />
</FooterTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="citta" SortExpression="citta">
<ItemTemplate>
<asp:Label ID="lblcitta" runat="server" Text='<%# Eval("citta") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtcitta" runat="server" Text='<%# Bind("citta") %>' />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtcitta" runat="server" Text='<%# Bind("citta") %>' />
</FooterTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="prov" SortExpression="prov">
<ItemTemplate>
<asp:Label ID="lblprov" runat="server" Text='<%# Eval("prov") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtprov" runat="server" Text='<%# Bind("prov") %>' />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtprov" runat="server" Text='<%# Bind("prov") %>' />
<div class="row">
<div class="col-12">
<asp:TextBox ID="txtindirizzo" runat="server" Text='<%# Bind("indirizzo") %>' />
</div>
<div class="col-4">
<asp:TextBox ID="txtcitta" runat="server" Text='<%# Bind("citta") %>' />
</div>
<div class="col-4">
<asp:TextBox ID="txtCAP" runat="server" Text='<%# Bind("CAP") %>' />
</div>
<div class="col-4">
<asp:TextBox ID="txtprov" runat="server" Text='<%# Bind("prov") %>' />
</div>
</div>
</FooterTemplate>
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
@@ -190,10 +183,10 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="Attivo" SortExpression="Attivo">
<EditItemTemplate>
<asp:CheckBox ID="chkAttivo" runat="server" Checked='<%# Bind("Attivo") %>' />
<asp:CheckBox ID="chkAttivo" runat="server" Checked='<%# Bind("Attivo") %>' ToolTip="Attivo" />
</EditItemTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkAttivo" runat="server" Checked='<%# Eval("Attivo") %>' />
<asp:CheckBox ID="chkAttivo" runat="server" Checked='<%# Eval("Attivo") %>' ToolTip="Attivo" Enabled="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
@@ -10,31 +10,8 @@ using GPW_data;
namespace GPW_Admin.WebUserControls
{
public partial class mod_adminClienti : System.Web.UI.UserControl
public partial class mod_adminClienti : BaseUserControl
{
#region Public Events
public event EventHandler eh_nuovoValore;
public event EventHandler eh_resetSelezione;
#endregion Public Events
#region Public Properties
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get
{
return (licenzeGPW.checkLicenze);
}
}
#endregion Public Properties
#region Private Methods
private void Cmp_toggle_ehToggle(object sender, EventArgs e)
@@ -62,10 +39,7 @@ namespace GPW_Admin.WebUserControls
grView.FooterRow.Visible = true;
}
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
/// <summary>
@@ -282,20 +256,7 @@ namespace GPW_Admin.WebUserControls
{
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
raiseReset();
}
#endregion Public Methods
+20 -20
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,47 +15,47 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo cmp_toggle.
/// cmp_toggle control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_toggle cmp_toggle;
/// <summary>
/// Controllo hfShowAll.
/// hfShowAll control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfShowAll;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo lblNumRec.
/// lblNumRec control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
}
@@ -10,29 +10,10 @@ using GPW_data;
namespace GPW_Admin.WebUserControls
{
public partial class mod_adminDipendenti : System.Web.UI.UserControl
public partial class mod_adminDipendenti : BaseUserControl
{
#region Public Events
public event EventHandler eh_nuovoValore;
public event EventHandler eh_resetSelezione;
#endregion Public Events
#region Public Properties
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get
{
return (licenzeGPW.utentiAttivi < licenzeGPW.licenzeAttive);
}
}
public bool showAll
{
get
@@ -60,10 +41,7 @@ namespace GPW_Admin.WebUserControls
grView.FooterRow.Visible = true;
}
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
/// <summary>
@@ -79,10 +57,7 @@ namespace GPW_Admin.WebUserControls
protected void chkshowAll_CheckedChanged(object sender, EventArgs e)
{
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
raiseReset();
}
/// <summary>
@@ -286,20 +261,7 @@ namespace GPW_Admin.WebUserControls
{
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
raiseReset();
}
#endregion Public Methods
+2 -2
View File
@@ -51,7 +51,7 @@
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtSelect" CssClass="btn btn-sm btn-info" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>'><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' Visible='<%# isWritable() %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' Visible='<%# isWritable() && chkLicOk %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbtUpdate" CssClass="btn btn-sm btn-success" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update") %>'><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
@@ -187,7 +187,7 @@
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("idxFase") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("idxFase")) %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("idxFase") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("idxFase")) && chkLicOk %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="lbtDelete"></asp:ConfirmButtonExtender>
</ItemTemplate>
<EditItemTemplate>
@@ -10,16 +10,12 @@ using GPW_data;
namespace GPW_Admin.WebUserControls
{
public partial class mod_adminFasi : System.Web.UI.UserControl
public partial class mod_adminFasi : BaseUserControl
{
#region Public Events
public event EventHandler eh_faseSel;
public event EventHandler eh_nuovoValore;
public event EventHandler eh_resetSelezione;
#endregion Public Events
#region Protected Properties
@@ -39,11 +35,6 @@ namespace GPW_Admin.WebUserControls
#region Public Properties
/// <summary>
/// pagina corrente (URL finale)
/// </summary>
public string _paginaCorrente { get; set; }
public string CardStyle
{
get
@@ -75,17 +66,6 @@ namespace GPW_Admin.WebUserControls
}
}
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get
{
return (licenzeGPW.utentiAttivi < licenzeGPW.licenzeAttive);
}
}
/// <summary>
/// determina se sia visibile pnl dettaglio RA della fase selezionata
/// </summary>
@@ -237,7 +217,7 @@ namespace GPW_Admin.WebUserControls
string idxFaseAncest = "0";
try
{
var cmdArg= ((LinkButton)sender).CommandArgument;
var cmdArg = ((LinkButton)sender).CommandArgument;
if (!string.IsNullOrEmpty(cmdArg))
{
idxFaseAncest = cmdArg;
@@ -257,10 +237,7 @@ namespace GPW_Admin.WebUserControls
grView.FooterRow.Visible = true;
}
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
}
@@ -275,10 +252,7 @@ namespace GPW_Admin.WebUserControls
DataProxy.DP.taAF.insertQuery(idxProgetto, 0, "NuovaFase", "DescrizioneFase", false, false, 0, 0, true);
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
/// <summary>
@@ -390,19 +364,6 @@ namespace GPW_Admin.WebUserControls
}
}
/// <summary>
/// salva in variabile pagina il nome della pagina corrente
/// </summary>
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();
}
/// <summary>
/// caricamento
/// </summary>
@@ -637,21 +598,6 @@ namespace GPW_Admin.WebUserControls
return answ;
}
/// <summary>
/// risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione
/// </summary>
/// <returns></returns>
public bool isWritable()
{
bool answ = false;
if (_paginaCorrente == null)
{
PagCorrente();
}
answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente) && chkLicOk;
return answ;
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
@@ -660,20 +606,7 @@ namespace GPW_Admin.WebUserControls
grView.SelectedIndex = -1;
grView.DataBind();
setDetVisibility();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
raiseReset();
}
/// <summary>
+47 -47
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,128 +15,128 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo hfCardStyle.
/// hfCardStyle control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfCardStyle;
/// <summary>
/// Controllo divCardMain.
/// divCardMain control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCardMain;
/// <summary>
/// Controllo divCardHeader.
/// divCardHeader control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCardHeader;
/// <summary>
/// Controllo divReturn.
/// divReturn control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divReturn;
/// <summary>
/// Controllo hlReturnProj.
/// hlReturnProj control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlReturnProj;
/// <summary>
/// Controllo filtroCli.
/// filtroCli control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroCli;
/// <summary>
/// Controllo odsClienti.
/// odsClienti control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsClienti;
/// <summary>
/// Controllo filtroPrj.
/// filtroPrj control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroPrj;
/// <summary>
/// Controllo odsProj.
/// odsProj control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsProj;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo lblNumRec.
/// lblNumRec control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
/// <summary>
/// Controllo pnlDetRA.
/// pnlDetRA control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlDetRA;
/// <summary>
/// Controllo lblDet.
/// lblDet control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDet;
}
@@ -18,11 +18,11 @@
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtSelect" CssClass="btn btn-sm btn-info" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>'><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' Visible='<%# chkLicOk %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbtUpdate" CssClass="btn btn-sm btn-success" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update") %>'><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-sm btn-warning" CausesValidation="False" CommandName="Cancel" ToolTip='<%# traduci("Cancel") %>'><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtUpdate" CssClass="btn btn-sm btn-success" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update") %>' Visible='<%# chkLicOk %>'><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtCancel" CssClass="btn btn-sm btn-warning" CausesValidation="False" CommandName="Cancel" ToolTip='<%# traduci("Cancel") %>' Visible='<%# chkLicOk %>'><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
@@ -49,7 +49,7 @@
<asp:LinkButton runat="server" ID="lbtNew" CssClass="btn btn-sm btn-success" OnClick="btnNew_Click" ToolTip='<%# traduci("New") %>' Visible='<%# chkLicOk %>'><i class="fa fa-plus" aria-hidden="true"></i></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("codOrario") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("codOrario")) %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("codOrario") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("codOrario")) && chkLicOk %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="lbtDelete"></asp:ConfirmButtonExtender>
</ItemTemplate>
<EditItemTemplate>
@@ -10,31 +10,8 @@ using GPW_data;
namespace GPW_Admin.WebUserControls
{
public partial class mod_adminOrario : System.Web.UI.UserControl
public partial class mod_adminOrario : BaseUserControl
{
#region Public Events
public event EventHandler eh_nuovoValore;
public event EventHandler eh_resetSelezione;
#endregion Public Events
#region Public Properties
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get
{
return (licenzeGPW.checkLicenze);
}
}
#endregion Public Properties
#region Protected Methods
/// <summary>
@@ -51,10 +28,7 @@ namespace GPW_Admin.WebUserControls
//update!
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
/// <summary>
@@ -264,20 +238,7 @@ namespace GPW_Admin.WebUserControls
{
grView.SelectedIndex = -1;
grView.DataBind();
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
raiseReset();
}
#endregion Public Methods
+14 -14
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,29 +15,29 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo lblNumRec.
/// lblNumRec control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
}
@@ -51,8 +51,8 @@
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbtSelect" CssClass="btn btn-sm btn-info" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>'><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtDettFasi" CssClass="btn btn-sm btn-warning" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update" ToolTip='<%# traduci("go2dettFasi") %>' OnClick="lbtDettFasi_Click"><i class="fa fa-arrow-right" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtEdit" CssClass="btn btn-sm btn-primary" CausesValidation="False" CommandName="Edit" ToolTip='<%# traduci("Edit") %>' Visible='<%# chkLicOk %>'><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbtDettFasi" CssClass="btn btn-sm btn-warning" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update" ToolTip='<%# traduci("go2dettFasi") %>' OnClick="lbtDettFasi_Click" Visible='<%# chkLicOk %>'><i class="fa fa-arrow-right" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbtUpdate" CssClass="btn btn-sm btn-success" CausesValidation="False" CommandName="Update" ToolTip='<%# traduci("Update") %>'><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
@@ -66,18 +66,8 @@ namespace GPW_Admin.WebUserControls
#endregion Public Properties
}
public partial class mod_adminProgetti : System.Web.UI.UserControl
public partial class mod_adminProgetti : BaseUserControl
{
#region Public Events
public event EventHandler eh_nuovoValore;
public event EventHandler eh_resetSelezione;
public event EventHandler eh_selValore;
#endregion Public Events
#region Protected Properties
/// <summary>
@@ -116,22 +106,6 @@ namespace GPW_Admin.WebUserControls
#region Public Properties
/// <summary>
/// pagina corrente (URL finale)
/// </summary>
public string _paginaCorrente { get; set; }
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get
{
return (licenzeGPW.utentiAttivi <= licenzeGPW.licenzeAttive);
}
}
/// <summary>
/// determina se siano da visualizzare i progetti già chiusi
/// </summary>
@@ -304,10 +278,7 @@ namespace GPW_Admin.WebUserControls
grView.FooterRow.Visible = true;
}
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
raiseAddNew();
}
/// <summary>
@@ -459,10 +430,7 @@ namespace GPW_Admin.WebUserControls
{
memLayer.ML.setSessionVal("idxProgetto_sel", grView.SelectedDataKey["idxProgetto"]);
mod_dettaglioProgetto1.Visible = true;
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
raiseEvent();
}
/// <summary>
@@ -521,19 +489,6 @@ namespace GPW_Admin.WebUserControls
}
}
/// <summary>
/// salva in variabile pagina il nome della pagina corrente
/// </summary>
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();
}
/// <summary>
/// caricamento
/// </summary>
@@ -707,21 +662,6 @@ namespace GPW_Admin.WebUserControls
return answ;
}
/// <summary>
/// risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione
/// </summary>
/// <returns></returns>
public bool isWritable()
{
bool answ = false;
if (_paginaCorrente == null)
{
PagCorrente();
}
answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente) && chkLicOk;
return answ;
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
@@ -730,20 +670,7 @@ namespace GPW_Admin.WebUserControls
grView.SelectedIndex = -1;
grView.DataBind();
mod_dettaglioProgetto1.Visible = false;
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
raiseReset();
}
#endregion Public Methods
+44 -44
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,119 +15,119 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo cmp_periodoAnalisi.
/// cmp_periodoAnalisi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi;
/// <summary>
/// Controllo lbtResetFilt.
/// lbtResetFilt control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtResetFilt;
/// <summary>
/// Controllo filtroCli.
/// filtroCli control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroCli;
/// <summary>
/// Controllo filtroGrp.
/// filtroGrp control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroGrp;
/// <summary>
/// Controllo chkShowOnlyStarred.
/// chkShowOnlyStarred control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkShowOnlyStarred;
/// <summary>
/// Controllo chkShowVuoti.
/// chkShowVuoti control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkShowVuoti;
/// <summary>
/// Controllo chkShowChiusi.
/// chkShowChiusi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkShowChiusi;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo lblNumRec.
/// lblNumRec control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
/// <summary>
/// Controllo odsClienti.
/// odsClienti control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsClienti;
/// <summary>
/// Controllo odsGruppi.
/// odsGruppi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsGruppi;
/// <summary>
/// Controllo mod_dettaglioProgetto1.
/// mod_dettaglioProgetto1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.mod_dettaglioProgetto mod_dettaglioProgetto1;
}
@@ -32,7 +32,7 @@
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbApprova" Visible='<%# userCanApprove %>' Text="Approva" CommandArgument="approva" CommandName="Select" CssClass="btn btn-sm btn-success"><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbApprova" Visible='<%# userCanApprove && chkLicOk %>' Text="Approva" CommandArgument="approva" CommandName="Select" CssClass="btn btn-sm btn-success"><i class="fa fa-check" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
@@ -11,7 +11,7 @@ using System.Data;
namespace GPW_Admin.WebUserControls
{
public partial class mod_approvaTimbr : System.Web.UI.UserControl
public partial class mod_approvaTimbr : BaseUserControl
{
#region Protected Properties
@@ -51,7 +51,7 @@ namespace GPW_Admin.WebUserControls
bool answ = false;
try
{
answ = user_std.UtSn.userHasRight("GPW_admin");
answ = user_std.UtSn.userHasRight("GPW_admin") && chkLicOk;
}
catch
{ }
+20 -20
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,47 +15,47 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo filtroDip.
/// filtroDip control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroDip;
/// <summary>
/// Controllo odsDip.
/// odsDip control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsDip;
/// <summary>
/// Controllo txtArrot.
/// txtArrot control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtArrot;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}
+11 -13
View File
@@ -1,8 +1,9 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_autocomplete.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_autocomplete" %>
<%if (false)
{ %>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
{ %>
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/bootstrap" />
<webopt:BundleReference ID="BundleReference3" runat="server" Path="~/Content/fonts" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<%} %>
<style>
.ui-autocomplete {
@@ -21,8 +22,7 @@
</style>
<script>
// funzione autocomplete
function set<%=txtSel.ClientID %>()
{
function set<%=txtSel.ClientID %>() {
$("#<%=txtSel.ClientID %>").autocomplete({
source: function (request, response) {
$.ajax({
@@ -56,13 +56,11 @@
});
}
// funzione x intercettare focusout...
function fcsOut<%=txtSel.ClientID %>()
{
$("#<%=txtSel.ClientID %>").focusout(function() {
function fcsOut<%=txtSel.ClientID %>() {
$("#<%=txtSel.ClientID %>").focusout(function () {
// controllo se hidden diverso da txtsel...
var str =$("#<%=txtSel.ClientID %>").val()
if(str.search($("#<%=hiddenFieldID.ClientID %>").val())<0)
{
var str = $("#<%=txtSel.ClientID %>").val()
if (str.search($("#<%=hiddenFieldID.ClientID %>").val()) < 0) {
$("#<%=hiddenFieldID.ClientID %>").val($("#<%=txtSel.ClientID %>").val());
}
// chiamo search...
@@ -91,7 +89,7 @@
<div class="input-group input-group-sm">
<span class="input-group-btn" style="text-align: left;">
<asp:LinkButton runat="server" ID="btnSearch" CssClass="btn btn-primary btn-sm" OnClick="btnSearch_Click">
<i class="fa fa-search"></i>&nbsp;
<i class="fa fa-search"></i>&nbsp;
<asp:Label runat="server" ID="lblField"><%: traduci("Search") %></asp:Label>
</asp:LinkButton>
</span>
@@ -112,4 +110,4 @@
margin: .8em 0 .2em;
line-height: 1.5;
}
</style>
</style>
+24 -13
View File
@@ -7,11 +7,13 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls {
public partial class mod_autocomplete {
namespace GPW_Admin.WebUserControls
{
public partial class mod_autocomplete
{
/// <summary>
/// BundleReference2 control.
/// </summary>
@@ -20,7 +22,16 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// BundleReference3 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference3;
/// <summary>
/// BundleReference1 control.
/// </summary>
@@ -29,7 +40,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// btnSearch control.
/// </summary>
@@ -38,7 +49,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton btnSearch;
/// <summary>
/// lblField control.
/// </summary>
@@ -47,7 +58,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblField;
/// <summary>
/// txtSel control.
/// </summary>
@@ -56,7 +67,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtSel;
/// <summary>
/// txtMinCharAutoCom control.
/// </summary>
@@ -65,7 +76,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtMinCharAutoCom;
/// <summary>
/// txtServiceUrl control.
/// </summary>
@@ -74,7 +85,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtServiceUrl;
/// <summary>
/// lnkReset control.
/// </summary>
@@ -83,7 +94,7 @@ namespace GPW_Admin.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lnkReset;
/// <summary>
/// hiddenFieldID control.
/// </summary>
@@ -51,7 +51,7 @@
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" Text="Seleziona" CssClass="btn btn-sm btn-info"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Modifica" CssClass="btn btn-sm btn-primary"><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Modifica" CssClass="btn btn-sm btn-primary" Visible='<%# chkLicOk %>'><i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="data" HeaderText="data" ReadOnly="True" SortExpression="data" DataFormatString="{0:yyyy-MM-dd}" />
@@ -73,7 +73,7 @@
&nbsp;<asp:LinkButton ID="lbtCancel2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Annulla" CssClass="btn btn-sm btn-warning"><i class="fa fa-ban" aria-hidden="true"></i></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtDel" runat="server" CausesValidation="False" CommandName="Delete" Text="Elimina" CssClass="btn btn-sm btn-danger"><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:LinkButton ID="lbtDel" runat="server" CausesValidation="False" CommandName="Delete" Text="Elimina" CssClass="btn btn-sm btn-danger" Visible='<%# chkLicOk %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="lbtDel"></asp:ConfirmButtonExtender>
</ItemTemplate>
</asp:TemplateField>
@@ -9,7 +9,7 @@ using System.Web.UI.WebControls;
namespace GPW_Admin.WebUserControls
{
public partial class mod_gestCalendario : System.Web.UI.UserControl
public partial class mod_gestCalendario : BaseUserControl
{
#region Private Properties
@@ -87,31 +87,40 @@ namespace GPW_Admin.WebUserControls
protected void lbtSave_Click(object sender, EventArgs e)
{
int numGG = (int)fineFerie.Subtract(inizioFerie).TotalDays;
DateTime currDate = inizioFerie;
int currYear = DateTime.Today.Year;
// aggiungo ferie x periodo selezionato...
for (int i = 0; i < numGG; i++)
if (chkLicOk)
{
var currDay = inizioFerie.AddDays(i).DayOfWeek;
// controllo che NON SIA sabato/domenica...
if (currDay != DayOfWeek.Saturday && currDay != DayOfWeek.Sunday)
int numGG = (int)fineFerie.Subtract(inizioFerie).TotalDays;
DateTime currDate = inizioFerie;
int currYear = DateTime.Today.Year;
// aggiungo ferie x periodo selezionato...
for (int i = 0; i < numGG; i++)
{
DataProxy.DP.taCFF.upsertQuery(inizioFerie.AddDays(i), ddlCodGiustInsNew.SelectedValue, txtDescrizione.Text);
var currDay = inizioFerie.AddDays(i).DayOfWeek;
// controllo che NON SIA sabato/domenica...
if (currDay != DayOfWeek.Saturday && currDay != DayOfWeek.Sunday)
{
DataProxy.DP.taCFF.upsertQuery(inizioFerie.AddDays(i), ddlCodGiustInsNew.SelectedValue, txtDescrizione.Text);
}
}
// rieseguo insert festività x anno del periodo...
setupFestAnno(inizioFerie.Year);
}
// rieseguo insert festività x anno del periodo...
setupFestAnno(inizioFerie.Year);
}
protected void lbtSetupYear_Click(object sender, EventArgs e)
{
setupFestAnno(anno);
if (chkLicOk)
{
setupFestAnno(anno);
}
}
protected void lbtShowFerie_Click(object sender, EventArgs e)
{
divInsFerie.Visible = !divInsFerie.Visible;
if (chkLicOk)
{
divInsFerie.Visible = !divInsFerie.Visible;
}
}
protected void Page_Load(object sender, EventArgs e)
@@ -131,6 +140,8 @@ namespace GPW_Admin.WebUserControls
inizioFerie = oggi.AddDays(1);
fineFerie = oggi.AddDays(2);
}
lbtSetupYear.Visible = chkLicOk;
lbtShowFerie.Visible = chkLicOk;
}
#endregion Protected Methods
@@ -144,16 +155,6 @@ namespace GPW_Admin.WebUserControls
grView.DataBind();
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
#endregion Public Methods
}
}
+41 -41
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,110 +15,110 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo cmp_periodoAnalisi.
/// cmp_periodoAnalisi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi;
/// <summary>
/// Controllo txtAnno.
/// txtAnno control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtAnno;
/// <summary>
/// Controllo lbtSetupYear.
/// lbtSetupYear control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtSetupYear;
/// <summary>
/// Controllo lbtShowFerie.
/// lbtShowFerie control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtShowFerie;
/// <summary>
/// Controllo divInsFerie.
/// divInsFerie control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsFerie;
/// <summary>
/// Controllo txtInizio.
/// txtInizio control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtInizio;
/// <summary>
/// Controllo txtFine.
/// txtFine control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtFine;
/// <summary>
/// Controllo ddlCodGiustInsNew.
/// ddlCodGiustInsNew control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlCodGiustInsNew;
/// <summary>
/// Controllo txtDescrizione.
/// txtDescrizione control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtDescrizione;
/// <summary>
/// Controllo lbtSave.
/// lbtSave control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtSave;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}
@@ -81,7 +81,7 @@ namespace GPW_Admin.WebUserControls
bool answ = false;
try
{
answ = user_std.UtSn.userHasRight("GPW_admin");
answ = user_std.UtSn.userHasRight("GPW_admin") && chkLicOk;
}
catch
{ }
@@ -347,6 +347,8 @@ namespace GPW_Admin.WebUserControls
}
filtroDip.eh_selValore += new EventHandler(filtroDip_eh_selValore);
mod_elencoTimbr1.eh_nuovoValore += new EventHandler(mod_elencoTimbr1_eh_nuovoValore);
hlExport.Visible = chkLicOk;
hlExportComm.Visible = chkLicOk;
}
#endregion Protected Methods
+6 -6
View File
@@ -21,7 +21,7 @@
<uc1:cmp_periodoAnalisi runat="server" ID="cmp_periodoAnalisi" />
</div>
<div class="p-2">
<asp:HyperLink Target="_blank" runat="server" ID="hlExportComm" CssClass="btn btn-light btn-block" Text="Export Comm." NavigateUrl="~/A1/ExportCommesse.aspx" />
<asp:HyperLink Target="_blank" runat="server" ID="hlExportComm" CssClass="btn btn-light btn-block" Text="Export Comm." NavigateUrl="~/ExportCommesse.aspx" />
</div>
</div>
<div class="d-flex table-info">
@@ -127,19 +127,19 @@
<asp:TemplateField HeaderText="Data">
<ItemTemplate>
<div class="row">
<div class="col-5 text-dark">
<div class="col-5 text-dark text-nowrap">
<b>
<asp:Label ID="lblUser" runat="server" Text='<%# Eval("CognomeNome") %>' /></b>
</div>
<div class="col-3 text-success text-right">
<div class="col-2 text-success text-right">
<b>
<asp:Label ID="lblOre" runat="server" Text='<%# Eval("oreTot","{0:0.##}") %>' /></b> h
</div>
<div class="col-4 text-center">
<div class="col-5 text-center text-nowrap">
<div class="table-secondary border rounded">
<asp:Label ID="lblDay" runat="server" Text='<%# Eval("inizio","{0:dd/MM/yy}") %>' />
|
<asp:Label ID="lblInizio" runat="server" Text='<%# Eval("inizio","{0:HH:mm}") %>' />
<asp:Label ID="lblInizio" runat="server" Text='<%# Eval("inizio","{0:HH:mm}") %>' />
-
<asp:Label ID="lblFine" runat="server" Text='<%# Eval("fine","{0:HH:mm}") %>' />
</div>
@@ -165,7 +165,7 @@
|
<asp:Label ID="lblnomeFase" runat="server" Text='<%# Eval("nomeFase") %>' ForeColor="Green" />
</div>
<div class="col-6">
<div class="col-6 .textCondens">
<asp:Label ID="lbldescrizione" runat="server" Text='<%# Eval("descrizione").ToString().Replace(Environment.NewLine,", ").Replace("\n",", ") %>' />
</div>
</div>
@@ -553,6 +553,8 @@ namespace GPW_Admin.WebUserControls
filtroCliDest.eh_selValore += new EventHandler(filtroCliDest_eh_selValore);
filtroPrjDest.eh_selValore += new EventHandler(filtroPrjDest_eh_selValore);
ddlFaseDest.SelectedIndexChanged += new EventHandler(filtroFaseDest_eh_selValore);
hlExportComm.Visible = chkLicOk;
btnEnableSposta.Visible = chkLicOk;
}
#endregion Protected Methods
+80 -80
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Admin.WebUserControls
@@ -15,227 +15,227 @@ namespace GPW_Admin.WebUserControls
{
/// <summary>
/// Controllo chkshowAll.
/// chkshowAll control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkshowAll;
/// <summary>
/// Controllo filtroDip.
/// filtroDip control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroDip;
/// <summary>
/// Controllo odsDip.
/// odsDip control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsDip;
/// <summary>
/// Controllo cmp_periodoAnalisi.
/// cmp_periodoAnalisi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Admin.WebUserControls.cmp_periodoAnalisi cmp_periodoAnalisi;
/// <summary>
/// Controllo hlExportComm.
/// hlExportComm control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlExportComm;
/// <summary>
/// Controllo chkshowAllCli.
/// chkshowAllCli control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkshowAllCli;
/// <summary>
/// Controllo filtroCli.
/// filtroCli control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroCli;
/// <summary>
/// Controllo odsClienti.
/// odsClienti control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsClienti;
/// <summary>
/// Controllo filtroPrj.
/// filtroPrj control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroPrj;
/// <summary>
/// Controllo odsProj.
/// odsProj control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsProj;
/// <summary>
/// Controllo filtroFase.
/// filtroFase control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroFase;
/// <summary>
/// Controllo odsFasi.
/// odsFasi control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsFasi;
/// <summary>
/// Controllo chkSoloAncest.
/// chkSoloAncest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkSoloAncest;
/// <summary>
/// Controllo btnEnableSposta.
/// btnEnableSposta control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnEnableSposta;
/// <summary>
/// Controllo pnlFaseDest.
/// pnlFaseDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl pnlFaseDest;
/// <summary>
/// Controllo filtroCliDest.
/// filtroCliDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroCliDest;
/// <summary>
/// Controllo filtroPrjDest.
/// filtroPrjDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_filtro filtroPrjDest;
/// <summary>
/// Controllo odsProjDest.
/// odsProjDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsProjDest;
/// <summary>
/// Controllo ddlFaseDest.
/// ddlFaseDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlFaseDest;
/// <summary>
/// Controllo odsFasiDest.
/// odsFasiDest control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsFasiDest;
/// <summary>
/// Controllo btnSpostaSel.
/// btnSpostaSel control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnSpostaSel;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo odsRA.
/// odsRA control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsRA;
/// <summary>
/// Controllo odsProgetto.
/// odsProgetto control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsProgetto;
/// <summary>
/// Controllo lblNumRec.
/// lblNumRec control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumRec;
}
+4
View File
@@ -10,5 +10,9 @@
{
"outputFile": "Content/Site.css",
"inputFile": "Content/Site.less"
},
{
"outputFile": "Content/font.css",
"inputFile": "Content/font.less"
}
]
+1 -1
View File
@@ -57,7 +57,7 @@ namespace GPW_Admin
fixDisplay();
}
mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize;
mod_adminDipendenti1.eh_resetSelezione += Mod_adminDipendenti1_eh_resetSelezione;
mod_adminDipendenti1.eh_doReset += Mod_adminDipendenti1_eh_resetSelezione;
cmp_toggleCards.ehToggle += Cmp_toggleCards_ehToggle;
cmp_toggleLinkExt.ehToggle += Cmp_toggleLinkExt_ehToggle;
}
+2 -2
View File
@@ -255,9 +255,9 @@ namespace GPW_Admin
protected void Page_Load(object sender, EventArgs e)
{
fasiFrom.eh_faseSel += new EventHandler(fasiFrom_eh_faseSel);
fasiFrom.eh_resetSelezione += new EventHandler(fasiFrom_eh_resetSelezione);
fasiFrom.eh_doReset += new EventHandler(fasiFrom_eh_resetSelezione);
fasiTo.eh_faseSel += new EventHandler(fasiTo_eh_faseSel);
fasiTo.eh_resetSelezione += new EventHandler(fasiTo_eh_resetSelezione);
fasiTo.eh_doReset += new EventHandler(fasiTo_eh_resetSelezione);
fixBtnFunc();
mod_pageSize.eh_nuovaSize += Mod_pageSize_eh_nuovaSize;
}
+233 -236
View File
File diff suppressed because it is too large Load Diff
+26
View File
@@ -60,6 +60,32 @@ namespace GPW_data
}
}
/// <summary>
/// verifica se il payload delle licenze attivate sia valido (con server online)
/// </summary>
public static bool checkPayload
{
get
{
bool answ = true;
// FIXME TODO !!!
//bool answ = false;
//try
//{
// answ = utentiAttivi <= licenzeAttive;
// if (!answ && memLayer.ML.confReadInt("_logLevel") > 5)
// {
// logger.lg.scriviLog(string.Format("WARNING licenze: utenti attivi {0} / licenziati {1}", utentiAttivi, licenzeAttive), tipoLog.WARNING);
// }
//}
//catch
//{ }
return answ;
}
}
/// <summary>
/// nome installazione sw
/// </summary>