Spostato in header paziente selezionato

This commit is contained in:
Samuele E. Locatelli
2014-04-23 11:36:52 +02:00
parent d60c85604f
commit f80af847fd
9 changed files with 112 additions and 44 deletions
@@ -0,0 +1,46 @@
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MedPred.WebUserControls
{
public partial class mod_header : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Page.Title = Request.Url.ToString();
}
}
/// <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 string titolo
{
get
{
return Request.Url.LocalPath.Split('/').Last();
}
}
}
}