| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <UserControl x:Class="Muchinfo.MTPClient.Account.Views.OperateLogView"
- 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:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- mc:Ignorable="d">
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4" Orientation="Horizontal">
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_Date}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding StartTime,
- Mode=TwoWay}"
- TabIndex="7" >
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <TextBlock Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_To}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding EndTime,
- Mode=TwoWay}"
- TabIndex="7" >
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="70"
- Height="26"
- Margin="0,0"
- VerticalAlignment="Center"
- Command="{Binding ResetCommand}"
- Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
-
- <dataGrid:MuchinfoDataGrid x:Name="LogsDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding Logs}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
-
- <!-- 日志ID -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding logid}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="ID" />
- <!--日志类型-->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding businessname}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_businessname}" />
- <!--操作功能-->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding funname}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_funname}" />
- <!-- 操作员ID -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding operatorid}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_operatorid}" />
- <!-- 操作员名称 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding operatorname}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_operatorname}" />
- <!-- 操作时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding operatortime,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_OperateDate}" />
- <!-- 操作IP -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding operatorip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="IP" />
- <!-- 操作状态
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding state}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_state}" />-->
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <!-- 分页控件 -->
- <!--
- <dataPager:MuchinfoPager Grid.Row="2"
- HorizontalAlignment="Right"
- Command="{Binding NextPageSearchCommand,
- Mode=TwoWay}"
- ItemCount="{Binding ItemCount,
- Mode=TwoWay}"
- PageSize="{Binding PageSize}"
- Style="{DynamicResource PagerStyle}"
- PageIndex="{Binding PageIndex,
- Mode=TwoWay}" />
- -->
- </Grid>
- </xctk:BusyIndicator>
- <!--<Grid>
-
- <dataGrid:MuchinfoDataGrid ItemsSource="{Binding Logs}" Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="60"
- Binding="{Binding Funcode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_FunCode}" />
- --><!--
- <DataGridTextColumn Width="*"
- Binding="{Binding IP}"
- ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
- Header="ip" />
- --><!--
- <DataGridTextColumn Width="60"
- Binding="{Binding AccountCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_Account}" />
- <DataGridTextColumn Width="*"
- Binding="{Binding Operadate,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_OperateDate}" />
- <DataGridTextColumn Width="*"
- Binding="{Binding MsgName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_MsgName}" />
- <DataGridTextColumn Width="*"
- Binding="{Binding StatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_OperateResult}" />
- <DataGridTextColumn Width="*"
- Binding="{Binding OperateTypeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.SysLog_OperateType}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>-->
- </UserControl>
|