/// <summary> /// 测试工位UI /// </summary> /// <param name="e"></param> private void ShowStatHub(CUIUserArgs <CStat> e) { if (this.InvokeRequired) { this.Invoke(new Action <CUIUserArgs <CStat> >(ShowStatHub), e); } else { switch (e.model.hub.Para.DoRun) { case ERUN.空闲: break; case ERUN.读卡报警: uiPreTest.SetIdAlarm(); break; case ERUN.异常报警: uiPreTest.SetStatus(e.model.hub.Para.AlarmInfo, true); break; case ERUN.空治具过站: uiPreTest.SetNull(e.model.hub.Fixture.IdCard); break; case ERUN.正常治具过站: uiPreTest.SetStatus(e.model.hub.Para.AlarmInfo, false); break; default: break; } } }
/// <summary> /// 测试工位UI /// </summary> /// <param name="e"></param> private void ShowInBI(CUIUserArgs <CStatHub> e) { if (this.InvokeRequired) { this.Invoke(new Action <CUIUserArgs <CStatHub> >(ShowInBI), e); } else { switch (e.model.Para.DoRun) { case ERUN.空闲: uiInBI.SetFree(); break; case ERUN.读卡报警: uiInBI.SetIdAlarm(); break; case ERUN.异常报警: uiInBI.SetStatus(e.model.Para.AlarmInfo, true); break; case ERUN.空治具过站: uiInBI.SetNull(e.model.Fixture.IdCard); break; case ERUN.正常治具过站: uiInBI.SetEnd(e.model.Fixture.IdCard, e.model.Fixture.SerialNo, e.model.Fixture.Result); break; default: break; } } }
/// <summary> /// 测试工位UI显示 /// </summary> /// <param name="e"></param> private void ShowATEUI(CUIUserArgs <CUIMainArgs> e) { if (this.InvokeRequired) { this.Invoke(new Action <CUIUserArgs <CUIMainArgs> >(ShowATEUI), e); } else { switch (e.model.StatATE[e.idNo].UIDoRun) { case EUIStatus.空闲: //uiATE.SetFree(); break; case EUIStatus.状态信息: uiATE.SetInfo(e.model.StatATE[e.idNo].Info); break; case EUIStatus.读卡报警: break; case EUIStatus.异常报警: uiATE.SetAlarm(e.model.StatATE[e.idNo].Info); break; case EUIStatus.治具到位: uiATE.SetReady(e.model.StatATE[e.idNo].IdCard, e.model.StatATE[e.idNo].SerialNo); break; case EUIStatus.空治具过站: uiATE.SetNull(e.model.StatATE[e.idNo].IdCard); break; case EUIStatus.测试中: if (e.model.StatATE[e.idNo].SideIndex == -1) { uiATE.SetTesting(); } else { uiATE.SetTesting(e.model.StatATE[e.idNo].SideIndex); } break; case EUIStatus.测试结束: if (e.model.StatATE[e.idNo].SideIndex == -1) { uiATE.SetEnd(e.model.StatATE[e.idNo].Result); } else { uiATE.SetEnd(e.model.StatATE[e.idNo].Result, e.model.StatATE[e.idNo].SideIndex); } break; case EUIStatus.良确认: uiATE.SetFailCfg(); break; default: break; } } }