diff --git a/HOME/Controllers/HomeController.cs b/HOME/Controllers/HomeController.cs index 6de576c..fdbc9c8 100644 --- a/HOME/Controllers/HomeController.cs +++ b/HOME/Controllers/HomeController.cs @@ -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(); - // imposto URL dei vari siti - ViewBag.UrlAdmin = ctx.stp_AKV_getByKey("UrlAdmin").ToList()[0].valString; - ViewBag.UrlBCode = ctx.stp_AKV_getByKey("UrlBCode").ToList()[0].valString; - ViewBag.UrlSmart = ctx.stp_AKV_getByKey("UrlSmart").ToList()[0].valString; - ViewBag.UrlWrkLg = ctx.stp_AKV_getByKey("UrlWrkLg").ToList()[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(); + // imposto URL dei vari siti + ViewBag.UrlAdmin = ctx.stp_AKV_getByKey("UrlAdmin").ToList()[0].valString + "/"; + ViewBag.UrlBCode = ctx.stp_AKV_getByKey("UrlBCode").ToList()[0].valString + "/"; + ViewBag.UrlSmart = ctx.stp_AKV_getByKey("UrlSmart").ToList()[0].valString + "/"; + ViewBag.UrlWrkLg = ctx.stp_AKV_getByKey("UrlWrkLg").ToList()[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(); + } + } } \ No newline at end of file diff --git a/HOME/Views/Home/About.cshtml b/HOME/Views/Home/About.cshtml index 06a35d7..5c63d53 100644 --- a/HOME/Views/Home/About.cshtml +++ b/HOME/Views/Home/About.cshtml @@ -1,8 +1,12 @@ @{ - ViewBag.Title = "About"; + ViewBag.Title = "GPW"; } -

@ViewBag.Title.

-

@ViewBag.Message

-

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

-

Per maggiori informazioni visita il link sul nostro sito.

\ No newline at end of file +
+

@ViewBag.Title.

+

@ViewBag.Message

+
+
+

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

+

Per maggiori informazioni visita il link sul nostro sito.

+
\ No newline at end of file diff --git a/HOME/Views/Home/Contact.cshtml b/HOME/Views/Home/Contact.cshtml index 31ec670..23a0099 100644 --- a/HOME/Views/Home/Contact.cshtml +++ b/HOME/Views/Home/Contact.cshtml @@ -1,38 +1,40 @@ @{ - ViewBag.Title = "Contact"; + ViewBag.Title = "Contatti"; } -

@ViewBag.Title.

-

@ViewBag.Message

-
-
-

Sede Operativa

-
- Steamware s.r.l.
- via Nazionale, 93
- 24068 Seriate - BG
- P: - 035.290178
- P: - 035.460560 -
-
-
-

Sede Legale

-
- Steamware s.r.l.
- via Briolo Fuori, 27
- 24015 San Giovanni Bianco - BG
- VAT:03274190168 -
-
-
-

Supporto

-
- Web:
- Accedi al supporto dal nostro sito web
- Email:
- Scrivi un email a info at steamware.net -
-
+
+

@ViewBag.Title.

+

@ViewBag.Message

+
+
+
+

Sede Operativa

+
+ Steamware s.r.l.
+ via Nazionale, 93
+ 24068 Seriate - BG
+ P: + 035.290178
+ P: + 035.460560 +
+
+
+

Sede Legale

+
+ Steamware s.r.l.
+ via Briolo Fuori, 27
+ 24015 San Giovanni Bianco - BG
+ VAT:03274190168 +
+
+
+

Supporto

+
+ Web:
+ Accedi al supporto dal nostro sito web
+ Email:
+ Scrivi un email a info at steamware.net +
+
diff --git a/HOME/Views/Home/Index.cshtml b/HOME/Views/Home/Index.cshtml index dcc26e1..0d9bb5e 100644 --- a/HOME/Views/Home/Index.cshtml +++ b/HOME/Views/Home/Index.cshtml @@ -1,69 +1,69 @@ @{ - ViewBag.Title = "Home Page"; + ViewBag.Title = "Home Page"; }
-

GPW - @ViewBag.Environment

-

Pannello di gestione della suite GPW per la gestione delle presenze e del log ore su progetti

-

Utilizzare i link seguenti per accedere agli applicativi

- @*

Learn more »

*@ +

GPW - @ViewBag.Environment

+

Pannello di gestione della suite GPW per la gestione delle presenze e del log ore su progetti

+

Utilizzare i link seguenti per accedere agli applicativi

+ @*

Learn more »

*@
-
- -

ADMIN »

-
-
-

- Area Amministrativa: -

    -
  • Gestione Commesse/Progetti
  • -
  • Gestione Anomalie
  • -
  • Gestione Approvazioni
  • -
-

-
-
- -

BARCODE »

-
-
-

- Gestione Timbratrice Barcode: -

    -
  • Rilievo accessi (IN/OUT)
  • -
  • Registrazione presenze
  • -
  • Registo ospiti (opz.)
  • -
-

-
-
- -

SMART »

-
-
-

- Gestione smartphone/tablet: -

    -
  • Timbrature remote
  • -
  • Inserimento registro attività
  • -
-

-
-
- -

UTENTE »

-
-
-

- Area gestione worklog personale: -

    -
  • Visualizzazione timbrature
  • -
  • Inserimento mancate timbrature
  • -
  • Inserimento ore a commessa
  • -
  • Verifica ore dichiarate / timbrature
  • -
-

-
+
+ +

ADMIN »

+
+
+

+ Area Amministrativa: +

    +
  • Gestione Commesse/Progetti
  • +
  • Gestione Anomalie
  • +
  • Gestione Approvazioni
  • +
+

+
+
+ +

BARCODE »

+
+
+

+ Gestione Timbratrice Barcode: +

    +
  • Rilievo accessi (IN/OUT)
  • +
  • Registrazione presenze
  • +
  • Registo ospiti (opz.)
  • +
+

+
+
+ +

SMART »

+
+
+

+ Gestione smartphone/tablet: +

    +
  • Timbrature remote
  • +
  • Inserimento registro attività
  • +
+

+
+
+ +

UTENTE »

+
+
+

+ Area gestione worklog personale: +

    +
  • Visualizzazione timbrature
  • +
  • Inserimento mancate timbrature
  • +
  • Inserimento ore a commessa
  • +
  • Verifica ore dichiarate / timbrature
  • +
+

+
\ No newline at end of file diff --git a/HOME/Views/Shared/_Layout.cshtml b/HOME/Views/Shared/_Layout.cshtml index 1685009..91247c2 100644 --- a/HOME/Views/Shared/_Layout.cshtml +++ b/HOME/Views/Shared/_Layout.cshtml @@ -8,20 +8,18 @@ @Scripts.Render("~/bundles/modernizr") -