2024-05-20 12:28:55 +08:00
|
|
|
<Page x:Class="CeramicProjectTool.Pages.ModelConfigPage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:CeramicProjectTool.Pages"
|
|
|
|
mc:Ignorable="d"
|
2024-05-21 11:47:05 +08:00
|
|
|
d:DesignHeight="600" d:DesignWidth="800"
|
2024-05-20 12:28:55 +08:00
|
|
|
MinHeight="450"
|
|
|
|
MinWidth="800"
|
|
|
|
Title="模块配置"
|
|
|
|
Loaded="Page_Loaded"
|
|
|
|
>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="200"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ListView x:Name="ModelListView" Grid.Column="0" SelectionChanged="ModelListView_SelectionChanged">
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2024-05-21 11:47:05 +08:00
|
|
|
<TextBlock Text="{Binding ModuleName}" FontSize="18"/>
|
2024-05-20 12:28:55 +08:00
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<Style>
|
|
|
|
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
</Style>
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
</ListView>
|
2024-05-21 11:47:05 +08:00
|
|
|
<Grid Grid.Column="1" x:Name="ModelConfigView" Background="White">
|
2024-05-20 12:28:55 +08:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
<RowDefinition Height="*"/>
|
2024-05-21 11:47:05 +08:00
|
|
|
<RowDefinition Height="50"/>
|
2024-05-20 12:28:55 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Grid.Column="0">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
2024-05-21 11:47:05 +08:00
|
|
|
<StackPanel Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<TextBlock Margin="10" Text="模块Id: "/>
|
|
|
|
<TextBox Margin="10" Text="{Binding Path=SelectedModule.Id}" Width="100" IsReadOnly="True" />
|
2024-05-20 12:28:55 +08:00
|
|
|
</StackPanel>
|
2024-05-21 11:47:05 +08:00
|
|
|
<StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<TextBlock Margin="10" Text="模块名称: "/>
|
|
|
|
<TextBox Margin="10" Text="{Binding Path=SelectedModule.ModuleName}" Width="100"/>
|
2024-05-20 12:28:55 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
2024-05-21 11:47:05 +08:00
|
|
|
<Grid Grid.Column="1" Grid.ColumnSpan="2">
|
2024-05-20 12:28:55 +08:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
2024-05-21 11:47:05 +08:00
|
|
|
<StackPanel Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<TextBlock Margin="10" Text="菜单Id: "/>
|
|
|
|
<TextBox Margin="10" Text="{Binding Path=SelectedModule.BelongMKId}" Width="100"/>
|
|
|
|
<TextBlock Margin="10" Text="模块序号: "/>
|
|
|
|
<TextBox Margin="10" Text="{Binding Path=SelectedModule.XH}" IsReadOnly="True" />
|
|
|
|
<TextBlock Margin="10" Text="是否可见: "/>
|
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Path=SelectedModule.IsView}" />
|
2024-05-20 12:28:55 +08:00
|
|
|
</StackPanel>
|
2024-05-21 11:47:05 +08:00
|
|
|
<StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<TextBlock Margin="10" Text="模块地址: "/>
|
|
|
|
<TextBox Margin="10" Text="{Binding Path=SelectedModule.GNURL}" Width="auto"/>
|
2024-05-20 12:28:55 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
2024-05-21 11:47:05 +08:00
|
|
|
|
2024-05-20 12:28:55 +08:00
|
|
|
</Grid>
|
2024-05-21 11:47:05 +08:00
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
2024-05-23 16:41:06 +08:00
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
<Button Margin="10,0,0,10" Content="增加权限项" Height="40" Width="100" x:Name="addPermissonBtn" Click="addPermissonBtn_Click"/>
|
|
|
|
<Button Margin="10,0,0,10" Content="删除选中权限项" Height="40" Width="100" x:Name="delPermissonBtn" Click="delPermissonBtn_Click"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
2024-05-21 11:47:05 +08:00
|
|
|
<DataGrid Margin="10,0,0,0" x:Name="permissonData" AutoGenerateColumns="False" IsReadOnly="False">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="功能Id" Binding="{Binding Id}" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Header="功能" Binding="{Binding Feature}" />
|
|
|
|
<DataGridTextColumn Header="序号" Binding="{Binding SeqNo}"/>
|
|
|
|
<DataGridTextColumn Header="模块名称" Binding="{Binding ModuleName}" Width="100"/>
|
|
|
|
<DataGridTextColumn Header="表名" Binding="{Binding Table}" Width="100"/>
|
|
|
|
<DataGridTextColumn Header="备注" Binding="{Binding Remark}" Width="100"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
<Button x:Name="SaveBtn" Content="保存" Width="40" Margin="10" Click="SaveBtn_Click" />
|
2024-05-23 16:41:06 +08:00
|
|
|
<Button x:Name="ResetBtn" Content="重置" Width="40" Margin="10" Click="ResetBtn_Click" />
|
2024-05-21 11:47:05 +08:00
|
|
|
</StackPanel>
|
2024-05-20 12:28:55 +08:00
|
|
|
</Grid>
|
2024-05-21 11:47:05 +08:00
|
|
|
</Grid>
|
2024-05-20 12:28:55 +08:00
|
|
|
</Grid>
|
|
|
|
</Page>
|