change.
parent
89d6a133ab
commit
b76444e1fc
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
//-----------------------------------------------------------------------
|
||||||
|
//<copyright>
|
||||||
|
// * Copyright (C) 2021 KEHAIDASOFT All Rights Reserved
|
||||||
|
// * version : 4.0.30319.42000
|
||||||
|
// * author : khd by t4-2
|
||||||
|
// </copyright>
|
||||||
|
//-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace Khd.Core.Domain.Models
|
||||||
|
{
|
||||||
|
|
||||||
|
[Table("mes_sale_order_relate")]
|
||||||
|
public class MesSaleOrderRelate
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("sale_order_relate_id")]
|
||||||
|
public long SaleOrderRelateId { get; set; }
|
||||||
|
|
||||||
|
[Column("sale_order_id")]
|
||||||
|
public long SaleOrderId { get; set; }
|
||||||
|
|
||||||
|
[Column("relate_sale_order_id")]
|
||||||
|
public long RelateSaleOrderId { get; set; }
|
||||||
|
|
||||||
|
[Column("purchase_order_id")]
|
||||||
|
public long PurchaseOrderId { get; set; }
|
||||||
|
|
||||||
|
[Column("relate_sale_order_amout")]
|
||||||
|
public decimal RelateSaleOrderAmount { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,117 @@
|
|||||||
|
<Window x:Class="Khd.Core.Wpf.TaskForm.InventoryDetails"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:Khd.Core.Wpf.TaskForm"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||||
|
Background="#213269"
|
||||||
|
Loaded="Window_Loaded"
|
||||||
|
WindowStartupLocation="CenterScreen"
|
||||||
|
Height="900" Width="1700">
|
||||||
|
<Window.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<!--<hc:ThemeResources/>
|
||||||
|
<hc:Theme/>-->
|
||||||
|
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
||||||
|
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
||||||
|
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
<Style x:Key="dgCell" TargetType="TextBlock" BasedOn="{x:Null}">
|
||||||
|
<Setter Property="TextAlignment" Value="Center" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Window.Resources>
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!--<StackPanel Orientation="Horizontal" Margin="5">
|
||||||
|
<TextBlock Text="请选择容器编号:" FontSize="30" Foreground="White" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox x:Name="ContainerCodeBox" IsEditable="True" DisplayMemberPath="containerNo" Style="{StaticResource ComboBoxExtend}" Width="300" hc:InfoElement.Placeholder="容器编码" hc:InfoElement.TitlePlacement="Left" hc:InfoElement.Necessary="True" FontSize="30" />
|
||||||
|
<Button x:Name="SearchBtn" Content="搜索" FontSize="30" Height="50" Foreground="White" Width="100" Background="#2196F3" Margin="10,0,0,0" Click="SearchBtn_Click"/>
|
||||||
|
<Button Content="编辑" FontSize="30" Height="50" Foreground="White" Width="100" Background="#2196F3" Margin="10,0,0,0" Click="EditBtn_Click"/>
|
||||||
|
</StackPanel>-->
|
||||||
|
<DataGrid
|
||||||
|
Style="{StaticResource DataGridStyle}"
|
||||||
|
Grid.Row="1"
|
||||||
|
x:Name="InventoryDetailsDataGrid"
|
||||||
|
AlternationCount="2"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
MinRowHeight="50"
|
||||||
|
Background="Transparent"
|
||||||
|
CanUserAddRows="False"
|
||||||
|
GridLinesVisibility="None"
|
||||||
|
CanUserReorderColumns="False"
|
||||||
|
CanUserResizeColumns="False"
|
||||||
|
CanUserResizeRows="False"
|
||||||
|
Focusable="False"
|
||||||
|
HeadersVisibility="Column"
|
||||||
|
IsReadOnly="True"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
RowHeaderWidth="0"
|
||||||
|
SelectionMode="Single" FontSize="16"
|
||||||
|
Visibility="Visible"
|
||||||
|
>
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Header="序号" Binding="{Binding Id}" ElementStyle="{StaticResource dgCell}" Width="50*"/>
|
||||||
|
<DataGridTextColumn Header="库位号" Binding="{Binding LocationCode}" ElementStyle="{StaticResource dgCell}" Width="200*"/>
|
||||||
|
<!--<DataGridTextColumn Header="料箱号" Binding="{Binding ContainerNo}" ElementStyle="{StaticResource dgCell}" Width="200*"/>-->
|
||||||
|
<DataGridTextColumn Header="物料编码" Binding="{Binding MaterialId}" ElementStyle="{StaticResource dgCell}" Width="120*"/>
|
||||||
|
<DataGridTemplateColumn
|
||||||
|
Width="300*"
|
||||||
|
CanUserSort="False"
|
||||||
|
Header="物料描述"
|
||||||
|
IsReadOnly="True" >
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="{Binding MaterialName}" ToolTip="{Binding MaterialName}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTextColumn Header="库存数量" Binding="{Binding StockAmount}" ElementStyle="{StaticResource dgCell}" Width="120*"/>
|
||||||
|
<DataGridTextColumn Header="实际数量" Binding="{Binding RealAmount}" ElementStyle="{StaticResource dgCell}" Width="120*"/>
|
||||||
|
<DataGridTextColumn Header="盘库时间" Binding="{Binding UpdateDate,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" ElementStyle="{StaticResource dgCell}" Width="140*"/>
|
||||||
|
|
||||||
|
</DataGrid.Columns>
|
||||||
|
<DataGrid.CellStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridCell}">
|
||||||
|
<Setter Property="Foreground" Value="White" />
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||||
|
<Setter Property="Background" Value="#213269" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</DataGrid.CellStyle>
|
||||||
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridRow}">
|
||||||
|
<Setter Property="Foreground" Value="White" />
|
||||||
|
<Setter Property="Background" Value="#213269" />
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
<DataGrid.RowHeaderStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridRowHeader}">
|
||||||
|
<Setter Property="Foreground" Value="White" />
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||||
|
<Setter Property="Background" Value="#213269" />
|
||||||
|
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowHeaderStyle>
|
||||||
|
<DataGrid.ColumnHeaderStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||||
|
<Setter Property="Foreground" Value="White" />
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||||
|
<Setter Property="Background" Value="#213269" />
|
||||||
|
<Setter Property="Margin" Value="0,0,0,0" />
|
||||||
|
<Setter Property="BorderThickness" Value="1" />
|
||||||
|
<Setter Property="BorderBrush" Value="White" />
|
||||||
|
<Setter Property="FontSize" Value="20" />
|
||||||
|
</Style>
|
||||||
|
</DataGrid.ColumnHeaderStyle>
|
||||||
|
</DataGrid>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
Loading…
Reference in New Issue