47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using Weee.DAL;
|
|
using Weee.Service;
|
|
|
|
namespace Weee.Areas.Certification.Controllers
|
|
{
|
|
public class ParameterController : CertificationControllerBase
|
|
{
|
|
protected WeeeParameterDataService parameterDataService;
|
|
|
|
public ParameterController(WeeeDataContext db
|
|
,WeeeParameterDataService parameterDataService)
|
|
:base(db)
|
|
{
|
|
this.parameterDataService = parameterDataService;
|
|
}
|
|
|
|
public ActionResult Remark(int id = 0)
|
|
{
|
|
if (id == 0) return HttpNotFound();
|
|
var simaproParameter = parameterDataService.GetSimaproParameter(id);
|
|
ViewBag.Remark = simaproParameter.Remark;
|
|
|
|
return View();
|
|
}
|
|
|
|
public ActionResult NonYearly(int id = 0)
|
|
{
|
|
if (id == 0) return HttpNotFound();
|
|
var nonYearlyParameter = parameterDataService.GetNonYearlyParameter(id);
|
|
|
|
return View(nonYearlyParameter);
|
|
}
|
|
|
|
public ActionResult Yearly(int id = 0)
|
|
{
|
|
if (id == 0) return HttpNotFound();
|
|
var yearlyParameter = parameterDataService.GetYearlyParameter(id);
|
|
|
|
return View(yearlyParameter);
|
|
}
|
|
}
|
|
} |