42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Core.Web.App_Start;
|
|
using Core.Web.WebHelper;
|
|
using CRM.Core.BLL.Application.QsurveyOrder;
|
|
using CRM.Core.BLL.Wx;
|
|
using CRM.Core.Common.Layui;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace Core.Web.Controllers
|
|
{
|
|
public class QsurveyOrderController : BaseController
|
|
{
|
|
private readonly QsurveyOrderServices _qsurveyOrderServices;
|
|
public QsurveyOrderController()
|
|
{
|
|
_qsurveyOrderServices = new QsurveyOrderServices();
|
|
}
|
|
|
|
[AuthorizeRedirect(RightsConfig.CONST_调查问卷, ToolBarConfig.CONST_NotButton, true)]
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public JsonResult GetList(QsurveyOrderQueryDto query)
|
|
{
|
|
var list = _qsurveyOrderServices.GetList(query);
|
|
|
|
var data = new LayuiData<QsurveyOrderViewDto>()
|
|
{
|
|
msg = "数据加载成功!",
|
|
count = list.TotalCount,
|
|
code = 0,
|
|
data = list.Items
|
|
};
|
|
return Json(data, JsonRequestBehavior.AllowGet);
|
|
}
|
|
}
|
|
} |