Commit b80b09a1 by wangonghui

小组积分榜添加

parent 8b840e86
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;
}
}
}
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()));
}
}
}
}
...@@ -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
......
...@@ -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}" />
......
...@@ -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);
} }
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment