88 lines
2.0 KiB
C#
88 lines
2.0 KiB
C#
using GPW_data;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
namespace GPW_Admin.WebUserControls
|
|
{
|
|
public partial class cmp_ticketList : BaseUserControl
|
|
{
|
|
#region Protected Properties
|
|
|
|
protected string ChiaveUtente
|
|
{
|
|
get
|
|
{
|
|
string answ = "";
|
|
if (currRowDip != null)
|
|
{
|
|
answ = currRowDip.authKey;
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Cod impiego calcolato
|
|
/// </summary>
|
|
protected string CodImpiego
|
|
{
|
|
get
|
|
{
|
|
return DataProxy.DP.hashCodImpiego(currRowDip);
|
|
}
|
|
}
|
|
|
|
protected DS_Applicazione.DipendentiRow currRowDip
|
|
{
|
|
get
|
|
{
|
|
return DataProxy.DP.getRowDip(idxDipSel);
|
|
}
|
|
}
|
|
|
|
protected int idxSubLic
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
// verifico SE sia disponibile licenza...
|
|
var activationsList = licenzeGPW.ListaAttivazioni;
|
|
var currHash = DataProxy.DP.hashCodImpiego(currRowDip);
|
|
var currAct = activationsList.Where(x => x.CodImpiego == currHash).FirstOrDefault();
|
|
if (currAct != null)
|
|
{
|
|
answ = currAct.IdxSubLic;
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Public Properties
|
|
|
|
public int idxDipSel
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfIdxDip.Value, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
hfIdxDip.Value = $"{value}";
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |