添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,47 @@
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("report")]
|
||||
[ActionDescription("报表查看")]
|
||||
public partial class ReportViewController : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitwork;
|
||||
|
||||
public ReportViewController(IUnitWork unitwork)
|
||||
{
|
||||
_unitwork = unitwork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReportDesignVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public string QueryData(string name, string filter)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReportDesignVM>();
|
||||
var result = vm.QueryData(name, filter);
|
||||
return JsonConvert.SerializeObject(result);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public IActionResult GetReportParams(string id)
|
||||
{
|
||||
var data = _unitwork.Find<ReportDesign>(x => x.Name == id).FirstOrDefault();
|
||||
return JsonMore(data?.Params);
|
||||
}
|
||||
|
||||
#endregion Search
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user