using System; using System.Collections.Generic; using System.Linq; using System.Text; using MesServerWork; using bizFacade; using System.Data; //using SystemFramework; namespace MesServerFunctions { partial class Functions_BASE_06 { /// /// 工件到位与离开时,清空MES自身信号 /// /// /// private void WorkStart(object e) { try { DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e; string OpName = Convert.ToString(msgEvent.OpName); int tagValue = Convert.ToInt32(msgEvent.TagValue); if (tagValue == 0) { } else { BaseDataSystemMES.MesServer_Process_EngineTypeOver(OpName); //通知web显示 Sendmessage("2", "1", OpName); AsyncSendMessage_Notice(OpName, "请扫描物料!"); } } catch(Exception err) { ////ApplicationLog.WriteLog(err, "Function06:WorkStart"); } } } }