|
|
@ -446,6 +446,29 @@ namespace Rs.MotionPlat
|
|
|
|
|
|
|
|
|
|
|
|
private void LoadStockStatus()
|
|
|
|
private void LoadStockStatus()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
StringBuilder msg = new StringBuilder();
|
|
|
|
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Input))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
msg.Append(ETrayType.Input.ToString()).Append(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Ok))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
msg.Append(ETrayType.Ok.ToString()).Append(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Ng))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
msg.Append(ETrayType.Ng.ToString()).Append(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Multi))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
msg.Append(ETrayType.Multi.ToString()).Append(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(msg.Length > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Task.Run(() => {
|
|
|
|
|
|
|
|
Msg.ShowInfo("Stock " + msg.ToString().TrimEnd(new char[] { ',' }) + " has tray,please check products status");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Empty1))
|
|
|
|
if (StockManager.Instance.HasTray(ETrayType.Empty1))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).ChangeStatus(EStockTrayStatus.Loaded);
|
|
|
|
StockManager.Instance.GetStock(ETrayType.Empty1).ChangeStatus(EStockTrayStatus.Loaded);
|
|
|
|