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

61 lines
1.4 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_SelPackList : BaseUserControl
{
#region Protected Fields
protected string baseText = "PACK LIST";
protected string cssCol = "primary";
#endregion Protected Fields
#region Public Properties
public int PackListID
{
get
{
int answ = 0;
int.TryParse(hfPackListID.Value, out answ);
return answ;
}
set
{
hfPackListID.Value = $"{value}";
cmp_OrderList.PackListID = value;
lbtShow.CssClass = value > 0 ? $"btn btn-{cssCol} w-100" : $"btn btn-outline-{cssCol} w-100 disabled";
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;
}
}
#endregion Protected Methods
#region Public Methods
public void doUpdate()
{
cmp_OrderList.doUpdate();
}
#endregion Public Methods
}
}