refresh componente

This commit is contained in:
Samuele E. Locatelli
2020-09-02 21:20:54 +02:00
parent cfad41620b
commit a04416e523
6 changed files with 16 additions and 96 deletions
+8 -5
View File
@@ -627,7 +627,7 @@
<Content Include="WebUserControls\cmp_info.ascx" />
<Content Include="WebUserControls\cmp_menuTop.ascx" />
<Content Include="WebUserControls\cmp_rilTemp.ascx" />
<Content Include="WebUserControls\cmq_params.ascx" />
<Content Include="WebUserControls\cmp_params.ascx" />
<Content Include="WebUserControls\mod_attivitaIns.ascx" />
<Content Include="WebUserControls\mod_commAttivita.ascx" />
<Content Include="WebUserControls\mod_dateTime.ascx" />
@@ -728,6 +728,9 @@
<Compile Include="attivitaIns.aspx.designer.cs">
<DependentUpon>attivitaIns.aspx</DependentUpon>
</Compile>
<Compile Include="BaseUserControl.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -844,12 +847,12 @@
<Compile Include="WebUserControls\cmp_rilTemp.ascx.designer.cs">
<DependentUpon>cmp_rilTemp.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmq_params.ascx.cs">
<DependentUpon>cmq_params.ascx</DependentUpon>
<Compile Include="WebUserControls\cmp_params.ascx.cs">
<DependentUpon>cmp_params.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmq_params.ascx.designer.cs">
<DependentUpon>cmq_params.ascx</DependentUpon>
<Compile Include="WebUserControls\cmp_params.ascx.designer.cs">
<DependentUpon>cmp_params.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_attivitaIns.ascx.cs">
<DependentUpon>mod_attivitaIns.ascx</DependentUpon>
+2 -2
View File
@@ -1,7 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Parametri.aspx.cs" Inherits="GPW_Smart.Parametri" %>
<%@ Register Src="~/WebUserControls/cmq_params.ascx" TagPrefix="uc1" TagName="cmq_params" %>
<%@ Register Src="~/WebUserControls/cmp_params.ascx" TagPrefix="uc1" TagName="cmp_params" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<uc1:cmq_params runat="server" id="cmq_params" />
<uc1:cmp_params runat="server" id="cmp_params" />
</asp:Content>
+2 -2
View File
@@ -13,12 +13,12 @@ namespace GPW_Smart {
public partial class Parametri {
/// <summary>
/// Controllo cmq_params.
/// Controllo cmp_params.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::GPW_Smart.WebUserControls.cmq_params cmq_params;
protected global::GPW_Smart.WebUserControls.cmp_params cmp_params;
}
}
+1 -1
View File
@@ -49,7 +49,7 @@
</asp:ScriptManager>
<uc1:cmp_menuTop runat="server" ID="cmp_menuTop" />
<div class="container-flow body-content">
<div class="container-flow body-content mb-5">
<asp:UpdatePanel ID="updPanelPagina" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
-1
View File
@@ -2,7 +2,6 @@
<%@ Register Src="~/WebUserControls/mod_timbrature.ascx" TagPrefix="uc1" TagName="mod_timbrature" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel runat="server" ID="pnlTimbrature">
<ContentTemplate>
@@ -1,4 +1,5 @@
using GPW_data;
using GPW_Smart;
using SteamWare;
using System;
using System.Web.UI;
@@ -6,7 +7,7 @@ using System.Web.UI.WebControls;
namespace GPW.WebUserControls
{
public partial class mod_timbrature : System.Web.UI.UserControl
public partial class mod_timbrature : BaseUserControl
{
protected bool forceButtons
{
@@ -19,26 +20,6 @@ namespace GPW.WebUserControls
abilitaAll = !(value);
}
}
public bool abilitaAll
{
get
{
bool answ = false;
try
{
string rawData = memLayer.ML.getRSV("abilitaAll");
bool.TryParse(rawData, out answ);
}
catch
{ }
return answ;
}
set
{
int ttlSec = value ? memLayer.ML.CRI("ttlAbilitaAll") : 0;
memLayer.ML.setRSV("abilitaAll", value.ToString(), ttlSec);
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
@@ -58,53 +39,6 @@ namespace GPW.WebUserControls
divTable.Style.Add("font-size", textSize);
}
public int numColEU
{
get
{
int answ = 2;
try
{
answ = memLayer.ML.IntSessionObj("numColEU");
}
catch
{ }
if (answ <= 0) answ = 2;
return answ;
}
set
{
memLayer.ML.setSessionVal("numColEU", value);
}
}
public int numRowTimb
{
get
{
return memLayer.ML.IntSessionObj("numRowTimb");
}
set
{
memLayer.ML.setSessionVal("numRowTimb", value);
}
}
public string textSize
{
get
{
string answ = memLayer.ML.StringSessionObj("textSize");
if (string.IsNullOrEmpty(answ))
answ = "1em";
return answ;
}
set
{
memLayer.ML.setSessionVal("textSize", value);
}
}
/// <summary>
/// fix buttons button
/// </summary>
@@ -218,23 +152,7 @@ namespace GPW.WebUserControls
}
return IdxDipendente;
}
/// <summary>
/// idx dipendente loggato
/// </summary>
protected int IdxDipendente
{
get
{
int idx = 0;
try
{
idx = memLayer.ML.IntSessionObj("IdxDipendente");
}
catch
{ }
return idx;
}
}
/// <summary>
/// inverte valore booleano
/// </summary>