/// <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 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; } } }