Files
b2bcondomini.it/PUB/PBO/UserLinks.aspx.cs
T
2018-09-29 11:26:37 +02:00

60 lines
1.2 KiB
C#

using Data;
using System;
using System.Web.UI;
namespace PUB.PBO
{
public partial class UserLinks : System.Web.UI.Page
{
protected int idxAmm
{
get
{
int answ = 0;
int.TryParse(Request.QueryString["idxAmm"], out answ);
return answ;
}
}
protected int idxForn
{
get
{
int answ = 0;
int.TryParse(Request.QueryString["IdxForn"], out answ);
return answ;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (idxAmm > 0)
{
mod_userLinks.idxAmm = idxAmm;
}
else if (idxForn > 0)
{
mod_userLinks.idxForn = idxForn;
}
}
}
public string ElencoUtenti
{
get
{
string answ = "Elenco utenti";
if (idxAmm > 0)
{
var rAmm = DtProxy.man.taAAmm.getByKey(idxAmm)[0];
answ += string.Format(" AMMINISTRATORE {0}", rAmm.RagSociale);
}
else if (idxForn > 0)
{
var rForn = DtProxy.man.taAF.getByKey(idxForn)[0];
answ += string.Format(" FORNITURE {0}", rForn.nome);
}
return answ;
}
}
}
}