新增设备更改
This commit is contained in:
116
GroupLine.App/View/KPBarrelShrinkFit/KPBarrelShrinkFitView.xaml
Normal file
116
GroupLine.App/View/KPBarrelShrinkFit/KPBarrelShrinkFitView.xaml
Normal file
@@ -0,0 +1,116 @@
|
||||
<UserControl
|
||||
x:Class="GroupLine.App.View.KPBarrelShrinkFit.KPBarrelShrinkFitView"
|
||||
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:local="clr-namespace:GroupLine.App.View.KPBarrelShrinkFit"
|
||||
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=KPBarrelShrinkFit}"
|
||||
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 Orientation="Vertical">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel
|
||||
Margin="0,0,0,20"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<StackPanel Margin="20">
|
||||
<Label HorizontalContentAlignment="Center" Content="筒体编号:" />
|
||||
<TextBox
|
||||
Width="180"
|
||||
materialDesign:HintAssist.HelperText="请输入筒体编号"
|
||||
materialDesign:HintAssist.Hint="筒体编号"
|
||||
Text="{Binding SearchBarrelNo, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
<StackPanel Margin="20" Orientation="Horizontal">
|
||||
<Label
|
||||
VerticalAlignment="Center"
|
||||
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"
|
||||
Background="AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10"
|
||||
Background="Green"
|
||||
Command="{Binding SearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10"
|
||||
Background="Orange"
|
||||
Command="{Binding OutputDataCmd}"
|
||||
Content="导出数据" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<Grid
|
||||
Grid.Row="1"
|
||||
Height="680"
|
||||
Margin="8">
|
||||
<DataGrid
|
||||
x:Name="dg1"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListModelDto}"
|
||||
SelectionMode="Single"
|
||||
SelectionUnit="Cell">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="220"
|
||||
Binding="{Binding BarrelNo}"
|
||||
Header="筒体编号" />
|
||||
<DataGridTextColumn
|
||||
Width="220"
|
||||
Binding="{Binding StatorNo}"
|
||||
Header="定子编号" />
|
||||
<DataGridTextColumn
|
||||
Width="160"
|
||||
Binding="{Binding OperatorNo}"
|
||||
Header="员工编号" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding BarrelTemp}"
|
||||
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