Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using BPA.Helper;
- using System.Collections.Concurrent;
- using System.Collections.ObjectModel;
- using System.Windows;
- using BPA.Helper;
-
- using BPASmartClient.JXJFoodSmallStation.Model;
- using BPASmartClient.JXJFoodSmallStation.View;
- using BPASmartClient.CustomResource.UserControls;
- using BPASmartClient.CustomResource.UserControls.Model;
- using BPASmartClient.CustomResource.UserControls.Enum;
- using System.Windows.Media;
- using BPASmartClient.CustomResource.UserControls.MessageShow;
- using BPASmartClient.CustomResource.Pages.Model;
- using BPASmartClient.JXJFoodSmallStation.Model.Siemens;
- using BPASmartClient.JXJFoodSmallStation.Model.GVL;
-
- namespace BPASmartClient.JXJFoodSmallStation.ViewModel
- {
- public class SiemensRecipeReceiveViewModel : NotifyBase
- {
- //ObservableCollection<RemoteRecipeRawMaterial> RawMaterials { get; set; } = new ObservableCollection<RemoteRecipeRawMaterial>();
- public SiemensRecipeReceiveViewModel()
- {
- RemoteRecipes = Json<RemoteRecipeDataColl>.Data.RemoteRecipes;
- DetailsCommand = new BPARelayCommand<object>((o) =>
- {
- if (o != null && o is string cnt)
- {
- ActionManage.GetInstance.Send("CloseRecipeInfosView");
- RecipeInfosView nrv = new RecipeInfosView();
-
- var res = Json<RemoteRecipeDataColl>.Data.RemoteRecipes.FirstOrDefault(p => p.RecipeCode == cnt);
- if (res != null)
- {
- ActionManage.GetInstance.Send("RecipeInfo", res);
- nrv.Show();
- MessageNotify.GetInstance.ShowUserLog($"查看配方——{res.RecipeName}");
- }
- }
- });
- ClearAllRecipe = new BPARelayCommand(() =>
- {
- if (MessageNotify.GetInstance.ShowDialog($"请确认,是否删除所有配方订单?"))
- {
- Json<RemoteRecipeDataColl>.Data.RemoteRecipes.Clear();
- MessageNotify.GetInstance.ShowUserLog($"手动清除所有配方。");
- }
- });
- }
- public BPARelayCommand<object> DetailsCommand { get; set; }
- public BPARelayCommand ClearAllRecipe { get; set; }
- public ObservableCollection<RecipeData> RemoteRecipes { get; set; }
- }
- }
|