2024-07-17 17:30:44 +08:00
|
|
|
|
using DOAN.Service.MES.product;
|
|
|
|
|
|
using DOAN.Model.MES.product.Dto;
|
|
|
|
|
|
using DOAN.Service.MES.product.IService;
|
|
|
|
|
|
using DOAN.Admin.WebApi.Filters;
|
|
|
|
|
|
using Org.BouncyCastle.Crypto;
|
|
|
|
|
|
using DOAN.Model.System;
|
|
|
|
|
|
using MiniExcelLibs;
|
|
|
|
|
|
using DOAN.Model.System.Dto;
|
|
|
|
|
|
using DOAN.Model;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DOAN.Admin.WebApi.Controllers
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 生产排产
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Verify]
|
|
|
|
|
|
[Route("mes/productManagement/ProWorkorderSchedule")]
|
|
|
|
|
|
public class ProWorkorderScheduleController : BaseController
|
|
|
|
|
|
{
|
2024-07-18 10:17:02 +08:00
|
|
|
|
private readonly IProWorkorderScheduleService _ProWorkorderSchedule;
|
2024-07-17 17:30:44 +08:00
|
|
|
|
|
2024-07-18 10:17:02 +08:00
|
|
|
|
public ProWorkorderScheduleController(IProWorkorderScheduleService ProWorkorderSchedule)
|
2024-07-17 17:30:44 +08:00
|
|
|
|
{
|
|
|
|
|
|
_ProWorkorderSchedule = ProWorkorderSchedule;
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询生产工单列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="parm"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("list")]
|
|
|
|
|
|
[ActionPermissionFilter(Permission = "productManagement:proworkorder:list")]
|
|
|
|
|
|
public IActionResult QueryProWorkorder([FromBody] ProWorkorderQueryDto parm)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = _ProWorkorderSchedule.GetList(parm);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-18 09:16:01 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取工序
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="WorkRouteID">工一路线id</param>
|
|
|
|
|
|
/// <returns>工艺路线绑定的工序列表</returns>
|
|
|
|
|
|
[HttpGet("get_work_process")]
|
|
|
|
|
|
public IActionResult GetworkProcess(int WorkRouteID)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = _ProWorkorderSchedule.GetworkProcess(WorkRouteID);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取工位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="WorkRouteID">工序id</param>
|
|
|
|
|
|
/// <returns>工序绑定的工位列表</returns>
|
|
|
|
|
|
[HttpGet("get_work_station")]
|
|
|
|
|
|
public IActionResult GetworkStation(int WorkProcessID)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = _ProWorkorderSchedule.GetworkStation(WorkProcessID);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取设备
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="WorkRouteID">工序id</param>
|
|
|
|
|
|
/// <returns>工序绑定的工位列表</returns>
|
|
|
|
|
|
[HttpGet("get_work_device")]
|
|
|
|
|
|
public IActionResult GetWorkDevice(int WorkStationID)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = _ProWorkorderSchedule.GetWorkDevice(WorkStationID);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-17 17:30:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|