/// <summary> /// 模块加载 /// </summary> private void ModuleAttach() { logView = new LogView("日志"); logView.SetParent(this); logView.RegisterMenus(this.menuStrip1, "日志查询"); logView.SetLogDispInterface(this); recordView = new RecordView(); recordView.SetParent(this); recordView.RegisterMenus(this.menuStrip1, "记录查询与管理"); recordView.SetLoginterface(logView.GetLogrecorder()); storageView = new StorageMainView(); storageView.SetParent(this); storageView.RegisterMenus(this.menuStrip1, "库存管理"); storageView.SetLoginterface(logView.GetLogrecorder()); AsrsInterface.IAsrsManageToCtl asrsResManage = null; // AsrsInterface.IAsrsCtlToManage asrsCtl = asrsCtlView.GetPresenter(); string reStr = ""; if (!storageView.Init(asrsCtlSvc, ref asrsResManage, ref reStr)) { logView.GetLogrecorder().AddLog(new LogModel("主模块", "立库管理层模块初始化错误," + reStr, EnumLoglevel.错误)); } // asrsCtlView.SetAsrsResManage(asrsResManage); List <string> logSrcList = new List <string>(); //List<string> logSrcs = asrsCtlView.GetLogsrcList(); //if(logSrcs != null) //{ // logSrcList.AddRange(logSrcs); //} List <string> logSrcs = storageView.GetLogsrcList(); if (logSrcs != null) { logSrcList.AddRange(logSrcs); } logView.SetLogsrcList(logSrcList); Form frontForm = storageView.GetViewByCaptionTxt("货位看板"); if (frontForm != null) { AttachModuleView(frontForm); } }
public void SetAsrsResManage(AsrsInterface.IAsrsManageToCtl asrsRes) { asrsPresenter.SetAsrsResManage(asrsRes); prsNodeManager.SetAsrsResManage(asrsRes); this.asrsResManage = asrsRes; }