OperateLogView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <UserControl x:Class="Muchinfo.MTPClient.Account.Views.OperateLogView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  9. mc:Ignorable="d">
  10. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition />
  15. </Grid.RowDefinitions>
  16. <StackPanel Margin="0,4" Orientation="Horizontal">
  17. <TextBlock Margin="10,0"
  18. VerticalAlignment="Center"
  19. Foreground="{DynamicResource TextBlockForeground}"
  20. Text="{x:Static resource:Client_Resource.Content_Date}" />
  21. <DatePicker Width="120"
  22. HorizontalAlignment="Stretch"
  23. VerticalAlignment="Center"
  24. CalendarStyle="{DynamicResource CalendarStyle}"
  25. SelectedDate="{Binding StartTime,
  26. Mode=TwoWay}"
  27. TabIndex="7" >
  28. <DatePicker.Resources>
  29. <Style TargetType="DatePickerTextBox">
  30. <Setter Property="IsReadOnly" Value="True" />
  31. <Setter Property="IsEnabled" Value="False" />
  32. </Style>
  33. </DatePicker.Resources>
  34. </DatePicker>
  35. <TextBlock Margin="5,0"
  36. VerticalAlignment="Center"
  37. Foreground="{DynamicResource TextBlockForeground}"
  38. Text="{x:Static resource:Client_Resource.Content_To}" />
  39. <DatePicker Width="120"
  40. HorizontalAlignment="Stretch"
  41. VerticalAlignment="Center"
  42. CalendarStyle="{DynamicResource CalendarStyle}"
  43. SelectedDate="{Binding EndTime,
  44. Mode=TwoWay}"
  45. TabIndex="7" >
  46. <DatePicker.Resources>
  47. <Style TargetType="DatePickerTextBox">
  48. <Setter Property="IsReadOnly" Value="True" />
  49. <Setter Property="IsEnabled" Value="False" />
  50. </Style>
  51. </DatePicker.Resources>
  52. </DatePicker>
  53. <Button Width="70"
  54. Height="26"
  55. Margin="10,0"
  56. VerticalAlignment="Center"
  57. Command="{Binding RefreshCommand}"
  58. Content="{x:Static resource:Client_Resource.Button_Search}"
  59. Style="{DynamicResource CommonButtonStyle}" />
  60. <Button Width="70"
  61. Height="26"
  62. Margin="0,0"
  63. VerticalAlignment="Center"
  64. Command="{Binding ResetCommand}"
  65. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  66. Style="{DynamicResource CommonButtonStyle}" />
  67. </StackPanel>
  68. <dataGrid:MuchinfoDataGrid x:Name="LogsDataGrid"
  69. Grid.Row="1"
  70. ItemsSource="{Binding Logs}"
  71. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  72. SelectedItem="{Binding SelectEntrustOrder,
  73. Mode=TwoWay}"
  74. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  75. <DataGrid.Columns>
  76. <!-- 日志ID -->
  77. <DataGridTextColumn Width="Auto"
  78. MinWidth="50"
  79. Binding="{Binding logid}"
  80. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  81. Header="ID" />
  82. <!--日志类型-->
  83. <DataGridTextColumn Width="Auto"
  84. MinWidth="140"
  85. Binding="{Binding businessname}"
  86. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  87. Header="{x:Static resource:Client_Resource.SysLog_businessname}" />
  88. <!--操作功能-->
  89. <DataGridTextColumn Width="Auto"
  90. MinWidth="140"
  91. Binding="{Binding funname}"
  92. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  93. Header="{x:Static resource:Client_Resource.SysLog_funname}" />
  94. <!-- 操作员ID -->
  95. <DataGridTextColumn Width="Auto"
  96. MinWidth="140"
  97. Binding="{Binding operatorid}"
  98. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  99. Header="{x:Static resource:Client_Resource.SysLog_operatorid}" />
  100. <!-- 操作员名称 -->
  101. <DataGridTextColumn Width="Auto"
  102. MinWidth="140"
  103. Binding="{Binding operatorname}"
  104. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  105. Header="{x:Static resource:Client_Resource.SysLog_operatorname}" />
  106. <!-- 操作时间 -->
  107. <DataGridTextColumn Width="Auto"
  108. MinWidth="140"
  109. Binding="{Binding operatortime,
  110. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  111. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  112. Header="{x:Static resource:Client_Resource.SysLog_OperateDate}" />
  113. <!-- 操作IP -->
  114. <DataGridTextColumn Width="Auto"
  115. MinWidth="140"
  116. Binding="{Binding operatorip}"
  117. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  118. Header="IP" />
  119. <!-- 操作状态
  120. <DataGridTextColumn Width="Auto"
  121. MinWidth="100"
  122. Binding="{Binding state}"
  123. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  124. Header="{x:Static resource:Client_Resource.SysLog_state}" />-->
  125. </DataGrid.Columns>
  126. </dataGrid:MuchinfoDataGrid>
  127. <!-- 分页控件 -->
  128. <!--
  129. <dataPager:MuchinfoPager Grid.Row="2"
  130. HorizontalAlignment="Right"
  131. Command="{Binding NextPageSearchCommand,
  132. Mode=TwoWay}"
  133. ItemCount="{Binding ItemCount,
  134. Mode=TwoWay}"
  135. PageSize="{Binding PageSize}"
  136. Style="{DynamicResource PagerStyle}"
  137. PageIndex="{Binding PageIndex,
  138. Mode=TwoWay}" />
  139. -->
  140. </Grid>
  141. </xctk:BusyIndicator>
  142. <!--<Grid>
  143. <dataGrid:MuchinfoDataGrid ItemsSource="{Binding Logs}" Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  144. <DataGrid.Columns>
  145. <DataGridTextColumn Width="60"
  146. Binding="{Binding Funcode}"
  147. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  148. Header="{x:Static resource:Client_Resource.SysLog_FunCode}" />
  149. --><!--
  150. <DataGridTextColumn Width="*"
  151. Binding="{Binding IP}"
  152. ElementStyle="{StaticResource DataGridTextColumnStyleLeft}"
  153. Header="ip" />
  154. --><!--
  155. <DataGridTextColumn Width="60"
  156. Binding="{Binding AccountCode}"
  157. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  158. Header="{x:Static resource:Client_Resource.SysLog_Account}" />
  159. <DataGridTextColumn Width="*"
  160. Binding="{Binding Operadate,
  161. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  162. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  163. Header="{x:Static resource:Client_Resource.SysLog_OperateDate}" />
  164. <DataGridTextColumn Width="*"
  165. Binding="{Binding MsgName}"
  166. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  167. Header="{x:Static resource:Client_Resource.SysLog_MsgName}" />
  168. <DataGridTextColumn Width="*"
  169. Binding="{Binding StatusDisplay}"
  170. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  171. Header="{x:Static resource:Client_Resource.SysLog_OperateResult}" />
  172. <DataGridTextColumn Width="*"
  173. Binding="{Binding OperateTypeDisplay}"
  174. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  175. Header="{x:Static resource:Client_Resource.SysLog_OperateType}" />
  176. </DataGrid.Columns>
  177. <DataGrid.ContextMenu>
  178. <ContextMenu>
  179. <MenuItem Command="{Binding RefreshCommand}"
  180. Header="{x:Static resource:Client_Resource.Button_Refresh}"
  181. IsEnabled="True"
  182. Style="{DynamicResource CommonMenuItem}" />
  183. </ContextMenu>
  184. </DataGrid.ContextMenu>
  185. </dataGrid:MuchinfoDataGrid>
  186. </Grid>-->
  187. </UserControl>