d396be7b1d
Aggiunto comportamento buttons disabilitati se non 'è paziente Update
67 lines
1.8 KiB
C#
67 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using SteamWare;
|
|
|
|
namespace MedPred.WebUserControls
|
|
{
|
|
public partial class mod_footer : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// restituisce stato active se pagina corrente...
|
|
/// </summary>
|
|
/// <param name="nomeElem"></param>
|
|
/// <returns></returns>
|
|
public string liClass(object nomeElem)
|
|
{
|
|
string answ = "";
|
|
if (Request.Url.ToString().Contains(nomeElem.ToString())) answ = "ui-btn-active";
|
|
// se NON E' accettazione e non c'è paziente metto disabled...
|
|
if (!nomeElem.ToString().Contains("Accettazione"))
|
|
{
|
|
if (!memLayer.ML.isInSessionObject("Paziente"))
|
|
{
|
|
answ += " ui-state-disabled";
|
|
}
|
|
}
|
|
return answ;
|
|
}
|
|
/// <summary>
|
|
/// stringa del paziente selezionato
|
|
/// </summary>
|
|
public string pazienteSel
|
|
{
|
|
get
|
|
{
|
|
string answ = "-";
|
|
if (memLayer.ML.isInSessionObject("Paziente"))
|
|
{
|
|
answ = memLayer.ML.StringSessionObj("Paziente");
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// stringa del paziente selezionato
|
|
/// </summary>
|
|
public bool hasPaziente
|
|
{
|
|
get
|
|
{
|
|
bool answ = false;
|
|
if (memLayer.ML.isInSessionObject("Paziente"))
|
|
{
|
|
answ = true;
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |