75 lines
1.6 KiB
C#
75 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class cmp_ST_detail : BaseUserControl
|
|
{
|
|
#region Public Properties
|
|
|
|
public string CodArticolo
|
|
{
|
|
get
|
|
{
|
|
return hfCodArticolo.Value.Trim();
|
|
}
|
|
set
|
|
{
|
|
hfCodArticolo.Value = value.Trim();
|
|
}
|
|
}
|
|
|
|
public string CodGruppo
|
|
{
|
|
get
|
|
{
|
|
return hfCodGruppo.Value.Trim();
|
|
}
|
|
set
|
|
{
|
|
hfCodGruppo.Value = value.Trim();
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Methods
|
|
|
|
/// <summary>
|
|
/// check ODL presente
|
|
/// </summary>
|
|
private void fixWarning()
|
|
{
|
|
if (idxMacchina == "")
|
|
{
|
|
lblWarning.Text = traduci("MancaMacchina");
|
|
lblWarning.Visible = true;
|
|
}
|
|
else if (idxOdl == 0)
|
|
{
|
|
lblWarning.Text = traduci("MancaOdl");
|
|
lblWarning.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
lblWarning.Text = "";
|
|
lblWarning.Visible = false;
|
|
}
|
|
}
|
|
|
|
#endregion Private Methods
|
|
|
|
#region Protected Methods
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
fixWarning();
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |