Files
MoonPro.net/MP-MAG/WebUserControls/cmp_SelPedana.ascx.cs
T
2020-12-31 10:35:24 +01:00

59 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
public partial class cmp_SelPedana : BaseUserControl
{
#region Protected Fields
protected string baseText = "Pedana";
protected string cssCol = "secondary";
#endregion Protected Fields
#region Public Properties
public string Pedana
{
get
{
return hfPedana.Value;
}
set
{
hfPedana.Value = value;
cmp_UDCList.AlSel = value;
lbtShow.CssClass = !string.IsNullOrEmpty(value) ? $"btn btn-{cssCol} btn-block" : $"btn btn-outline-{cssCol} btn-block disabled";
lbtShow.Text = $"{baseText} <b>{value}</b>";
}
}
#endregion Public Properties
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Pedana = "";
}
}
#endregion Protected Methods
#region Public Methods
public void doUpdate()
{
cmp_UDCList.doUpdate();
}
#endregion Public Methods
}
}