Approvazione ODL gestita con opzione

This commit is contained in:
Samuele E. Locatelli
2018-12-20 09:31:36 +01:00
parent 1b434a9b11
commit 7b6647d0d0
3 changed files with 41 additions and 7 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
<%@ Page Title="MPADM | ApprovazioneODL" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="approvazioneODL.aspx.cs" Inherits="MP_ADM.approvazioneODL" %>
<%@ Register src="WebUserControls/mod_approvazioneODL.ascx" tagname="mod_approvazioneODL" tagprefix="uc2" %>
<%@ Register Src="WebUserControls/mod_approvazioneODL.ascx" TagName="mod_approvazioneODL" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label runat="server" ID="lblDataImportOut" CssClass="text-danger" />
<div runat="server" id="divContent">
<uc2:mod_approvazioneODL ID="mod_approvazioneODL1" runat="server" />
</div>
</asp:Content>
+18 -6
View File
@@ -1,12 +1,24 @@
using System;
using SteamWare;
using System;
namespace MP_ADM
{
public partial class approvazioneODL : System.Web.UI.Page
public partial class approvazioneODL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
protected void Page_Load(object sender, EventArgs e)
{
}
checkEnabled();
}
private void checkEnabled()
{
bool optPar = memLayer.ML.CRB("OptAdmApprTempiEnabled");
divContent.Visible = optPar;
string messaggio = "";
if (!optPar)
{
messaggio = "Attenzione: gestione approvazione cambio TC disabilitata";
}
lblDataImportOut.Text = messaggio;
}
}
}
+18
View File
@@ -12,6 +12,24 @@ namespace MP_ADM {
public partial class approvazioneODL {
/// <summary>
/// Controllo lblDataImportOut.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDataImportOut;
/// <summary>
/// Controllo divContent.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divContent;
/// <summary>
/// Controllo mod_approvazioneODL1.
/// </summary>