|
|
@ -115,7 +115,7 @@
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.RowSpan="2" Height="Auto" Margin="0" Padding="0" VerticalAlignment="Stretch"
|
|
|
|
<TextBox Grid.RowSpan="2" Height="Auto" Margin="0" Padding="0" VerticalAlignment="Stretch" BorderBrush="White"
|
|
|
|
VerticalContentAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Value}">
|
|
|
|
VerticalContentAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Value}">
|
|
|
|
<!-- 给TextBox绑定上下命令 -->
|
|
|
|
<!-- 给TextBox绑定上下命令 -->
|
|
|
|
<TextBox.InputBindings>
|
|
|
|
<TextBox.InputBindings>
|
|
|
@ -162,7 +162,7 @@
|
|
|
|
<TextBox x:Name="queryParam" Text="" Style="{x:Null}" Width="200" HorizontalAlignment="Left" VerticalContentAlignment="Center" />
|
|
|
|
<TextBox x:Name="queryParam" Text="" Style="{x:Null}" Width="200" HorizontalAlignment="Left" VerticalContentAlignment="Center" />
|
|
|
|
<Button Content="查询" Background="#4285DE" Margin="9,0,4,0" Width="100" Command="{Binding QueryStringCommand}" CommandParameter="{Binding ElementName=queryParam,Path=Text}"/>
|
|
|
|
<Button Content="查询" Background="#4285DE" Margin="9,0,4,0" Width="100" Command="{Binding QueryStringCommand}" CommandParameter="{Binding ElementName=queryParam,Path=Text}"/>
|
|
|
|
</WrapPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
<UniformGrid Grid.Row="1" Margin="5 5 0 0" x:Name="HeightPanel">
|
|
|
|
<UniformGrid Grid.Row="1" Margin="0 5 0 0" x:Name="HeightPanel">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
AlternationCount="2" 表示两行交替显示背景色;
|
|
|
|
AlternationCount="2" 表示两行交替显示背景色;
|
|
|
|
AutoGenerateColumns="False" 表示不让DataGrid自动生成列。如果设置成true,则效果: 多出了不需要的列;
|
|
|
|
AutoGenerateColumns="False" 表示不让DataGrid自动生成列。如果设置成true,则效果: 多出了不需要的列;
|
|
|
@ -191,7 +191,7 @@
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</UniformGrid>
|
|
|
|
</UniformGrid>
|
|
|
|
<UniformGrid Grid.Column="1" Margin="0 5 3 5">
|
|
|
|
<UniformGrid Grid.Column="1" Margin="0 10 3 5">
|
|
|
|
<Border BorderBrush="#0288d1" BorderThickness="1" Margin="0 0 0 5" CornerRadius="5">
|
|
|
|
<Border BorderBrush="#0288d1" BorderThickness="1" Margin="0 0 0 5" CornerRadius="5">
|
|
|
|
<Grid Margin="0 30">
|
|
|
|
<Grid Margin="0 30">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
@ -205,26 +205,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<TextBlock Text="产品编码" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBlock Text="产品编码" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBox x:Name="ProductNo" Foreground="white" Text="{Binding SelectedItem.ProductCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="400"
|
|
|
|
<TextBox x:Name="ProductNo" Foreground="white" BorderBrush="White" Text="{Binding SelectedItem.ProductCode, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0 " FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="400"
|
|
|
|
materialDesign:HintAssist.Hint="产品编码" />
|
|
|
|
materialDesign:HintAssist.Hint="产品编码" />
|
|
|
|
</WrapPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<TextBlock Text="产品名称" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBlock Text="产品名称" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBox x:Name="ProductName" Foreground="white" Text="{Binding SelectedItem.ProductName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0" FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="{Binding Path=ActualWidth, ElementName=ProductNo}"
|
|
|
|
<TextBox x:Name="ProductName" Foreground="white" BorderBrush="White" Text="{Binding SelectedItem.ProductName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0" FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="{Binding Path=ActualWidth, ElementName=ProductNo}"
|
|
|
|
materialDesign:HintAssist.Hint="产品名称" />
|
|
|
|
materialDesign:HintAssist.Hint="产品名称" />
|
|
|
|
</WrapPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<TextBlock Text="物料名称" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBlock Text="物料名称" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBox x:Name="MaterialName" Foreground="white" Text="{Binding SelectedItem.MaterialName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0" FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="{Binding Path=ActualWidth, ElementName=ProductNo}"
|
|
|
|
<TextBox x:Name="MaterialName" Foreground="white" BorderBrush="White" Text="{Binding SelectedItem.MaterialName, ElementName=dgvMH}" IsReadOnly="True" Margin="15 0 0 0" FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="{Binding Path=ActualWidth, ElementName=ProductNo}"
|
|
|
|
materialDesign:HintAssist.Hint="物料名称" />
|
|
|
|
materialDesign:HintAssist.Hint="物料名称" />
|
|
|
|
</WrapPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<WrapPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 15">
|
|
|
|
<TextBlock Text="打印数量" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBlock Text="打印数量" FontSize="15" Foreground="white" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<!--<TextBox x:Name="PlanAmount" Foreground="white" Text="{Binding SelectedItem.StandardAmount, ElementName=dgvMH}" Margin="15 0 0 0" FontSize="15" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Width="{Binding Path=ActualWidth, ElementName=ProductNo}"
|
|
|
|
<Slider x:Name="PlanAmount" Minimum="0" Maximum="500" BorderBrush="White" Value="{Binding SelectedItem.StandardAmount, ElementName=dgvMH}" Foreground="white" Height="30" VerticalContentAlignment="Center"
|
|
|
|
materialDesign:HintAssist.Hint="打印数量"/>-->
|
|
|
|
HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="15 0 0 0" FontSize="15" Width="340"/>
|
|
|
|
<Slider x:Name="PlanAmount" Minimum="0" Maximum="500" Value="{Binding SelectedItem.StandardAmount, ElementName=dgvMH}" Foreground="white" Height="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="15 0 0 0" FontSize="15" Width="340"/>
|
|
|
|
<TextBlock Text="1~500" Width="50" Margin="10 0 0 0" Foreground="White" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
|
|
<TextBlock Text="1~500" Width="50" Margin="10 0 0 0" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
|
|
|
|
|
|
</WrapPanel>
|
|
|
|
</WrapPanel>
|
|
|
|
<Border Grid.Row="4" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Margin="100 5" >
|
|
|
|
<Border Grid.Row="4" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Margin="100 5" >
|
|
|
|
<StackPanel >
|
|
|
|
<StackPanel >
|
|
|
|