| | |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Bro.M071.Process |
| | | { |
| | |
| | | LogAsync(DateTime.Now, $"{pMeasure.Barcode}产品检测数据上传", JsonConvert.SerializeObject(paras)); |
| | | } |
| | | |
| | | string result = "-3"; |
| | | string result = "-1"; |
| | | |
| | | int repeatTime = 3; |
| | | do |
| | |
| | | repeatTime--; |
| | | |
| | | Thread.Sleep(100); |
| | | result = "-3"; |
| | | result = "-1"; |
| | | } |
| | | } while (repeatTime > 0); |
| | | |
| | |
| | | LogAsync(DateTime.Now, $"{barcode}产品检测数据上传,{result}|{mesReturn.ToString()}", $"耗时:{sw.ElapsedMilliseconds}ms"); |
| | | |
| | | OnCheckHintUpload?.Invoke("检测数据" + mesReturn.ToString(), mesReturn != MESUploadReturn.上传成功); |
| | | |
| | | if (mesReturn != MESUploadReturn.上传成功) |
| | | { |
| | | MessageBox.Show($"{barcode}产品数据上传失败,{mesReturn.ToString()}\r\n请检查网络连接或确认问题后重新检测", "上传异常", MessageBoxButtons.OK, MessageBoxIcon.Warning); |
| | | } |
| | | } |
| | | |
| | | private string GetMESAlignmentData(ProductionMeasurement pMeasure) |