43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using MapoDb;
|
|
using SteamWare;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class mod_dettTurni : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
updateTurni();
|
|
}
|
|
/// <summary>
|
|
/// aggiorna classi grafiche turni
|
|
/// </summary>
|
|
protected void updateTurni()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// fornisce classe CSS x colorare il turno secondo apertura o meno
|
|
/// </summary>
|
|
/// <param name="turno"></param>
|
|
/// <returns></returns>
|
|
public string coloreDaTurno(object turno)
|
|
{
|
|
string answ = "semaforoSpento";
|
|
bool aperto = false;
|
|
try
|
|
{
|
|
aperto = Convert.ToBoolean(turno);
|
|
}
|
|
catch
|
|
{ }
|
|
if (aperto) answ = "semaforoVerde";
|
|
return answ;
|
|
}
|
|
}
|
|
} |