• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

EveryDB2のデータベースを読み込んでWinFormでGUI表示するサンプル


Commit MetaInfo

Revision6c2a4b618f1560088ca4e08e8c95ccff79d1606e (tree)
Zeit2021-05-29 18:41:06
Autoryoshy <yoshy@user...>
Commiteryoshy

Log Message

temp_20210529_1840

Ändern Zusammenfassung

Diff

--- a/App/Adaptor/Gateway/ViewModel/Dto/UmaRaceRowDto.cs
+++ b/App/Adaptor/Gateway/ViewModel/Dto/UmaRaceRowDto.cs
@@ -19,6 +19,8 @@ namespace UmaTest.App.Adaptor.Gateway.ViewModel.Dto
1919 BeanHelper.Copy(this, umaRace);
2020 }
2121
22+ public string YearMonthDay { get => Year + "/" + Monthday.Substring(0, 2) + "/" + Monthday.Substring(2, 2); }
23+
2224 public string RaceName => !String.IsNullOrEmpty(Race.Hondai)
2325 ? Race.Hondai
2426 : CodeHelper.GetInstance().GetName(CodeHelper.JYOKEN_CODE1, Race.Jyokencd1, "不明");
--- a/App/Adaptor/Gateway/ViewModel/Dto/UmaSummaryRowDto.cs
+++ b/App/Adaptor/Gateway/ViewModel/Dto/UmaSummaryRowDto.cs
@@ -18,13 +18,18 @@ namespace UmaTest.App.Adaptor.Gateway.ViewModel.Dto
1818 public UmaSummaryRowDto(NUma uma)
1919 {
2020 BeanHelper.Copy(this, uma);
21+ Wakuban = "仮";
2122 }
2223
2324 public UmaSummaryRowDto(NToku uma)
2425 {
2526 BeanHelper.Copy(this, uma);
27+ Wakuban = "仮";
2628 }
2729
30+ public string Wakuban { get; set; }
31+ public string Umaban { get; set; }
32+
2833 public string SexAge
2934 {
3035 get
--- a/App/Adaptor/Presenter/AsyncLoadManualUmaListPresenter.cs
+++ b/App/Adaptor/Presenter/AsyncLoadManualUmaListPresenter.cs
@@ -41,6 +41,9 @@ namespace UmaTest.App.Gateway.Presenter
4141
4242 List<string> kettoNums = res.KettoNums;
4343
44+ int umaban = 0;
45+ string oldBamei = String.Empty; ;
46+
4447 foreach (string kettoNum in kettoNums)
4548 {
4649 Logger.Info($"血統登録番号: {kettoNum}");
@@ -55,8 +58,16 @@ namespace UmaTest.App.Gateway.Presenter
5558
5659 statusBar.SetStatusText($"血統登録番号: {kettoNum}, 馬名: {uma.Bamei} の情報をレンダリング中です...");
5760
61+ if (oldBamei != uma.Bamei)
62+ {
63+ umaban++;
64+ oldBamei = uma.Bamei;
65+ }
66+
5867 summaryDto = new UmaSummaryRowDto(uma);
5968
69+ summaryDto.Umaban = umaban.ToString("00");
70+
6071 foreach (ChakudosuuSummary chakudosuu in res.Summaries[kettoNum])
6172 {
6273 if (chakudosuu.Chakudosuu == "0.0.0.0")
--- a/App/Domain/Model/Repository/Database/Dto/NUmaRaceWithNRace.cs
+++ b/App/Domain/Model/Repository/Database/Dto/NUmaRaceWithNRace.cs
@@ -22,9 +22,6 @@ namespace UmaTest.App.Domain.Model.Repository.Database.Dto
2222 }
2323
2424 [Ignore]
25- public string YearMonthDay { get => Year + "/" + Monthday.Substring(0,2) + "/" + Monthday.Substring(2,2); }
26-
27- [Ignore]
2825 public NRace Race { get; set; }
2926 }
3027 }
--- a/App/Domain/UseCase/Interactor/AsyncLoadManualUmaListInteractor.cs
+++ b/App/Domain/UseCase/Interactor/AsyncLoadManualUmaListInteractor.cs
@@ -48,7 +48,20 @@ namespace UmaTest.App.Domain.UseCase.Interactor
4848
4949 Dictionary<string, NUma> horses = await logicUma.LoadHorsesByBameiListAsync(req.HorseList);
5050
51- List<string> kettoNums = horses.Select(h => h.Value.Kettonum).OrderBy(k => k).ToList();
51+ List<string> kettoNums = new List<string>();
52+
53+ foreach (string bamei in bameiList)
54+ {
55+ foreach (NUma uma in horses.Values)
56+ {
57+ if (uma.Bamei == bamei)
58+ {
59+ kettoNums.Add(uma.Kettonum);
60+ }
61+ }
62+ }
63+
64+ // List<string> kettoNums = horses.Select(h => h.Value.Kettonum).OrderBy(k => k).ToList();
5265
5366 statusBarProxy.SetStatusText("馬に紐付くレース情報を読み込んでいます...");
5467
--- a/App/Presentation/View/MainWindow.cs
+++ b/App/Presentation/View/MainWindow.cs
@@ -72,6 +72,16 @@ namespace UmaTest.App.Presentation.View
7272 {
7373 new DataGridViewTextBoxColumn
7474 {
75+ DataPropertyName = "Wakuban",
76+ Name = "枠番",
77+ },
78+ new DataGridViewTextBoxColumn
79+ {
80+ DataPropertyName = "Umaban",
81+ Name = "馬番",
82+ },
83+ new DataGridViewTextBoxColumn
84+ {
7585 DataPropertyName = "Bamei",
7686 Name = "馬名",
7787 },