コード例 #1
0
        /// <summary>
        /// 模块加载
        /// </summary>
        private void ModuleAttach()
        {
            Console.WriteLine("hehe");
            logView = new LogView("日志");


            logView.SetParent(this);
            logView.RegisterMenus(this.menuStrip1, "日志查询");
            logView.SetLogDispInterface(this);
            string[]      nodeNames = new string[] { "产品上线", "气密检查1", "气密检查2", "气密检查3", "气密检查4" };
            List <string> nodeList  = new List <string>(nodeNames);

            logView.SetNodeNames(nodeList);

            recordView = new RecordView();
            recordView.SetParent(this);
            recordView.RegisterMenus(this.menuStrip1, "记录查询与管理");
            recordView.SetLoginterface(logView.GetLogrecorder());


            //if(this.roleID <3 && this.roleID>0)
            //{
            //    configView = new ConfiManageView();
            //    configView.SetParent(this);
            //    configView.RegisterMenus(this.menuStrip1, "配置管理");
            //    configView.SetLoginterface(logView.GetLogrecorder());

            //}
            monitorView = new MonitorView("产线监控");
            monitorView.SetParent(this);
            monitorView.RegisterMenus(this.menuStrip1, "产线监控");
            monitorView.SetLoginterface(logView.GetLogrecorder());
            AttachModuleView(monitorView);
        }
コード例 #2
0
ファイル: FTRecordForm.cs プロジェクト: xdpcxq/MingMeiMES
        /// <summary>
        /// 模块加载
        /// </summary>
        private void ModuleAttach()
        {
            logView = new LogView("日志");


            logView.SetParent(this);
            logView.RegisterMenus(this.menuStrip1, "日志查询");
            logView.SetLogDispInterface(this);
            string[]      nodeNames = new string[] { "产品上线", "气密检查1", "气密检查2", "气密检查3", "气密检查4" };
            List <string> nodeList  = new List <string>(nodeNames);

            logView.SetNodeNames(nodeList);

            recordView = new RecordView();
            recordView.SetParent(this);
            recordView.RegisterMenus(this.menuStrip1, "记录查询与管理");
            recordView.SetLoginterface(logView.GetLogrecorder());


            if (this.roleID < 3 && this.roleID > 0)
            {
                configView = new ConfiManageView();
                configView.SetParent(this);
                configView.RegisterMenus(this.menuStrip1, "配置管理");
                configView.SetLoginterface(logView.GetLogrecorder());
            }
        }