175 lines
11 KiB
XML
175 lines
11 KiB
XML
<UserControl x:Class="YY.Admin.Views.MixerMaterial.MixerMaterialEditDialogView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
mc:Ignorable="d"
|
|
Width="760"
|
|
MinHeight="420">
|
|
|
|
<Grid Background="{DynamicResource ThirdlyRegionBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<hc:SimplePanel Margin="20">
|
|
<TextBlock FontSize="18" Foreground="{DynamicResource PrimaryTextBrush}" Text="{Binding DialogTitle}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
|
|
<Button Width="22" Height="22" Command="hc:ControlCommands.Close" Style="{StaticResource ButtonIcon}"
|
|
Foreground="{DynamicResource PrimaryBrush}" hc:IconElement.Geometry="{StaticResource ErrorGeometry}"
|
|
Padding="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,4,4,0"/>
|
|
</hc:SimplePanel>
|
|
|
|
<hc:ScrollViewer Grid.Row="1" IsInertiaEnabled="True">
|
|
<StackPanel Margin="20,0,20,0">
|
|
<hc:Row Gutter="10">
|
|
<hc:Col Span="12">
|
|
<hc:TextBox Text="{Binding Material.MaterialCode, UpdateSourceTrigger=PropertyChanged}"
|
|
hc:InfoElement.Title="物料编码"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Necessary="True"
|
|
hc:InfoElement.Symbol="*"
|
|
hc:InfoElement.Placeholder="请输入物料编码"
|
|
hc:InfoElement.ShowClearButton="True"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:TextBox Text="{Binding Material.MaterialName, UpdateSourceTrigger=PropertyChanged}"
|
|
hc:InfoElement.Title="物料名称"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Necessary="True"
|
|
hc:InfoElement.Symbol="*"
|
|
hc:InfoElement.Placeholder="请输入物料名称"
|
|
hc:InfoElement.ShowClearButton="True"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:TextBox Text="{Binding Material.ErpCode, UpdateSourceTrigger=PropertyChanged}"
|
|
hc:InfoElement.Title="ERP编号"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Placeholder="请输入ERP编号"
|
|
hc:InfoElement.ShowClearButton="True"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:ComboBox SelectedValuePath="Value"
|
|
DisplayMemberPath="Key"
|
|
ItemsSource="{Binding MajorCategoryOptions}"
|
|
SelectedValue="{Binding Material.MajorCategoryId}"
|
|
SelectionChanged="MajorCategoryComboBox_SelectionChanged"
|
|
hc:InfoElement.Title="物料大类"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Necessary="True"
|
|
hc:InfoElement.Symbol="*"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:ComboBox SelectedValuePath="Value"
|
|
DisplayMemberPath="Key"
|
|
ItemsSource="{Binding MinorCategoryOptions}"
|
|
SelectedValue="{Binding Material.MinorCategoryId}"
|
|
hc:InfoElement.Title="物料小类"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Necessary="True"
|
|
hc:InfoElement.Symbol="*"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:TextBox Text="{Binding Material.AliasName, UpdateSourceTrigger=PropertyChanged}"
|
|
hc:InfoElement.Title="物料别名"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Placeholder="请输入物料别名"
|
|
hc:InfoElement.ShowClearButton="True"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:ComboBox SelectedValuePath="Value"
|
|
DisplayMemberPath="Key"
|
|
ItemsSource="{Binding FeedManageStatusOptions}"
|
|
SelectedValue="{Binding Material.FeedManageStatus}"
|
|
hc:InfoElement.Title="投管状态"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:ComboBox SelectedValuePath="Value"
|
|
DisplayMemberPath="Key"
|
|
ItemsSource="{Binding UseStatusOptions}"
|
|
SelectedValue="{Binding Material.UseStatus}"
|
|
hc:InfoElement.Title="使用状态"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:NumericUpDown Value="{Binding Material.SpecificGravity}" Minimum="0" DecimalPlaces="4"
|
|
Style="{StaticResource NumericUpDownPlus}"
|
|
hc:InfoElement.Title="比重"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:NumericUpDown Value="{Binding Material.ShelfLifeDays}" Minimum="0" DecimalPlaces="0"
|
|
Style="{StaticResource NumericUpDownPlus}"
|
|
hc:InfoElement.Title="保质期(天)"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:NumericUpDown Value="{Binding Material.MinBakeMinutes}" Minimum="0" DecimalPlaces="0"
|
|
Style="{StaticResource NumericUpDownPlus}"
|
|
hc:InfoElement.Title="最短烘胶(分)"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:NumericUpDown Value="{Binding Material.TotalSafetyStockKg}" Minimum="0" DecimalPlaces="4"
|
|
Style="{StaticResource NumericUpDownPlus}"
|
|
hc:InfoElement.Title="总安全库存KG"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="12">
|
|
<hc:NumericUpDown Value="{Binding Material.QualifiedSafetyStockKg}" Minimum="0" DecimalPlaces="4"
|
|
Style="{StaticResource NumericUpDownPlus}"
|
|
hc:InfoElement.Title="合格库存KG"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
<hc:Col Span="24">
|
|
<hc:TextBox Text="{Binding Material.MaterialDesc, UpdateSourceTrigger=PropertyChanged}"
|
|
hc:InfoElement.Title="物料描述"
|
|
hc:InfoElement.TitleWidth="90"
|
|
hc:InfoElement.TitlePlacement="Left"
|
|
hc:InfoElement.Placeholder="请输入物料描述"
|
|
hc:InfoElement.ShowClearButton="True"
|
|
Margin="0,0,0,16"/>
|
|
</hc:Col>
|
|
</hc:Row>
|
|
</StackPanel>
|
|
</hc:ScrollViewer>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="20">
|
|
<Button Content="取消" Command="{Binding CancelCommand}" Style="{StaticResource ButtonDefault}" Margin="0,0,15,0" Width="100"/>
|
|
<Button Content="确定" Command="{Binding SaveCommand}" Style="{StaticResource ButtonPrimary}" Width="100"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|
|
|