添加项目文件。

This commit is contained in:
zgf committed 2023-07-25 19:20:18 +08:00
1 parent 05e131ca4e
commit 514d6f5255
1162 files changed
+81255

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("TaskDetail")]
public class TaskDetail : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "Task.TaskNo", Description = "任务号")]
public int TaskHeaderId { get; set; }
public TaskHeader TaskHeader { get; set; }
[Display(Name = "Inventory.ReceiptCode", Description = "单据编号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string OrderCode { get; set; }
[Display(Name = "Inventory.ReceiptDetailId", Description = "明细ID")]
public int? OrderDetailId { get; set; }
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
[Display(Name = "Inventory.MaterialName", Description = "物料名称")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialName { get; set; }
[Display(Name = "Inventory.MaterialSpec", Description = "物料规格")]
public string MaterialSpec { get; set; }
[Display(Name = "Inventory.MaterialUnit", Description = "单位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialUnit { get; set; }
[Display(Name = "Inventory.Batch", Description = "批次")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Batch { get; set; }
[Display(Name = "Inventory.Lot", Description = "料号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Lot { get; set; }
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ContainerCode { get; set; }
[Display(Name = "Inventory.Qty", Description = "数量")]
[Column(TypeName = "decimal(12,4)")]
public decimal? Qty { get; set; }
[Display(Name = "TaskDetail.InventoryId", Description = "库存Id")]
public int? InventoryId { get; set; }
[Display(Name = "TaskDetail.Status", Description = "状态")]
public TaskStatusEnum? Status { get; set; }
}
}
@@ -0,0 +1,62 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("TaskDetailHistory")]
public class TaskDetailHistory : BasePoco
{
public new int ID { get; set; }
[Display(Name = "Task.TaskNo", Description = "任务号")]
public int TaskHeaderId { get; set; }
public TaskHeaderHistory TaskHeader { get; set; }
[Display(Name = "Inventory.ReceiptCode", Description = "单据编号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string OrderCode { get; set; }
[Display(Name = "Inventory.ReceiptDetailId", Description = "明细ID")]
public int? OrderDetailId { get; set; }
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialCode { get; set; }
[Display(Name = "Inventory.MaterialName", Description = "物料名称")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialName { get; set; }
[Display(Name = "Inventory.MaterialSpec", Description = "物料规格")]
public string MaterialSpec { get; set; }
[Display(Name = "Inventory.MaterialUnit", Description = "单位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MaterialUnit { get; set; }
[Display(Name = "Inventory.Batch", Description = "批次")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Batch { get; set; }
[Display(Name = "Inventory.Lot", Description = "料号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Lot { get; set; }
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ContainerCode { get; set; }
[Display(Name = "Inventory.Qty", Description = "数量")]
[Column(TypeName = "decimal(12,4)")]
public decimal? Qty { get; set; }
[Display(Name = "TaskDetail.InventoryId", Description = "库存Id")]
public int? InventoryId { get; set; }
[Display(Name = "TaskDetail.Status", Description = "状态")]
public TaskStatusEnum? Status { get; set; }
}
}
+62
View File
@@ -0,0 +1,62 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using System.Security.Policy;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Index(nameof(TaskNo), IsUnique = true)]
[Table("TaskHeader")]
public class TaskHeader : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
[Display(Name = "Task.ZoneCode", Description = "库区")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ZoneCode { get; set; }
[Display(Name = "Task.TaskNo", Description = "任务号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
[Required(ErrorMessage = "Validate.{0}required")]
public string TaskNo { get; set; }
[Display(Name = "Task.TaskType", Description = "任务类型")]
public TaskTypeEnum? TaskType { get; set; }
[Display(Name = "Task.FromLocation", Description = "起始仓位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string FromLocation { get; set; }
[Display(Name = "Task.ToLocation", Description = "目标仓位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ToLocation { get; set; }
[Display(Name = "Task.Station", Description = "站台")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Station { get; set; }
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ContainerCode { get; set; }
[Display(Name = "Task.RoadWay", Description = "巷道")]
public short? RoadWay { get; set; }
[Display(Name = "Task.Priority", Description = "优先级")]
public short? Priority { get; set; }
[Display(Name = "Task.Status", Description = "任务状态")]
public TaskStatusEnum? Status { get; set; }
[Display(Name = "Task.ErrorMsg", Description = "错误信息")]
public string ErrorMsg { get; set; }
public ICollection<TaskDetail> TaskDetails { get; set; }
}
}
@@ -0,0 +1,56 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("TaskHeaderHistory")]
public class TaskHeaderHistory : BasePoco
{
[Key]
public new int ID { get; set; }
[Display(Name = "Task.ZoneCode", Description = "库区")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ZoneCode { get; set; }
[Display(Name = "Task.TaskNo", Description = "任务号")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
[Required(ErrorMessage = "Validate.{0}required")]
public string TaskNo { get; set; }
[Display(Name = "Task.TaskType", Description = "任务类型")]
public TaskTypeEnum? TaskType { get; set; }
[Display(Name = "Task.FromLocation", Description = "起始仓位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string FromLocation { get; set; }
[Display(Name = "Task.ToLocation", Description = "目标仓位")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ToLocation { get; set; }
[Display(Name = "Task.Station", Description = "站台")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Station { get; set; }
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string ContainerCode { get; set; }
[Display(Name = "Task.RoadWay", Description = "巷道")]
public short? RoadWay { get; set; }
[Display(Name = "Task.Priority", Description = "优先级")]
public short? Priority { get; set; }
[Display(Name = "Task.Status", Description = "任务状态")]
public TaskStatusEnum? Status { get; set; }
[Display(Name = "Task.ErrorMsg", Description = "错误信息")]
public string ErrorMsg { get; set; }
public ICollection<TaskDetailHistory> TaskDetails { get; set; }
}
}