Merge branch 'master' of https://gitee.com/ericxinstar/jywcs
commit
e67ecafc30
@ -0,0 +1,41 @@
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
//<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; }
|
||||
|
||||
[Column("material_id")]
|
||||
public long MaterialId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,120 @@
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
//<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("wms_move")]
|
||||
public class WmsMove
|
||||
{
|
||||
[Key]
|
||||
[Column("move_id")]
|
||||
public long MoveId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("task_code")]
|
||||
[MaxLength(128)]
|
||||
public string TaskCode { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("warehouse_id")]
|
||||
public long WarehouseId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("ori_location_code")]
|
||||
[MaxLength(64)]
|
||||
public string OriLocationCode { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("target_location_code")]
|
||||
[MaxLength(64)]
|
||||
public string TargetLocationCode { get; set; }
|
||||
|
||||
[Column("instock_batch")]
|
||||
[MaxLength(64)]
|
||||
public string InstockBatch { get; set; }
|
||||
|
||||
[Column("material_id")]
|
||||
public long? MaterialId { get; set; }
|
||||
|
||||
[Column("plan_amount")]
|
||||
public decimal? PlanAmount { get; set; }
|
||||
|
||||
[Column("real_outstock_amount")]
|
||||
public decimal RealOutstockAmount { get; set; } = 0.000000m;
|
||||
|
||||
[Column("real_instock_amount")]
|
||||
public decimal RealInstockAmount { get; set; } = 0.000000m;
|
||||
|
||||
[Required]
|
||||
[Column("operation_type")]
|
||||
[MaxLength(1)]
|
||||
public string OperationType { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("move_way")]
|
||||
[MaxLength(1)]
|
||||
public string MoveWay { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("move_type")]
|
||||
[MaxLength(1)]
|
||||
public string MoveType { get; set; }
|
||||
|
||||
[Column("apply_reason")]
|
||||
[MaxLength(500)]
|
||||
public string ApplyReason { get; set; }
|
||||
|
||||
[Column("audit_reason")]
|
||||
[MaxLength(500)]
|
||||
public string AuditReason { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("audit_status")]
|
||||
[MaxLength(1)]
|
||||
public string AuditStatus { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("execute_status")]
|
||||
[MaxLength(1)]
|
||||
public string ExecuteStatus { get; set; }
|
||||
|
||||
[Column("apply_by")]
|
||||
[MaxLength(64)]
|
||||
public string ApplyBy { get; set; }
|
||||
|
||||
[Column("apply_date")]
|
||||
public DateTime? ApplyDate { get; set; }
|
||||
|
||||
[Column("audit_by")]
|
||||
[MaxLength(64)]
|
||||
public string AuditBy { get; set; }
|
||||
|
||||
[Column("audit_date")]
|
||||
public DateTime? AuditDate { get; set; }
|
||||
|
||||
[Column("update_by")]
|
||||
[MaxLength(64)]
|
||||
public string UpdateBy { get; set; }
|
||||
|
||||
[Column("update_date")]
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
|
||||
[Column("begin_time")]
|
||||
public DateTime? BeginTime { get; set; }
|
||||
|
||||
[Column("end_time")]
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,92 @@
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
//<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("wms_move_detail")]
|
||||
public class WmsMoveDetail
|
||||
{
|
||||
[Key]
|
||||
[Column("move_detail_id")]
|
||||
public long MoveDetailId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("move_id")]
|
||||
public long MoveId { get; set; }
|
||||
|
||||
[Column("material_barcode")]
|
||||
[MaxLength(64)]
|
||||
public string? MaterialBarcode { get; set; }
|
||||
|
||||
[Column("instock_batch")]
|
||||
[MaxLength(64)]
|
||||
public string? InstockBatch { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("material_id")]
|
||||
public long MaterialId { get; set; }
|
||||
|
||||
[Column("location_code")]
|
||||
[MaxLength(64)]
|
||||
public string? LocationCode { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("plan_amount")]
|
||||
public decimal PlanAmount { get; set; }
|
||||
|
||||
[Column("real_amount")]
|
||||
public decimal? RealAmount { get; set; }
|
||||
|
||||
[Column("real_instock_amount")]
|
||||
public decimal? RealInstockAmount { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("execute_status")]
|
||||
[MaxLength(1)]
|
||||
public string ExecuteStatus { get; set; }
|
||||
|
||||
[Column("execute_person")]
|
||||
[MaxLength(64)]
|
||||
public string? ExecutePerson { get; set; }
|
||||
|
||||
[Column("execute_time")]
|
||||
public DateTime? ExecuteTime { get; set; }
|
||||
|
||||
[Column("execute_end_time")]
|
||||
public DateTime? ExecuteEndTime { get; set; }
|
||||
|
||||
[Column("machine_name")]
|
||||
[MaxLength(64)]
|
||||
public string? MachineName { get; set; }
|
||||
|
||||
[Column("create_by")]
|
||||
[MaxLength(64)]
|
||||
public string? CreateBy { get; set; }
|
||||
|
||||
[Column("create_date")]
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
[Column("update_by")]
|
||||
[MaxLength(64)]
|
||||
public string? UpdateBy { get; set; }
|
||||
|
||||
[Column("update_date")]
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
|
||||
[Column("active_flag")]
|
||||
[MaxLength(1)]
|
||||
public string? ActiveFlag { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,104 @@
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
//<copyright>
|
||||
// * Copyright (C) 2021 KEHAIDASOFT All Rights Reserved
|
||||
// * version : 4.0.30319.42000
|
||||
// * author : khd by t4-2
|
||||
// </copyright>
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Khd.Core.Domain.Models
|
||||
{
|
||||
|
||||
[Table("wms_raw_return_detail")]
|
||||
public class WmsRawReturnDetail
|
||||
{
|
||||
[Key]
|
||||
[Column("raw_return_detail_id")]
|
||||
public long RawReturnDetailId { get; set; }
|
||||
|
||||
[Column("raw_return_id")]
|
||||
public long RawReturnId { get; set; }
|
||||
|
||||
[Column("location_code")]
|
||||
[StringLength(64)]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
[Column("material_barcode")]
|
||||
[StringLength(64)]
|
||||
public string MaterialBarcode { get; set; }
|
||||
|
||||
[Column("material_id")]
|
||||
public long MaterialId { get; set; }
|
||||
|
||||
[Column("instock_batch")]
|
||||
[StringLength(64)]
|
||||
public string InstockBatch { get; set; }
|
||||
|
||||
[Column("material_production_date")]
|
||||
public DateTime? MaterialProductionDate { get; set; }
|
||||
|
||||
[Column("plan_amount")]
|
||||
[Precision(16, 2)]
|
||||
public decimal PlanAmount { get; set; }
|
||||
|
||||
[Column("return_amount")]
|
||||
[Precision(16, 2)]
|
||||
public decimal? ReturnAmount { get; set; }
|
||||
|
||||
[Column("execute_status")]
|
||||
[StringLength(1)]
|
||||
public string ExecuteStatus { get; set; }
|
||||
|
||||
[Column("erp_status")]
|
||||
[StringLength(1)]
|
||||
public string ErpStatus { get; set; }
|
||||
|
||||
[Column("erp_amount")]
|
||||
[Precision(16, 2)]
|
||||
public decimal? ErpAmount { get; set; }
|
||||
|
||||
[Column("return_person")]
|
||||
[StringLength(64)]
|
||||
public string ReturnPerson { get; set; }
|
||||
|
||||
[Column("return_time")]
|
||||
public DateTime? ReturnTime { get; set; }
|
||||
|
||||
[Column("return_way")]
|
||||
[StringLength(1)]
|
||||
public string ReturnWay { get; set; }
|
||||
|
||||
[Column("machine_name")]
|
||||
[StringLength(64)]
|
||||
public string MachineName { get; set; }
|
||||
|
||||
[Column("quality_status")]
|
||||
[StringLength(1)]
|
||||
public string QualityStatus { get; set; }
|
||||
|
||||
[Column("create_by")]
|
||||
[StringLength(64)]
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
[Column("create_date")]
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
[Column("update_by")]
|
||||
[StringLength(64)]
|
||||
public string UpdateBy { get; set; }
|
||||
|
||||
[Column("update_date")]
|
||||
public DateTime? UpdateDate { get; set; }
|
||||
|
||||
[Column("stack_amount")]
|
||||
[Precision(16, 2)]
|
||||
public decimal? StackAmount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
||||
<Window x:Class="Khd.Core.Wpf.TaskForm.AddNewStockForm"
|
||||
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"
|
||||
WindowState="Normal"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Background="DarkBlue"
|
||||
Loaded="Window_Loaded"
|
||||
Title="" Height="450" Width="800" ResizeMode="NoResize" WindowStyle="None">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Text=" 料箱号: " FontSize="30" Foreground="White" />
|
||||
<TextBlock x:Name="txtInBox" Text="" Width="500" FontSize="30" Foreground="Black" Background="White" Margin="5,0,0,0"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Text=" 条码号: " FontSize="30" Foreground="White" />
|
||||
<TextBox x:Name="txtInBarCode" Text="" TextChanged="txtInBarCode_TextChanged" Width="500" FontSize="30" Foreground="Black" Background="White" Margin="5,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Text="物料名称: " FontSize="30" Foreground="White" />
|
||||
<TextBlock x:Name="materialName" Text="" Width="500" FontSize="30" Foreground="Black" Background="White" Margin="5,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="3" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Text="物料规格: " FontSize="30" Foreground="White" />
|
||||
<TextBlock x:Name="materialSpec" Text="" Width="500" FontSize="30" Foreground="Black" Background="White" Margin="5,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<TextBlock Text=" 库存数: " FontSize="30" Foreground="White" />
|
||||
<TextBox x:Name="txtInScan" Text="" Width="500" FontSize="30" Foreground="Black" Background="White" Margin="5,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<RepeatButton Background="LimeGreen" x:Name="ScanButton" Content="添加入库" Style="{StaticResource RepeatButtonPrimary}" Width="100" Height="40" FontSize="20" Margin="20,0,0,0" Click="InRawBaseLocaltion_Click" />
|
||||
<RepeatButton Background="Yellow" x:Name="ScanButton11" Content="取 消" Style="{StaticResource RepeatButtonPrimary}" Width="100" Height="40" FontSize="20" Margin="200,0,0,0" Click="CancelBtn_Click" />
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
@ -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>
|
||||
@ -0,0 +1,34 @@
|
||||
<Window x:Class="Khd.Core.Wpf.TaskForm.UpdateAmountWindow"
|
||||
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"
|
||||
WindowState="Normal"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Background="#333333"
|
||||
Loaded="Window_Loaded"
|
||||
Title="" Height="450" Width="800" ResizeMode="NoResize" WindowStyle="None">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<TextBlock Text="库存数量修改: " Foreground="White" FontSize="40" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||
<TextBox x:Name="StockAmount" Text="" Width="250" Background="White" Foreground="Black" FontSize="40" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" >
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button x:Name="AddTaskBtn" Content="修改库存" FontSize="25" Width="160" Height="50" Foreground="White" Background="#2196F3" VerticalAlignment="Center" HorizontalAlignment="Center" Click="UpdateBtn_Click"/>
|
||||
<Button x:Name="CancelBtn" Content="取消" FontSize="25" Width="160" Height="50" Foreground="White" Background="#F44336" Click="CancelBtn_Click" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="100,0,0,0"/>
|
||||
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
@ -0,0 +1,193 @@
|
||||
<Window x:Class="Khd.Core.Wpf.WindowPage.InventoryMaterialWindow"
|
||||
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.WindowPage"
|
||||
mc:Ignorable="d"
|
||||
Title="选择盘库型号" Height="900" Width="1900" WindowStartupLocation="CenterScreen" Background="#172557">
|
||||
|
||||
<Window.Resources>
|
||||
|
||||
<ResourceDictionary>
|
||||
|
||||
<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.MergedDictionaries>
|
||||
<!--<hc:ThemeResources/>
|
||||
<hc:Theme/>-->
|
||||
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="2*"/>
|
||||
<RowDefinition Height="8*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
||||
<TextBox x:Name="SearchTxt" Width="200" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" />
|
||||
<Button x:Name="SearchButton" Foreground="White" Background="Blue" Content="搜 索" FontSize="20" Margin="20 0 25 0" Height="50" Width="100" Click="SearchButton_Click"/>
|
||||
|
||||
<!--<TextBlock Text="选中物料" Foreground="White" FontSize="25" Margin="0 0 25 0" VerticalAlignment="Center"/>
|
||||
<TextBox x:Name="SelectMaterialId" Width="50" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" IsReadOnly="True"/>
|
||||
<TextBox x:Name="SelectMaterialName" Width="200" Height="40" Margin="5,0,0,0" VerticalAlignment="Center" IsReadOnly="True"/>-->
|
||||
|
||||
|
||||
<!--<Button x:Name="ClearButton" Foreground="White" Background="Blue" Content="清除" FontSize="20" Margin="20 0 25 0" Height="50" Width="100" Click="ClearButton_Click" />-->
|
||||
|
||||
<Button x:Name="CreateInventoryTask" Foreground="White" Background="DarkGreen" Content="创建盘库任务" FontSize="20" Margin="200 0 25 0" Height="50" Width="200" Click="CreateInventoryTask_Click" />
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Border Grid.Row="1" Height="100" Background="Transparent" BorderThickness="2" CornerRadius="10" Margin="0,5,0,0">
|
||||
<ItemsControl x:Name="itemsControl">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel />
|
||||
<!-- 使项自动换行 -->
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border Margin="5" Padding="5">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding materialName}" Foreground="White" FontSize="20" VerticalAlignment="Center"/>
|
||||
<Button Content="删除" FontSize="15" Width="50" Background="LightSkyBlue" Foreground="Red" Margin="0,0,10,0" Click="DeleteButton_Click" Tag="{Binding }"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Row="2">
|
||||
<DataGrid
|
||||
Style="{StaticResource DataGridStyle}"
|
||||
Grid.Row="2" AlternationCount="2"
|
||||
AutoGenerateColumns="False"
|
||||
MinRowHeight="50"
|
||||
Background="#172557"
|
||||
CanUserAddRows="False"
|
||||
GridLinesVisibility="None"
|
||||
CanUserReorderColumns="False"
|
||||
CanUserResizeColumns="False"
|
||||
CanUserResizeRows="False"
|
||||
Focusable="False"
|
||||
Height="auto"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
RowHeaderWidth="0"
|
||||
SelectionMode="Single" FontSize="16"
|
||||
Visibility="Visible"
|
||||
VerticalAlignment="Top"
|
||||
x:Name="StockDataGrid">
|
||||
<DataGrid.Columns>
|
||||
|
||||
|
||||
<DataGridTemplateColumn Width="130*" Header="选择">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Grid.Tag>
|
||||
<Binding Path="IsSelected"/>
|
||||
</Grid.Tag>
|
||||
<CheckBox
|
||||
IsChecked="{Binding Tag, RelativeSource={RelativeSource AncestorType=Grid}}"
|
||||
Click="CheckPersonBox_Click"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="200*"
|
||||
Binding="{Binding materialId}"
|
||||
CanUserSort="False"
|
||||
ElementStyle="{StaticResource dgCell}"
|
||||
FontSize="20"
|
||||
Header="物料ID"
|
||||
IsReadOnly="True" />
|
||||
<DataGridTextColumn
|
||||
Width="200*"
|
||||
Binding="{Binding materialCode}"
|
||||
CanUserSort="False"
|
||||
ElementStyle="{StaticResource dgCell}"
|
||||
FontSize="20"
|
||||
Header="物料编码"
|
||||
IsReadOnly="True" />
|
||||
<DataGridTemplateColumn
|
||||
Width="280*"
|
||||
CanUserSort="False"
|
||||
Header="物料名称"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialName}" ToolTip="{Binding materialNameSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn
|
||||
Width="300*"
|
||||
CanUserSort="False"
|
||||
Header="物料规格"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialSpec}" ToolTip="{Binding materialSpecSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
|
||||
</DataGrid.CellStyle>
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="{x:Type DataGridRow}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
<DataGrid.RowHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridRowHeader}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
</DataGrid.RowHeaderStyle>
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="Background" Value="#172560" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="Margin" Value="0,0,0,0" />
|
||||
<Setter Property="BorderThickness" Value="5" />
|
||||
<Setter Property="BorderBrush" Value="#172540" />
|
||||
<Setter Property="FontSize" Value="30" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Window>
|
||||
@ -0,0 +1,167 @@
|
||||
<Window x:Class="Khd.Core.Wpf.WindowPage.StockWindow"
|
||||
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.WindowPage"
|
||||
mc:Ignorable="d"
|
||||
Title="查看库存" Height="600" Width="1500" WindowStartupLocation="CenterScreen" Background="#172557">
|
||||
|
||||
<Window.Resources>
|
||||
|
||||
<ResourceDictionary>
|
||||
|
||||
<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.MergedDictionaries>
|
||||
<!--<hc:ThemeResources/>
|
||||
<hc:Theme/>-->
|
||||
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
||||
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="8*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0">
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBox x:Name="positionRowTxt" FontSize="25" Margin="0 0 10 0" Width="100"/>
|
||||
<TextBlock Text="行" Foreground="White" FontSize="25" Margin="0 0 25 0"/>
|
||||
<TextBox x:Name="positionColumnTxt" FontSize="25" Margin="0 0 10 0" Width="100"/>
|
||||
<TextBlock Text="列" Foreground="White" FontSize="25" Margin="0 0 25 0"/>
|
||||
<TextBox x:Name="positionLayerTxt" FontSize="25" Margin="0 0 10 0" Width="80"/>
|
||||
<TextBlock Text="层" Foreground="White" FontSize="25" Margin="0 0 150 0"/>
|
||||
|
||||
<TextBlock Text="库位编号:" Foreground="White" FontSize="25" Margin="0 0 8 0"/>
|
||||
<TextBlock x:Name="locationTxt" Foreground="White" FontSize="25" Margin="0 0 58 0" Width="250"/>
|
||||
<TextBlock Text="托盘编号:" Foreground="White" FontSize="25" Margin="0 0 8 0"/>
|
||||
<TextBlock x:Name="palletTxt" Foreground="White" FontSize="25"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<DataGrid
|
||||
Style="{StaticResource DataGridStyle}"
|
||||
Grid.Row="2" AlternationCount="2"
|
||||
AutoGenerateColumns="False"
|
||||
MinRowHeight="50"
|
||||
Background="#172557"
|
||||
CanUserAddRows="False"
|
||||
GridLinesVisibility="None"
|
||||
CanUserReorderColumns="False"
|
||||
CanUserResizeColumns="False"
|
||||
CanUserResizeRows="False"
|
||||
Focusable="False"
|
||||
Height="auto"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
RowHeaderWidth="0"
|
||||
SelectionMode="Single" FontSize="16"
|
||||
Visibility="Visible"
|
||||
VerticalAlignment="Top"
|
||||
x:Name="StockDataGrid">
|
||||
<DataGrid.Columns>
|
||||
|
||||
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="200*"
|
||||
Binding="{Binding materialCode}"
|
||||
CanUserSort="False"
|
||||
ElementStyle="{StaticResource dgCell}"
|
||||
FontSize="20"
|
||||
Header="物料编码"
|
||||
IsReadOnly="True" />
|
||||
<DataGridTemplateColumn
|
||||
Width="280*"
|
||||
CanUserSort="False"
|
||||
Header="物料名称"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialName}" ToolTip="{Binding materialNameSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn
|
||||
Width="300*"
|
||||
CanUserSort="False"
|
||||
Header="物料规格"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding materialSpec}" ToolTip="{Binding materialSpecSrc}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn
|
||||
Width="130*"
|
||||
CanUserSort="False"
|
||||
Header="总数"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding totalAmount}" ToolTip="{Binding totalAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn
|
||||
Width="130*"
|
||||
CanUserSort="False"
|
||||
Header="冻结数量"
|
||||
IsReadOnly="True" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding frozenAmount}" Height="auto" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
|
||||
</DataGrid.CellStyle>
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="{x:Type DataGridRow}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
<DataGrid.RowHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridRowHeader}">
|
||||
<Setter Property="Background" Value="#213269" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
</DataGrid.RowHeaderStyle>
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="Background" Value="#172560" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="Margin" Value="0,0,0,0" />
|
||||
<Setter Property="BorderThickness" Value="5" />
|
||||
<Setter Property="BorderBrush" Value="#172540" />
|
||||
<Setter Property="FontSize" Value="30" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Window>
|
||||
Loading…
Reference in New Issue