using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; using VueWebApi.DLL.BLL; using VueWebApi.Tools; namespace VueWebApi.Controllers { [RoutePrefix(prefix: "api/GridReport")] [ControllerGroup("单据打印", "在线接口")] public class GridReportController : ApiController { //定义全局信息返回变量 ToMessage mes = new ToMessage(); RedisHelper redis = new RedisHelper(); #region[MES工单打印] /// /// MES工单打印 /// /// 登录用户 /// 工单编号 [Route(template: "MesOrderPrintSearch")] [HttpPost] public HttpResponseMessage MesOrderPrintSearch(string username,string mesordercode) { mes = GridReportBLL.MesOrderPrintSearch(username,mesordercode); return TJson.toJson(mes); } #endregion #region[MES工单打印1] /// /// MES工单打印1 /// /// 提交数据 /// [Route(template: "MesOrderPrintSearch1")] [HttpPost] public HttpResponseMessage MesOrderPrintSearch1([FromBody] JObject obj) { string username = obj["username"].ToString(); //登录用户 string mesordercode = obj["mesordercode"].ToString(); //工单状态码 mes = GridReportBLL.MesOrderPrintSearch(username, mesordercode); return TJson.toJson(mes); } #endregion } }