WinConfig.xaml 3.27 KB
<win:MyWindow
    xmlns:win="clr-namespace:HHECS.View.Win" x:Class="HHECS.View.SystemInfo.WinConfig"
        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"
        xmlns:local="clr-namespace:HHECS.View.SystemInfo"
        xmlns:control="clr-namespace:HHECS.Controls"
        mc:Ignorable="d"
        Title="系统参数管理" Height="450" Width="800" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Border Grid.Row="0" CornerRadius="10" Background="AliceBlue">
            <WrapPanel>
                <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
                    <TextBlock>参数编码:</TextBlock>
                    <TextBox Name="TxtConfigCode" Width="80"></TextBox>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
                    <TextBlock>参数名:</TextBlock>
                    <TextBox Name="TxtConfigName" Width="80"></TextBox>
                </StackPanel>
            </WrapPanel>
        </Border>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="BtnQuery" Click="BtnQuery_Click">查询</Button>
            <Button x:Name="BtnNew" Click="BtnNew_Click">新增</Button>
            <Button x:Name="BtnEdit" Click="BtnEdit_Click">编辑</Button>
            <Button x:Name="BtnDelete" Click="BtnDelete_Click">删除</Button>
            <!--<Button x:Name="BtnDisable" Click="BtnDisable_Click">禁用</Button>-->
        </StackPanel>
        <Border Grid.Row="2">
            <DockPanel>
                <control:DataPager x:Name="page" DockPanel.Dock="Bottom" PageIndex="{Binding PageIndex}" PageSize="{Binding PageSize}" TotalCount="{Binding TotalCount}"
                                   PageChanged="DataPager_PageChanged" PageChanging="page_PageChanging"></control:DataPager>
                <DataGrid x:Name="DatagridMain" >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Id" Binding="{Binding Id}"/>
                        <DataGridTextColumn Header="参数编码" Binding="{Binding Code}"/>
                        <DataGridTextColumn Header="参数名" Binding="{Binding Name}"/>
                        <DataGridTextColumn Header="参数值" Binding="{Binding Value}"/>
                        <DataGridTextColumn Header="备注" Binding="{Binding Remark}"/>
                        <DataGridTextColumn Header="创建时间" Binding="{Binding Created}"/>
                        <DataGridTextColumn Header="创建人" Binding="{Binding CreatedBy}"/>
                        <DataGridTextColumn Header="更新时间" Binding="{Binding Updated}"/>
                        <DataGridTextColumn Header="更新人" Binding="{Binding UpdatedBy}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </DockPanel>
        </Border>
    </Grid>
</win:MyWindow>