using System; using System.Linq; using System.Threading.Tasks; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using HT.Cloud.Code; using HT.Cloud.Domain.SystemManage; using HT.Cloud.Service; using Microsoft.AspNetCore.Authorization; using HT.Cloud.Service.SystemManage; namespace HT.Cloud.Web.Areas.SystemManage.Controllers { /// /// 创 建:超级管理员 /// 日 期:2022-10-06 14:18 /// 描 述:条码生成记录控制器类 /// [Area("SystemManage")] public class CodegeneratelogController : BaseController { public CodegeneratelogService _service {get;set;} #region 获取数据 [HandlerAjaxOnly] [IgnoreAntiforgeryToken] public async Task GetGridJson(SoulPage pagination, string keyword) { if (string.IsNullOrEmpty(pagination.field)) { pagination.field = "F_Id"; pagination.order = "desc"; } var data = await _service.GetLookList(pagination,keyword); return Content(pagination.setData(data).ToJson()); } [HttpGet] [HandlerAjaxOnly] public async Task GetListJson(string keyword) { var data = await _service.GetList(keyword); return Content(data.ToJson()); } [HttpGet] [HandlerAjaxOnly] public async Task GetFormJson(string keyValue) { var data = await _service.GetLookForm(keyValue); return Content(data.ToJson()); } [HttpGet] [HandlerAjaxOnly] public async Task Reprint(string keyValue, int count = 1) { var data = await _service.Reprint(keyValue, count); return Content(data.ToJson()); } #endregion #region 提交数据 #endregion } }