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 System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.Academy.ViewModel
- {
- internal class HistoryChartViewModel : NotifyBase
- {
- public HistoryChartViewModel()
- {
-
- Sqlite.GetInstance.FindDateList(DateTime.Now);
- Select = new BPARelayCommand(() =>
- {
- Sqlite.GetInstance.FindDateList(SelectTime);
- //HistorySqlite.GetInstance.DateString = SelectTime.ToString("yyyy-MM-dd");
- //HistorySqlite.GetInstance.FindDateList();
- });
-
- FindProductCommand = new BPARelayCommand(() =>
- {
- Sqlite.GetInstance.FindName(ProductNum);
- });
- }
-
- public ObservableCollection<RecipeChart> RecipeCharts { get; set; } = Sqlite.GetInstance.recipeCharts;
-
- private DateTime _selectTime = DateTime.Now;
-
- public DateTime SelectTime
- {
- get { return _selectTime; }
- set { _selectTime = value; OnPropertyChanged(); }
- }
-
-
- public string ProductNum { get { return _mProductNum; } set { _mProductNum = value; OnPropertyChanged(); } }
- private string _mProductNum;
-
-
- public BPARelayCommand Select { get; set; }
-
- public BPARelayCommand FindProductCommand { get; set; }
- }
- public class RecipeChart : NotifyBase
- {
- public int Num { get { return _mNum; } set { _mNum = value; OnPropertyChanged(); } }
- private int _mNum;
-
- public string Name { get { return _mName; } set { _mName = value; OnPropertyChanged(); } }
- private string _mName;
-
- public DateTime CreateTime { get { return _mCreateTime; } set { _mCreateTime = value; OnPropertyChanged(); } }
- private DateTime _mCreateTime;
-
- public string Id { get { return _id; } set { _id = value; OnPropertyChanged(); } }
- private string _id;
- }
- }
|