预备signalr
This commit is contained in:
57
ZR.Admin.WebApi/Controllers/mes/qc/FQC/FirstFQCController.cs
Normal file
57
ZR.Admin.WebApi/Controllers/mes/qc/FQC/FirstFQCController.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using Infrastructure.Constant;
|
||||
using Infrastructure.Extensions;
|
||||
using JinianNet.JNTemplate;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Text.Json;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Hubs;
|
||||
using ZR.Model.MES.qc.DTO;
|
||||
using ZR.Model.MES.qu;
|
||||
using ZR.Service.mes.qc.IService;
|
||||
using ZR.Service.System;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.qc.IQC
|
||||
{
|
||||
|
||||
|
||||
[Route("mes/qc/FQC")]
|
||||
public class FirstFQCController : BaseController
|
||||
{
|
||||
private readonly IFirstFQCService fQCService;
|
||||
private readonly IHubContext<MessageHub> hubContext;
|
||||
|
||||
public FirstFQCController(IFirstFQCService fQCService, IHubContext<MessageHub> hubContext) {
|
||||
this.fQCService = fQCService;
|
||||
this.hubContext = hubContext;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取 检测项 填充
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getcheckItemTable")]
|
||||
public IActionResult GetcheckItemTable()
|
||||
{
|
||||
|
||||
CheckItemTableDTO itemTableDTO= fQCService.GetCheckItemTable();
|
||||
hubContext.Clients.All.SendAsync(HubsConstant.mymy, "123456");
|
||||
return SUCCESS(itemTableDTO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -31,14 +31,9 @@ namespace ZR.Admin.WebApi.Controllers.mes.qc
|
||||
/// <returns></returns>
|
||||
[HttpGet("getinspectionItemList")]
|
||||
public IActionResult GetinspectionItemList(string inspectionModule="",string inspectionType="")
|
||||
{
|
||||
|
||||
{
|
||||
List<QcInspectionitem> data = qcinspection.GetinspectionItemList(inspectionModule, inspectionType);
|
||||
|
||||
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user