Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
|
- 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;
- }
- }
|