You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
7.3 KiB

4 years ago
<Window x:Class="UniApiWpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
WindowStartupLocation="CenterScreen"
Title="数据中心接口系统" Height="700" >
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid HorizontalAlignment="Right" Background="#FFF0F0F0" Grid.Column="1" >
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Top">
<Button x:Name="BtnGetStop" Content="停止接收" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnGetStop_Click"/>
<Button x:Name="BtnGetStart" Content="开始接收" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnGetStart_Click"/>
<Button x:Name="BtnGetManual" Content="手动接收" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnGetManual_Click"/>
</StackPanel>
<syncfusion:SfDataGrid x:Name="GetDataGrid" Grid.Row="0" Grid.Column="0"
AutoGenerateColumns="False"
ColumnSizer="AutoLastColumnFill"
SelectionUnit="Row"
AllowEditing="True"
AllowFiltering="True"
AutoGenerateRelations="false"
ShowRowHeader="False"
ItemsSource="{Binding Path=GetLogItemsSource}"
SelectedItem="{Binding Path=SelecteGetLog}"
>
<syncfusion:SfDataGrid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.SfGrid.WPF;component/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="TextBlock">
<Setter Property="FontFamily" Value="Microsoft YaHei" />
</Style>
<Style TargetType="TextBox">
<Setter Property="FontFamily" Value="Microsoft YaHei" />
</Style>
</ResourceDictionary>
</syncfusion:SfDataGrid.Resources>
<syncfusion:SfDataGrid.Columns>
<!--<syncfusion:GridTextColumn HeaderText="执行状态" MappingName="TaskState" AllowEditing="False" />
<syncfusion:GridTextColumn HeaderText="任务表名" MappingName="TableName" AllowEditing="False"/>-->
<syncfusion:GridTextColumn HeaderText="任务编号" MappingName="TaskId" AllowEditing="False"/>
<syncfusion:GridTextColumn HeaderText="日志信息" MappingName="LogMessage" AllowEditing="False"/>
<syncfusion:GridTextColumn HeaderText="日志时间" MappingName="LogTime" AllowEditing="False"/>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
</Grid>
<Grid HorizontalAlignment="Left" Background="#FFF0F0F0" Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Top">
<Button x:Name="BtnPutStop" Content="停止发送" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnPutStop_Click"/>
<Button x:Name="BtnPutStart" Content="开始发送" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnPutStart_Click"/>
<Button x:Name="BtnPutManual" Content="手动发送" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="80" Click="BtnPutManual_Click"/>
</StackPanel>
<syncfusion:SfDataGrid x:Name="PutDataGrid" Grid.Row="0" Grid.Column="0"
AutoGenerateColumns="False"
ColumnSizer="AutoLastColumnFill"
SelectionUnit="Row"
AllowEditing="True"
AllowFiltering="True"
AutoGenerateRelations="false"
ShowRowHeader="False"
ItemsSource="{Binding Path=PutLogItemsSource}"
SelectedItem="{Binding Path=SelectePutLog}">
<syncfusion:SfDataGrid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.SfGrid.WPF;component/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="TextBlock">
<Setter Property="FontFamily" Value="Microsoft YaHei" />
</Style>
<Style TargetType="TextBox">
<Setter Property="FontFamily" Value="Microsoft YaHei" />
</Style>
</ResourceDictionary>
</syncfusion:SfDataGrid.Resources>
<syncfusion:SfDataGrid.Columns>
<!--<syncfusion:GridTextColumn HeaderText="执行状态" MappingName="TaskState" AllowEditing="False"/>-->
<syncfusion:GridTextColumn HeaderText="任务表名" MappingName="TableName" AllowEditing="False"/>
<syncfusion:GridTextColumn HeaderText="日志时间" MappingName="LogTime" AllowEditing="False"/>
<syncfusion:GridTextColumn HeaderText="日志信息" MappingName="LogMessage" AllowEditing="False"/>
<syncfusion:GridTextColumn HeaderText="任务编号" MappingName="TaskId" AllowEditing="False"/>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
</Grid>
</Grid>
</Window>