103 lines
2.5 KiB
C#
103 lines
2.5 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();
|
|
|
|
return SUCCESS(itemTableDTO);
|
|
}
|
|
|
|
|
|
[HttpGet("getcheckitemRecord")]
|
|
public IActionResult GetcheckitemRecord()
|
|
{
|
|
|
|
|
|
return null;
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 获取当前工单
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("getcurrentWorkorder")]
|
|
public IActionResult GetcurrentWorkorder()
|
|
{
|
|
|
|
QcCurrentWorkorderDto workorder= fQCService.GetcurrentWorkorder();
|
|
|
|
return SUCCESS(workorder);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取下一个工单
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("getcurrentWorkorder_next")]
|
|
public IActionResult GetcurrentWorkorder_next()
|
|
{
|
|
|
|
QcCurrentWorkorderDto workorder = fQCService.GetcurrentWorkorder_next();
|
|
|
|
return SUCCESS(workorder);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取上一个工单
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("getcurrentWorkorder_previous")]
|
|
public IActionResult GetcurrentWorkorder_previous()
|
|
{
|
|
|
|
QcCurrentWorkorderDto workorder = fQCService.GetcurrentWorkorder_previous();
|
|
|
|
return SUCCESS(workorder);
|
|
}
|
|
|
|
}
|
|
}
|