Files
Samuele Locatelli c3d07f626c MAG
- fix preliminari B5
2023-09-13 08:32:55 +02:00

97 lines
2.1 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_SelUdc : BaseUserControl
{
#region Protected Fields
protected string baseText = "UDC";
#endregion Protected Fields
#region Public Properties
public string cssCol
{
get
{
return hfBaseCss.Value;
}
set
{
hfBaseCss.Value = value;
lbtShow.CssClass = !string.IsNullOrEmpty(UDC) ? $"btn btn-{value} w-100" : $"btn btn-outline-{value} w-100 disabled";
}
}
public int PackListID
{
get
{
int answ = 0;
int.TryParse(hfPackListID.Value, out answ);
return answ;
}
set
{
hfPackListID.Value = $"{value}";
cmp_OrderListByUdc.PackListID = value;
}
}
/// <summary>
/// Ordine selezionato
/// </summary>
public int SelOrdID
{
get
{
return cmp_OrderListByUdc.SelOrdID;
}
}
public string UDC
{
get
{
return hfUDC.Value;
}
set
{
hfUDC.Value = value;
cmp_OrderListByUdc.UdcSel = value;
lbtShow.Text = $"{baseText} <b>{value}</b>";
}
}
#endregion Public Properties
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
PackListID = 0;
UDC = "";
}
}
#endregion Protected Methods
#region Public Methods
public void doUpdate()
{
cmp_OrderListByUdc.doUpdate();
}
#endregion Public Methods
}
}