private void GotoToolScanGlassID_StockInView(CmdEventParam param) { // Views.ToolScanGlassID_StockIn view = new Views.ToolScanGlassID_StockIn(); if (ToolScanGlassID_StockIn == null) ToolScanGlassID_StockIn = new Views.ToolScanGlassID_StockIn(); eventAggregator.GetEvent<CmdEvent>().Publish(new CmdEventParam() { cmdName = param.cmdName, Entity = param.Entity, Target = "ToolScanGlassID_StockInViewModel", SourceTarget = param.SourceTarget, }); // Views.ToolScanGlassID_JianBao view = new Views.ToolScanGlassID_JianBao(); ToolScanGlassID_StockIn.ShowDialog(); }
private void GotoToolScanGlassID_StockOutView(CmdEventParam param) { // Views.ToolScanGlassID_StockOut view = new Views.ToolScanGlassID_StockOut(); if (ToolScanGlassID_StockOut == null) ToolScanGlassID_StockOut = new Views.ToolScanGlassID_StockOut(); eventAggregator.GetEvent<CmdEvent>().Publish(new CmdEventParam() { Entity = param.Entity, cmdName = param.cmdName, Tag = param.Tag, Target = "ToolScanGlassID_StockOutViewModel", SourceTarget = param.SourceTarget, }); ToolScanGlassID_StockOut.ShowDialog(); }
private void GotoToolReplaceGlassID(CmdEventParam param) { if (ToolReplaceGlassID == null) ToolReplaceGlassID = new Views.ToolReplaceGlassID(); eventAggregator.GetEvent<CmdEvent>().Publish(new CmdEventParam() { Entity = param.Entity, cmdName = param.cmdName, Tag = param.Tag, Target = "ToolReplaceGlassIDView", SourceTarget = param.SourceTarget, }); ToolReplaceGlassID.ShowDialog(); }
private void GotoToolExportGlassIDsView(CmdEventParam param) { List<StockDetail> lst = param.Entity as List<StockDetail>; Views.ToolView.ExportGlassIDs view = new Views.ToolView.ExportGlassIDs(lst); view.ShowDialog(); }
private void GotoToolEnterNoToPrintView(CmdEventParam param) { if (ToolEnterNoToPrint == null) ToolEnterNoToPrint = new Views.ToolEnterNoToPrint(); eventAggregator.GetEvent<CmdEvent>().Publish(new CmdEventParam() { Entity = param.Entity, cmdName = param.cmdName, Tag = param.Tag, IsQiangDa = param.IsQiangDa, Target = "ToolEnterNoToPrintViewModel", Entity1=param.Entity1, SourceTarget = param.SourceTarget, }); ToolEnterNoToPrint.ShowDialog(); }
private void GotoStockInMainView(CmdEventParam param) { if (StockInMainView == null) StockInMainView = new Lazy<Views.StockInMainView>(); this.ContentMain.Content = StockInMainView.Value; bool bCondition = (bool)param.Entity; if (bCondition) this.Title = "SINO生产管理系统[入库管理]"; else this.Title = "SINO生产管理系统[入库管理(无对比)]"; }
private void GotoAgainEnterNoPrint(CmdEventParam param) { if (AgainEnterNoPrint == null) AgainEnterNoPrint = new Views.AgainEnterNoPrint(); eventAggregator.GetEvent<CmdEvent>().Publish(new CmdEventParam() { Entity = param.Entity, cmdName = param.cmdName, Tag = param.Tag, Target = "AgainEnterNoPrint", SourceTarget = param.SourceTarget, Entity1=param.Entity1, }); AgainEnterNoPrint.ShowDialog(); }