zoukankan      html  css  js  c++  java
  • 系统日志2-日志查询

    第一步:设计界面如下代码:

    <Window x:Class="HRMSys.UI.SystemMgr.OperationLogWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       Title="OperationLogWindow" Height="800" Width="600" Loaded="Window_Loaded">
        <Grid>
            <DockPanel>
                <GroupBox Height="100" Header="搜索条件" DockPanel.Dock="Top">
                    <Grid>
                        <CheckBox Content="操作员" Height="16" HorizontalAlignment="Left" Margin="6,6,0,0" Name="cbSearchByOperator" VerticalAlignment="Top" />
                        <CheckBox Content="操作日期" Height="16" HorizontalAlignment="Left" Margin="198,6,0,0" Name="cbSearchByMakeDate" VerticalAlignment="Top" />
                        <CheckBox Content="操作描述" Height="16" HorizontalAlignment="Left" Margin="11,45,0,0" Name="cbSearchByAction" VerticalAlignment="Top" />
                        <ComboBox DisplayMemberPath="UserName" SelectedValuePath="Id" Height="23" HorizontalAlignment="Left" Margin="72,6,0,0" Name="cmbOperator" VerticalAlignment="Top" Width="106" />
                        <DatePicker Height="25" HorizontalAlignment="Left" Margin="272,4,0,0" Name="dpBeginDate" VerticalAlignment="Top" Width="115" />
                        <DatePicker Height="25" HorizontalAlignment="Left" Margin="445,4,0,0" Name="dpEndDate" VerticalAlignment="Top" Width="115" />
                        <TextBlock Height="23" HorizontalAlignment="Left" Margin="398,5,0,0" Name="textBlock1" Text="" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="95,38,0,0" Name="txtAcionDesc" VerticalAlignment="Top" Width="120" />
                        <Button Content="搜索" Height="23" HorizontalAlignment="Left" Margin="264,38,0,0" Name="btnSearch" VerticalAlignment="Top" Width="75" Click="btnSearch_Click" />
                    </Grid>
                </GroupBox>
                <DataGrid DockPanel.Dock="Top" Name="datagrid" IsReadOnly="True" AutoGenerateColumns="False">
                    <DataGrid.Columns>
                        <DataGridComboBoxColumn Header="操作员" SelectedValueBinding="{Binding OperatorId}"
                                                SelectedValuePath="Id"
                                                DisplayMemberPath="UserName" x:Name="colOperator"></DataGridComboBoxColumn>
                        <DataGridTextColumn Header="日期" Binding="{Binding MakeDate}"></DataGridTextColumn>
                        <DataGridTextColumn Header="说明" Binding="{Binding ActionDesc}"></DataGridTextColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </DockPanel>
        </Grid>
    </Window>
  • 相关阅读:
    .NET Windows服务开发流程
    SQL Server 动态行转列(参数化表名、分组列、行转列字段、字段值)
    SQL触发器批量删除数据库中的表
    如何使用Chrome Timeline 工具(译)
    修复运行 tasklist 命令时提示 ERROR: Not found
    删除坏掉的 Active Directory Domain
    为 WSUS 服务器定期运行清理向导
    为 Exchange 服务器编写自定义的反垃圾插件
    Windows 10 下安装 npm 后全局 node_modules 和 npm-cache 文件夹的设置
    在 Win10 命令行使用 Consolas + 微软雅黑
  • 原文地址:https://www.cnblogs.com/qiushuixizhao/p/3239636.html
Copyright © 2011-2022 走看看