using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Runtime.ConstrainedExecution;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Common.MES;
|
using WIDESEA_Core;
|
using WIDESEA_DTO;
|
|
namespace WIDESEA_StoragIntegrationServices
|
{
|
public partial class WCSService
|
{
|
public WebResponseContent HZPassTZ(RequestTaskDto json)
|
{
|
WebResponseContent content = new WebResponseContent();
|
try
|
{
|
//var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.PVI); ///*x.PalletCode == json.PalletCode ||*/
|
//if (carInfo != null) throw new Exception($"涂装直通总装失败:PVI{json.Rfid}已存在。");
|
|
var station = _stationManagerRepository.QueryFirst(x => x.stationChildCode == json.Position);
|
if (station == null) throw new Exception($"{json.Position}工位站台未找到");
|
|
WebResponseContent webResponse = _mesService.bindWorkOrder(json.Position, json.PVI);
|
if (!webResponse.Status) throw new Exception($"焊涂绑定失败:{webResponse.msg}");
|
|
//过点信息 -BDC02
|
//json.Position = "EL01RB";
|
WebResponseContent BDC02 = _mesService.PassPoint(json);
|
if (!BDC02.Status) throw new Exception($"BDC02过点失败:{BDC02.msg}");
|
content.OK();
|
}
|
catch (Exception ex)
|
{
|
throw new Exception($"焊装提升机异常:{ex.Message}");
|
//content.Error(ex.Message);
|
}
|
return content;
|
}
|
}
|
}
|