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
b80b09a1
Commit
b80b09a1
authored
Jul 15, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小组积分榜添加
parent
8b840e86
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
193 additions
and
4 deletions
+193
-4
VIZ.TVP.WMCUP.Module/FGTeamStanding/FGTeamStandingViewPlugin.cs
+49
-0
VIZ.TVP.WMCUP.Module/FGTeamStanding/View/FGTeamStandingView.xaml
+0
-0
VIZ.TVP.WMCUP.Module/FGTeamStanding/View/FGTeamStandingView.xaml.cs
+131
-0
VIZ.TVP.WMCUP.Module/FGTeamStanding/ViewModel/FGTeamStandingViewModel.cs
+0
-0
VIZ.TVP.WMCUP.Module/FTeamStandings/FTeamStandingViewPlugin.cs
+1
-1
VIZ.TVP.WMCUP.Module/FTeamStandings/View/FTeamStandingView.xaml
+2
-2
VIZ.TVP.WMCUP.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
+1
-1
VIZ.TVP.WMCUP.Module/VIZ.TVP.WMCUP.Module.csproj
+9
-0
No files found.
VIZ.TVP.WMCUP.Module/FGTeamStanding/FGTeamStandingViewPlugin.cs
0 → 100644
View file @
b80b09a1
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
{
public
class
FGTeamStandingViewPlugin
:
IPluginLifeCycle
{
/// <summary>
/// 插件ID
/// </summary>
/// <remarks>
/// 插件ID不能包含点号
/// </remarks>
public
const
string
PLUGIN_ID
=
"FGTeamStandingViewPlugin"
;
/// <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
(
FTeamStandingView
);
//info.SettingViewType = typeof(DayMatchUI);
return
info
;
}
}
}
VIZ.TVP.WMCUP.Module/FGTeamStanding/View/FGTeamStandingView.xaml
0 → 100644
View file @
b80b09a1
This diff is collapsed.
Click to expand it.
VIZ.TVP.WMCUP.Module/FGTeamStanding/View/FGTeamStandingView.xaml.cs
0 → 100644
View file @
b80b09a1
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>
/// FGTeamStandingView.xaml 的交互逻辑
/// </summary>
public
partial
class
FGTeamStandingView
:
UserControl
,
IPluginView
{
FGTeamStandingViewModel
vm
=
new
FGTeamStandingViewModel
();
/// <summary>
/// 操作日志服务
/// </summary>
private
RecordLogService
recordLogService
=
new
RecordLogService
();
public
FGTeamStandingView
()
{
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
vm
);
//vm = this.DataContext as FTeamStandingViewModel;
FGTeamStandingViewModel
.
FGTeamStandingViewModelInstance
=
vm
;
}
public
void
Dispose
()
{
}
public
void
PageOpend
(
ConnModel
conn
,
PageModel
page
)
{
if
(
conn
.
IsConnected
&&
vm
.
TeamRanksModel
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamStandingData
()));
}
}
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
.
TeamRanksModel
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamStandingData
()));
}
}
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
.
TeamRanksModel
!=
null
)
{
conn
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamStandingData
()));
}
}
public
void
TakeContinue
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_CONTINUE
);
if
(
conns
.
IsConnected
&&
vm
.
TeamRanksModel
!=
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
.
TeamRanksModel
!=
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
.
TeamRanksModel
!=
null
)
{
conns
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamStandingData
()));
}
}
public
void
TakIn
(
ConnModel
conns
)
{
this
.
recordLogService
.
AppendLog
(
ApplicationConstants
.
APPLICATION_GROUP_NAME
,
RecordLogOperate
.
Operate
,
RecordLogTrigger
.
Human
,
RecordLogConstants
.
OPERATE_TAKE_TAKE
);
if
(
conns
.
IsConnected
&&
vm
.
TeamRanksModel
!=
null
)
{
conns
.
EndpointManager
.
Send
(
String
.
Format
(
VizEngineCommands
.
SCRIPT_INVOKE
,
"Data"
,
vm
.
CombineTeamStandingData
()));
}
}
}
}
VIZ.TVP.WMCUP.Module/FGTeamStanding/ViewModel/FGTeamStandingViewModel.cs
0 → 100644
View file @
b80b09a1
This diff is collapsed.
Click to expand it.
VIZ.TVP.WMCUP.Module/FTeamStandings/FTeamStandingViewPlugin.cs
View file @
b80b09a1
...
@@ -7,7 +7,7 @@ using VIZ.Package.Domain;
...
@@ -7,7 +7,7 @@ using VIZ.Package.Domain;
namespace
VIZ.TVP.WMCUP.Module
namespace
VIZ.TVP.WMCUP.Module
{
{
public
class
FTeamStandingViewPlugin
public
class
FTeamStandingViewPlugin
:
IPluginLifeCycle
{
{
/// <summary>
/// <summary>
/// 插件ID
/// 插件ID
...
...
VIZ.TVP.WMCUP.Module/FTeamStandings/View/FTeamStandingView.xaml
View file @
b80b09a1
...
@@ -50,10 +50,10 @@
...
@@ -50,10 +50,10 @@
<!--<ColumnDefinition Width="120"/>-->
<!--<ColumnDefinition Width="120"/>-->
</Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<
!--<
TextBlock Grid.Column="0" Text="标题:" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Column="0" Text="标题:" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<dxe:TextEdit Grid.Column="1" Width="280" FontSize="16" HorizontalContentAlignment="Left"
<dxe:TextEdit Grid.Column="1" Width="280" FontSize="16" HorizontalContentAlignment="Left"
HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Title,Mode=TwoWay }"></dxe:TextEdit>
-->
HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Title,Mode=TwoWay }"></dxe:TextEdit>
<dxe:ComboBoxEdit Grid.Column="3" Width="100" FontSize="14" ItemsSource="{Binding Path=GroupItems,Mode=TwoWay}"
<dxe:ComboBoxEdit Grid.Column="3" Width="100" FontSize="14" ItemsSource="{Binding Path=GroupItems,Mode=TwoWay}"
SelectedItem="{Binding Path=SelectGroupItem,Mode=TwoWay}" />
SelectedItem="{Binding Path=SelectGroupItem,Mode=TwoWay}" />
...
...
VIZ.TVP.WMCUP.Module/FTeamStandings/ViewModel/FTeamStandingViewModel.cs
View file @
b80b09a1
...
@@ -267,7 +267,7 @@ namespace VIZ.TVP.WMCUP.Module
...
@@ -267,7 +267,7 @@ namespace VIZ.TVP.WMCUP.Module
MessageLRDateViewModel
vm
=
messageLastRecordDate
.
DataContext
as
MessageLRDateViewModel
;
MessageLRDateViewModel
vm
=
messageLastRecordDate
.
DataContext
as
MessageLRDateViewModel
;
if
(
teamStands
!=
null
)
if
(
teamStands
!=
null
)
{
{
string
LastDate
=
$"
{
FoolballType
}
:足球
积分接口更新时间:
{
teamStands
.
LastPushDataDateTime
}
"
;
string
LastDate
=
$"
女足世界杯
积分接口更新时间:
{
teamStands
.
LastPushDataDateTime
}
"
;
vm
.
OnErrorLogMessage
(
LastDate
);
vm
.
OnErrorLogMessage
(
LastDate
);
}
}
...
...
VIZ.TVP.WMCUP.Module/VIZ.TVP.WMCUP.Module.csproj
View file @
b80b09a1
...
@@ -82,6 +82,11 @@
...
@@ -82,6 +82,11 @@
<Compile Include="FDayMatch\View\FDayMatchView.xaml.cs">
<Compile Include="FDayMatch\View\FDayMatchView.xaml.cs">
<DependentUpon>FDayMatchView.xaml</DependentUpon>
<DependentUpon>FDayMatchView.xaml</DependentUpon>
</Compile>
</Compile>
<Compile Include="FGTeamStanding\FGTeamStandingViewPlugin.cs" />
<Compile Include="FGTeamStanding\ViewModel\FGTeamStandingViewModel.cs" />
<Compile Include="FGTeamStanding\View\FGTeamStandingView.xaml.cs">
<DependentUpon>FGTeamStandingView.xaml</DependentUpon>
</Compile>
<Compile Include="FTeamStandings\FTeamStandingViewPlugin.cs" />
<Compile Include="FTeamStandings\FTeamStandingViewPlugin.cs" />
<Compile Include="FTeamStandings\Mdoel\Teamrank.cs" />
<Compile Include="FTeamStandings\Mdoel\Teamrank.cs" />
<Compile Include="FTeamStandings\Mdoel\TeamRanks.cs" />
<Compile Include="FTeamStandings\Mdoel\TeamRanks.cs" />
...
@@ -185,6 +190,10 @@
...
@@ -185,6 +190,10 @@
<SubType>Designer</SubType>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
</Page>
</Page>
<Page Include="FGTeamStanding\View\FGTeamStandingView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="FTeamStandings\View\FTeamStandingView.xaml">
<Page Include="FTeamStandings\View\FTeamStandingView.xaml">
<SubType>Designer</SubType>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
...
...
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