Ejemplo n.º 1
0
        private void AddCommand()
        {
            string            controlName1 = "EPM01";
            string            controlName2 = "INDEXER01";
            CControlComponent componet1    = _main.GetComponent(controlName1);
            CControlComponent componet2    = _main.GetComponent(controlName2);

            ACommand     command = null;
            ObjectHandle oh      = null;

            oh      = Activator.CreateInstanceFrom("YANGSYS.Biz.WHTM.dll", "YANGSYS.Biz.CommandHandler.CMenuGroupCommand");
            command = oh.Unwrap() as ACommand;
            command.AddArgs(new object[] { _main, componet1 }, false);
            command.Init(); CUIManager.Inst.AddCommand(command);
            oh      = Activator.CreateInstanceFrom("YANGSYS.Biz.WHTM.dll", "YANGSYS.Biz.CommandHandler.CShutdownCommand");
            command = oh.Unwrap() as ACommand;
            command.AddArgs(new object[] { _main, componet1 }, false);
            command.Init(); CUIManager.Inst.AddCommand(command);
            oh      = Activator.CreateInstanceFrom("YANGSYS.Biz.WHTM.dll", "YANGSYS.Biz.CommandHandler.CTitleGroupCommand");
            command = oh.Unwrap() as ACommand;
            command.AddArgs(new object[] { _main, componet1 }, false);
            command.Init(); CUIManager.Inst.AddCommand(command);
            oh      = Activator.CreateInstanceFrom("YANGSYS.Biz.WHTM.dll", "YANGSYS.Biz.CommandHandler.CRequestGroupCommand");
            command = oh.Unwrap() as ACommand;
            command.AddArgs(new object[] { _main, componet1 }, false);
            command.Init(); CUIManager.Inst.AddCommand(command);
        }
Ejemplo n.º 2
0
        private void AddProgram()
        {
            string            controlName1 = "EPM01";
            string            controlName2 = "INDEXER01";
            CControlComponent componet1    = _main.GetComponent(controlName1);
            CControlComponent componet2    = _main.GetComponent(controlName2);

            List <string> typeNames = new List <string>(); //설정 파일로 빠질 예정

            typeNames.Add("YANGSYS.Biz.Programs.AlarmResetStatusReport");
            typeNames.Add("YANGSYS.Biz.Programs.AlarmSetStatusReport");
            typeNames.Add("YANGSYS.Biz.Programs.CIMConnectionModeNotification");
            typeNames.Add("YANGSYS.Biz.Programs.DateTImeSetCommand");
            typeNames.Add("YANGSYS.Biz.Programs.EqpStatusReport");
            typeNames.Add("YANGSYS.Biz.Programs.EquipmentAutoModeNotification");
            typeNames.Add("YANGSYS.Biz.Programs.EquipmentModeChangeCommand");
            typeNames.Add("YANGSYS.Biz.Programs.EquipmentModeChangeReport");
            typeNames.Add("YANGSYS.Biz.Programs.LDBuzzONCommand");
            typeNames.Add("YANGSYS.Biz.Programs.OperatorCallCommand");
            typeNames.Add("YANGSYS.Biz.Programs.PPIDRecipeMapChangeCommand");
            typeNames.Add("YANGSYS.Biz.Programs.PPIDRecipeMapReport");
            typeNames.Add("YANGSYS.Biz.Programs.PPIDRecipeMapRequestCommand");
            typeNames.Add("YANGSYS.Biz.Programs.RecipeRequestCommand");
            typeNames.Add("YANGSYS.Biz.Programs.TerminalTextCommand");
            typeNames.Add("YANGSYS.Biz.Programs.CycleProgram_WHTM");
            typeNames.Add("YANGSYS.Biz.Programs.RecipeChangeAuthorizarion");
            typeNames.Add("YANGSYS.Biz.Programs.RecipeChangeReport");
            typeNames.Add("YANGSYS.Biz.Programs.CurrentPPIDRecipeIdReport");
            typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType2_WHTM");
            typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType11_WHTM");
            typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType6_WHTM");
            typeNames.Add("YANGSYS.Biz.Programs.ForwardReceivedJobReport");
            typeNames.Add("YANGSYS.Biz.Programs.ForwardSentOutJobReport");
            typeNames.Add("YANGSYS.Biz.Programs.GlassDataRequest_WHTM");
            typeNames.Add("YANGSYS.Biz.Programs.ProcessDataReport");
            typeNames.Add("YANGSYS.Biz.Programs.RemovedJobReport");
            typeNames.Add("YANGSYS.Biz.Programs.VCRJobDataReport");
            //typeNames.Add("YANGSYS.Biz.Programs.VCRStatusReport");
            typeNames.Add("YANGSYS.Biz.Programs.JobJudgeChange");
            typeNames.Add("YANGSYS.Biz.Programs.TrackingJobReport");
            //typeNames.Add("YANGSYS.Biz.Programs.CIMMessageClearCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.CIMMessageConfirmReport");
            //typeNames.Add("YANGSYS.Biz.Programs.CIMMessageSetCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.CIMModeChangeCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType1");
            //typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType10");
            //typeNames.Add("YANGSYS.Biz.Programs.CLinkSignalType5");
            //typeNames.Add("YANGSYS.Biz.Programs.CVDataReport");
            //typeNames.Add("YANGSYS.Biz.Programs.CVReportTimeChangeCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.CycleProgram");
            //typeNames.Add("YANGSYS.Biz.Programs.DataInformationReportbyLocation");
            //typeNames.Add("YANGSYS.Biz.Programs.DVDataReport");
            //typeNames.Add("YANGSYS.Biz.Programs.GlassDataChangeReport");
            //typeNames.Add("YANGSYS.Biz.Programs.GlassDataHandler");
            //typeNames.Add("YANGSYS.Biz.Programs.GlassDataRequest");
            //typeNames.Add("YANGSYS.Biz.Programs.AlarmSetEvent");
            //typeNames.Add("YANGSYS.Biz.Programs.AlarmResetEvent");
            //typeNames.Add("YANGSYS.Biz.Programs.LoadingStopRelease");
            //typeNames.Add("YANGSYS.Biz.Programs.LoadingStopRequest");
            typeNames.Add("YANGSYS.Biz.Programs.MachineHeartbeatSignal");
            //typeNames.Add("YANGSYS.Biz.Programs.MachineModeChangeCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.MachineStatusReport");
            //typeNames.Add("YANGSYS.Biz.Programs.MachineTimeSetCommand");
            //typeNames.Add("YANGSYS.Biz.Programs.ProcessEndReport");
            //typeNames.Add("YANGSYS.Biz.Programs.ProcessStartReport");
            //typeNames.Add("YANGSYS.Biz.Programs.ReceivedJobReport");
            //typeNames.Add("YANGSYS.Biz.Programs.RecipeParameterDataDownloadRequest");
            //typeNames.Add("YANGSYS.Biz.Programs.RecipeParameterDataRequest");
            //typeNames.Add("YANGSYS.Biz.Programs.ScrapJobReport");
            //typeNames.Add("YANGSYS.Biz.Programs.SentOutJobReport");
            //typeNames.Add("YANGSYS.Biz.Programs.StatusVariableDataReport");
            //typeNames.Add("YANGSYS.Biz.Programs.VCREnableModeChangeReport");
            typeNames.Add("YANGSYS.Biz.Programs.YANGSYSMessageHandler");
            //typeNames.Add("YANGSYS.Biz.Programs.StoredJobReport");
            //typeNames.Add("YANGSYS.Biz.Programs.FetchedOutJobReport");
            typeNames.Add("YANGSYS.Biz.Programs.SV_DataReport");

            foreach (string item in typeNames)
            {
                CProgramManager.Inst.AddProgram("YANGSYS.Biz.WHTM.dll", item, new object[] { _main, componet1, componet2 }, false);
            }
        }