bozza gestione elenco utenti in MP LAND
This commit is contained in:
@@ -5,6 +5,9 @@ using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Web.Configuration;
|
||||
using System.Web.Mvc;
|
||||
using ZXing.Common;
|
||||
using ZXing;
|
||||
using ZXing.QrCode;
|
||||
|
||||
namespace MP.Controllers
|
||||
{
|
||||
@@ -29,7 +32,7 @@ namespace MP.Controllers
|
||||
ViewBag.UrlMpMON = ctx.stp_AKV_getByKey("UrlMpMON").ToList<AnagKeyValue>()[0].valString;
|
||||
ViewBag.UrlMpTAB = ctx.stp_AKV_getByKey("UrlMpTAB").ToList<AnagKeyValue>()[0].valString;
|
||||
}
|
||||
catch(Exception exc)
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione in composizione HOME page LAND:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
ViewBag.UrlMpSite = WebConfigurationManager.AppSettings["UrlMpSite"];//"../MP/SITE";
|
||||
@@ -156,8 +159,8 @@ namespace MP.Controllers
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("ADM"), localDownloadPath("ADM"), "ADM");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("IO"), localDownloadPath("IO"), "IO");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("LAND"), localDownloadPath("LAND"), "LAND");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("MON"), localDownloadPath("MON"),"MON");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("SITE"), localDownloadPath("SITE"),"SITE");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("MON"), localDownloadPath("MON"), "MON");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("SITE"), localDownloadPath("SITE"), "SITE");
|
||||
done += UpdateMan.obj.downloadLatest(updateUrl("TAB"), localDownloadPath("TAB"), "TAB");
|
||||
stopWatch.Stop();
|
||||
// calcolo elapsed time come TimeSpan value.
|
||||
@@ -176,6 +179,36 @@ namespace MP.Controllers
|
||||
}
|
||||
|
||||
|
||||
public ActionResult UserListQR()
|
||||
{
|
||||
QrCodeEncodingOptions options = new QrCodeEncodingOptions
|
||||
{
|
||||
DisableECI = true,
|
||||
CharacterSet = "UTF-8",
|
||||
Width = 250,
|
||||
Height = 250,
|
||||
};
|
||||
var writer = new BarcodeWriter();
|
||||
writer.Format = BarcodeFormat.QR_CODE;
|
||||
writer.Options = options;
|
||||
|
||||
ViewBag.Title = "MAPO QR";
|
||||
ViewBag.Message = "Elenco Utenti";
|
||||
ViewBag.Environment = WebConfigurationManager.AppSettings["Environment"];
|
||||
using (var ctx = new MoonProEntities())
|
||||
{
|
||||
try
|
||||
{
|
||||
// esegue stored procedure come function, recuperando chiave desiderata...
|
||||
var elOperatori = ctx.AnagraficaOperatori.ToList<AnagraficaOperatori>();
|
||||
ViewBag.elOperatori = elOperatori;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return View(ViewBag.elOperatori);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Path locale dove scaricare gli installer
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user