58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|