38 lines
806 B
C#
38 lines
806 B
C#
using MP_MON.Models;
|
|
using System;
|
|
using System.Linq;
|
|
using System.Web.Mvc;
|
|
|
|
namespace MP_MON.Controllers
|
|
{
|
|
public class MSEController : Controller
|
|
{
|
|
private MoonProEntities db = new MoonProEntities();
|
|
|
|
// GET: StatusMap
|
|
public ActionResult StatusMap(string baseCss)
|
|
{
|
|
int dataRefresh = 2000;
|
|
try
|
|
{
|
|
dataRefresh = Convert.ToInt32(System.Web.Configuration.WebConfigurationManager.AppSettings["dataRefreshMs"]);
|
|
}
|
|
catch
|
|
{ }
|
|
var MappaStato = db.stp_MSE_getData(dataRefresh);
|
|
ViewBag.baseCss = baseCss;
|
|
return PartialView("_StatusMap", MappaStato.ToList());
|
|
}
|
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
db.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
}
|
|
}
|