Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.TVP.CBA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.TVP.CBA
Commits
d2efe884
Commit
d2efe884
authored
Feb 14, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
9d162553
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1847 additions
and
734 deletions
+1847
-734
VIZ.MIGU.CBA.Module/Common/Utils.cs
+776
-309
VIZ.MIGU.CBA.Module/PlayerCompare/ViewModel/NewPlayerComPareViewModel.cs
+609
-231
VIZ.MIGU.CBA.Module/SinglePlayer/ViewModel/NewSinglePlayerViewModel.cs
+442
-174
VIZ.MIGU.CBA.Module/TeamStats/ViewModel/NewTeamStatsViewModel.cs
+20
-20
No files found.
VIZ.MIGU.CBA.Module/Common/Utils.cs
View file @
d2efe884
...
@@ -337,7 +337,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -337,7 +337,7 @@ namespace VIZ.TVP.CBA.Module
/// </summary>
/// </summary>
/// <param name="teamStatsViewModel"></param>
/// <param name="teamStatsViewModel"></param>
public
static
void
NewSetHData
(
NewTeamStatsViewModel
teamStatsViewModel
)
public
static
void
NewSetHData
(
NewTeamStatsViewModel
teamStatsViewModel
,
int
index
)
{
{
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
!=
null
)
...
@@ -345,503 +345,970 @@ namespace VIZ.TVP.CBA.Module
...
@@ -345,503 +345,970 @@ namespace VIZ.TVP.CBA.Module
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
}
}
//第一项
if
(
index
==
1
)
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
HomeScore
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
HomeScore
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
//第一项
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
teamStatsViewModel
.
HomeScore
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
}
{
else
teamStatsViewModel
.
HSeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
{
}
teamStatsViewModel
.
HomeScore
=
"0"
;
else
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
HSeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
HSeasonScore
=
"0"
;
}
}
}
}
}
}
}
else
if
(
index
==
2
)
{
//第二项
//第二项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
HomeScore1
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
HomeScore1
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HomeScore1
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
HSeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
HSeasonScore1
=
"0"
;
}
}
}
}
}
else
else
if
(
index
==
3
)
{
{
teamStatsViewModel
.
HomeScore1
=
"0"
;
//第三项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
HomeScore2
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
HomeScore2
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
HSeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
HSeasonScore2
=
"0"
;
}
}
}
}
}
if
(
teamStatsViewModel
!=
null
)
else
if
(
index
==
4
)
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
//第四项
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
teamStatsViewModel
.
HomeScore3
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
}
else
{
teamStatsViewModel
.
HomeScore3
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
HSeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
HSeasonScore3
=
"0"
;
}
}
}
else
}
}
else
if
(
index
==
5
)
{
//第五项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
HomeScore4
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
HomeScore4
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore1
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
HSeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
HSeasonScore4
=
"0"
;
}
}
}
}
}
}
}
else
if
(
index
==
6
)
{
//第六项
//第三项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
HomeScore5
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
HomeScore5
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
HSeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
HSeasonScore5
=
"0"
;
}
}
}
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
HomeScore2
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
}
}
else
else
if
(
index
==
7
)
{
{
teamStatsViewModel
.
HomeScore2
=
"0"
;
//第七项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
HomeScore6
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
HomeScore6
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
HSeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
HSeasonScore6
=
"0"
;
}
}
}
}
}
if
(
teamStatsViewModel
!=
null
)
else
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
//第一项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
teamStatsViewModel
.
HomeScore
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
}
else
{
teamStatsViewModel
.
HomeScore
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
HSeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
HSeasonScore
=
"0"
;
}
}
}
else
}
//第二项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
HomeScore1
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
HomeScore1
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore2
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
HSeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
HSeasonScore1
=
"0"
;
}
}
}
}
}
}
//第四
项
//第三
项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
HomeScore3
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
HomeScore3
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
teamStatsViewModel
.
HomeScore2
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
}
else
{
teamStatsViewModel
.
HomeScore2
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
HSeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
HSeasonScore2
=
"0"
;
}
}
}
else
}
//第四项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
HomeScore3
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
HomeScore3
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore3
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
HSeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
HSeasonScore3
=
"0"
;
}
}
}
}
}
}
//第五项
//第五项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
{
teamStatsViewModel
.
HomeScore4
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
teamStatsViewModel
.
HomeScore4
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
}
}
else
else
{
{
teamStatsViewModel
.
HomeScore4
=
"0"
;
teamStatsViewModel
.
HomeScore4
=
"0"
;
}
}
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
!=
null
)
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
HSeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
HSeasonScore4
=
"0"
;
}
}
}
//第六项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
teamStatsViewModel
.
HomeScore5
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
}
else
{
teamStatsViewModel
.
HomeScore5
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
HSeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
HSeasonScore5
=
"0"
;
}
}
}
else
}
//第七项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
HomeScore6
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
HomeScore6
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
{
{
teamStatsViewModel
.
HSeasonScore4
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
HSeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
HSeasonScore6
=
"0"
;
}
}
}
}
}
}
}
}
//第六项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
/// <summary>
teamStatsViewModel
.
HomeScore5
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
/// 设置客队数据
}
/// </summary>
else
/// <param name="mainViewModel"></param>
/// <param name="teamStatsViewModel"></param>
public
static
void
SetAData
(
TeamStatsViewModel
teamStatsViewModel
)
{
foreach
(
var
teamStats
in
teamStatsViewModel
.
MatchStatsNumbers
)
{
{
teamStatsViewModel
.
HomeScore5
=
"0"
;
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStats
.
TechStatsName
.
ToString
()))
{
teamStats
.
AwayScore
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStats
.
TechStatsName
.
ToString
()];
}
else
{
teamStats
.
AwayScore
=
"0"
;
}
}
}
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
!=
null
)
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
//var singlePlayerData = mainViewModel.PlayerSeasonData.PlayerstatsList.Where(a => a.CNAlias == vm.SelectPlayer).FirstOrDefault()
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
foreach
(
var
teamStats
in
teamStatsViewModel
.
MatchStatsNumbers
)
{
teamStatsViewModel
.
HSeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
{
teamStatsViewModel
.
HSeasonScore5
=
"0"
;
if
(
teamSeasonData
.
ContainsKey
(
teamStats
.
TechStatsName
.
ToString
()))
{
teamStats
.
ASeasonScore
=
teamSeasonData
[
teamStats
.
TechStatsName
.
ToString
()];
}
else
{
teamStats
.
ASeasonScore
=
"0"
;
}
}
}
}
}
}
}
}
//第七项
if
(
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
/// <summary>
/// 设置新的主队信息
/// </summary>
/// <param name="teamStatsViewModel"></param>
public
static
void
NewSetAData
(
NewTeamStatsViewModel
teamStatsViewModel
,
int
index
)
{
if
(
teamStatsViewModel
!=
null
)
{
{
teamStatsViewModel
.
HomeScore6
=
teamStatsViewModel
.
HomeTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
]
;
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
}
}
else
if
(
index
==
1
)
{
{
teamStatsViewModel
.
HomeScore6
=
"0"
;
//第一项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
AwayScore
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
AwayScore
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
ASeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
ASeasonScore
=
"0"
;
}
}
}
}
}
if
(
teamStatsViewModel
!=
null
)
else
if
(
index
==
2
)
{
{
if
(
teamStatsViewModel
.
HomeTeam
==
null
)
return
;
//第二项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
AwayScore1
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
AwayScore1
=
"0"
;
}
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
HomeTeam
)
)
if
(
teamStatsViewModel
!=
null
)
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
HomeTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
teamStatsViewModel
.
HSeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
ASeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
ASeasonScore1
=
"0"
;
}
}
}
else
}
}
else
if
(
index
==
3
)
{
//第三项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
AwayScore2
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
AwayScore2
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
teamStatsViewModel
.
HSeasonScore6
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
ASeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
ASeasonScore2
=
"0"
;
}
}
}
}
}
}
}
else
if
(
index
==
4
)
{
//第四项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
AwayScore3
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
AwayScore3
=
"0"
;
}
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
ASeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
ASeasonScore3
=
"0"
;
}
/// <summary>
}
/// 设置客队数据
/// </summary>
/// <param name="mainViewModel"></param>
/// <param name="teamStatsViewModel"></param>
public
static
void
SetAData
(
TeamStatsViewModel
teamStatsViewModel
)
{
}
foreach
(
var
teamStats
in
teamStatsViewModel
.
MatchStatsNumbers
)
}
else
if
(
index
==
5
)
{
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStats
.
TechStatsName
.
ToString
()))
//第五项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
{
teamStats
.
AwayScore
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStats
.
TechStatsName
.
ToString
()
];
teamStats
ViewModel
.
AwayScore4
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
}
}
else
else
{
{
teamStats
.
AwayScore
=
"0"
;
teamStats
ViewModel
.
AwayScore4
=
"0"
;
}
}
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
ASeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
ASeasonScore4
=
"0"
;
}
}
}
if
(
teamStatsViewModel
!=
null
)
}
else
if
(
index
==
6
)
{
{
//var singlePlayerData = mainViewModel.PlayerSeasonData.PlayerstatsList.Where(a => a.CNAlias == vm.SelectPlayer).FirstOrDefault();
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
//第六项
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
teamStatsViewModel
.
AwayScore5
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
foreach
(
var
teamStats
in
teamStatsViewModel
.
MatchStatsNumbers
)
}
else
{
teamStatsViewModel
.
AwayScore5
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
{
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
if
(
teamSeasonData
.
ContainsKey
(
teamStats
.
TechStatsName
.
ToString
()))
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
{
teamStats
.
ASeasonScore
=
teamSeasonData
[
teamStats
.
TechStatsName
.
ToString
()
];
teamStats
ViewModel
.
ASeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
}
else
else
{
{
teamStats
.
ASeasonScore
=
"0"
;
teamStats
ViewModel
.
ASeasonScore5
=
"0"
;
}
}
}
}
}
}
}
}
else
if
(
index
==
7
)
{
//第七项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
AwayScore6
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
AwayScore6
=
"0"
;
}
}
if
(
teamStatsViewModel
!=
null
)
{
/// <summary>
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
/// 设置新的主队信息
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
/// </summary>
{
/// <param name="teamStatsViewModel"></param>
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
public
static
void
NewSetAData
(
NewTeamStatsViewModel
teamStatsViewModel
)
{
if
(
teamStatsViewModel
!=
null
)
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
{
teamStatsViewModel
.
ASeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
ASeasonScore6
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
}
}
//第一项
}
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
AwayScore
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
}
}
else
else
{
{
teamStatsViewModel
.
AwayScore
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第一项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
AwayScore
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
AwayScore
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
teamStatsViewModel
.
ASeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
else
{
teamStatsViewModel
.
ASeasonScore
=
"0"
;
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats
))
{
teamStatsViewModel
.
ASeasonScore
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats
];
}
else
{
teamStatsViewModel
.
ASeasonScore
=
"0"
;
}
}
}
}
//第二项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
AwayScore1
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
AwayScore1
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第二项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
AwayScore1
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
AwayScore1
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
{
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
teamStatsViewModel
.
ASeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
{
teamStatsViewModel
.
ASeasonScore1
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats1
))
{
teamStatsViewModel
.
ASeasonScore1
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats1
];
}
else
{
teamStatsViewModel
.
ASeasonScore1
=
"0"
;
}
}
}
}
//第三项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
AwayScore2
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
AwayScore2
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第三项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
AwayScore2
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
AwayScore2
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
{
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
teamStatsViewModel
.
ASeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
{
teamStatsViewModel
.
ASeasonScore2
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats2
))
{
teamStatsViewModel
.
ASeasonScore2
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats2
];
}
else
{
teamStatsViewModel
.
ASeasonScore2
=
"0"
;
}
}
}
}
//第四项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
AwayScore3
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
AwayScore3
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第四项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
AwayScore3
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
AwayScore3
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
{
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
teamStatsViewModel
.
ASeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
{
teamStatsViewModel
.
ASeasonScore3
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats3
))
{
teamStatsViewModel
.
ASeasonScore3
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats3
];
}
else
{
teamStatsViewModel
.
ASeasonScore3
=
"0"
;
}
}
}
}
//第五项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
AwayScore4
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
AwayScore4
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第五项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
AwayScore4
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
AwayScore4
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
teamStatsViewModel
.
ASeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
else
{
teamStatsViewModel
.
ASeasonScore4
=
"0"
;
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats4
))
{
teamStatsViewModel
.
ASeasonScore4
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats4
];
}
else
{
teamStatsViewModel
.
ASeasonScore4
=
"0"
;
}
}
}
}
//第六项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
AwayScore5
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
AwayScore5
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第六项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
AwayScore5
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
AwayScore5
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
{
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
teamStatsViewModel
.
ASeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
{
teamStatsViewModel
.
ASeasonScore5
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
}
}
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats5
))
{
teamStatsViewModel
.
ASeasonScore5
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats5
];
}
else
{
teamStatsViewModel
.
ASeasonScore5
=
"0"
;
}
}
}
}
//第七项
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
AwayScore6
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
AwayScore6
=
"0"
;
}
if
(
teamStatsViewModel
!=
null
)
//第七项
{
if
(
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
AwayScore6
=
teamStatsViewModel
.
VisitTeamCompareOptionDictionary
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
AwayScore6
=
"0"
;
}
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
if
(
teamStatsViewModel
!=
null
)
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
{
{
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
if
(
teamStatsViewModel
.
AwayTeam
==
null
)
return
;
{
if
(
teamStatsViewModel
.
CNAliasVisitSportsDictionary
.
ContainsKey
(
teamStatsViewModel
.
AwayTeam
))
teamStatsViewModel
.
ASeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
{
teamStatsViewModel
.
ASeasonScore6
=
"0"
;
var
teamSeasonData
=
teamStatsViewModel
.
CNAliasVisitSportsDictionary
[
teamStatsViewModel
.
AwayTeam
];
if
(
teamSeasonData
.
ContainsKey
(
teamStatsViewModel
.
SelectTechStats6
))
{
teamStatsViewModel
.
ASeasonScore6
=
teamSeasonData
[
teamStatsViewModel
.
SelectTechStats6
];
}
else
{
teamStatsViewModel
.
ASeasonScore6
=
"0"
;
}
}
}
}
}
}
}
...
...
VIZ.MIGU.CBA.Module/PlayerCompare/ViewModel/NewPlayerComPareViewModel.cs
View file @
d2efe884
...
@@ -254,8 +254,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -254,8 +254,8 @@ namespace VIZ.TVP.CBA.Module
ASeasonScoreVisible6
=
Visibility
.
Visible
;
ASeasonScoreVisible6
=
Visibility
.
Visible
;
}
}
SetHData
();
SetHData
(
0
);
SetAData
();
SetAData
(
0
);
}
}
}
}
...
@@ -340,7 +340,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -340,7 +340,7 @@ namespace VIZ.TVP.CBA.Module
{
{
ANums
=
VNameNums
[
APlayer
];
ANums
=
VNameNums
[
APlayer
];
}
}
SetAData
();
SetAData
(
0
);
}
}
}
}
...
@@ -378,7 +378,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -378,7 +378,7 @@ namespace VIZ.TVP.CBA.Module
{
{
HNums
=
HNameNums
[
HPlayer
];
HNums
=
HNameNums
[
HPlayer
];
}
}
SetHData
();
SetHData
(
0
);
}
}
}
}
...
@@ -1476,8 +1476,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1476,8 +1476,8 @@ namespace VIZ.TVP.CBA.Module
onAirDataModel
=
JsonModel
.
PostOnAirData_Path
(
ScheduleID
);
onAirDataModel
=
JsonModel
.
PostOnAirData_Path
(
ScheduleID
);
if
(
onAirDataModel
==
null
)
return
;
if
(
onAirDataModel
==
null
)
return
;
SetPlayer
(
false
);
SetPlayer
(
false
);
SetAData
();
SetAData
(
0
);
SetHData
();
SetHData
(
0
);
}
}
...
@@ -1582,184 +1582,372 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1582,184 +1582,372 @@ namespace VIZ.TVP.CBA.Module
/// 设置主队球员技术统计信息
/// 设置主队球员技术统计信息
/// </summary>
/// </summary>
public
void
SetHData
()
public
void
SetHData
(
int
index
)
{
{
if
(
hPlayer
==
null
)
return
;
if
(
hPlayer
==
null
)
return
;
if
(
MvpHomePlayerCompareNumDictionary
.
ContainsKey
(
HPlayer
))
if
(
MvpHomePlayerCompareNumDictionary
.
ContainsKey
(
HPlayer
))
{
{
var
playSeaSonData
=
MvpHomePlayerCompareNumDictionary
[
HPlayer
];
var
playSeaSonData
=
MvpHomePlayerCompareNumDictionary
[
HPlayer
];
if
(
index
==
1
)
//第一项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
HScore
=
playSeaSonData
[
selectTechStats
];
//第一项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
HScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
HScore
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
HScore
=
"0"
;
//第二项赋值
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
HScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
HScore1
=
"0"
;
}
//第二项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
HScore1
=
playSeaSonData
[
selectTechStats1
];
}
}
else
else
if
(
index
==
3
)
{
{
HScore1
=
"0"
;
}
//第三项赋值
//第三项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
{
HScore2
=
playSeaSonData
[
selectTechStats2
];
HScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
HScore2
=
"0"
;
}
}
}
else
else
if
(
index
==
4
)
{
{
HScore2
=
"0"
;
//第四项赋值
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
HScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
HScore3
=
"0"
;
}
//第四项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
HScore3
=
playSeaSonData
[
selectTechStats3
];
}
}
else
else
if
(
index
==
5
)
{
{
HScore3
=
"0"
;
//第五项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
HScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
HScore4
=
"0"
;
}
}
}
//第五项赋值
else
if
(
index
==
6
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
{
HScore4
=
playSeaSonData
[
selectTechStats4
];
//第六项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
HScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
HScore5
=
"0"
;
}
}
}
else
else
if
(
index
==
7
)
{
{
HScore4
=
"0"
;
}
//第六项赋值
//第7项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
{
HScore5
=
playSeaSonData
[
selectTechStats5
];
HScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
HScore6
=
"0"
;
}
}
}
else
else
{
{
HScore5
=
"0"
;
}
//第7项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
HScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
HScore6
=
"0"
;
}
// }
}
//第一项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
HScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
HScore
=
"0"
;
}
//第二项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
HScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
HScore1
=
"0"
;
}
//第三项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
HScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
HScore2
=
"0"
;
}
//第四项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
HScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
HScore3
=
"0"
;
}
//第五项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
HScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
HScore4
=
"0"
;
}
//第六项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
HScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
HScore5
=
"0"
;
}
//第7项赋值
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
HScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
HScore6
=
"0"
;
}
}
//if (vm != null)
}
//{
//var singlePlayerData = mainViewModel.PlayerSeasonData.PlayerstatsList.Where(a => a.CNAlias == vm.SelectPlayer).FirstOrDefault();
if
(
CNAliasPlayerSportsDictionary
.
ContainsKey
(
HPlayer
))
if
(
CNAliasPlayerSportsDictionary
.
ContainsKey
(
HPlayer
))
{
{
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
HPlayer
];
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
HPlayer
];
//第一项
if
(
index
==
1
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
HSeasonScore
=
playSeaSonData
[
selectTechStats
];
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
HSeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
HSeasonScore
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
HSeasonScore
=
"0"
;
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
HSeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
HSeasonScore1
=
"0"
;
}
}
}
//第二项
else
if
(
index
==
3
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
HSeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
HSeasonScore1
=
"0"
;
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
HSeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
HSeasonScore2
=
"0"
;
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
HSeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
HSeasonScore2
=
"0"
;
}
}
else
if
(
index
==
4
)
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
{
HSeasonScore3
=
playSeaSonData
[
selectTechStats3
];
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
HSeasonScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
HSeasonScore3
=
"0"
;
}
}
}
else
else
if
(
index
==
5
)
{
{
HSeasonScore3
=
"0"
;
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
HSeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
HSeasonScore4
=
"0"
;
}
}
}
//第五项
else
if
(
index
==
6
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
{
HSeasonScore4
=
playSeaSonData
[
selectTechStats4
];
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
HSeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
HSeasonScore5
=
"0"
;
}
}
}
else
else
if
(
index
==
7
)
{
{
HSeasonScore4
=
"0"
;
}
//第六项
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
{
HSeasonScore5
=
playSeaSonData
[
selectTechStats5
];
HSeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
HSeasonScore6
=
"0"
;
}
}
}
else
else
{
{
HSeasonScore5
=
"0"
;
}
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
HSeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
HSeasonScore
=
"0"
;
}
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
HSeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
HSeasonScore1
=
"0"
;
}
//第七
项
//第三
项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
{
HSeasonScore6
=
playSeaSonData
[
selectTechStats6
];
HSeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
}
else
else
{
{
HSeasonScore6
=
"0"
;
HSeasonScore2
=
"0"
;
}
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
HSeasonScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
HSeasonScore3
=
"0"
;
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
HSeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
HSeasonScore4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
HSeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
HSeasonScore5
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
HSeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
HSeasonScore6
=
"0"
;
}
}
}
}
//}
}
}
...
@@ -1767,184 +1955,374 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1767,184 +1955,374 @@ namespace VIZ.TVP.CBA.Module
/// <summary>
/// <summary>
/// 设置客队球员技术统计信息
/// 设置客队球员技术统计信息
/// </summary>
/// </summary>
public
void
SetAData
()
public
void
SetAData
(
int
index
)
{
{
if
(
APlayer
==
null
)
return
;
if
(
APlayer
==
null
)
return
;
if
(
MvpVisitPlayerCompareNumDictionary
.
ContainsKey
(
APlayer
))
if
(
MvpVisitPlayerCompareNumDictionary
.
ContainsKey
(
APlayer
))
{
{
var
playSeaSonData
=
MvpVisitPlayerCompareNumDictionary
[
APlayer
];
var
playSeaSonData
=
MvpVisitPlayerCompareNumDictionary
[
APlayer
];
//第一项
if
(
index
==
1
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
AScore
=
playSeaSonData
[
selectTechStats
];
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
AScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
AScore
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
AScore
=
"0"
;
}
//第二项
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
AScore1
=
playSeaSonData
[
selectTechStats1
];
AScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
AScore1
=
"0"
;
}
}
}
else
else
if
(
index
==
3
)
{
{
AScore1
=
"0"
;
}
//第三项
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
{
AScore2
=
playSeaSonData
[
selectTechStats2
];
AScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
AScore2
=
"0"
;
}
}
}
else
else
if
(
index
==
4
)
{
{
AScore2
=
"0"
;
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
AScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
AScore3
=
"0"
;
}
}
}
else
if
(
index
==
5
)
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
{
AScore3
=
playSeaSonData
[
selectTechStats3
];
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
AScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
AScore4
=
"0"
;
}
}
}
else
else
if
(
index
==
6
)
{
{
AScore3
=
"0"
;
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
AScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
AScore5
=
"0"
;
}
}
}
else
if
(
index
==
7
)
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
{
AScore4
=
playSeaSonData
[
selectTechStats4
];
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
AScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
AScore6
=
"0"
;
}
}
}
else
else
{
{
AScore4
=
"0"
;
}
//第六
项
//第一
项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
AScore5
=
playSeaSonData
[
selectTechStats5
];
AScore
=
playSeaSonData
[
selectTechStats
];
}
}
else
else
{
{
AScore5
=
"0"
;
AScore
=
"0"
;
}
}
//第七
项
//第二
项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
AScore6
=
playSeaSonData
[
selectTechStats6
];
AScore1
=
playSeaSonData
[
selectTechStats1
];
}
}
else
else
{
{
AScore6
=
"0"
;
AScore1
=
"0"
;
}
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
AScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
AScore2
=
"0"
;
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
AScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
AScore3
=
"0"
;
}
}
//if (vm != null)
//第五项
//{
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
//var singlePlayerData = mainViewModel.PlayerSeasonData.PlayerstatsList.Where(a => a.CNAlias == vm.SelectPlayer).FirstOrDefault();
{
AScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
AScore4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
AScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
AScore5
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
AScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
AScore6
=
"0"
;
}
}
}
if
(
CNAliasPlayerSportsDictionary
.
ContainsKey
(
APlayer
))
if
(
CNAliasPlayerSportsDictionary
.
ContainsKey
(
APlayer
))
{
{
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
APlayer
];
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
APlayer
];
//第一项
if
(
index
==
1
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
ASeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
{
ASeasonScore
=
"0"
;
}
//第二项
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
ASeasonScore1
=
playSeaSonData
[
selectTechStats1
];
ASeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
ASeasonScore
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
ASeasonScore1
=
"0"
;
}
//第三项
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
ASeasonScore2
=
playSeaSonData
[
selectTechStats2
];
ASeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
ASeasonScore1
=
"0"
;
}
}
}
else
else
if
(
index
==
3
)
{
{
ASeasonScore2
=
"0"
;
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
ASeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
ASeasonScore2
=
"0"
;
}
}
//第四项
else
if
(
index
==
4
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
{
ASeasonScore3
=
playSeaSonData
[
selectTechStats3
];
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
ASeasonScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
ASeasonScore3
=
"0"
;
}
}
}
else
else
if
(
index
==
5
)
{
{
ASeasonScore3
=
"0"
;
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
ASeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
ASeasonScore4
=
"0"
;
}
}
}
else
if
(
index
==
6
)
{
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
ASeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
ASeasonScore5
=
"0"
;
}
}
else
if
(
index
==
7
)
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
{
ASeasonScore4
=
playSeaSonData
[
selectTechStats4
];
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
ASeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
ASeasonScore6
=
"0"
;
}
}
}
else
else
{
{
ASeasonScore4
=
"0"
;
}
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
ASeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
ASeasonScore
=
"0"
;
}
//第六
项
//第二
项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
ASeasonScore5
=
playSeaSonData
[
selectTechStats5
];
ASeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
}
else
else
{
{
ASeasonScore5
=
"0"
;
ASeasonScore1
=
"0"
;
}
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
ASeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
ASeasonScore2
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
//第四项
{
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
ASeasonScore6
=
playSeaSonData
[
selectTechStats6
];
{
}
ASeasonScore3
=
playSeaSonData
[
selectTechStats3
];
else
}
{
else
ASeasonScore6
=
"0"
;
{
ASeasonScore3
=
"0"
;
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
ASeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
ASeasonScore4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
ASeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
ASeasonScore5
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
ASeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
ASeasonScore6
=
"0"
;
}
}
}
}
}
//}
}
}
...
@@ -2054,8 +2432,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2054,8 +2432,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats
=
value
;
selectTechStats
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
SetHData
();
SetHData
(
1
);
SetAData
();
SetAData
(
1
);
}
}
}
}
...
@@ -2226,8 +2604,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2226,8 +2604,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats1
=
value
;
selectTechStats1
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
SetHData
();
SetHData
(
2
);
SetAData
();
SetAData
(
2
);
}
}
}
}
...
@@ -2398,8 +2776,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2398,8 +2776,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats2
=
value
;
selectTechStats2
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
SetHData
();
SetHData
(
3
);
SetAData
();
SetAData
(
3
);
}
}
}
}
...
@@ -2574,8 +2952,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2574,8 +2952,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats3
=
value
;
selectTechStats3
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
SetHData
();
SetHData
(
4
);
SetAData
();
SetAData
(
4
);
}
}
}
}
...
@@ -2746,8 +3124,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2746,8 +3124,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats4
=
value
;
selectTechStats4
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
SetHData
();
SetHData
(
5
);
SetAData
();
SetAData
(
5
);
}
}
}
}
...
@@ -2919,8 +3297,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2919,8 +3297,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats5
=
value
;
selectTechStats5
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
SetHData
();
SetHData
(
6
);
SetAData
();
SetAData
(
6
);
}
}
}
}
...
@@ -3091,8 +3469,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -3091,8 +3469,8 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats6
=
value
;
selectTechStats6
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
SetHData
();
SetHData
(
7
);
SetAData
();
SetAData
(
7
);
}
}
}
}
...
...
VIZ.MIGU.CBA.Module/SinglePlayer/ViewModel/NewSinglePlayerViewModel.cs
View file @
d2efe884
...
@@ -158,7 +158,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -158,7 +158,7 @@ namespace VIZ.TVP.CBA.Module
}
}
}
}
SetData
();
SetData
(
0
);
}
}
}
}
...
@@ -435,7 +435,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -435,7 +435,7 @@ namespace VIZ.TVP.CBA.Module
SeasonScoreVisible6
=
Visibility
.
Visible
;
SeasonScoreVisible6
=
Visibility
.
Visible
;
}
}
SetData
();
SetData
(
0
);
}
}
...
@@ -479,13 +479,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -479,13 +479,7 @@ namespace VIZ.TVP.CBA.Module
}
}
private
void
OnModelChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
"TechStatsName"
)
{
SetData
();
}
}
/// <summary>
/// <summary>
/// 获得赛季数据
/// 获得赛季数据
...
@@ -1432,107 +1426,194 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1432,107 +1426,194 @@ namespace VIZ.TVP.CBA.Module
}
}
}
}
SetData
();
SetData
(
0
);
}
}
/// <summary>
/// <summary>
/// 设置数据得分
/// 设置数据得分
/// </summary>
/// </summary>
private
void
SetData
()
private
void
SetData
(
int
index
)
{
{
if
(
SelectPlayer
==
null
)
return
;
if
(
SelectPlayer
==
null
)
return
;
if
(
SelectedIndex
==
0
)
if
(
SelectedIndex
==
0
)
{
{
//if (HNameNums.ContainsKey(vm?.SelectPlayer))
//{
// vm.PlayNum = HNameNums[vm.SelectPlayer];
//}
if
(
MvpHomePlayerCompareNumDictionary
.
ContainsKey
(
SelectPlayer
))
if
(
MvpHomePlayerCompareNumDictionary
.
ContainsKey
(
SelectPlayer
))
{
{
var
playSeaSonData
=
MvpHomePlayerCompareNumDictionary
[
SelectPlayer
];
var
playSeaSonData
=
MvpHomePlayerCompareNumDictionary
[
SelectPlayer
];
if
(
index
==
1
)
//第一项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats
))
{
{
Score
=
playSeaSonData
[
SelectTechStats
];
//第一项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats
))
{
Score
=
playSeaSonData
[
SelectTechStats
];
}
else
{
Score
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
Score
=
"0"
;
//第二项
}
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats1
))
{
Score1
=
playSeaSonData
[
SelectTechStats1
];
}
else
{
Score1
=
"0"
;
}
//第二项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats1
))
{
Score1
=
playSeaSonData
[
SelectTechStats1
];
}
}
else
else
if
(
index
==
3
)
{
{
Score1
=
"0"
;
//第三项
}
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats2
))
{
Score2
=
playSeaSonData
[
SelectTechStats2
];
}
else
{
Score2
=
"0"
;
}
//第三项
}
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats2
)
)
else
if
(
index
==
4
)
{
{
Score2
=
playSeaSonData
[
SelectTechStats2
];
//第四项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats3
))
{
Score3
=
playSeaSonData
[
SelectTechStats3
];
}
else
{
Score3
=
"0"
;
}
}
}
else
else
if
(
index
==
5
)
{
{
Score2
=
"0"
;
//第五项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats4
))
{
Score4
=
playSeaSonData
[
SelectTechStats4
];
}
else
{
Score4
=
"0"
;
}
}
}
else
if
(
index
==
6
)
//第四项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats3
))
{
{
Score3
=
playSeaSonData
[
SelectTechStats3
];
//第六项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats5
))
{
Score5
=
playSeaSonData
[
SelectTechStats5
];
}
else
{
Score5
=
"0"
;
}
}
}
else
else
if
(
index
==
7
)
{
{
Score3
=
"0"
;
//第七项
}
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats6
))
{
Score6
=
playSeaSonData
[
SelectTechStats6
];
}
else
{
Score6
=
"0"
;
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats4
))
{
Score4
=
playSeaSonData
[
SelectTechStats4
];
}
}
else
else
{
{
Score4
=
"0"
;
}
//第一项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats
))
{
Score
=
playSeaSonData
[
SelectTechStats
];
}
else
{
Score
=
"0"
;
}
//第六
项
//第二
项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats1
))
{
{
Score5
=
playSeaSonData
[
SelectTechStats5
];
Score1
=
playSeaSonData
[
SelectTechStats1
];
}
}
else
else
{
{
Score5
=
"0"
;
Score1
=
"0"
;
}
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats2
))
{
Score2
=
playSeaSonData
[
SelectTechStats2
];
}
else
{
Score2
=
"0"
;
}
//第七
项
//第四
项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats6
))
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats3
))
{
{
Score6
=
playSeaSonData
[
SelectTechStats6
];
Score3
=
playSeaSonData
[
SelectTechStats3
];
}
}
else
else
{
{
Score6
=
"0"
;
Score3
=
"0"
;
}
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats4
))
{
Score4
=
playSeaSonData
[
SelectTechStats4
];
}
else
{
Score4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats5
))
{
Score5
=
playSeaSonData
[
SelectTechStats5
];
}
else
{
Score5
=
"0"
;
}
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
SelectTechStats6
))
{
Score6
=
playSeaSonData
[
SelectTechStats6
];
}
else
{
Score6
=
"0"
;
}
}
}
}
}
else
else
...
@@ -1546,77 +1627,172 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1546,77 +1627,172 @@ namespace VIZ.TVP.CBA.Module
//第一项
if
(
index
==
1
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
Score
=
playSeaSonData
[
selectTechStats
];
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
Score
=
playSeaSonData
[
selectTechStats
];
}
else
{
Score
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
Score
=
"0"
;
}
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
Score1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
Score1
=
"0"
;
}
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
Score1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
Score1
=
"0"
;
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
Score2
=
playSeaSonData
[
selectTechStats2
];
}
}
else
else
if
(
index
==
3
)
{
{
Score2
=
"0"
;
//第三项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
Score2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
Score2
=
"0"
;
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
Score3
=
playSeaSonData
[
selectTechStats3
];
}
}
else
else
if
(
index
==
4
)
{
{
Score3
=
"0"
;
//第四项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
Score3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
Score3
=
"0"
;
}
}
//第五项
else
if
(
index
==
5
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
{
Score4
=
playSeaSonData
[
selectTechStats4
];
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
Score4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
Score4
=
"0"
;
}
}
}
else
else
if
(
index
==
6
)
{
{
Score4
=
"0"
;
//第六项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
Score5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
Score5
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
Score5
=
playSeaSonData
[
selectTechStats5
];
}
}
else
else
if
(
index
==
7
)
{
{
Score5
=
"0"
;
//第七项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
Score6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
Score6
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
Score6
=
playSeaSonData
[
selectTechStats6
];
}
}
else
else
{
{
Score6
=
"0"
;
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
Score
=
playSeaSonData
[
selectTechStats
];
}
else
{
Score
=
"0"
;
}
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
Score1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
Score1
=
"0"
;
}
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
Score2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
Score2
=
"0"
;
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
Score3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
Score3
=
"0"
;
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
Score4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
Score4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
Score5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
Score5
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
Score6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
Score6
=
"0"
;
}
}
}
}
}
...
@@ -1632,89 +1808,181 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1632,89 +1808,181 @@ namespace VIZ.TVP.CBA.Module
{
{
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
SelectPlayer
];
var
playSeaSonData
=
CNAliasPlayerSportsDictionary
[
SelectPlayer
];
if
(
index
==
1
)
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
{
SeasonScore
=
playSeaSonData
[
selectTechStats
];
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
SeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
SeasonScore
=
"0"
;
}
}
}
else
else
if
(
index
==
2
)
{
{
SeasonScore
=
"0"
;
}
//第二项
//第二项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
SeasonScore1
=
playSeaSonData
[
selectTechStats1
];
SeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
else
{
SeasonScore1
=
"0"
;
}
}
}
else
else
if
(
index
==
3
)
{
{
SeasonScore1
=
"0"
;
}
//第三项
//第三项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
{
{
SeasonScore2
=
playSeaSonData
[
selectTechStats2
];
SeasonScore2
=
playSeaSonData
[
selectTechStats2
];
}
else
{
SeasonScore2
=
"0"
;
}
}
}
else
else
if
(
index
==
4
)
{
{
SeasonScore2
=
"0"
;
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
SeasonScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
SeasonScore3
=
"0"
;
}
}
//第四项
else
if
(
index
==
5
)
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
{
SeasonScore3
=
playSeaSonData
[
selectTechStats3
];
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
SeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
SeasonScore4
=
"0"
;
}
}
}
else
else
if
(
index
==
6
)
{
{
SeasonScore3
=
"0"
;
//第六项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
SeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
SeasonScore5
=
"0"
;
}
//第五项
}
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
)
)
else
if
(
index
==
7
)
{
{
SeasonScore4
=
playSeaSonData
[
selectTechStats4
];
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
SeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
SeasonScore6
=
"0"
;
}
}
}
else
else
{
{
SeasonScore4
=
"0"
;
}
//第一项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats
))
{
SeasonScore
=
playSeaSonData
[
selectTechStats
];
}
else
{
SeasonScore
=
"0"
;
}
//第六
项
//第二
项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats1
))
{
{
SeasonScore5
=
playSeaSonData
[
selectTechStats5
];
SeasonScore1
=
playSeaSonData
[
selectTechStats1
];
}
}
else
else
{
{
SeasonScore5
=
"0"
;
SeasonScore1
=
"0"
;
}
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
//第三项
{
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats2
))
SeasonScore6
=
playSeaSonData
[
selectTechStats6
];
{
}
SeasonScore2
=
playSeaSonData
[
selectTechStats2
];
else
}
{
else
SeasonScore6
=
"0"
;
{
}
SeasonScore2
=
"0"
;
}
//第四项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats3
))
{
SeasonScore3
=
playSeaSonData
[
selectTechStats3
];
}
else
{
SeasonScore3
=
"0"
;
}
//第五项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats4
))
{
SeasonScore4
=
playSeaSonData
[
selectTechStats4
];
}
else
{
SeasonScore4
=
"0"
;
}
//第六项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats5
))
{
SeasonScore5
=
playSeaSonData
[
selectTechStats5
];
}
else
{
SeasonScore5
=
"0"
;
}
//第七项
if
(
playSeaSonData
.
ContainsKey
(
selectTechStats6
))
{
SeasonScore6
=
playSeaSonData
[
selectTechStats6
];
}
else
{
SeasonScore6
=
"0"
;
}
}
}
}
...
@@ -1776,7 +2044,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1776,7 +2044,7 @@ namespace VIZ.TVP.CBA.Module
selectTechStats
=
value
;
selectTechStats
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
SetData
();
SetData
(
1
);
}
}
}
}
...
@@ -1893,7 +2161,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1893,7 +2161,7 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats1
=
value
;
selectTechStats1
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
SetData
();
SetData
(
2
);
}
}
}
}
...
@@ -2010,7 +2278,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2010,7 +2278,7 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats2
=
value
;
selectTechStats2
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
SetData
();
SetData
(
3
);
}
}
}
}
...
@@ -2127,7 +2395,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2127,7 +2395,7 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats3
=
value
;
selectTechStats3
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
SetData
();
SetData
(
4
);
}
}
}
}
...
@@ -2245,7 +2513,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2245,7 +2513,7 @@ namespace VIZ.TVP.CBA.Module
selectTechStats4
=
value
;
selectTechStats4
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
SetData
();
SetData
(
5
);
}
}
}
}
...
@@ -2363,7 +2631,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2363,7 +2631,7 @@ namespace VIZ.TVP.CBA.Module
selectTechStats5
=
value
;
selectTechStats5
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
SetData
();
SetData
(
6
);
}
}
}
}
...
@@ -2480,7 +2748,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2480,7 +2748,7 @@ namespace VIZ.TVP.CBA.Module
{
{
selectTechStats6
=
value
;
selectTechStats6
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
SetData
();
SetData
(
7
);
}
}
}
}
...
...
VIZ.MIGU.CBA.Module/TeamStats/ViewModel/NewTeamStatsViewModel.cs
View file @
d2efe884
...
@@ -191,8 +191,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -191,8 +191,8 @@ namespace VIZ.TVP.CBA.Module
ASeasonScoreVisible6
=
Visibility
.
Visible
;
ASeasonScoreVisible6
=
Visibility
.
Visible
;
}
}
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
0
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
0
);
}
}
}
}
...
@@ -1229,8 +1229,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1229,8 +1229,8 @@ namespace VIZ.TVP.CBA.Module
if
(
onAirDataModel
==
null
)
return
;
if
(
onAirDataModel
==
null
)
return
;
Utils
.
NewSetHomeTeamDictionary
(
this
);
Utils
.
NewSetHomeTeamDictionary
(
this
);
Utils
.
NewSetVisitTeamDictionary
(
this
);
Utils
.
NewSetVisitTeamDictionary
(
this
);
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
0
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
0
);
}
}
...
@@ -1303,8 +1303,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1303,8 +1303,8 @@ namespace VIZ.TVP.CBA.Module
Utils
.
NewSetHomeTeamDictionary
(
this
);
Utils
.
NewSetHomeTeamDictionary
(
this
);
Utils
.
NewSetVisitTeamDictionary
(
this
);
Utils
.
NewSetVisitTeamDictionary
(
this
);
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
0
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
0
);
}
}
...
@@ -1452,8 +1452,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1452,8 +1452,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats
=
value
;
selectTechStats
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
1
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
1
);
}
}
}
}
...
@@ -1625,8 +1625,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1625,8 +1625,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats1
=
value
;
selectTechStats1
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats1
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
2
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
2
);
}
}
}
}
...
@@ -1798,8 +1798,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1798,8 +1798,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats2
=
value
;
selectTechStats2
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats2
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
3
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
3
);
}
}
}
}
...
@@ -1971,8 +1971,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -1971,8 +1971,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats3
=
value
;
selectTechStats3
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats3
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
4
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
4
);
}
}
}
}
...
@@ -2144,8 +2144,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2144,8 +2144,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats4
=
value
;
selectTechStats4
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats4
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
5
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
5
);
}
}
}
}
...
@@ -2317,8 +2317,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2317,8 +2317,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats5
=
value
;
selectTechStats5
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats5
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
6
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
6
);
}
}
}
}
...
@@ -2490,8 +2490,8 @@ namespace VIZ.TVP.CBA.Module
...
@@ -2490,8 +2490,8 @@ namespace VIZ.TVP.CBA.Module
selectTechStats6
=
value
;
selectTechStats6
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
this
.
RaisePropertyChanged
(
nameof
(
SelectTechStats6
));
Utils
.
NewSetHData
(
this
);
Utils
.
NewSetHData
(
this
,
7
);
Utils
.
NewSetAData
(
this
);
Utils
.
NewSetAData
(
this
,
7
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment