Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- using BPASmartClient.MorkMOC;
- //using CommunityToolkit.Mvvm.Input;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
-
- namespace BPASmartClient.MilkWithTea.ViewModel
- {
- partial class LocalConfigureViewModel : NotifyBase
- {
- #region 本地奶茶配方
- /// <summary>
- /// 本地奶茶配方列表
- /// </summary>
- public ObservableCollection<LocalRecipe> localMaterialRecipes { get; set; } = Json<JsonLocalRecipes>.Data.localRecipes;
-
-
- /// <summary>
- /// 删除配方奶茶
- /// </summary>
- //[BPARelayCommand]
- private void DeleteRecipe(object o)
- {
- if (o == null) return;
- if (o is string id)
- {
- var res = localMaterialRecipes.FirstOrDefault(p => p.RecipeID == id);
- if (res != null)
- {
- localMaterialRecipes.Remove(res);
- Json<JsonLocalRecipes>.Save();
- }
-
-
- }
- }
-
- #endregion
-
- #region 物料位置名称
- /// <summary>
- /// 物料位置名称集合
- /// </summary>
- public ObservableCollection<LocalMaterail> localMaterails { get; set; } = Json<JsonLocalRecipes>.Data.localMaterails;
-
- /// <summary>
- /// 更新物料位置
- /// </summary>
- //[BPARelayCommand]
- private void UpdateMaterialPosion()
- {
- Json<JsonLocalRecipes>.Save();
- }
- #endregion
-
- public LocalConfigureViewModel()
- {
-
-
- }
-
-
-
-
- }
- }
|