49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Web;
|
|||
|
using System.Web.Mvc;
|
|||
|
using Weee.Controllers;
|
|||
|
using Weee.DAL;
|
|||
|
using Weee.Service;
|
|||
|
using Weee.ViewModels.Lca;
|
|||
|
|
|||
|
namespace Weee.Areas.Lca.Controllers
|
|||
|
{
|
|||
|
public class DetailController : QcarbonControllerBase
|
|||
|
{
|
|||
|
private readonly WeeeParameterDataService parameterservice;
|
|||
|
private readonly WeeeSheetDataService service;
|
|||
|
//private readonly WeeeDataContext db;
|
|||
|
private readonly OtherCompoundService otherCompoundService;
|
|||
|
|
|||
|
public DetailController(WeeeDataContext _db
|
|||
|
, WeeeSheetDataService d
|
|||
|
, WeeeParameterDataService s
|
|||
|
, OtherCompoundService otherCompoundService)
|
|||
|
: base(_db)
|
|||
|
{
|
|||
|
service = d;
|
|||
|
parameterservice = s;
|
|||
|
//db = _db;
|
|||
|
this.otherCompoundService = otherCompoundService;
|
|||
|
}
|
|||
|
// GET: Lca/Detail
|
|||
|
public ActionResult Index()
|
|||
|
{
|
|||
|
return View();
|
|||
|
}
|
|||
|
//[Route("OtherCompound/{LCAID}")]
|
|||
|
public ActionResult OtherCompound(string LCAID)
|
|||
|
{
|
|||
|
LcaOtherCompoundViewModel viewModel;
|
|||
|
viewModel = otherCompoundService.GetOrgByLcaId(LCAID);
|
|||
|
return View(viewModel);
|
|||
|
}
|
|||
|
[HttpPost]
|
|||
|
public ActionResult OtherCompound(LcaOtherCompoundViewModel viewModel)
|
|||
|
{
|
|||
|
return View(viewModel);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|