|
@@ -494,387 +494,404 @@
|
|
|
<TabItem.Header>
|
|
<TabItem.Header>
|
|
|
<StackPanel HorizontalAlignment="Stretch">
|
|
<StackPanel HorizontalAlignment="Stretch">
|
|
|
<materialDesign:PackIcon Width="24"
|
|
<materialDesign:PackIcon Width="24"
|
|
|
- Height="24"
|
|
|
|
|
- HorizontalAlignment="Center"
|
|
|
|
|
- Kind="RouterNetwork" />
|
|
|
|
|
|
|
+ Height="24"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ Kind="RouterNetwork" />
|
|
|
<TextBlock Style="{StaticResource TabHeaderTextBlockStyle}"
|
|
<TextBlock Style="{StaticResource TabHeaderTextBlockStyle}"
|
|
|
- FontSize="{DynamicResource Font.Size.Body2}"
|
|
|
|
|
- Text="设备信息"
|
|
|
|
|
- HorizontalAlignment="Stretch" />
|
|
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body2}"
|
|
|
|
|
+ Text="{lex:Loc 设备信息}"
|
|
|
|
|
+ HorizontalAlignment="Stretch" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</TabItem.Header>
|
|
</TabItem.Header>
|
|
|
- <Grid>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Margin="16">
|
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
|
|
+ <RowDefinition Height="50" />
|
|
|
|
|
+ <RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="auto" />
|
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="0"
|
|
|
|
|
|
|
+ <!--增删改查按钮-->
|
|
|
|
|
+ <StackPanel Grid.ColumnSpan="2"
|
|
|
|
|
+ IsEnabled="{Binding IsAllowEdit}"
|
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
|
|
|
|
|
+ ToolTip="添加设备"
|
|
|
|
|
+ Command="{Binding AddDeviceInfoCommand}">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Plus" />
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
|
|
|
|
|
+ ToolTip="删除设备"
|
|
|
|
|
+ Margin="20,0"
|
|
|
|
|
+ Command="{Binding RemoveDeviceInfoCommand}">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="DeleteForeverOutline" />
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <Button Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryDarkButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 保存}"
|
|
|
|
|
+ Command="{Binding SaveDeviceInfoCommand}">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck" />
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!--设备列表-->
|
|
|
|
|
+ <TreeView Grid.Row="1"
|
|
|
|
|
+ Grid.Column="0"
|
|
|
|
|
+ SelectedItemChanged="TreeView_SelectedItemChanged">
|
|
|
|
|
+ <TreeViewItem Header="设备列表"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Title4}"
|
|
|
|
|
+ FontWeight="Bold"
|
|
|
|
|
+ IsExpanded="True"
|
|
|
|
|
+ ItemsSource="{Binding DeviceInfoList}">
|
|
|
|
|
+ <TreeViewItem.ItemTemplate>
|
|
|
|
|
+ <HierarchicalDataTemplate>
|
|
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
|
|
+ <TextBlock FontSize="{DynamicResource Font.Size.Title4}">
|
|
|
|
|
+ <TextBlock.Text>
|
|
|
|
|
+ <MultiBinding StringFormat="设备 {0}">
|
|
|
|
|
+ <Binding Path="DeviceNo" />
|
|
|
|
|
+ </MultiBinding>
|
|
|
|
|
+ </TextBlock.Text>
|
|
|
|
|
+ </TextBlock>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <TextBlock Text="DeviceName: "
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ <TextBlock Text="{Binding DeviceName}"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <TextBlock Text="Line: "
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ <TextBlock Text="{Binding Line}"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <TextBlock Text="Station: "
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ <TextBlock Text="{Binding Station}"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignCaptionTextBlock}"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <Border Height="2"
|
|
|
|
|
+ Margin="0"
|
|
|
|
|
+ BorderThickness="2"
|
|
|
|
|
+ BorderBrush="Green" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </HierarchicalDataTemplate>
|
|
|
|
|
+ </TreeViewItem.ItemTemplate>
|
|
|
|
|
+ </TreeViewItem>
|
|
|
|
|
+ </TreeView>
|
|
|
|
|
+
|
|
|
|
|
+ <!--参数详情-->
|
|
|
|
|
+ <ScrollViewer Grid.Row="1"
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ IsEnabled="{Binding IsAllowEdit}"
|
|
|
|
|
+ Margin="20"
|
|
|
|
|
+ Visibility="{Binding SelectDeviceInfo,Converter={StaticResource ObjectToVisibilityConverter}}">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <!--设备信息表单-->
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Grid.Row="0"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="设备编号:"
|
|
Text="设备编号:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBlock Grid.Row="0"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="0"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DeviceNo}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DeviceNo}"
|
|
|
Margin="6,2"
|
|
Margin="6,2"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="1"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="1"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="设备名称:"
|
|
Text="设备名称:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="1"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="1"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DeviceName, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DeviceName, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="2"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="2"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="设备描述:"
|
|
Text="设备描述:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="2"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="2"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DeviceDesc, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DeviceDesc, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="3"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="3"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="Url:"
|
|
Text="Url:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="3"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="3"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.MesUrl, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.MesUrl, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="4"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="4"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="Line:"
|
|
Text="Line:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="4"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="4"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.Line, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.Line, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="5"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="5"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="Station:"
|
|
Text="Station:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="5"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="5"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.Station, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.Station, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="6"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="6"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="FixtureId:"
|
|
Text="FixtureId:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="6"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="6"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.FixtureId, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.FixtureId, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="7"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="7"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="f:"
|
|
Text="f:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="7"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="7"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.F, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.F, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="8"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="8"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="comp:"
|
|
Text="comp:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="8"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="8"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.comp, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.comp, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Grid.Row="9"
|
|
|
|
|
+ Grid.Column="0"
|
|
|
|
|
+ Text="LogUrl:"
|
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Grid.Row="9"
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.LogUrl, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="9"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="LogUrl:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="9"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.LogUrl, Mode=TwoWay}"
|
|
|
|
|
- Margin="6,2" />
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="10"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="apikey:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="10"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.ApiKey, Mode=TwoWay}"
|
|
|
|
|
- Margin="6,2" />
|
|
|
|
|
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="10"
|
|
|
|
|
+ Grid.Column="0"
|
|
|
|
|
+ Text="apikey:"
|
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Grid.Row="10"
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.ApiKey, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="11"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="11"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="启用 MES:"
|
|
Text="启用 MES:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <CheckBox Grid.Row="11"
|
|
|
|
|
|
|
+ <CheckBox Grid.Row="11"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- IsChecked="{Binding DeviceInfo.EnableMES, Mode=TwoWay}"
|
|
|
|
|
|
|
+ IsChecked="{Binding SelectDeviceInfo.EnableMES, Mode=TwoWay}"
|
|
|
Command="{Binding CheckStatusCommand}"
|
|
Command="{Binding CheckStatusCommand}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
- <CheckBox Grid.Row="12"
|
|
|
|
|
|
|
+ <CheckBox Grid.Row="12"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
Content="是否启用两次产品编号"
|
|
Content="是否启用两次产品编号"
|
|
|
- IsChecked="{Binding DeviceInfo.EnableDoubleMes, Mode=TwoWay}"
|
|
|
|
|
- Margin="6,2" />
|
|
|
|
|
- <CheckBox Grid.Row="13"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Content="是否保存CSV文件"
|
|
|
|
|
- IsChecked="{Binding DeviceInfo.SaveCsv, Mode=TwoWay}"
|
|
|
|
|
- Command="{Binding CheckStatusCommand}"
|
|
|
|
|
|
|
+ IsChecked="{Binding SelectDeviceInfo.EnableDoubleMes, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
- <TextBlock Grid.Row="14"
|
|
|
|
|
|
|
+ <StackPanel Grid.Row="13"
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
|
+ <CheckBox Content="是否保存CSV文件"
|
|
|
|
|
+ IsChecked="{Binding SelectDeviceInfo.SaveCsv, Mode=TwoWay}"
|
|
|
|
|
+ Command="{Binding CheckStatusCommand}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
+ <CheckBox Content="是否保存ppid"
|
|
|
|
|
+ IsChecked="{Binding SelectDeviceInfo.SaveCsvPPID, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <TextBlock Grid.Row="14"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="保存的CSV文件路径:"
|
|
Text="保存的CSV文件路径:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <DockPanel HorizontalAlignment="Stretch"
|
|
|
|
|
|
|
+ <DockPanel HorizontalAlignment="Stretch"
|
|
|
Grid.Row="14"
|
|
Grid.Row="14"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
Margin="6,2">
|
|
Margin="6,2">
|
|
|
- <Button DockPanel.Dock="Right"
|
|
|
|
|
|
|
+ <Button DockPanel.Dock="Right"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
ToolTip="{lex:Loc 选择路径}"
|
|
ToolTip="{lex:Loc 选择路径}"
|
|
|
- Command="{Binding SelectSaveImagePathCommand}">
|
|
|
|
|
- <Button.Content>
|
|
|
|
|
- <materialDesign:PackIcon Kind="FolderOpenOutline" />
|
|
|
|
|
- </Button.Content>
|
|
|
|
|
- </Button>
|
|
|
|
|
- <TextBox Text="{Binding DeviceInfo.SaveCsvPath, Mode=TwoWay}" />
|
|
|
|
|
-
|
|
|
|
|
- </DockPanel>
|
|
|
|
|
- <!--CTQ 数据信息-->
|
|
|
|
|
- <TextBlock Grid.Row="15"
|
|
|
|
|
|
|
+ Command="{Binding CurrentRunStatus}">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <materialDesign:PackIcon Kind="FolderOpenOutline" />
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <TextBox Text="{Binding SelectDeviceInfo.SaveCsvPath, Mode=TwoWay}" />
|
|
|
|
|
+
|
|
|
|
|
+ </DockPanel>
|
|
|
|
|
+ <!--CTQ 数据信息-->
|
|
|
|
|
+ <TextBlock Grid.Row="15"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
Text="PROCESS_NAME:"
|
|
Text="PROCESS_NAME:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="15"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="15"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.PROCESS_NAME, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.PROCESS_NAME, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="16"
|
|
|
|
|
|
|
+ <!--<TextBlock Grid.Row="14"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="SUPPLIER_NAME:"
|
|
|
|
|
|
|
+ Text="CTQ_LSL(压力下限):"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="16"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="14"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.SUPPLIER_NAME, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.CTQ_LSL_Pressure, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="17"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="15"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="COMMODITY_TYPE:"
|
|
|
|
|
|
|
+ Text="CTQ_USL(压力上限):"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="17"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="15"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.COMMODITY_TYPE, Mode=TwoWay}"
|
|
|
|
|
- Margin="6,2" />
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.CTQ_USL_Pressure, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />-->
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="18"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="18"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="REVISION:"
|
|
|
|
|
|
|
+ Text="SUPPLIER_NAME:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="18"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="18"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.REVISION, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.SUPPLIER_NAME, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="19"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="19"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="MFG_LOT#:"
|
|
|
|
|
|
|
+ Text="COMMODITY_TYPE:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="19"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="19"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.MFG_LOT, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.COMMODITY_TYPE, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="20"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="20"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="MFG_ASSY_LINE:"
|
|
|
|
|
|
|
+ Text="REVISION:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="20"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="20"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.MFG_ASSY_LINE, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.REVISION, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="21"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="21"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="PROCESS_MACHINE_ID:"
|
|
|
|
|
|
|
+ Text="MFG_LOT#:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="21"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="21"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.DataInfo.PROCESS_MACHINE_ID, Mode=TwoWay}"
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.MFG_LOT, Mode=TwoWay}"
|
|
|
Margin="6,2" />
|
|
Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="22"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="虚拟SN:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="22"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.XnSN, Mode=TwoWay}"
|
|
|
|
|
- Margin="6,2" />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <Button Content="保存"
|
|
|
|
|
- Command="{Binding SaveDeviceInfoCommand}"
|
|
|
|
|
- Grid.Row="23"
|
|
|
|
|
- HorizontalAlignment="Center"
|
|
|
|
|
- Margin="0,10"
|
|
|
|
|
- Grid.Column="1" />
|
|
|
|
|
- </Grid>
|
|
|
|
|
- <!--<Grid Margin="16">
|
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
|
|
- <ColumnDefinition Width="*" />
|
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="0"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="Url:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="0"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.MesUrl, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="1"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="Line:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="1"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.Line, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="2"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="Station:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="2"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.Station, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="3"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="22"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="FixtureId:"
|
|
|
|
|
|
|
+ Text="MFG_ASSY_LINE:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="3"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="22"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.FixtureId, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.MFG_ASSY_LINE, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
|
|
|
- <TextBlock Grid.Row="5"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="f:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Grid.Row="5"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- Text="{Binding DeviceInfo.F, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
- <TextBlock Grid.Row="6"
|
|
|
|
|
|
|
+ <TextBlock Grid.Row="23"
|
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
|
- Text="comp:"
|
|
|
|
|
|
|
+ Text="PROCESS_MACHINE_ID:"
|
|
|
HorizontalAlignment="Right"
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center" />
|
|
VerticalAlignment="Center" />
|
|
|
- <TextBox Grid.Row="6"
|
|
|
|
|
|
|
+ <TextBox Grid.Row="23"
|
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
- Text="{Binding DeviceInfo.comp, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
-
|
|
|
|
|
- <TextBlock Grid.Row="7"
|
|
|
|
|
- Grid.Column="0"
|
|
|
|
|
- Text="启用 MES:"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- VerticalAlignment="Center" />
|
|
|
|
|
- <CheckBox Grid.Row="7"
|
|
|
|
|
- Grid.Column="1"
|
|
|
|
|
- IsChecked="{Binding DeviceInfo.EnableMES, Mode=TwoWay}"
|
|
|
|
|
- Margin="6" />
|
|
|
|
|
- <StackPanel Orientation="Horizontal"
|
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
|
- Grid.Row="8"
|
|
|
|
|
- Grid.ColumnSpan="2"
|
|
|
|
|
- Margin="6">
|
|
|
|
|
- <Button Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
|
|
- Command="{Binding SaveDeviceInfoCommand}">保存</Button>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Grid>-->
|
|
|
|
|
|
|
+ Text="{Binding SelectDeviceInfo.DataInfo.PROCESS_MACHINE_ID, Mode=TwoWay}"
|
|
|
|
|
+ Margin="6,2" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </ScrollViewer>
|
|
|
|
|
+ </Grid>
|
|
|
</TabItem>
|
|
</TabItem>
|
|
|
|
|
|
|
|
<!--机器人-->
|
|
<!--机器人-->
|