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
e6ac644f
Commit
e6ac644f
authored
Mar 15, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改CBAbug
parent
3b0be8eb
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
926 additions
and
100 deletions
+926
-100
VIZ.MIGU.CBA.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
+87
-0
VIZ.MIGU.CBA.Module/Setting/HttpUrl/HttpUrlPluginLifeCycle.cs
+1
-1
VIZ.MIGU.CBA.Module/Setting/HttpUrl/View/HttpUrlConfigView.xaml
+1
-1
VIZ.TVP.FTB.Module/Common/JsonModel.cs
+47
-6
VIZ.TVP.FTB.Module/FDayMatch/View/FDayMatchView.xaml.cs
+3
-3
VIZ.TVP.FTB.Module/FDayMatch/ViewModel/FDayMatchViewModel.cs
+15
-1
VIZ.TVP.FTB.Module/FTeamStandings/View/FTeamStandingView.xaml.cs
+5
-3
VIZ.TVP.FTB.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
+48
-1
VIZ.TVP.FTB.Module/HeaderPage/View/DateHeaderView.xaml
+10
-3
VIZ.TVP.FTB.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
+101
-0
VIZ.TVP.FTB.Module/Setting/httpUrl/View/HttpUrlConfigView.xaml
+102
-13
VIZ.TVP.FTB.Module/Setting/httpUrl/ViewModel/HttpUrlConfigViewModel.cs
+393
-59
VIZ.TVP.FTB.Module/ShootPlayerRank/Model/ShootPlayerRank.cs
+48
-0
VIZ.TVP.FTB.Module/ShootPlayerRank/Model/ShootPlayerRanks.cs
+22
-0
VIZ.TVP.FTB.Module/Storge/AppSetup_InitLiteDB.cs
+1
-1
VIZ.TVP.FTB.Module/Storge/HttpUrlConfigEntity.cs
+36
-7
VIZ.TVP.FTB.Module/VIZ.TVP.FTB.Module.csproj
+6
-1
No files found.
VIZ.MIGU.CBA.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
View file @
e6ac644f
...
@@ -323,6 +323,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -323,6 +323,7 @@ namespace VIZ.TVP.CBA.Module
if
(
value
==
null
)
if
(
value
==
null
)
{
{
ClearData
();
return
;
return
;
}
}
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
"CBA查看选择赛程:"
+
value
.
HomeTeamName
+
"VS"
+
value
.
VisitingTeamName
);
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
"CBA查看选择赛程:"
+
value
.
HomeTeamName
+
"VS"
+
value
.
VisitingTeamName
);
...
@@ -470,6 +471,92 @@ namespace VIZ.TVP.CBA.Module
...
@@ -470,6 +471,92 @@ namespace VIZ.TVP.CBA.Module
}
}
}
}
private
void
ClearData
()
{
#
region
球员统计信息
if
(
NewTeamStatsViewModel
.
TeamStatsViewModelInstance
.
Count
>
0
)
{
foreach
(
var
tempTeamStatsViewModel
in
NewTeamStatsViewModel
.
TeamStatsViewModelInstance
)
{
tempTeamStatsViewModel
.
ScheduleID
=
""
;
tempTeamStatsViewModel
.
Matchtypeid
=
""
;
if
(
tempTeamStatsViewModel
.
page
!=
null
&&
ApplicationDomainEx
.
CurrentPage
==
tempTeamStatsViewModel
.
page
)
{
tempTeamStatsViewModel
.
SetTeamData
();
}
}
}
#
endregion
#
region
单个球员信息
if
(
NewSinglePlayerViewModel
.
SinglePlayerViewModelInstance
.
Count
>
0
)
{
foreach
(
var
tempSinglePlayerViewModel
in
NewSinglePlayerViewModel
.
SinglePlayerViewModelInstance
)
{
tempSinglePlayerViewModel
.
ScheduleID
=
""
;
tempSinglePlayerViewModel
.
Matchtypeid
=
""
;
if
(
tempSinglePlayerViewModel
.
page
!=
null
&&
ApplicationDomainEx
.
CurrentPage
==
tempSinglePlayerViewModel
.
page
)
{
tempSinglePlayerViewModel
.
SetSingleData
();
}
}
}
#
endregion
#
region
Mvp
球员信息
if
(
MvpPlayerViewModel
.
MvpPlayerViewModelInstance
.
Count
>
0
)
{
foreach
(
var
tempSinglePlayerViewModel
in
MvpPlayerViewModel
.
MvpPlayerViewModelInstance
)
{
tempSinglePlayerViewModel
.
ScheduleID
=
""
;
tempSinglePlayerViewModel
.
Matchtypeid
=
""
;
if
(
tempSinglePlayerViewModel
.
page
!=
null
&&
ApplicationDomainEx
.
CurrentPage
==
tempSinglePlayerViewModel
.
page
)
{
tempSinglePlayerViewModel
.
SetSingleData
();
}
}
}
#
endregion
#
region
球员对比信息
if
(
NewPlayerComPareViewModel
.
PlayerCompareViewModelInstance
.
Count
>
0
)
{
foreach
(
var
playerCompareViewModel
in
NewPlayerComPareViewModel
.
PlayerCompareViewModelInstance
)
{
playerCompareViewModel
.
ScheduleID
=
""
;
playerCompareViewModel
.
Matchtypeid
=
""
;
//PlayerCompareViewModel playerCompareViewModel = PlayerCompareViewModel.CreateInstance;
if
(
playerCompareViewModel
.
page
!=
null
&&
ApplicationDomainEx
.
CurrentPage
==
playerCompareViewModel
.
page
)
{
playerCompareViewModel
.
SetCompareData
();
}
}
}
#
endregion
}
/// <summary>
/// <summary>
/// 今日赛程日期
/// 今日赛程日期
...
...
VIZ.MIGU.CBA.Module/Setting/HttpUrl/HttpUrlPluginLifeCycle.cs
View file @
e6ac644f
...
@@ -24,7 +24,7 @@ namespace VIZ.TVP.CBA.Module
...
@@ -24,7 +24,7 @@ namespace VIZ.TVP.CBA.Module
/// <summary>
/// <summary>
/// 插件名称
/// 插件名称
/// </summary>
/// </summary>
public
const
string
PLUGIN_NAME
=
"
CBA赛事
配置"
;
public
const
string
PLUGIN_NAME
=
"
篮球数据访问
配置"
;
/// <summary>
/// <summary>
/// 注册
/// 注册
...
...
VIZ.MIGU.CBA.Module/Setting/HttpUrl/View/HttpUrlConfigView.xaml
View file @
e6ac644f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<Grid>
<Grid>
<!-- 数据访问设置 -->
<!-- 数据访问设置 -->
<GroupBox Header="
CBA
赛事配置" Margin="10" Padding="10">
<GroupBox Header="
篮球
赛事配置" Margin="10" Padding="10">
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="120"></ColumnDefinition>
...
...
VIZ.TVP.FTB.Module/Common/JsonModel.cs
View file @
e6ac644f
...
@@ -41,7 +41,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -41,7 +41,7 @@ namespace VIZ.TVP.FTB.Module
/// 艾果平台的明日赛程数据服务器接口
/// 艾果平台的明日赛程数据服务器接口
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
async
static
Task
<
Dayschedules
>
PostTomorrowMatch_Path
(
string
round
)
public
async
static
Task
<
Dayschedules
>
PostTomorrowMatch_Path
(
string
round
,
string
selectFootballType
)
{
{
...
@@ -56,7 +56,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -56,7 +56,7 @@ namespace VIZ.TVP.FTB.Module
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
//dict.Add("leagueid", "401");
//dict.Add("leagueid", "401");
dict
.
Add
(
"round"
,
round
);
dict
.
Add
(
"round"
,
round
);
dict
.
Add
(
"competitionId"
,
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
S
electFootballType
);
dict
.
Add
(
"competitionId"
,
s
electFootballType
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
...
@@ -88,7 +88,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -88,7 +88,7 @@ namespace VIZ.TVP.FTB.Module
///球队积分数据服务器地址
///球队积分数据服务器地址
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
static
TeamRanks
PostTeamScoreData_Path
()
public
static
TeamRanks
PostTeamScoreData_Path
(
string
footballType
,
string
seasonId
)
{
{
try
try
{
{
...
@@ -97,8 +97,8 @@ namespace VIZ.TVP.FTB.Module
...
@@ -97,8 +97,8 @@ namespace VIZ.TVP.FTB.Module
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
dict
.
Add
(
"competitionId"
,
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectF
ootballType
);
dict
.
Add
(
"competitionId"
,
f
ootballType
);
dict
.
Add
(
"seasonId"
,
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
S
easonId
);
//"110000005454"
dict
.
Add
(
"seasonId"
,
s
easonId
);
//"110000005454"
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
...
@@ -157,10 +157,51 @@ namespace VIZ.TVP.FTB.Module
...
@@ -157,10 +157,51 @@ namespace VIZ.TVP.FTB.Module
return
null
;
return
null
;
}
}
}
}
/// <summary>
/// 获取球队射手榜数据
/// </summary>
/// <param name="footballType"></param>
/// <param name="seasonId"></param>
/// <returns></returns>
public
static
ShootPlayerRanks
Post_ShootPlayerRankData
(
string
footballType
,
string
seasonId
)
{
try
{
string
shootPath
=
strUrl
+
"player/getplayerstats"
;
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
dict
.
Add
(
"competitionId"
,
footballType
);
dict
.
Add
(
"seasonId"
,
seasonId
);
//"110000005454"
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
result
=
JsonHelper
.
Post
(
shootPath
,
dict
,
newKey
);
Log
.
Info
(
"足球球员射手排行==>"
+
result
);
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
ShootPlayerRanks
shootPlayerRanks
=
JsonConvert
.
DeserializeObject
<
ShootPlayerRanks
>(
result
,
settings
);
var
sortPlayerShoot
=
shootPlayerRanks
.
playerstats
.
OrderBy
(
a
=>
a
.
rank
).
Take
(
5
).
ToList
();
shootPlayerRanks
.
playerstats
=
sortPlayerShoot
;
return
shootPlayerRanks
;
}
catch
(
Exception
ex
)
{
Log
.
Error
(
ex
.
Message
);
return
null
;
}
}
}
}
}
}
VIZ.TVP.FTB.Module/FDayMatch/View/FDayMatchView.xaml.cs
View file @
e6ac644f
...
@@ -26,7 +26,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -26,7 +26,7 @@ namespace VIZ.TVP.FTB.Module
public
partial
class
FDayMatchView
:
UserControl
,
IPluginView
public
partial
class
FDayMatchView
:
UserControl
,
IPluginView
{
{
FDayMatchViewModel
vm
=
null
;
public
FDayMatchViewModel
vm
=
new
FDayMatchViewModel
()
;
/// <summary>
/// <summary>
/// 日志
/// 日志
...
@@ -36,9 +36,9 @@ namespace VIZ.TVP.FTB.Module
...
@@ -36,9 +36,9 @@ namespace VIZ.TVP.FTB.Module
{
{
InitializeComponent
();
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
new
FDayMatchViewModel
()
);
WPFHelper
.
BindingViewModel
(
this
,
vm
);
vm
=
this
.
DataContext
as
FDayMatchViewModel
;
FDayMatchViewModel
.
FDayMatchViewModelInstance
=
vm
;
}
}
...
...
VIZ.TVP.FTB.Module/FDayMatch/ViewModel/FDayMatchViewModel.cs
View file @
e6ac644f
...
@@ -17,6 +17,9 @@ namespace VIZ.TVP.FTB.Module
...
@@ -17,6 +17,9 @@ namespace VIZ.TVP.FTB.Module
/// </summary>
/// </summary>
private
static
ILog
Log
=
LogManager
.
GetLogger
(
typeof
(
FDayMatchViewModel
));
private
static
ILog
Log
=
LogManager
.
GetLogger
(
typeof
(
FDayMatchViewModel
));
public
static
FDayMatchViewModel
FDayMatchViewModelInstance
=
new
FDayMatchViewModel
();
public
FDayMatchViewModel
()
public
FDayMatchViewModel
()
{
{
//初始化方法
//初始化方法
...
@@ -65,6 +68,15 @@ namespace VIZ.TVP.FTB.Module
...
@@ -65,6 +68,15 @@ namespace VIZ.TVP.FTB.Module
}
}
/// <summary>
/// 足球赛事类型
/// </summary>
public
string
FoolballType
=
""
;
/// <summary>
/// 赛季ID
/// </summary>
public
string
SeasonId
=
""
;
/// <summary>
/// <summary>
...
@@ -83,7 +95,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -83,7 +95,7 @@ namespace VIZ.TVP.FTB.Module
// SetRoundMatchData();
// SetRoundMatchData();
RoundMatchData
=
await
JsonModel
.
PostTomorrowMatch_Path
(
roundMatchItem
.
ToString
());
RoundMatchData
=
await
JsonModel
.
PostTomorrowMatch_Path
(
roundMatchItem
.
ToString
()
,
FoolballType
);
if
(
RoundMatchData
==
null
)
return
;
if
(
RoundMatchData
==
null
)
return
;
...
@@ -204,6 +216,8 @@ namespace VIZ.TVP.FTB.Module
...
@@ -204,6 +216,8 @@ namespace VIZ.TVP.FTB.Module
}
}
roundMatchItem
=
1
;
roundMatchItem
=
1
;
FoolballType
=
DateHeaderViewModel
.
FoolballType
;
SeasonId
=
DateHeaderViewModel
.
SeasonId
;
}
}
...
...
VIZ.TVP.FTB.Module/FTeamStandings/View/FTeamStandingView.xaml.cs
View file @
e6ac644f
...
@@ -23,7 +23,7 @@ namespace VIZ.TVP.FTB.Module
...
@@ -23,7 +23,7 @@ namespace VIZ.TVP.FTB.Module
/// </summary>
/// </summary>
public
partial
class
FTeamStandingView
:
UserControl
,
IPluginView
public
partial
class
FTeamStandingView
:
UserControl
,
IPluginView
{
{
FTeamStandingViewModel
vm
=
n
ull
;
FTeamStandingViewModel
vm
=
n
ew
FTeamStandingViewModel
()
;
/// <summary>
/// <summary>
/// 操作日志服务
/// 操作日志服务
...
@@ -34,9 +34,11 @@ namespace VIZ.TVP.FTB.Module
...
@@ -34,9 +34,11 @@ namespace VIZ.TVP.FTB.Module
InitializeComponent
();
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
new
FTeamStandingViewModel
()
);
WPFHelper
.
BindingViewModel
(
this
,
vm
);
vm
=
this
.
DataContext
as
FTeamStandingViewModel
;
//vm = this.DataContext as FTeamStandingViewModel;
FTeamStandingViewModel
.
FTeamStandingViewModelInstance
=
vm
;
}
}
...
...
VIZ.TVP.FTB.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
View file @
e6ac644f
...
@@ -15,6 +15,11 @@ namespace VIZ.TVP.FTB.Module
...
@@ -15,6 +15,11 @@ namespace VIZ.TVP.FTB.Module
/// 日志
/// 日志
/// </summary>
/// </summary>
private
static
ILog
Log
=
LogManager
.
GetLogger
(
typeof
(
FTeamStandingViewModel
));
private
static
ILog
Log
=
LogManager
.
GetLogger
(
typeof
(
FTeamStandingViewModel
));
/// <summary>
///
/// </summary>
public
static
FTeamStandingViewModel
FTeamStandingViewModelInstance
=
new
FTeamStandingViewModel
();
public
FTeamStandingViewModel
()
public
FTeamStandingViewModel
()
{
{
//初始化方法
//初始化方法
...
@@ -44,7 +49,34 @@ namespace VIZ.TVP.FTB.Module
...
@@ -44,7 +49,34 @@ namespace VIZ.TVP.FTB.Module
private
void
BtmCommand
()
private
void
BtmCommand
()
{
{
teamStands
=
new
TeamRanks
();
teamStands
=
new
TeamRanks
();
teamStands
=
JsonModel
.
PostTeamScoreData_Path
();
if
(
FoolballType
==
"英超"
)
{
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
EPCSeasonId
;
}
else
if
(
FoolballType
==
"法甲"
)
{
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
FL1SeasonId
;
}
else
if
(
FoolballType
==
"意甲"
)
{
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
ISASeasonId
;
}
else
if
(
FoolballType
==
"德甲"
)
{
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
LIGASeasonId
;
}
else
if
(
FoolballType
==
"西甲"
)
{
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SLPSeasonId
;
}
teamStands
=
JsonModel
.
PostTeamScoreData_Path
(
FoolballType
,
SeasonId
);
if
(
teamStands
==
null
)
return
;
if
(
teamStands
==
null
)
return
;
TeamRanksModel
=
new
ObservableCollection
<
Teamrank
>();
TeamRanksModel
=
new
ObservableCollection
<
Teamrank
>();
int
i
=
1
;
int
i
=
1
;
...
@@ -139,6 +171,18 @@ namespace VIZ.TVP.FTB.Module
...
@@ -139,6 +171,18 @@ namespace VIZ.TVP.FTB.Module
}
}
/// <summary>
/// 足球赛事类型
/// </summary>
public
string
FoolballType
=
""
;
/// <summary>
/// 赛季ID
/// </summary>
public
string
SeasonId
=
""
;
/// <summary>
/// <summary>
/// 初始话
/// 初始话
/// </summary>
/// </summary>
...
@@ -147,6 +191,9 @@ namespace VIZ.TVP.FTB.Module
...
@@ -147,6 +191,9 @@ namespace VIZ.TVP.FTB.Module
BtnCmd
=
new
VCommand
(
BtmCommand
);
BtnCmd
=
new
VCommand
(
BtmCommand
);
PromptCommand
=
new
VCommand
(
PromptCmd
);
PromptCommand
=
new
VCommand
(
PromptCmd
);
FoolballType
=
DateHeaderViewModel
.
FoolballType
;
SeasonId
=
DateHeaderViewModel
.
SeasonId
;
}
}
#
region
打开更新数据时间日志
#
region
打开更新数据时间日志
...
...
VIZ.TVP.FTB.Module/HeaderPage/View/DateHeaderView.xaml
View file @
e6ac644f
...
@@ -24,14 +24,21 @@
...
@@ -24,14 +24,21 @@
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="1
2
0"/>
<ColumnDefinition Width="1
1
0"/>
<ColumnDefinition Width="
8
0"/>
<ColumnDefinition Width="
9
0"/>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="280"/>
<ColumnDefinition Width="280"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<TextBlock Text="赛事:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="1" Height="30" Grid.Row="8" Width="100"
ItemsSource="{Binding Path=FootballTypes,Mode=TwoWay}" SelectedItem="{Binding Path=SelectFootballType,Mode=TwoWay}"></dxe:ComboBoxEdit>
<WrapPanel Grid.Column="4" VerticalAlignment="Center">
<WrapPanel Grid.Column="4" VerticalAlignment="Center">
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
...
...
VIZ.TVP.FTB.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
View file @
e6ac644f
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
...
@@ -17,6 +18,17 @@ namespace VIZ.TVP.FTB.Module
...
@@ -17,6 +18,17 @@ namespace VIZ.TVP.FTB.Module
public
class
DateHeaderViewModel
:
ViewModelBase
public
class
DateHeaderViewModel
:
ViewModelBase
{
{
public
DateHeaderViewModel
()
{
FootballTypes
=
new
ObservableCollection
<
string
>()
{
"英超"
,
"法甲"
,
"意甲"
,
"德甲"
,
"西甲"
};
SelectFootballType
=
"英超"
;
}
private
static
AppSetup_InitLiteDB
appSetup_InitCBALiteDB
=
AppSetup_InitLiteDB
.
CreateInstance
;
/// <summary>
/// <summary>
/// 操作日志服务
/// 操作日志服务
/// </summary>
/// </summary>
...
@@ -69,5 +81,94 @@ namespace VIZ.TVP.FTB.Module
...
@@ -69,5 +81,94 @@ namespace VIZ.TVP.FTB.Module
}
}
/// <summary>
/// 足球赛事类型
/// </summary>
public
static
string
FoolballType
=
""
;
/// <summary>
/// 赛季ID
/// </summary>
public
static
string
SeasonId
=
""
;
/// <summary>
/// 足球类型选择
/// </summary>
private
ObservableCollection
<
string
>
footballTypes
;
public
ObservableCollection
<
string
>
FootballTypes
{
get
{
return
footballTypes
;
}
set
{
footballTypes
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
FootballTypes
));
}
}
/// <summary>
/// 选择的足球比赛
/// </summary>
private
string
selectFootballType
;
public
string
SelectFootballType
{
get
{
return
selectFootballType
;
}
set
{
selectFootballType
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectFootballType
));
//if(string.IsNullOrEmpty(selectFootballType))
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.FoolballType = "";
// FTeamStandingViewModel.FTeamStandingViewModelInstance.FoolballType = "";
// SeasonId = "";
// FoolballType = "";
// return;
//}
FDayMatchViewModel
.
FDayMatchViewModelInstance
.
FoolballType
=
selectFootballType
;
FTeamStandingViewModel
.
FTeamStandingViewModelInstance
.
FoolballType
=
selectFootballType
;
FoolballType
=
selectFootballType
;
//if (selectFootballType=="英超")
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.EPCSeasonId;
// FTeamStandingViewModel.FTeamStandingViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.EPCSeasonId;
// SeasonId= AppSetup_InitLiteDB.HttpUrlConfigEntity.EPCSeasonId;
//}
//else if(selectFootballType == "法甲")
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.FL1SeasonId;
// FTeamStandingViewModel.FTeamStandingViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.FL1SeasonId;
// SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.FL1SeasonId;
//}
//else if(selectFootballType == "意甲")
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.ISASeasonId;
// FTeamStandingViewModel.FTeamStandingViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.ISASeasonId;
// SeasonId= AppSetup_InitLiteDB.HttpUrlConfigEntity.ISASeasonId;
//}
//else if(selectFootballType == "德甲")
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.LIGASeasonId;
// FTeamStandingViewModel.FTeamStandingViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.LIGASeasonId;
// SeasonId= AppSetup_InitLiteDB.HttpUrlConfigEntity.LIGASeasonId;
//}
//else if(selectFootballType == "西甲")
//{
// FDayMatchViewModel.FDayMatchViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.SLPSeasonId;
// FTeamStandingViewModel.FTeamStandingViewModelInstance.SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.SLPSeasonId;
// SeasonId = AppSetup_InitLiteDB.HttpUrlConfigEntity.SLPSeasonId;
//}
}
}
}
}
}
}
VIZ.TVP.FTB.Module/Setting/httpUrl/View/HttpUrlConfigView.xaml
View file @
e6ac644f
...
@@ -16,25 +16,34 @@
...
@@ -16,25 +16,34 @@
<Grid>
<Grid>
<!-- 数据访问设置 -->
<!-- 数据访问设置 -->
<GroupBox Header="
主数据访问
配置" Margin="10" Padding="10">
<GroupBox Header="
足球赛事
配置" Margin="10" Padding="10">
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
...
@@ -74,10 +83,10 @@
...
@@ -74,10 +83,10 @@
<!-- 地址 -->
<!-- 地址 -->
<TextBlock Text="
比赛类型:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0
" Grid.Row="8" ></TextBlock>
<TextBlock Text="
赛季配置:" VerticalAlignment="Center" HorizontalAlignment="Center
" Grid.Row="8" ></TextBlock>
<WrapPanel Grid.Column="1" Grid.Row="
8
" HorizontalAlignment="Left" VerticalAlignment="Center">
<WrapPanel Grid.Column="1" Grid.Row="
9
" HorizontalAlignment="Left" VerticalAlignment="Center">
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<Grid.ColumnDefinitions>
...
@@ -85,27 +94,107 @@
...
@@ -85,27 +94,107 @@
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<dxe:ComboBoxEdit Grid.Column="0" Height="30" Grid.Row="8" Width="100"
<TextBlock Text="英超:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
ItemsSource="{Binding Path= FootballTypes,Mode=TwoWay}" SelectedItem="{Binding Path=SelectFootballType,Mode=TwoWay}"></dxe:ComboBoxEdit>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
ItemsSource="{Binding Path=EPCSeasons,Mode=TwoWay}" SelectedItem="{Binding Path=EPCSelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
</Grid>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="10" HorizontalAlignment="Left" VerticalAlignment="Center">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<TextBlock Text="法甲:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
ItemsSource="{Binding Path=
Seasons,Mode=TwoWay}" SelectedItem="{Binding Path=
SelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
ItemsSource="{Binding Path=
FL1Seasons,Mode=TwoWay}" SelectedItem="{Binding Path=FL1
SelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
</Grid>
</Grid>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="11" HorizontalAlignment="Left" VerticalAlignment="Center">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<TextBlock Text="意甲:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
ItemsSource="{Binding Path=ISASeasons,Mode=TwoWay}" SelectedItem="{Binding Path=ISASelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
</Grid>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="12" HorizontalAlignment="Left" VerticalAlignment="Center">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<TextBlock Text="德甲:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
ItemsSource="{Binding Path=LIGASeasons,Mode=TwoWay}" SelectedItem="{Binding Path=LIGASelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
</Grid>
</WrapPanel>
</WrapPanel>
<WrapPanel Grid.Column="1" Grid.Row="13" HorizontalAlignment="Left" VerticalAlignment="Center">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<TextBlock Text="西甲:" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<TextBlock Text="赛季:" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>
<dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
ItemsSource="{Binding Path=SLPSeasons,Mode=TwoWay}" SelectedItem="{Binding Path=SLPSelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>
</Grid>
</WrapPanel>
</Grid>
</Grid>
...
...
VIZ.TVP.FTB.Module/Setting/httpUrl/ViewModel/HttpUrlConfigViewModel.cs
View file @
e6ac644f
...
@@ -33,10 +33,10 @@ namespace VIZ.TVP.FTB.Module
...
@@ -33,10 +33,10 @@ namespace VIZ.TVP.FTB.Module
// HttpUrlConfigEntity config = AppSetup_InitCBALiteDB.HttpUrlConfigEntity;
// HttpUrlConfigEntity config = AppSetup_InitCBALiteDB.HttpUrlConfigEntity;
FootballTypes
=
new
ObservableCollection
<
string
>()
//
FootballTypes = new ObservableCollection<string>()
{
//
{
"英超"
,
"法甲"
,
"意甲"
,
"德甲"
,
"西甲"
//
"英超","法甲","意甲","德甲","西甲"
};
//
};
}
}
/// <summary>
/// <summary>
...
@@ -154,84 +154,292 @@ namespace VIZ.TVP.FTB.Module
...
@@ -154,84 +154,292 @@ namespace VIZ.TVP.FTB.Module
/// <summary>
/// <summary>
/// 足球类型选择
/// 足球类型选择
/// </summary>
/// </summary>
private
ObservableCollection
<
string
>
footballTypes
;
//private ObservableCollection<string> footballTypes;
//public ObservableCollection<string> FootballTypes
//{
// get { return footballTypes; }
// set { footballTypes = value; this.RaisePropertyChanged(nameof(FootballTypes)); }
//}
///// <summary>
///// 选择的足球比赛
///// </summary>
//private string selectFootballType="德甲";
//public string SelectFootballType
//{
// get { return selectFootballType; }
// set
// {
// selectFootballType = value;
// this.RaisePropertyChanged(nameof(SelectFootballType));
// SetSeasonDict();
// if (selectSeason == null) return;
// if (SeasonDict.ContainsKey(selectSeason))
// {
// SeasonId = SeasonDict[selectSeason];
// }
// }
//}
/// <summary>
/// 英超赛季绑定集合
/// </summary>
public
ObservableCollection
<
string
>
FootballTypes
public
Dictionary
<
string
,
string
>
EPCSeasonDict
=
new
Dictionary
<
string
,
string
>();
private
ObservableCollection
<
string
>
EPCseasons
;
public
ObservableCollection
<
string
>
EPCSeasons
{
{
get
{
return
footballType
s
;
}
get
{
return
EPCseason
s
;
}
set
{
footballTypes
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
FootballType
s
));
}
set
{
EPCseasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
EPCSeason
s
));
}
}
}
private
string
ePCselectSeason
;
/// <summary>
/// <summary>
///
选择的足球比赛
///
英超选中的赛季
/// </summary>
/// </summary>
private
string
selectFootballType
=
"德甲"
;
public
string
EPCSelectSeason
public
string
SelectFootballType
{
{
get
{
return
selectFootballType
;
}
get
{
return
ePCselectSeason
;
}
set
set
{
{
selectFootballType
=
value
;
ePCselectSeason
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectFootballType
));
this
.
RaisePropertyChanged
(
nameof
(
EPCSelectSeason
));
SetSeasonDict
();
if
(
selectSeason
==
null
)
return
;
if
(
ePC
selectSeason
==
null
)
return
;
if
(
SeasonDict
.
ContainsKey
(
selectSeason
))
if
(
EPCSeasonDict
.
ContainsKey
(
ePC
selectSeason
))
{
{
SeasonId
=
SeasonDict
[
selectSeason
];
EPCSeasonId
=
EPCSeasonDict
[
ePC
selectSeason
];
}
}
}
}
}
}
/// <summary>
/// <summary>
/// 赛季绑定集合
///
法甲
赛季绑定集合
/// </summary>
/// </summary>
p
rivate
ObservableCollection
<
string
>
seasons
;
p
ublic
Dictionary
<
string
,
string
>
FL1SeasonDict
=
new
Dictionary
<
string
,
string
>()
;
private
ObservableCollection
<
string
>
FL1seasons
;
public
ObservableCollection
<
string
>
Seasons
public
ObservableCollection
<
string
>
FL1Seasons
{
{
get
{
return
seasons
;
}
get
{
return
FL1
seasons
;
}
set
{
seasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
Seasons
));
}
set
{
FL1seasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
FL1
Seasons
));
}
}
}
private
string
selectSeason
;
private
string
fL1
selectSeason
;
/// <summary>
/// <summary>
/// 选中的赛季
///
法甲
选中的赛季
/// </summary>
/// </summary>
public
string
SelectSeason
public
string
FL1
SelectSeason
{
{
get
{
return
selectSeason
;
}
get
{
return
fL1selectSeason
;
}
set
set
{
{
selectSeason
=
value
;
fL1selectSeason
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectSeason
));
this
.
RaisePropertyChanged
(
nameof
(
FL1SelectSeason
));
if
(
fL1selectSeason
==
null
)
return
;
if
(
FL1SeasonDict
.
ContainsKey
(
fL1selectSeason
))
{
FL1SeasonId
=
FL1SeasonDict
[
fL1selectSeason
];
}
}
}
/// <summary>
/// 意甲赛季绑定集合
/// </summary>
public
Dictionary
<
string
,
string
>
ISASeasonDict
=
new
Dictionary
<
string
,
string
>();
private
ObservableCollection
<
string
>
ISAseasons
;
public
ObservableCollection
<
string
>
ISASeasons
{
get
{
return
ISAseasons
;
}
set
{
ISAseasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ISASeasons
));
}
}
private
string
iSAselectSeason
;
/// <summary>
/// 意甲选中的赛季
/// </summary>
public
string
ISASelectSeason
{
get
{
return
iSAselectSeason
;
}
set
{
iSAselectSeason
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ISASelectSeason
));
if
(
iSAselectSeason
==
null
)
return
;
if
(
ISASeasonDict
.
ContainsKey
(
iSAselectSeason
))
{
ISASeasonId
=
ISASeasonDict
[
iSAselectSeason
];
}
}
}
/// <summary>
/// 德甲赛季绑定集合
/// </summary>
public
Dictionary
<
string
,
string
>
LIGASeasonDict
=
new
Dictionary
<
string
,
string
>();
private
ObservableCollection
<
string
>
LIGAseasons
;
if
(
selectSeason
==
null
)
return
;
public
ObservableCollection
<
string
>
LIGASeasons
if
(
SeasonDict
.
ContainsKey
(
selectSeason
))
{
get
{
return
LIGAseasons
;
}
set
{
LIGAseasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
LIGASeasons
));
}
}
private
string
lIGAselectSeason
;
/// <summary>
/// 德甲选中的赛季
/// </summary>
public
string
LIGASelectSeason
{
get
{
return
lIGAselectSeason
;
}
set
{
lIGAselectSeason
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
LIGASelectSeason
));
if
(
lIGAselectSeason
==
null
)
return
;
if
(
LIGASeasonDict
.
ContainsKey
(
lIGAselectSeason
))
{
{
SeasonId
=
SeasonDict
[
selectSeason
];
LIGASeasonId
=
LIGASeasonDict
[
lIGA
selectSeason
];
}
}
}
}
}
}
/// <summary>
/// <summary>
///
赛季Id
///
西甲赛季绑定集合
/// </summary>
/// </summary>
public
string
SeasonId
public
Dictionary
<
string
,
string
>
SLPSeasonDict
=
new
Dictionary
<
string
,
string
>();
private
ObservableCollection
<
string
>
SLPseasons
;
public
ObservableCollection
<
string
>
SLPSeasons
{
get
{
return
SLPseasons
;
}
set
{
SLPseasons
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SLPSeasons
));
}
}
private
string
sLPselectSeason
;
/// <summary>
/// 西甲选中的赛季
/// </summary>
public
string
SLPSelectSeason
{
get
{
return
sLPselectSeason
;
}
set
{
sLPselectSeason
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SLPSelectSeason
));
if
(
sLPselectSeason
==
null
)
return
;
if
(
SLPSeasonDict
.
ContainsKey
(
sLPselectSeason
))
{
SLPSeasonId
=
SLPSeasonDict
[
sLPselectSeason
];
}
}
}
/// <summary>
/// 英超赛季Id
/// </summary>
public
string
EPCSeasonId
{
get
;
set
;
}
/// <summary>
/// 法甲赛季Id
/// </summary>
public
string
FL1SeasonId
{
{
get
;
set
;
get
;
set
;
}
}
/// <summary>
/// 意甲赛季Id
/// </summary>
public
string
ISASeasonId
{
get
;
set
;
}
/// <summary>
/// 德甲赛季Id
/// </summary>
public
string
LIGASeasonId
{
get
;
set
;
}
/// <summary>
/// 西甲赛季Id
/// </summary>
public
string
SLPSeasonId
{
get
;
set
;
}
#
endregion
#
endregion
...
@@ -269,12 +477,43 @@ namespace VIZ.TVP.FTB.Module
...
@@ -269,12 +477,43 @@ namespace VIZ.TVP.FTB.Module
this
.
BAppKey
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
BAppKey
;
this
.
BAppKey
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
BAppKey
;
this
.
SelectFootballType
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectFootballType
;
// this.SelectFootballType = AppSetup_InitLiteDB.HttpUrlConfigEntity.SelectFootballType;
// this.SelectSeason = AppSetup_InitLiteDB.HttpUrlConfigEntity.SelectSeason;
//英超
this
.
EPCSeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
EPCSeasonId
;
//法甲
this
.
FL1SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
FL1SeasonId
;
this
.
SelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectSeason
;
//意甲
this
.
ISASeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
ISASeasonId
;
//德甲
this
.
LIGASeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
LIGASeasonId
;
//西甲
this
.
SLPSeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SLPSeasonId
;
//选择的英超赛季
this
.
EPCSelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectEPCSeasonId
;
//选择的法甲赛季
this
.
FL1SelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectFL1SeasonId
;
//选择的意甲赛季
this
.
ISASelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectISASeasonId
;
//选择的德甲赛季
this
.
LIGASelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectLIGASeasonId
;
//选择的西甲赛季
this
.
SLPSelectSeason
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SelectSLPSeasonId
;
this
.
SeasonId
=
AppSetup_InitLiteDB
.
HttpUrlConfigEntity
.
SeasonId
;
SetSeasonDict
();
SetSeasonDict
();
...
@@ -299,46 +538,141 @@ namespace VIZ.TVP.FTB.Module
...
@@ -299,46 +538,141 @@ namespace VIZ.TVP.FTB.Module
config
.
BUrl
=
this
.
BUrl
;
config
.
BUrl
=
this
.
BUrl
;
config
.
BAppId
=
this
.
BAppId
;
config
.
BAppId
=
this
.
BAppId
;
config
.
BAppKey
=
this
.
BAppKey
;
config
.
BAppKey
=
this
.
BAppKey
;
config
.
SelectFootballType
=
this
.
SelectFootballType
;
//
config.SelectFootballType = this.SelectFootballType;
// 选择赛事和赛事Id
// 选择赛事和赛事Id
config
.
SelectSeason
=
this
.
SelectSeason
;
//config.SelectSeason = this.SelectSeason;
config
.
SeasonId
=
this
.
SeasonId
;
config
.
EPCSeasonId
=
this
.
EPCSeasonId
;
config
.
FL1SeasonId
=
this
.
FL1SeasonId
;
config
.
ISASeasonId
=
this
.
ISASeasonId
;
config
.
LIGASeasonId
=
this
.
LIGASeasonId
;
config
.
SLPSeasonId
=
this
.
SLPSeasonId
;
//选择的英超赛季
config
.
SelectEPCSeasonId
=
this
.
EPCSelectSeason
;
//选择的法甲赛季
config
.
SelectFL1SeasonId
=
this
.
FL1SelectSeason
;
//选择的意甲赛季
config
.
SelectISASeasonId
=
this
.
ISASelectSeason
;
//选择的德甲赛季
config
.
SelectLIGASeasonId
=
this
.
LIGASelectSeason
;
//选择的西甲赛季
config
.
SelectSLPSeasonId
=
this
.
SLPSelectSeason
;
AppSetup_InitLiteDB
.
localDbContext
.
HttpUrlConfig
.
Upsert
(
config
);
AppSetup_InitLiteDB
.
localDbContext
.
HttpUrlConfig
.
Upsert
(
config
);
}
}
public
Dictionary
<
string
,
string
>
SeasonDict
=
new
Dictionary
<
string
,
string
>();
/// <summary>
/// <summary>
/// 赛季数据
/// 赛季数据
/// </summary>
/// </summary>
public
Seasons
dictSeasons
=
null
;
//
public Seasons dictSeasons = null;
/// <summary>
/// <summary>
/// 设置赛季接口
/// 设置赛季接口
/// </summary>
/// </summary>
private
void
SetSeasonDict
()
private
void
SetSeasonDict
()
{
{
SeasonDict
.
Clear
();
if
(
string
.
IsNullOrEmpty
(
selectFootballType
))
return
;
try
dictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
selectFootballType
);
foreach
(
var
dict
in
dictSeasons
.
matchseason
)
{
{
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
var
EPCDictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
"英超"
);
if
(!
SeasonDict
.
ContainsKey
(
seasonNameKey
))
foreach
(
var
dict
in
EPCDictSeasons
.
matchseason
)
{
{
SeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
if
(!
EPCSeasonDict
.
ContainsKey
(
seasonNameKey
))
{
EPCSeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
}
}
}
}
Seasons
=
new
ObservableCollection
<
string
>();
EPCSeasons
=
new
ObservableCollection
<
string
>();
EPCSeasons
=
EPCSeasonDict
.
Keys
.
ToObservableCollection
();
var
FL1DictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
"法甲"
);
foreach
(
var
dict
in
FL1DictSeasons
.
matchseason
)
{
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
if
(!
FL1SeasonDict
.
ContainsKey
(
seasonNameKey
))
{
FL1SeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
}
}
FL1Seasons
=
new
ObservableCollection
<
string
>();
FL1Seasons
=
FL1SeasonDict
.
Keys
.
ToObservableCollection
();
var
ISADictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
"意甲"
);
foreach
(
var
dict
in
ISADictSeasons
.
matchseason
)
{
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
if
(!
ISASeasonDict
.
ContainsKey
(
seasonNameKey
))
{
ISASeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
}
}
ISASeasons
=
new
ObservableCollection
<
string
>();
ISASeasons
=
ISASeasonDict
.
Keys
.
ToObservableCollection
();
var
LIGADictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
"德甲"
);
foreach
(
var
dict
in
LIGADictSeasons
.
matchseason
)
{
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
if
(!
LIGASeasonDict
.
ContainsKey
(
seasonNameKey
))
{
LIGASeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
}
}
LIGASeasons
=
new
ObservableCollection
<
string
>();
LIGASeasons
=
LIGASeasonDict
.
Keys
.
ToObservableCollection
();
var
SLPDictSeasons
=
JsonModel
.
Post_MatchSeasonData_Path
(
"西甲"
);
foreach
(
var
dict
in
SLPDictSeasons
.
matchseason
)
{
string
seasonNameKey
=
$"
{
dict
.
seasonName
}
_
{
dict
.
seasonId
}
"
;
if
(!
SLPSeasonDict
.
ContainsKey
(
seasonNameKey
))
{
SLPSeasonDict
.
Add
(
seasonNameKey
,
dict
.
seasonId
);
}
}
SLPSeasons
=
new
ObservableCollection
<
string
>();
SLPSeasons
=
SLPSeasonDict
.
Keys
.
ToObservableCollection
();
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
.
Message
);
}
Seasons
=
SeasonDict
.
Keys
.
ToObservableCollection
();
}
}
}
}
}
}
VIZ.TVP.FTB.Module/ShootPlayerRank/Model/ShootPlayerRank.cs
0 → 100644
View file @
e6ac644f
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.TVP.FTB.Module
{
public
class
ShootPlayerRank
{
/// <summary>
/// 球队名称
/// </summary>
public
string
teamName
{
get
;
set
;
}
/// <summary>
/// 球员图片
/// </summary>
public
string
playerLogo
{
get
;
set
;
}
/// <summary>
/// 球队国旗
/// </summary>
public
string
teamLogo
{
get
;
set
;
}
/// <summary>
/// 进球数量
/// </summary>
public
string
goals
{
get
;
set
;
}
/// <summary>
/// 球员名称
/// </summary>
public
string
figureName
{
get
;
set
;
}
/// <summary>
/// 球员Id
/// </summary>
public
string
PlayerID
{
get
;
set
;
}
/// <summary>
/// 排名
/// </summary>
public
string
rank
{
get
;
set
;
}
}
}
\ No newline at end of file
VIZ.TVP.FTB.Module/ShootPlayerRank/Model/ShootPlayerRanks.cs
0 → 100644
View file @
e6ac644f
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.TVP.FTB.Module
{
public
class
ShootPlayerRanks
{
/// <summary>
/// 最后推送时间
/// </summary>
public
string
LastPushDataDateTime
{
get
;
set
;
}
/// <summary>
/// 球员统计
/// </summary>
public
List
<
ShootPlayerRank
>
playerstats
{
get
;
set
;
}
}
}
VIZ.TVP.FTB.Module/Storge/AppSetup_InitLiteDB.cs
View file @
e6ac644f
...
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
...
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace
VIZ.TVP.FTB.Module
namespace
VIZ.TVP.FTB.Module
{
{
public
class
AppSetup_InitLiteDB
public
class
AppSetup_InitLiteDB
{
{
private
static
AppSetup_InitLiteDB
_createInstance
=
null
;
private
static
AppSetup_InitLiteDB
_createInstance
=
null
;
...
...
VIZ.TVP.FTB.Module/Storge/HttpUrlConfigEntity.cs
View file @
e6ac644f
...
@@ -56,20 +56,49 @@ namespace VIZ.TVP.FTB.Module
...
@@ -56,20 +56,49 @@ namespace VIZ.TVP.FTB.Module
/// <summary>
/// <summary>
/// 五大联赛
/// 五大联赛
/// </summary>
/// </summary>
public
string
SelectFootballType
{
get
;
set
;
}
=
"德甲"
;
//
public string SelectFootballType { get; set; } = "德甲";
/// <summary>
/// <summary>
/// 选择赛季
/// 选择赛季
/// </summary>
/// </summary>
public
string
SelectSeason
{
get
;
set
;
}
//
public string SelectSeason { get; set; }
/// <summary>
/// 赛季Id
/// </summary>
public
string
SeasonId
{
get
;
set
;
}
#
endregion
//英超赛季Id
public
string
EPCSeasonId
{
get
;
set
;
}
//英超选中赛季
public
string
SelectEPCSeasonId
{
get
;
set
;
}
//法甲赛季Id
public
string
FL1SeasonId
{
get
;
set
;
}
// 法甲选中赛季
public
string
SelectFL1SeasonId
{
get
;
set
;
}
//意甲赛季Id
public
string
ISASeasonId
{
get
;
set
;
}
//意甲选中赛季
public
string
SelectISASeasonId
{
get
;
set
;
}
//德甲赛季Id
public
string
LIGASeasonId
{
get
;
set
;
}
//德甲选中赛季
public
string
SelectLIGASeasonId
{
get
;
set
;
}
//西甲赛季Id
public
string
SLPSeasonId
{
get
;
set
;
}
//西甲选中赛季
public
string
SelectSLPSeasonId
{
get
;
set
;
}
#
endregion
}
}
}
}
VIZ.TVP.FTB.Module/VIZ.TVP.FTB.Module.csproj
View file @
e6ac644f
...
@@ -128,6 +128,8 @@
...
@@ -128,6 +128,8 @@
<Compile Include="Setting\httpUrl\View\HttpUrlConfigView.xaml.cs">
<Compile Include="Setting\httpUrl\View\HttpUrlConfigView.xaml.cs">
<DependentUpon>HttpUrlConfigView.xaml</DependentUpon>
<DependentUpon>HttpUrlConfigView.xaml</DependentUpon>
</Compile>
</Compile>
<Compile Include="ShootPlayerRank\Model\ShootPlayerRank.cs" />
<Compile Include="ShootPlayerRank\Model\ShootPlayerRanks.cs" />
<Compile Include="Storge\AppSetup_InitLiteDB.cs" />
<Compile Include="Storge\AppSetup_InitLiteDB.cs" />
<Compile Include="Storge\HttpUrlConfigEntity.cs" />
<Compile Include="Storge\HttpUrlConfigEntity.cs" />
<Compile Include="Storge\LocalDbContext.cs" />
<Compile Include="Storge\LocalDbContext.cs" />
...
@@ -194,7 +196,10 @@
...
@@ -194,7 +196,10 @@
<Name>VIZ.Package.Storage</Name>
<Name>VIZ.Package.Storage</Name>
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="ShootPlayerRank\ViewModel\" />
<Folder Include="ShootPlayerRank\View\" />
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Page Include="FDayMatch\View\FDayMatchView.xaml">
<Page Include="FDayMatch\View\FDayMatchView.xaml">
<SubType>Designer</SubType>
<SubType>Designer</SubType>
...
...
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