|
|
@@ -2177,7 +2177,6 @@
|
|
|
</Grid>
|
|
|
</TabItem>
|
|
|
|
|
|
-
|
|
|
<!--通讯-->
|
|
|
<TabItem>
|
|
|
<TabItem.Header>
|
|
|
@@ -3002,6 +3001,165 @@
|
|
|
</ScrollViewer>
|
|
|
</TabItem>
|
|
|
|
|
|
+ <!--产品信息-->
|
|
|
+ <TabItem>
|
|
|
+ <TabItem.Header>
|
|
|
+ <StackPanel HorizontalAlignment="Stretch">
|
|
|
+ <materialDesign:PackIcon Width="24"
|
|
|
+ Height="24"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Kind="BallotOutline" />
|
|
|
+ <TextBlock Style="{StaticResource TabHeaderTextBlockStyle}"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body2}"
|
|
|
+ Text="产品信息"
|
|
|
+ HorizontalAlignment="Stretch" />
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem.Header>
|
|
|
+
|
|
|
+ <StackPanel Margin="16">
|
|
|
+
|
|
|
+ <GroupBox HorizontalAlignment="Left"
|
|
|
+ Margin="10,5"
|
|
|
+ Header="产品与mes参数绑定设置"
|
|
|
+ Width="400"
|
|
|
+ FontSize="{DynamicResource Font.Size.Title4}">
|
|
|
+ <Grid Margin="20">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
+ <RowDefinition Height=" auto" />
|
|
|
+ <RowDefinition Height=" auto" />
|
|
|
+ <RowDefinition Height=" auto" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <TextBlock Margin="0,0,0,8"
|
|
|
+ Text="产品名称:"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <ComboBox x:Name="selectProduct"
|
|
|
+ Grid.Column="1"
|
|
|
+ Width="100"
|
|
|
+ Margin="10,4"
|
|
|
+ FontSize="14"
|
|
|
+ materialDesign:HintAssist.Hint="{lex:Loc 选择产品}"
|
|
|
+ SelectedItem="{Binding SelectProduct,Mode=TwoWay}"
|
|
|
+ ItemsSource="{Binding ProductList,Mode=TwoWay}"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+ <ComboBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <materialDesign:PackIcon Kind="CubeOutline" />
|
|
|
+ <TextBlock Text="{Binding Name}" />
|
|
|
+ </StackPanel>
|
|
|
+ <TextBlock Text="{Binding Description}"
|
|
|
+ MinHeight="0"
|
|
|
+ MaxWidth="300"
|
|
|
+ Foreground="Gray"
|
|
|
+ TextTrimming="CharacterEllipsis"
|
|
|
+ FontSize="{DynamicResource Font.Size.Captions4}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ComboBox.ItemTemplate>
|
|
|
+ </ComboBox>
|
|
|
+ <TextBlock Margin="0,0,0,8"
|
|
|
+ Grid.Row="1"
|
|
|
+ Text="产品编码(model):"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Grid.Row="1"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="10,4"
|
|
|
+ MinWidth="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
+ TextAlignment="Center"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center">
|
|
|
+ <TextBox.Text>
|
|
|
+ <Binding Path="ProMesInfo.ProductCode"
|
|
|
+ Mode="TwoWay">
|
|
|
+ </Binding>
|
|
|
+ </TextBox.Text>
|
|
|
+ </TextBox>
|
|
|
+
|
|
|
+ <TextBlock Margin="0,0,0,8"
|
|
|
+ Grid.Row="2"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="产品颜色:"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Grid.Row="2"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="10,4"
|
|
|
+ MinWidth="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
+ TextAlignment="Center"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center">
|
|
|
+ <TextBox.Text>
|
|
|
+ <Binding Path="ProMesInfo.ProductColor"
|
|
|
+ Mode="TwoWay">
|
|
|
+ </Binding>
|
|
|
+ </TextBox.Text>
|
|
|
+ </TextBox>
|
|
|
+
|
|
|
+ <StackPanel Grid.Row="5"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ Margin="0,6"
|
|
|
+ Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <Button Margin="5"
|
|
|
+ Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
+ MinWidth="100"
|
|
|
+ Command="{Binding GetProWithMesCommand}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="PuzzleEditOutline"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="获取" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ <Button Margin="5"
|
|
|
+ Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
+ MinWidth="100"
|
|
|
+ Command="{Binding DeleteProWithMesCommand}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="DeleteForeverOutline"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="删除" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ <Button Margin="5"
|
|
|
+ Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
+ MinWidth="100"
|
|
|
+ Command="{Binding SaveProWithMesCommand}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="保存" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem>
|
|
|
+
|
|
|
<!--生产排班-->
|
|
|
<TabItem>
|
|
|
<TabItem.Header>
|