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
16c55603
Commit
16c55603
authored
Jul 20, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时代码提交
parent
41c60bd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
354 additions
and
18 deletions
+354
-18
VIZ.TVP.WMCUP.Module/Common/JsonModel.cs
+56
-0
VIZ.TVP.WMCUP.Module/FDayMatch/Model/Dayschedule.cs
+2
-17
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/FTeamHistoryComparePlugin.cs
+53
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/TeamStat.cs
+50
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/TeamStats.cs
+22
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/statistic.cs
+24
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/View/FTeamHistoryCompareView.xaml
+0
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/View/FTeamHistoryCompareView.xaml.cs
+130
-0
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/ViewModel/FTeamHistoryCompareViewModel.cs
+0
-0
VIZ.TVP.WMCUP.Module/HeaderPage/View/DateHeaderView.xaml
+1
-1
VIZ.TVP.WMCUP.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
+0
-0
VIZ.TVP.WMCUP.Module/Image/FT/refresh2525.png
+0
-0
VIZ.TVP.WMCUP.Module/VIZ.TVP.WMCUP.Module.csproj
+16
-0
No files found.
VIZ.TVP.WMCUP.Module/Common/JsonModel.cs
View file @
16c55603
...
...
@@ -330,5 +330,61 @@ namespace VIZ.TVP.WMCUP.Module
}
/// <summary>
///女足球队历史数据统计
/// </summary>
/// <returns></returns>
public
async
static
Task
<
TeamStats
>
PostTeamHistoryData_Path
(
string
teamId
)
{
try
{
GethttpUrl
();
TeamStats
teamStats
=
new
TeamStats
();
await
Task
.
Run
(()
=>
{
string
TeamScoreDataPath
=
strUrl
+
"women/historyStat"
;
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>();
dict
.
Add
(
"teamId"
,
teamId
);
string
newKey
=
Utils
.
GetKey
(
appID
,
appKey
);
string
result
=
JsonHelper
.
Post
(
TeamScoreDataPath
,
dict
,
newKey
);
if
(
dataFromSource
)
{
Log
.
Info
(
$"球队积分排行数据:主数据来源:
{
TeamScoreDataPath
}
==>:"
+
result
);
}
else
{
Log
.
Info
(
$"球队积分排行数据:备份数据来源:
{
TeamScoreDataPath
}
==>:"
+
result
);
}
JsonSerializerSettings
settings
=
new
JsonSerializerSettings
();
settings
.
NullValueHandling
=
NullValueHandling
.
Ignore
;
teamStats
=
JsonConvert
.
DeserializeObject
<
TeamStats
>(
result
,
settings
);
Console
.
WriteLine
(
"球队积分排行数据============>:"
+
TeamScoreDataPath
);
});
return
teamStats
;
}
catch
(
Exception
ex
)
{
Log
.
Error
(
ex
.
Message
);
return
null
;
}
}
}
}
VIZ.TVP.WMCUP.Module/FDayMatch/Model/Dayschedule.cs
View file @
16c55603
...
...
@@ -51,25 +51,10 @@ namespace VIZ.TVP.WMCUP.Module
public
string
visitingShortTeamName
{
get
;
set
;
}
//客队球队简称
public
string
visitTeamId
{
get
;
set
;
}
//客户队伍Id
//private HighLightEnum light = HighLightEnum.OffLight;
public
string
homeTeamId
{
get
;
set
;
}
//主队队伍Id
///// <summary>
/////
///// </summary>
//public HighLightEnum Light
//{
// get { return light; }
// set { light = value; this.RaisePropertyChanged(nameof(Light)); }
//}
private
string
selectLight
=
"不高亮"
;
public
string
SelectLight
{
get
{
return
selectLight
;
}
set
{
selectLight
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
SelectLight
));
}
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/FTeamHistoryComparePlugin.cs
0 → 100644
View file @
16c55603
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Package.Domain
;
namespace
VIZ.TVP.WMCUP.Module
{
/// <summary>
/// 球员历史数据对比
/// </summary>
public
class
FTeamHistoryComparePlugin
:
IPluginLifeCycle
{
/// <summary>
/// 插件ID
/// </summary>
/// <remarks>
/// 插件ID不能包含点号
/// </remarks>
public
const
string
PLUGIN_ID
=
"FTeamHistoryCompareView"
;
/// <summary>
/// 插件显示名称
/// </summary>
public
const
string
PLUGIN_NAME
=
"历史对比数据"
;
public
void
Dispose
()
{
}
public
void
Initialize
()
{
}
public
PluginInfo
Register
()
{
PluginInfo
info
=
new
PluginInfo
();
info
.
Group
=
PluginConstant
.
GroupName
;
info
.
ID
=
PLUGIN_ID
;
info
.
Name
=
PLUGIN_NAME
;
info
.
PluginType
=
PluginType
.
Page
;
info
.
ViewType
=
typeof
(
FTeamHistoryCompareView
);
//info.SettingViewType = typeof(DayMatchUI);
return
info
;
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/TeamStat.cs
0 → 100644
View file @
16c55603
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.TVP.WMCUP.Module.FTeamHistoryCompare.Model
{
/// <summary>
/// 技术统计
/// </summary>
public
class
TeamStat
{
/// <summary>
/// 队伍Id
/// </summary>
public
string
teamId
{
get
;
set
;
}
/// <summary>
/// 赛事Id
/// </summary>
public
string
competitionId
{
get
;
set
;
}
/// <summary>
/// 球队名称
/// </summary>
public
string
teamName
{
get
;
set
;
}
/// <summary>
/// 国家名称
/// </summary>
public
string
nationName
{
get
;
set
;
}
/// <summary>
/// 赛季Id
/// </summary>
public
string
seasonId
{
get
;
set
;
}
/// <summary>
/// 球队logo标志
/// </summary>
public
string
countryLogo
{
get
;
set
;
}
/// <summary>
/// 技术统计项的值
/// </summary>
public
List
<
statistic
>
statistics
{
get
;
set
;
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/TeamStats.cs
0 → 100644
View file @
16c55603
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.TVP.WMCUP.Module.FTeamHistoryCompare.Model
;
namespace
VIZ.TVP.WMCUP.Module
{
public
class
TeamStats
{
/// <summary>
/// 最后推送时间
/// </summary>
public
string
LastPushDataDateTime
{
get
;
set
;
}
/// <summary>
/// 数据统计
/// </summary>
public
List
<
TeamStat
>
teamStat
{
get
;
set
;
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/Model/statistic.cs
0 → 100644
View file @
16c55603
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.TVP.WMCUP.Module
{
/// <summary>
/// 统计项数
/// </summary>
public
class
statistic
{
/// <summary>
/// 技术统计名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// 技术统计值
/// </summary>
public
string
value
{
get
;
set
;
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/View/FTeamHistoryCompareView.xaml
0 → 100644
View file @
16c55603
This diff is collapsed.
Click to expand it.
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/View/FTeamHistoryCompareView.xaml.cs
0 → 100644
View file @
16c55603
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
using
System.Windows.Documents
;
using
System.Windows.Input
;
using
System.Windows.Media
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Navigation
;
using
System.Windows.Shapes
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Service
;
using
VIZ.Package.Storage
;
namespace
VIZ.TVP.WMCUP.Module
{
/// <summary>
/// FTeamHistoryCompareView.xaml 的交互逻辑
/// </summary>
public
partial
class
FTeamHistoryCompareView
:
UserControl
{
public
FTeamHistoryCompareViewModel
vm
=
new
FTeamHistoryCompareViewModel
();
public
FTeamHistoryCompareView
()
{
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
vm
);
FTeamHistoryCompareViewModel
.
TeamStatsHistoryInstance
.
Add
(
vm
);
}
/// <summary>
/// 操作日志服务
/// </summary>
private
RecordLogService
recordLogService
=
new
RecordLogService
();
public
void
Dispose
()
{
}
public
void
PageOpend
(
ConnModel
conn
,
PageModel
page
)
{
if
(
conn
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamComData
()));
}
}
public
void
PreviewContinue
(
ConnModel
conn
)
{
}
public
void
PreviewIn
(
ConnModel
conn
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_PREVIEW_PLAY
);
if
(
conn
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamComData
()));
}
}
public
void
PreviewOut
(
ConnModel
conn
)
{
}
public
void
PreviewUpdate
(
ConnModel
conn
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_PREVIEW_UPDATE
);
if
(
conn
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamComData
()));
}
}
public
void
TakeContinue
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_CONTINUE
);
if
(
conns
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conns
.
EndpointManager
.
Send
(
VizEngineCommands
.
STAGE_CONTINUE
);
}
}
public
void
TakeOut
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_OUT
);
if
(
conns
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conns
.
EndpointManager
.
Send
(
VizEngineCommands
.
STAGE_CONTINUE
);
}
}
public
void
TakeUpdate
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_UPDATE
);
if
(
conns
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conns
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamComData
()));
}
}
public
void
TakIn
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_TAKE
);
if
(
conns
.
IsConnected
&&
vm
.
teamHomeStats
!=
null
)
{
conns
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamComData
()));
}
}
}
}
VIZ.TVP.WMCUP.Module/FTeamHistoryCompare/ViewModel/FTeamHistoryCompareViewModel.cs
0 → 100644
View file @
16c55603
This diff is collapsed.
Click to expand it.
VIZ.TVP.WMCUP.Module/HeaderPage/View/DateHeaderView.xaml
View file @
16c55603
...
...
@@ -117,7 +117,7 @@
Focusable="False">
</ScrollViewer>
<dxg:GridControl x:Name="grid" ShowBorder="False" ItemsSource="{Binding Path= MatchData,Mode=TwoWay}">
<dxg:GridControl x:Name="grid" ShowBorder="False" ItemsSource="{Binding Path= MatchData,Mode=TwoWay}"
SelectedItem="{Binding Path=SelectMatchData,Mode=TwoWay}"
>
<!--<dxg:GridColumn FieldName="SelectLight" Header="" Width="112">
<dxg:GridColumn.EditSettings>
...
...
VIZ.TVP.WMCUP.Module/HeaderPage/ViewModel/DateHeaderViewModel.cs
View file @
16c55603
This diff is collapsed.
Click to expand it.
VIZ.TVP.WMCUP.Module/Image/FT/refresh2525.png
0 → 100644
View file @
16c55603
829 Bytes
VIZ.TVP.WMCUP.Module/VIZ.TVP.WMCUP.Module.csproj
View file @
16c55603
...
...
@@ -114,6 +114,14 @@
<Compile Include="FGTeamStanding\View\FGTeamStandingView.xaml.cs">
<DependentUpon>FGTeamStandingView.xaml</DependentUpon>
</Compile>
<Compile Include="FTeamHistoryCompare\FTeamHistoryComparePlugin.cs" />
<Compile Include="FTeamHistoryCompare\Model\statistic.cs" />
<Compile Include="FTeamHistoryCompare\Model\TeamStat.cs" />
<Compile Include="FTeamHistoryCompare\Model\TeamStats.cs" />
<Compile Include="FTeamHistoryCompare\ViewModel\FTeamHistoryCompareViewModel.cs" />
<Compile Include="FTeamHistoryCompare\View\FTeamHistoryCompareView.xaml.cs">
<DependentUpon>FTeamHistoryCompareView.xaml</DependentUpon>
</Compile>
<Compile Include="FTeamStandings\FTeamStandingViewPlugin.cs" />
<Compile Include="FTeamStandings\Mdoel\Teamrank.cs" />
<Compile Include="FTeamStandings\Mdoel\TeamRanks.cs" />
...
...
@@ -229,6 +237,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="FTeamHistoryCompare\View\FTeamHistoryCompareView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="FTeamStandings\View\FTeamStandingView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
...
...
@@ -256,5 +268,8 @@
<ItemGroup>
<Folder Include="FFormation\Model\" />
</ItemGroup>
<ItemGroup>
<Resource Include="Image\FT\refresh2525.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
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