diff --git a/.vs/HouseholdAccountBook/v15/.suo b/.vs/HouseholdAccountBook/v15/.suo index 2667fbe..a1095d0 100644 Binary files a/.vs/HouseholdAccountBook/v15/.suo and b/.vs/HouseholdAccountBook/v15/.suo differ diff --git a/HouseholdAccountBook/ConstValue.cs b/HouseholdAccountBook/ConstValue.cs index 0f3be72..3b97c2f 100644 --- a/HouseholdAccountBook/ConstValue.cs +++ b/HouseholdAccountBook/ConstValue.cs @@ -38,6 +38,14 @@ public enum Tabs /// 月別グラフタブ /// MonthlyGraphTab = 3, + /// + /// 年別一覧タブ + /// + YearlyListTab = 4, + /// + /// 年別グラフタブ + /// + YearlyGraphTab = 5 } /// diff --git a/HouseholdAccountBook/HouseholdAccountBook.csproj b/HouseholdAccountBook/HouseholdAccountBook.csproj index 32dc1eb..f35b466 100644 --- a/HouseholdAccountBook/HouseholdAccountBook.csproj +++ b/HouseholdAccountBook/HouseholdAccountBook.csproj @@ -60,7 +60,7 @@ - ..\packages\CsvHelper.7.1.0\lib\net45\CsvHelper.dll + ..\packages\CsvHelper.7.1.1\lib\net45\CsvHelper.dll ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll @@ -87,8 +87,8 @@ ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - ..\packages\Npgsql.3.2.7\lib\net451\Npgsql.dll + + ..\packages\Npgsql.4.0.0\lib\net451\Npgsql.dll ..\packages\OxyPlot.Core.1.0.0\lib\net45\OxyPlot.dll @@ -115,12 +115,18 @@ + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.0\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll True - - ..\packages\System.Threading.Tasks.Extensions.4.4.0\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll + + ..\packages\System.Threading.Tasks.Extensions.4.5.0\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll + + + ..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll diff --git a/HouseholdAccountBook/UpdateLog.txt b/HouseholdAccountBook/UpdateLog.txt index ed625cc..520283f 100644 --- a/HouseholdAccountBook/UpdateLog.txt +++ b/HouseholdAccountBook/UpdateLog.txt @@ -500,12 +500,15 @@ 2018/05/26 MainWindow.xaml.cs 帳簿項目の追加時に、対象の帳簿項目が重複して選択されるのを修正した +2018/06/16 + MainWindow.xaml.cs + +年別一覧、年別グラフを追加した --------------------------------------------------------------------------------------------------------------------- 凡例:+追加 -変更 ×削除 ↑バグ修正 --------------------------------------------------------------------------------------------------------------------- TODO: - 年別一覧、年別グラフを追加する + - バグ: - diff --git a/HouseholdAccountBook/ViewModels/WindowViewModel/MainWindowViewModel.cs b/HouseholdAccountBook/ViewModels/WindowViewModel/MainWindowViewModel.cs index e367576..e19c1e2 100644 --- a/HouseholdAccountBook/ViewModels/WindowViewModel/MainWindowViewModel.cs +++ b/HouseholdAccountBook/ViewModels/WindowViewModel/MainWindowViewModel.cs @@ -391,6 +391,34 @@ public ObservableCollection MonthlySummaryVMList #endregion #endregion + #region 年別一覧タブ + #region プロパティ + /// + /// 表示年リスト + /// + #region DisplayedYears + public ObservableCollection DisplayedYears + { + get { return this._DisplayedYears; } + set { SetProperty(ref this._DisplayedYears, value); } + } + private ObservableCollection _DisplayedYears = default(ObservableCollection); + #endregion + + /// + /// 年別合計項目VMリスト + /// + #region YearlySummaryVMList + public ObservableCollection YearlySummaryVMList + { + get { return this._YearlySummaryVMList; } + set { SetProperty(ref this._YearlySummaryVMList, value); } + } + private ObservableCollection _YearlySummaryVMList = default(ObservableCollection); + #endregion + #endregion + #endregion + #region グラフタブ #region プロパティ /// @@ -488,6 +516,44 @@ public PlotModel SelectedItemMonthlyGraphModel }; #endregion + /// + /// 全項目年別グラフプロットモデル + /// + #region WholeItemYearlyGraphModel + public PlotModel WholeItemYearlyGraphModel + { + get { return this._WholeItemYearlyGraphModel; } + set { SetProperty(ref this._WholeItemYearlyGraphModel, value); } + } + private PlotModel _WholeItemYearlyGraphModel = new PlotModel() { + Title = "年別グラフ", + LegendOrientation = LegendOrientation.Horizontal, + LegendPlacement = LegendPlacement.Outside, + LegendPosition = LegendPosition.RightTop, + LegendTitle = "凡例", + LegendFontSize = 10.5 + }; + #endregion + + /// + /// 選択項目年別グラフプロットモデル + /// + #region SelectedItemYearlyGraphModel + public PlotModel SelectedItemYearlyGraphModel + { + get { return this._SelectedItemYearlyGraphModel; } + set { SetProperty(ref this._SelectedItemYearlyGraphModel, value); } + } + private PlotModel _SelectedItemYearlyGraphModel = new PlotModel() { + Title = "個別グラフ", + LegendOrientation = LegendOrientation.Horizontal, + LegendPlacement = LegendPlacement.Outside, + LegendPosition = LegendPosition.RightTop, + LegendTitle = "凡例", + LegendFontSize = 10.5 + }; + #endregion + /// /// コントローラ /// diff --git a/HouseholdAccountBook/Windows/MainWindow.xaml b/HouseholdAccountBook/Windows/MainWindow.xaml index dc54e0c..d37e48c 100644 --- a/HouseholdAccountBook/Windows/MainWindow.xaml +++ b/HouseholdAccountBook/Windows/MainWindow.xaml @@ -37,6 +37,8 @@ + + @@ -110,6 +112,8 @@ + + @@ -204,6 +208,12 @@ + + + + + + @@ -221,7 +231,7 @@ SelectedIndex="{Binding SelectedTabIndex}" SelectionChanged="TabControl_SelectionChanged"> @@ -542,6 +552,118 @@ + + + + + + + + + + + + + +