显示工位编号

This commit is contained in:
hehaibing-1996
2025-01-18 18:42:29 +08:00
parent 7e2a3adf85
commit 43e0f9f130
2 changed files with 49 additions and 1 deletions

View File

@ -29,10 +29,23 @@ namespace 智慧物流软件系统.ViewModel
{
public BatchBindMatDetailViewModel()
{
StationCode = LocalFile.Config.LocationCode;
}
#region Property
/// <summary>
/// 工位编号
/// </summary>
private string stationCode;
public string StationCode
{
get { return stationCode; }
set
{
SetProperty(ref stationCode, value);
}
}
private List<MatDetailCurrentInfoModel> dataGridItemSource;
public List<MatDetailCurrentInfoModel> DataGridItemSource
{

View File

@ -86,6 +86,16 @@
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal">
<Button MinHeight="40"
FontSize="18"
Margin="5"
Content="&#xe604;新 增"
FontFamily="{StaticResource IconFont}"
Foreground="WhiteSmoke"
Background="HotPink"
Command="{Binding BtnAddCommand}"></Button>
<Button MinHeight="40" FontSize="18" Margin="5"
Content="&#xe612;修 改" FontFamily="{StaticResource IconFont}"
Foreground="WhiteSmoke"
@ -115,6 +125,31 @@
Foreground="WhiteSmoke"
Background="DarkOrange">
</Button>
<TextBlock MinHeight="40"
FontSize="25"
Margin="20 0 0 0 "
VerticalAlignment="Center">站位编号:</TextBlock>
<TextBlock MinHeight="40"
FontSize="25"
VerticalAlignment="Center"
Text="{Binding StationCode}"></TextBlock>
<Button MinHeight="40"
FontSize="18"
Margin="5"
Content="&#xe613;呼叫货架"
FontFamily="{StaticResource IconFont}"
Command="{Binding BtnImportCommand}"
Foreground="WhiteSmoke"
Background="Green"></Button>
<Button MinHeight="40"
FontSize="18"
Margin="5"
Content="&#xe866;送货架"
FontFamily="{StaticResource IconFont}"
Command="{Binding BtnExportCommand}"
Foreground="WhiteSmoke"
Background="DarkOrange"></Button>
</StackPanel>
<DataGrid Grid.Row="1"