添加项目文件。
This commit is contained in:
214
GroupLine.App/View/AppearanceTest/AppearanceTestIndex.xaml
Normal file
214
GroupLine.App/View/AppearanceTest/AppearanceTestIndex.xaml
Normal file
@@ -0,0 +1,214 @@
|
||||
<UserControl
|
||||
x:Class="GroupLine.App.View.AppearanceTest.AppearanceTestIndex"
|
||||
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: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=AppearanceTest}"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2.4*" />
|
||||
<RowDefinition Height="7*" />
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Margin="10,10,10,10" Header="{Binding MachineName}">
|
||||
<StackPanel Margin="0,0,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.ColumnDefinitions>
|
||||
<ColumnDefinition Width="151*" />
|
||||
<ColumnDefinition Width="1211*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel
|
||||
Grid.Column="1"
|
||||
Margin="160,0,0,20"
|
||||
HorizontalAlignment="Left"
|
||||
Orientation="Horizontal">
|
||||
<StackPanel Margin="20">
|
||||
<Label HorizontalContentAlignment="Center" Content="铭板号:" />
|
||||
<TextBox
|
||||
Width="150"
|
||||
VerticalAlignment="Center"
|
||||
materialDesign:HintAssist.HelperText="请输入铭板号"
|
||||
materialDesign:HintAssist.Hint="铭板号"
|
||||
Text="{Binding SearchPlaqueNo, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
<StackPanel Margin="20">
|
||||
<Label HorizontalContentAlignment="Center" Content="创建时间:" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="0,0,10,0"
|
||||
materialDesign:HintAssist.Hint="开始时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchStartDate, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="10,0,10,0"
|
||||
materialDesign:HintAssist.Hint="结束时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchEndDate, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Background=" AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding SearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Orange"
|
||||
Command="{Binding OutputDataCmd}"
|
||||
Content="导出数据" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<Grid Grid.Row="1" Height="680">
|
||||
<DataGrid
|
||||
x:Name="dg1"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListAppearanceTestDto}"
|
||||
SelectionMode="Single"
|
||||
SelectionUnit="Cell">
|
||||
<!--<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="200"
|
||||
Binding="{Binding PlaqueNo}"
|
||||
Header="压缩机铭板号" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding ProLineNo}"
|
||||
Header="生产线号" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding MachineTypeCheck}"
|
||||
Header="机种确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding PlaqueCheck}"
|
||||
Header="铭板确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding TerminalCheck}"
|
||||
Header="端子确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding ElectricalBoxCheck}"
|
||||
Header="电器盒确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding SealingPlugCheck}"
|
||||
Header="密封塞确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding InOutTubeCheck}"
|
||||
Header="吸入管吐出管确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding UpperCoverCheck}"
|
||||
Header="上外罩确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding ReservoirCheck}"
|
||||
Header="储液器确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding HandTubeCheck}"
|
||||
Header="继手管确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding WeldCheck}"
|
||||
Header="点焊确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding PaintCheck}"
|
||||
Header="涂装确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding LiftLugCheck}"
|
||||
Header="吊耳确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding GirthWeldCheck}"
|
||||
Header="环焊确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding WeldSlagCheck}"
|
||||
Header="焊渣确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding FastenLeatherPadCheck}"
|
||||
Header="紧固环皮垫确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding CylinderCheck}"
|
||||
Header="筒体确认" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding Result}"
|
||||
Header="外观检查结果" />
|
||||
<DataGridTextColumn
|
||||
Width="200"
|
||||
Binding="{Binding OperationNo}"
|
||||
Header="测试人员工号" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
||||
Header="创建时间" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user