| | |
| | | } |
| | | _rcsserver.CleanPallet(pallmsg, _config.AgvHost + _config.GenAgvSchedulingTask); |
| | | result.Success = 0; |
| | | result.Message = "叫桶成功!"; |
| | | result.Message = "操作成功!"; |
| | | return Ok(result); |
| | | } |
| | | catch (Exception e) |
| | |
| | | return Ok(result); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// LIMS质量结果下发 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult QualityResult(QualityResultVm model) |
| | | { |
| | | var logStr = $@".\log\LIMS\LIMS质量结果下发" + DateTime.Now.ToString("yyyyMMdd") + ".txt"; |
| | | ErpModel result = new ErpModel { Success = -1, Message = "" }; |
| | | try |
| | | { |
| | | var jsonData = JsonConvert.SerializeObject(model); |
| | | LogFile.SaveLogToFile($"LIMS质量结果下发-请求报文:( {jsonData} ),", logStr); |
| | | |
| | | _rcsserver.QualityResult(model); |
| | | result.Success = 0; |
| | | result.Message = "操作成功!"; |
| | | return Ok(result); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LogFile.SaveLogToFile($"LIMS质量结果下发异常:( {e.Message} ),", logStr); |
| | | result.Message = e.Message; |
| | | return Ok(result); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 入库单据下发 |