コード例 #1
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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();
        }
コード例 #2
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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();
        }
コード例 #3
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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();
        }
コード例 #4
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
 private void GotoToolExportGlassIDsView(CmdEventParam param)
 {
     List<StockDetail> lst = param.Entity as List<StockDetail>;
     Views.ToolView.ExportGlassIDs view = new Views.ToolView.ExportGlassIDs(lst);
     view.ShowDialog();
 }
コード例 #5
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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();
        }
コード例 #6
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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生产管理系统[入库管理(无对比)]";
        }
コード例 #7
0
ファイル: Sell.xaml.cs プロジェクト: shew990/github
        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();
        }