Completato update HOME
This commit is contained in:
@@ -7,65 +7,65 @@ using System.Web.Mvc;
|
||||
|
||||
namespace HOME.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public Logger lg = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
public Logger lg = LogManager.GetCurrentClassLogger();
|
||||
ViewBag.Title = "GPW";
|
||||
|
||||
public ActionResult Index()
|
||||
int logLevel = 0;
|
||||
try
|
||||
{
|
||||
logLevel = Convert.ToInt32(WebConfigurationManager.AppSettings["_logLevel"]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
ViewBag.Environment = WebConfigurationManager.AppSettings["Environment"];
|
||||
if (logLevel > 5) lg.Info("Environment = " + ViewBag.Environment);
|
||||
using (var ctx = new GPWEntities())
|
||||
{
|
||||
if (logLevel > 5) lg.Info(string.Format("Inizio connessione DB con Entity Framework, connString:{0}{1}", Environment.NewLine, ctx.Database.Connection.ConnectionString));
|
||||
try
|
||||
{
|
||||
ViewBag.Title = "GPW";
|
||||
|
||||
int logLevel = 0;
|
||||
try
|
||||
{
|
||||
logLevel = Convert.ToInt32(WebConfigurationManager.AppSettings["_logLevel"]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
ViewBag.Environment = WebConfigurationManager.AppSettings["Environment"];
|
||||
if (logLevel > 5) lg.Info("Environment = " + ViewBag.Environment);
|
||||
using (var ctx = new GPWEntities())
|
||||
{
|
||||
if (logLevel > 5) lg.Info(string.Format("Inizio connessione DB con Entity Framework, connString:{0}{1}", Environment.NewLine, ctx.Database.Connection.ConnectionString));
|
||||
try
|
||||
{
|
||||
// esegue stored procedure come function, recuperando chiave desiderata...
|
||||
var keyVal = ctx.stp_AKV_getByKey("Environment").ToList<AnagKeyValue>();
|
||||
// imposto URL dei vari siti
|
||||
ViewBag.UrlAdmin = ctx.stp_AKV_getByKey("UrlAdmin").ToList<AnagKeyValue>()[0].valString;
|
||||
ViewBag.UrlBCode = ctx.stp_AKV_getByKey("UrlBCode").ToList<AnagKeyValue>()[0].valString;
|
||||
ViewBag.UrlSmart = ctx.stp_AKV_getByKey("UrlSmart").ToList<AnagKeyValue>()[0].valString;
|
||||
ViewBag.UrlWrkLg = ctx.stp_AKV_getByKey("UrlWrkLg").ToList<AnagKeyValue>()[0].valString;
|
||||
if (logLevel > 5) lg.Info("DB: UrlAdmin = " + ViewBag.UrlAdmin);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lg.Error(string.Format("Errore in decodifica valori da conf DB:{0}{1}", Environment.NewLine, exc));
|
||||
// in questo caso leggo da web.config
|
||||
ViewBag.UrlAdmin = WebConfigurationManager.AppSettings["UrlAdmin"]; //"../ADMIN";
|
||||
ViewBag.UrlBCode = WebConfigurationManager.AppSettings["UrlBCode"]; //"../BCODE";
|
||||
ViewBag.UrlSmart = WebConfigurationManager.AppSettings["UrlSmart"]; //"../SMART";
|
||||
ViewBag.UrlWrkLg = WebConfigurationManager.AppSettings["UrlWrkLg"]; //"../WRKLG";
|
||||
if (logLevel > 5) lg.Info("Web.config: UrlAdmin = " + ViewBag.UrlAdmin);
|
||||
}
|
||||
}
|
||||
return View();
|
||||
// esegue stored procedure come function, recuperando chiave desiderata...
|
||||
var keyVal = ctx.stp_AKV_getByKey("Environment").ToList<AnagKeyValue>();
|
||||
// imposto URL dei vari siti
|
||||
ViewBag.UrlAdmin = ctx.stp_AKV_getByKey("UrlAdmin").ToList<AnagKeyValue>()[0].valString + "/";
|
||||
ViewBag.UrlBCode = ctx.stp_AKV_getByKey("UrlBCode").ToList<AnagKeyValue>()[0].valString + "/";
|
||||
ViewBag.UrlSmart = ctx.stp_AKV_getByKey("UrlSmart").ToList<AnagKeyValue>()[0].valString + "/";
|
||||
ViewBag.UrlWrkLg = ctx.stp_AKV_getByKey("UrlWrkLg").ToList<AnagKeyValue>()[0].valString + "/";
|
||||
if (logLevel > 5) lg.Info("DB: UrlAdmin = " + ViewBag.UrlAdmin);
|
||||
}
|
||||
|
||||
public ActionResult About()
|
||||
catch (Exception exc)
|
||||
{
|
||||
ViewBag.Title = "GPW";
|
||||
ViewBag.Message = "GPW è la suire di gestione del rilevamento presenze e contabilizzazione attività a progetto di Steamware";
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Contact()
|
||||
{
|
||||
ViewBag.Title = "GPW";
|
||||
ViewBag.Message = "Per contattarci";
|
||||
|
||||
return View();
|
||||
lg.Error(string.Format("Errore in decodifica valori da conf DB:{0}{1}", Environment.NewLine, exc));
|
||||
// in questo caso leggo da web.config
|
||||
ViewBag.UrlAdmin = WebConfigurationManager.AppSettings["UrlAdmin"] + "/"; //"../ADMIN";
|
||||
ViewBag.UrlBCode = WebConfigurationManager.AppSettings["UrlBCode"] + "/"; //"../BCODE";
|
||||
ViewBag.UrlSmart = WebConfigurationManager.AppSettings["UrlSmart"] + "/"; //"../SMART";
|
||||
ViewBag.UrlWrkLg = WebConfigurationManager.AppSettings["UrlWrkLg"] + "/"; //"../WRKLG";
|
||||
if (logLevel > 5) lg.Info("Web.config: UrlAdmin = " + ViewBag.UrlAdmin);
|
||||
}
|
||||
}
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult About()
|
||||
{
|
||||
ViewBag.Title = "GPW";
|
||||
ViewBag.Message = "Gestione Presenze Web - powered by Steamware";
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Contact()
|
||||
{
|
||||
ViewBag.Title = "GPW";
|
||||
ViewBag.Message = "I nostri recapiti di contatto";
|
||||
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,12 @@
|
||||
@{
|
||||
ViewBag.Title = "About";
|
||||
ViewBag.Title = "GPW";
|
||||
}
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
|
||||
<p>GPW è la suite di prodotti steamware dedicata al rilievo delel presenze di dipendenti e visitatori esterni ed alla gestione del tracciamento delle ore di attività a progetto</p>
|
||||
<p>Per maggiori informazioni <a href="http://www.steamware.net/GPW">visita il link</a> sul nostro sito.</p>
|
||||
<div class="jumbotron">
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
</div>
|
||||
<div>
|
||||
<p>GPW è la suite di prodotti steamware dedicata al rilievo delle presenze di dipendenti e visitatori esterni ed alla gestione del tracciamento delle ore di attività a progetto</p>
|
||||
<p>Per maggiori informazioni <a href="http://www.steamware.net/GPW">visita il link</a> sul nostro sito.</p>
|
||||
</div>
|
||||
@@ -1,38 +1,40 @@
|
||||
@{
|
||||
ViewBag.Title = "Contact";
|
||||
ViewBag.Title = "Contatti";
|
||||
}
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<h4>Sede Operativa</h4>
|
||||
<address>
|
||||
<strong>Steamware s.r.l.</strong><br />
|
||||
via Nazionale, 93<br />
|
||||
24068 Seriate - BG<br />
|
||||
<abbr title="Phone">P:</abbr>
|
||||
035.290178<br />
|
||||
<abbr title="Phone">P:</abbr>
|
||||
035.460560
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h4>Sede Legale</h4>
|
||||
<address>
|
||||
<strong>Steamware s.r.l.</strong><br />
|
||||
via Briolo Fuori, 27<br />
|
||||
24015 San Giovanni Bianco - BG<br />
|
||||
<abbr title="P.Iva">VAT:</abbr>03274190168
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h4>Supporto</h4>
|
||||
<address>
|
||||
<strong>Web:</strong><br />
|
||||
Accedi al supporto dal <a href="http://www.steamware.net/support">nostro sito web</a><br />
|
||||
<strong>Email:</strong><br />
|
||||
Scrivi un email a <a href="mailto:info@steamware.net">info at steamware.net</a>
|
||||
</address>
|
||||
</div>
|
||||
<div class="jumbotron">
|
||||
<h2>@ViewBag.Title.</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<h4>Sede Operativa</h4>
|
||||
<address>
|
||||
<strong>Steamware s.r.l.</strong><br />
|
||||
via Nazionale, 93<br />
|
||||
24068 Seriate - BG<br />
|
||||
<abbr title="Phone">P:</abbr>
|
||||
035.290178<br />
|
||||
<abbr title="Phone">P:</abbr>
|
||||
035.460560
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h4>Sede Legale</h4>
|
||||
<address>
|
||||
<strong>Steamware s.r.l.</strong><br />
|
||||
via Briolo Fuori, 27<br />
|
||||
24015 San Giovanni Bianco - BG<br />
|
||||
<abbr title="P.Iva">VAT:</abbr>03274190168
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h4>Supporto</h4>
|
||||
<address>
|
||||
<strong>Web:</strong><br />
|
||||
Accedi al supporto dal <a href="http://www.steamware.net/support">nostro sito web</a><br />
|
||||
<strong>Email:</strong><br />
|
||||
Scrivi un email a <a href="mailto:info@steamware.net">info at steamware.net</a>
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,69 +1,69 @@
|
||||
@{
|
||||
ViewBag.Title = "Home Page";
|
||||
ViewBag.Title = "Home Page";
|
||||
}
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1><i class="glyphicon glyphicon-home"></i> GPW - @ViewBag.Environment</h1>
|
||||
<p class="lead">Pannello di gestione della <a href="http://www.steamware.net/gpw">suite GPW</a> per la gestione delle presenze e del log ore su progetti</p>
|
||||
<p><i>Utilizzare i link seguenti per accedere agli applicativi</i></p>
|
||||
@*<p><a href="http://www.steamware.net/iot" class="btn btn-primary btn-lg">Learn more »</a></p>*@
|
||||
<h1><i class="glyphicon glyphicon-home"></i> GPW - @ViewBag.Environment</h1>
|
||||
<p class="lead">Pannello di gestione della <a href="http://www.steamware.net/gpw">suite GPW</a> per la gestione delle presenze e del log ore su progetti</p>
|
||||
<p><i>Utilizzare i link seguenti per accedere agli applicativi</i></p>
|
||||
@*<p><a href="http://www.steamware.net/iot" class="btn btn-primary btn-lg">Learn more »</a></p>*@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlAdmin" class="btn btn-danger btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-lock"></i> ADMIN »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Area Amministrativa:
|
||||
<ul>
|
||||
<li>Gestione Commesse/Progetti</li>
|
||||
<li>Gestione Anomalie</li>
|
||||
<li>Gestione Approvazioni</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlBCode" class="btn btn-success btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-barcode"></i> BARCODE »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Gestione Timbratrice Barcode:
|
||||
<ul>
|
||||
<li>Rilievo accessi (IN/OUT)</li>
|
||||
<li>Registrazione presenze</li>
|
||||
<li>Registo ospiti (opz.)</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlSmart" class="btn btn-warning btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-phone"></i> SMART »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Gestione smartphone/tablet:
|
||||
<ul>
|
||||
<li>Timbrature remote</li>
|
||||
<li>Inserimento registro attività</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlWrkLg" class="btn btn-primary btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-user"></i> UTENTE »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Area gestione worklog personale:
|
||||
<ul>
|
||||
<li>Visualizzazione timbrature</li>
|
||||
<li>Inserimento mancate timbrature</li>
|
||||
<li>Inserimento ore a commessa</li>
|
||||
<li>Verifica ore dichiarate / timbrature</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlAdmin" class="btn btn-danger btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-lock"></i> ADMIN »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Area Amministrativa:
|
||||
<ul>
|
||||
<li>Gestione Commesse/Progetti</li>
|
||||
<li>Gestione Anomalie</li>
|
||||
<li>Gestione Approvazioni</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlBCode" class="btn btn-success btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-barcode"></i> BARCODE »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Gestione Timbratrice Barcode:
|
||||
<ul>
|
||||
<li>Rilievo accessi (IN/OUT)</li>
|
||||
<li>Registrazione presenze</li>
|
||||
<li>Registo ospiti (opz.)</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlSmart" class="btn btn-warning btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-phone"></i> SMART »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Gestione smartphone/tablet:
|
||||
<ul>
|
||||
<li>Timbrature remote</li>
|
||||
<li>Inserimento registro attività</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a href="@ViewBag.UrlWrkLg" class="btn btn-primary btn-lg fullWidth" target="_blank">
|
||||
<h2><i class="glyphicon glyphicon-user"></i> UTENTE »</h2>
|
||||
</a>
|
||||
<hr />
|
||||
<p>
|
||||
Area gestione worklog personale:
|
||||
<ul>
|
||||
<li>Visualizzazione timbrature</li>
|
||||
<li>Inserimento mancate timbrature</li>
|
||||
<li>Inserimento ore a commessa</li>
|
||||
<li>Verifica ore dichiarate / timbrature</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -8,20 +8,18 @@
|
||||
@Scripts.Render("~/bundles/modernizr")
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar navbar-expand-lg navbar-dark bg-dark text-light py-1 fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
@Html.ActionLink("GPW suite", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<div class="navbar-collapse collapse" id="navbarContent">
|
||||
<ul class="nav navbar-nav">
|
||||
<li>@Html.ActionLink("About", "About", "Home")</li>
|
||||
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
|
||||
<li class="nav-item">@Html.ActionLink("About", "About", "Home", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
<li class="nav-item">@Html.ActionLink("Contact", "Contact", "Home", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -36,13 +34,13 @@
|
||||
}
|
||||
@if (ViewBag.envir != "Dev")
|
||||
{
|
||||
cssFixFooter = "navbar-fixed-bottom";
|
||||
cssFixFooter = "fixed-bottom";
|
||||
}
|
||||
|
||||
<hr />
|
||||
<footer class="navbar navbar-inverse @cssFixFooter">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark text-light text-center @cssFixFooter">
|
||||
@Html.Partial("_footer")
|
||||
</footer>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="row">
|
||||
<div class="col-4 col-xs-5 padZR">
|
||||
<p style="padding-left:1em;">GPW Suite | v: @typeof(HOME.MvcApplication).Assembly.GetName().Version</p>
|
||||
</div>
|
||||
<div class="col-4 col-xs-2 padZR padZL text-center">
|
||||
<strong>@ViewBag.envir | @Request.UserHostAddress</strong>
|
||||
</div>
|
||||
<div class="col-4 col-xs-5 padZL">
|
||||
<p style="padding-right:1em;" class="text-right">Steamware s.r.l. | © 2007-@DateTime.Now.Year</p>
|
||||
</div>
|
||||
<div class="d-flex w-100 py-0">
|
||||
<div class="flex-fill pr-0 text-left">
|
||||
GPW Suite | v: @typeof(HOME.MvcApplication).Assembly.GetName().Version
|
||||
</div>
|
||||
<div class="flex-fill px-0 text-center">
|
||||
<strong>@ViewBag.envir | @Request.UserHostAddress</strong>
|
||||
</div>
|
||||
<div class="flex-fill pl-0 text-right">
|
||||
Steamware s.r.l. | © 2007-@DateTime.Now.Year
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user