添加项目文件。
This commit is contained in:
300
GroupLine.App/View/KanBan/KanBanIndex.xaml
Normal file
300
GroupLine.App/View/KanBan/KanBanIndex.xaml
Normal file
@@ -0,0 +1,300 @@
|
||||
<UserControl
|
||||
x:Class="GroupLine.App.View.KanBan.KanBanIndex"
|
||||
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:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="990"
|
||||
d:DesignWidth="1400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="5*" />
|
||||
<RowDefinition Height="1*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="5*" />
|
||||
<ColumnDefinition Width="5*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox Margin="10,10,10,10" Header="休息时间-搜索条件">
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Vertical">
|
||||
<StackPanel.Resources>
|
||||
<Style TargetType="StackPanel">
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="Margin" Value="0,0,0,4" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel
|
||||
Margin="20"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label
|
||||
HorizontalAlignment="Center"
|
||||
HorizontalContentAlignment="Center"
|
||||
Content="班次:" />
|
||||
<DockPanel x:Name="Combbox1">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding SearchClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Background=" AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="OrangeRed"
|
||||
Command="{Binding SearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding CreateFormCmd}"
|
||||
Content="增加" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding DeleteFormCmd}"
|
||||
Content="删除" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding UpdateFormCmd}"
|
||||
Content="修改" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<StackPanel Grid.Row="1" Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="500" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid
|
||||
x:Name="dg1"
|
||||
Grid.ColumnSpan="2"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListWorkTimeDto}"
|
||||
SelectionMode="Single">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding SelectedItemsCmd}" CommandParameter="{Binding ElementName=dg1}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="0"
|
||||
Binding="{Binding ID}"
|
||||
Header="" />
|
||||
<DataGridTextColumn
|
||||
Width="80"
|
||||
Binding="{Binding ClassNum}"
|
||||
Header="班次" />
|
||||
<DataGridTextColumn
|
||||
Width="80"
|
||||
Binding="{Binding Index}"
|
||||
Header="排序" />
|
||||
<DataGridTextColumn
|
||||
Width="160"
|
||||
Binding="{Binding StartTime}"
|
||||
Header="开始时间" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding EndTime}"
|
||||
Header="结束时间" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
||||
Header="创建时间" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<GroupBox
|
||||
Grid.Column="1"
|
||||
Margin="10,10,10,10"
|
||||
Header="计划产量-搜索条件">
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Vertical">
|
||||
<StackPanel.Resources>
|
||||
<Style TargetType="StackPanel">
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="Margin" Value="0,0,0,4" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Margin="20" HorizontalAlignment="Center">
|
||||
<Label HorizontalContentAlignment="Center" Content="创建时间:" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="0,0,10,0"
|
||||
materialDesign:HintAssist.Hint="开始时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchStartTime, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="10,0,10,0"
|
||||
materialDesign:HintAssist.Hint="结束时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchEndTime, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Background=" AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="OrangeRed"
|
||||
Command="{Binding PlanCountSearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountCreateFormCmd}"
|
||||
Content="增加" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountDeleteFormCmd}"
|
||||
Content="删除" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountUpdateFormCmd}"
|
||||
Content="修改" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="500" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid
|
||||
x:Name="dg2"
|
||||
Grid.ColumnSpan="2"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListPlanCountDto}"
|
||||
SelectionMode="Single">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding SelectedItemCmd}" CommandParameter="{Binding ElementName=dg2}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="0"
|
||||
Binding="{Binding ID}"
|
||||
Header="" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding PlanDate, StringFormat={}{0:yyyy-MM-dd}}"
|
||||
Header="计划日期" />
|
||||
<DataGridTextColumn
|
||||
Width="120"
|
||||
Binding="{Binding ClassNum}"
|
||||
Header="班次" />
|
||||
<!--<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding AGroup}"
|
||||
Header="前组" />
|
||||
<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding BGroup}"
|
||||
Header="后组" />-->
|
||||
<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding CGroup}"
|
||||
Header="完成" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
||||
Header="创建时间" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user