| | |
| | | /// <returns></returns> |
| | | [HttpGet("GetEquipmentCurrentState")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<List<EquipmentCurrentMonitorOutputV2>> GetEquipmentLst([FromQuery] EquipmentCurrentMonitorSearch input) |
| | | { |
| | | |
| | |
| | | /// </summary> |
| | | [HttpGet("GetProduceCompletionStatus")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<List<ProduceCompletionStatus>> GetProduceCompletionStatus() |
| | | { |
| | | List<ProduceCompletionStatus> list = new List<ProduceCompletionStatus>(); |
| | |
| | | /// </summary> |
| | | [HttpGet("GetCurrentProduceInfo")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<CurrentProduceInfo> GetCurrentProduceInfo() |
| | | { |
| | | CurrentProduceInfo currentProduceInfo = new CurrentProduceInfo(); |
| | |
| | | /// <returns></returns> |
| | | [HttpGet("GetQualityData")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<QualityDataDisplay> GetQualityData([FromQuery] string input) |
| | | { |
| | | QualityDataDisplay qualityDataDisplay = new QualityDataDisplay(); |
| | |
| | | /// </summary> |
| | | [HttpGet("GetLargeScreenFrequency")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<int> GetLargeScreenFrequency() |
| | | { |
| | | try |
| | |
| | | /// <returns></returns> |
| | | [HttpGet("GetProductionForTime")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<List<ProductionInfo>> GetProductionForTime(DateTime start, DateTime end) |
| | | { |
| | | //获取最近月下线工件的成品 |
| | |
| | | /// <returns></returns> |
| | | [HttpPost("Add")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task AddQualityDataAsync(AddQualityDataInfoInput input) |
| | | { |
| | | |
| | |
| | | /// <returns></returns> |
| | | [HttpGet("workPieceInfo")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task<AccessWorPieceInfoOutput> GetWorkPieceInfoAsync([FromQuery] AccessWorkPieceInfoInput input) |
| | | { |
| | | var workPieceInfo = await _workPieceInfoRep.DetachedEntities |
| | |
| | | /// <returns></returns> |
| | | [HttpPost("ThreadStatus")] |
| | | [AllowAnonymous] |
| | | [DisableOpLog] |
| | | public async Task AddThreadStatusAsync(AddThreadStatusMonitorInput input) |
| | | { |
| | | var dataCapture = await _dataCaptureConfigRep.DetachedEntities.FirstOrDefaultAsync(d => d.WorkingProcedure == input.Threadcode); |