Files
MoonPro.net/MP-TAB/SheetTech.aspx.cs
T
Samuele E. Locatelli 049efb1b01 Fix vari x SchedaTecnica
2020-12-09 17:48:55 +01:00

57 lines
1.5 KiB
C#

using MapoDb;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MoonProTablet
{
public partial class SheetTech : BasePage
{
#region Private Methods
private void checkModuleEnabled()
{
cmp_sheetTech.Visible = enableSchedaTecnica;
cmp_disabled.Visible = !enableSchedaTecnica;
}
/// <summary>
/// Imposta articolo x dettaglio dato ODL
/// </summary>
private void setArticolo()
{
// leggo riga...
if (idxODL > 0)
{
var rigaDati = DataLayerObj.taODL.getByIdx(idxODL, false)[0];
cmp_sheetTech.CodArticolo = rigaDati.CodArticolo;
}
else
{
cmp_sheetTech.CodArticolo = "";
}
}
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
setArticolo();
cmp_disabled.title = "Scheda Tecnica";
cmp_disabled.subtitle = "Funzionalità disattivata";
cmp_disabled.message = "Gestione schede tecniche di attrezzaggio, collaudo e verifica procedure di setup. Il modulo opzionale è attivabile su richiesta.";
}
checkModuleEnabled();
}
#endregion Protected Methods
}
}