|
|
@ -2492,17 +2492,18 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.扫码失败), vr.SlotIndex);
|
|
|
|
//alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.扫码失败), vr.SlotIndex);
|
|
|
|
|
|
|
|
alarmEntity = AlarmCollection.Get(AlarmConstID.扫码失败).Transform(vr.SlotIndex);
|
|
|
|
Dictionary<ETipButton, string> buttonTexts = new Dictionary<ETipButton, string>() {
|
|
|
|
Dictionary<ETipButton, string> buttonTexts = new Dictionary<ETipButton, string>() {
|
|
|
|
{ ETipButton.Retry,"重试|Retry"},
|
|
|
|
{ ETipButton.Retry,"重试|Retry"},
|
|
|
|
{ ETipButton.Cancel,"自动移走|Auto remove"}
|
|
|
|
{ ETipButton.Cancel,"自动移走|Auto remove"}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
box = PromptMessageBox.ShowDialog(AlarmConstID.扫码失败, alarmInfo, ETipButton.Retry | ETipButton.Cancel, buttonTexts);
|
|
|
|
ETipButton btn = AlarmMessageBox.ShowDialog(alarmEntity, ETipButton.Retry | ETipButton.Cancel, buttonTexts);
|
|
|
|
if (box.Button == ETipButton.Retry)
|
|
|
|
if (btn == ETipButton.Retry)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
failNum = 1;
|
|
|
|
failNum = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (box.Button == ETipButton.Cancel)
|
|
|
|
else if (btn == ETipButton.Cancel)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//OnShowGrabResult?.Invoke(vrsigle, true);
|
|
|
|
//OnShowGrabResult?.Invoke(vrsigle, true);
|
|
|
|
//复制二维码
|
|
|
|
//复制二维码
|
|
|
|