/// <summary>
 /// 构造函数
 /// </summary>
 public MaterialStorageLogInfoViewModel()
 {
     initCommand();
     registerMessenger();
     getPageData(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     //
     //右键快捷菜单
     MenuItems = new List <MenuItem>()
     {
         //new MenuItem (){Icon =BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Edit_32x32.png") ,Header=ResourceHelper.FindResource ("Edit"),Command =EditCommand},
         //new MenuItem (){Icon =BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Refresh_32x32.png"), Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
         },
         //new MenuItem (){Icon =BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Export_32x32.png"), Header = ResourceHelper.FindResource("Export"), Command = ExportCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Print_32x32.png"), Header = ResourceHelper.FindResource("Print"), Command = PrintCommand
         },
     };
 }
 public PlanOrderItemInfoViewModel()
 {
     //this.MenuModule
     initCommand();
     registerMessenger();
     getPageData(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
     MenuItems = new List <MenuItem>()
     {
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Refresh_32x32.png"), Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Export_32x32.png"), Header = ResourceHelper.FindResource("Export"), Command = ExportCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Print_32x32.png"), Header = ResourceHelper.FindResource("Print"), Command = PrintCommand
         },
     };
 }
Beispiel #3
0
 public DisTaskDispatchItemInfoViewModel()
 {
     //this.MenuModule
     initCommand();
     registerMessenger();
     MenuItems = new List <MenuItem>()
     {
         //new MenuItem (){Icon =BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Edit_32x32.png") ,Header=ResourceHelper.FindResource ("Edit"),Command =EditCommand},
         //new MenuItem (){Icon =BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Refresh_32x32.png"), Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Export_32x32.png"), Header = ResourceHelper.FindResource("Export"), Command = ExportCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Print_32x32.png"), Header = ResourceHelper.FindResource("Print"), Command = PrintCommand
         },
     };
 }
        /// <summary>
        /// 构造函数
        /// </summary>
        public TreeMenuViewModel()
        {
            NavigateCommand = new DelegateCommand <TreeViewItem>(Navigate);
            RefreshCommand  = new DelegateCommand(() => initMenuItems());
            initMenuItems();

            //右键快捷菜单
            ContextMenus = new List <MenuItem>()
            {
                new MenuItem()
                {
                    Icon   = BitmapImageHelper.GetImage(@"pack://application:,,,/Desktop.Resource;component/Images/Refresh_32.png"),
                    Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
                },
            };
        }
Beispiel #5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatWareHousAreaLocationInfoViewModel()
 {
     initCommand();
     registerMessenger();
     //
     //右键快捷菜单
     MenuItems = new List <MenuItem>()
     {
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Refresh_32x32.png"), Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
         },
     };
     //
     getMatWareHousAreaLocationType();
     getPageDataMatWareHouse(1, int.Parse(Utility.ConfigHelper.GetAppSetting("PageSize")));
 }
Beispiel #6
0
 public PlanProductionScheduleExecutInfoViewModel()
 {
     //this.MenuModule
     initCommand();
     registerMessenger();
     MenuItems = new List <MenuItem>()
     {
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Report_32x32.png"), Header = ResourceHelper.FindResource("WorkOrderChecking"), Command = WorkOrderCheckingCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Settings3_32x32.png"), Header = ResourceHelper.FindResource("PlanCarryManagement"), Command = PlanCarryCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Import_32x32.png"), Header = ResourceHelper.FindResource("Import"), Command = ImportCommand
         },
         new MenuItem()
         {
             Icon = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Solution.Desktop.Resource;component/Images/Print_32x32.png"), Header = ResourceHelper.FindResource("Print"), Command = PrintCommand
         },
     };
 }
        private void initMenus()
        {
            double width  = 16;
            double height = 16;

            var add = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Desktop.Resource;component/Images/Edit_32.png");

            edit.Width  = width;
            edit.Height = height;
            MenuItems.Add(new MenuItem()
            {
                Icon = edit, Header = ResourceHelper.FindResource("Edit"), Command = EditCommand
            });

            var delete = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Desktop.Resource;component/Images/Refresh_32.png");

            refresh.Width  = width;
            refresh.Height = height;
            MenuItems.Add(new MenuItem()
            {
                Icon = refresh, Header = ResourceHelper.FindResource("Refresh"), Command = RefreshCommand
            });

            var import = BitmapImageHelper.GetImage(@"pack://*****:*****@"pack://application:,,,/Desktop.Resource;component/Images/Export_32.png");

            export.Width  = width;
            export.Height = height;
            MenuItems.Add(new MenuItem()
            {
                Icon = export, Header = ResourceHelper.FindResource("Export"), Command = ExportCommand
            });

            var print = BitmapImageHelper.GetImage(@"pack://application:,,,/Desktop.Resource;component/Images/Print_32.png");

            print.Width  = width;
            print.Height = height;
            MenuItems.Add(new MenuItem()
            {
                Icon = print, Header = ResourceHelper.FindResource("Print"), Command = PrintCommand
            });
        }