This commit is contained in:
2025-10-29 11:42:58 +08:00
parent 7f6f84cd0e
commit a178c3550e
190 changed files with 81361 additions and 92 deletions

View File

@@ -0,0 +1,72 @@
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FATrace.WPLApp.ModelDto
{
/// <summary>
/// 导航项数据模型
/// </summary>
public class NavItemDto : BindableBase
{
private string? _Name;
/// <summary>
/// 名称
/// </summary>
public string? Name
{
get { return _Name; }
set { _Name = value; RaisePropertyChanged(); }
}
private string? _CmdPar;
/// <summary>
/// 命令参数
/// </summary>
public string? CmdPar
{
get { return _CmdPar; }
set { _CmdPar = value; RaisePropertyChanged(); }
}
private object? _Icon;
/// <summary>
/// 图标
/// </summary>
public object? Icon
{
get { return _Icon; }
set { _Icon = value; RaisePropertyChanged(); }
}
//private bool _IsExpanded;
///// <summary>
///// 是否为父级节点
///// </summary>
//public bool IsExpanded
//{
// get { return _IsExpanded; }
// set { _IsExpanded = value; RaisePropertyChanged(); }
//}
private bool _IsParent;
/// <summary>
/// 是否为父级节点
/// </summary>
public bool IsParent
{
get { return _IsParent; }
set { _IsParent = value; RaisePropertyChanged(); }
}
/// <summary>
/// 子导航项集合
/// </summary>
public ObservableCollection<NavItemDto> ChildrenNavItemDtos { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System;
namespace FATrace.WPLApp.ModelDto
{
/// <summary>
/// 原料入库 DTO用于界面展示与导出
/// </summary>
public class RawProInputDto
{
public long Id { get; set; }
public string? RawCode { get; set; }
public string? RawName { get; set; }
public double Weight { get; set; }
public string? Batch { get; set; }
public int ShelfLife { get; set; }
public string RawSource { get; set; } = string.Empty; // 展示为文本
public double RemainWeight { get; set; }
public string RawState { get; set; } = string.Empty; // 展示为文本
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,87 @@
using System;
namespace FATrace.WPLApp.ModelDto
{
/// <summary>
/// 原料生产使用信息 DTO
/// 用于界面展示与导出,避免直接暴露实体对象。
/// 字段与界面列、导出列一一对应。
/// </summary>
public class RawProUseDto
{
/// <summary>
/// 主键
/// </summary>
public long Id { get; set; }
/// <summary>
/// 原料编号
/// </summary>
public string? RawCode { get; set; }
/// <summary>
/// 原料名称
/// </summary>
public string? RawName { get; set; }
/// <summary>
/// 内袋二维码
/// </summary>
public string? InBagCode { get; set; }
/// <summary>
/// 外箱二维码
/// </summary>
public string? BoxCode { get; set; }
/// <summary>
/// 批号
/// </summary>
public string? Batch { get; set; }
/// <summary>
/// 保质期 年
/// </summary>
public double ShelfLife { get; set; }
/// <summary>
/// 称重重量 g
/// </summary>
public double Weight { get; set; }
/// <summary>
/// 剩余重量 g
/// </summary>
public double RemainWeight { get; set; }
/// <summary>
/// 入库总重量 g
/// </summary>
public double StockWeight { get; set; }
/// <summary>
/// 称重时间
/// </summary>
public DateTime WeightTime { get; set; }
/// <summary>
/// 操作者
/// </summary>
public string? OpUser { get; set; }
/// <summary>
/// 确认者
/// </summary>
public string? CheckUser { get; set; }
/// <summary>
/// 出库时间
/// </summary>
public DateTime OutTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}
}