/// <summary> /// 响应上料完成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> internal void OnPlaceCompleted(object sender, CompletedEventArgs e) { if (!FindPart(e.PartID)) { //SendPartIDErrorSign(e.ClientID); //Trace.Write("工件标识错误"); string str = "三坐标" + CmmSvrConfig.ServerID.ToString() + ":" + "读取工件标识错误"; ClientUICommon.RefreshCmmEventLog(str); State = ClientState.CS_Error; // 设置客户端为错误状态 return; } CurPartId = e.PartID; State = ClientState.CS_PlaceCompleted; //StartMeasureWorkFlow(e.PartID); }
protected void CompletedEventInvoker(object sender, CompletedEventArgs e) { CompletedEvent?.Invoke(sender, e); }