添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,45 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("Container")]
|
||||
public class Container : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Container.Code", Description = "容器编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Container.Type", Description = "容器类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[Display(Name = "Container.IsLock", Description = "锁类型")]
|
||||
public ContainerLockEnum IsLock { get; set; }
|
||||
|
||||
[Display(Name = "Container.Status", Description = "容器状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[Display(Name = "Container.LocationCode", Description = "库位编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
[Display(Name = "System.Length", Description = "长")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Length { get; set; }
|
||||
|
||||
[Display(Name = "System.Width", Description = "宽")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Width { get; set; }
|
||||
|
||||
[Display(Name = "System.Height", Description = "高")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Height { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("Location")]
|
||||
public class Location : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Location.Code", Description = "库位编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Location.Type", Description = "库位类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[Display(Name = "Location.Status", Description = "库位状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[Display(Name = "Location.Row", Description = "行")]
|
||||
public short Row { get; set; }
|
||||
|
||||
[Display(Name = "Location.Line", Description = "列")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public short Line { get; set; }
|
||||
|
||||
[Display(Name = "Location.Layer", Description = "层")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public short Layer { get; set; }
|
||||
|
||||
[Display(Name = "Location.RoadWay", Description = "巷道")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public short? RoadWay { get; set; }
|
||||
|
||||
[Display(Name = "Location.RowFlag", Description = "内外标识,0:外仓位,1:里仓位")]
|
||||
public short? RowFlag { get; set; }
|
||||
|
||||
[Display(Name = "Location.ContainerCode", Description = "容器编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ContainerCode { get; set; }
|
||||
|
||||
[Display(Name = "Location.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Location.IsStop", Description = "是否禁用")]
|
||||
public bool IsStop { get; set; }
|
||||
|
||||
[Display(Name = "System.Length", Description = "长")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Length { get; set; }
|
||||
|
||||
[Display(Name = "System.Width", Description = "宽")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Width { get; set; }
|
||||
|
||||
[Display(Name = "System.Height", Description = "高")]
|
||||
[Column(TypeName = "decimal(8,3)")]
|
||||
public decimal? Height { get; set; }
|
||||
|
||||
[Display(Name = "Location.ContiguousCode", Description = "相邻库位")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ContiguousCode { get; set; }
|
||||
|
||||
public Guid? Version { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 定时器状态
|
||||
/// </summary>
|
||||
public enum SysJobEnum : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 暂停
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.Stoped")]
|
||||
stoped = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 运行
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.running")]
|
||||
running = 1
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public enum TaskTypeEnum : short
|
||||
{
|
||||
/// <summary>
|
||||
/// 入库任务
|
||||
/// </summary>
|
||||
[Display(Name = "TaskType.In")]
|
||||
In = 100,
|
||||
|
||||
/// <summary>
|
||||
/// 出库任务
|
||||
/// </summary>
|
||||
[Display(Name = "TaskType.Out")]
|
||||
Out = 200,
|
||||
|
||||
/// <summary>
|
||||
/// 移库任务
|
||||
/// </summary>
|
||||
[Display(Name = "TaskType.Move")]
|
||||
Move = 300
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
public enum TaskStatusEnum : short
|
||||
{
|
||||
[Display(Name = "TaskStatusEnum.0")]
|
||||
新建 = 0,
|
||||
|
||||
[Display(Name = "TaskStatusEnum.5")]
|
||||
已下发 = 5,
|
||||
|
||||
[Display(Name = "TaskStatusEnum.20")]
|
||||
取完 = 20,
|
||||
|
||||
[Display(Name = "TaskStatusEnum.50")]
|
||||
到站台 = 50, // 分拣
|
||||
|
||||
[Display(Name = "TaskStatusEnum.100")]
|
||||
完成 = 100,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 容器锁
|
||||
/// </summary>
|
||||
public enum ContainerLockEnum : short
|
||||
{
|
||||
[Display(Name = "ContainerLockEnum.0")]
|
||||
未锁 = 0,
|
||||
|
||||
[Display(Name = "ContainerLockEnum.1")]
|
||||
任务锁 = 1,
|
||||
|
||||
[Display(Name = "ContainerLockEnum.2")]
|
||||
盘点锁 = 2,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 容器状态
|
||||
/// </summary>
|
||||
public static class ContainerStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 空 = "empty"
|
||||
/// </summary>
|
||||
public const string 空 = "empty";
|
||||
|
||||
/// <summary>
|
||||
/// 有 = "some"
|
||||
/// </summary>
|
||||
public const string 有 = "some";
|
||||
|
||||
/// <summary>
|
||||
/// 满 = "full"
|
||||
/// </summary>
|
||||
public const string 满 = "full";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 库位状态
|
||||
/// </summary>
|
||||
public static class LocationStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 空仓位 = "empty"
|
||||
/// </summary>
|
||||
public const string 空仓位 = "empty";
|
||||
|
||||
/// <summary>
|
||||
/// 任务锁 = "lock"
|
||||
/// </summary>
|
||||
public const string 任务锁 = "lock";
|
||||
|
||||
/// <summary>
|
||||
/// 有货 = "some"
|
||||
/// </summary>
|
||||
public const string 有货 = "some";
|
||||
|
||||
/// <summary>
|
||||
/// 空容器 = "emptyContainer"
|
||||
/// </summary>
|
||||
public const string 空容器 = "emptyContainer";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 入库单状态
|
||||
/// </summary>
|
||||
public enum ReceiptStatusEnum : short
|
||||
{
|
||||
[Display(Name = "ReceiptStatusEnum.0")]
|
||||
新建 = 0,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.120")]
|
||||
预约 = 120,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.150")]
|
||||
到货 = 150,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.180")]
|
||||
质检 = 180,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.200")]
|
||||
收货 = 200,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.222")]
|
||||
收完 = 222,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.300")]
|
||||
上架 = 300,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.800")]
|
||||
过账 = 800,
|
||||
|
||||
[Display(Name = "ReceiptStatusEnum.900")]
|
||||
回传 = 900
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 出库单状态
|
||||
/// </summary>
|
||||
public enum ShipStatusEnum : short
|
||||
{
|
||||
[Display(Name = "ShipStatusEnum.0")]
|
||||
新建 = 0,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.120")]
|
||||
预约 = 120,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.150")]
|
||||
分配中 = 150,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.180")]
|
||||
分配完成 = 180,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.200")]
|
||||
拣货中 = 200,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.222")]
|
||||
拣货完成 = 222,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.800")]
|
||||
过账 = 800,
|
||||
|
||||
[Display(Name = "ShipStatusEnum.900")]
|
||||
回传 = 900
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 交易类型
|
||||
/// </summary>
|
||||
public static class InventoryTranType
|
||||
{
|
||||
/// <summary>
|
||||
/// 入库 = "in"
|
||||
/// </summary>
|
||||
public const string 入库 = "in";
|
||||
|
||||
/// <summary>
|
||||
/// 出库 = "out"
|
||||
/// </summary>
|
||||
public const string 出库 = "out";
|
||||
|
||||
/// <summary>
|
||||
/// 移库 = "move"
|
||||
/// </summary>
|
||||
public const string 移库 = "move";
|
||||
|
||||
/// <summary>
|
||||
/// 盘点 = "check"
|
||||
/// </summary>
|
||||
public const string 盘点 = "check";
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 交易类型
|
||||
/// </summary>
|
||||
public static class InventoryTaskStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 无任务 = "idle";
|
||||
/// </summary>
|
||||
public const string 无任务 = "idle";
|
||||
|
||||
/// <summary>
|
||||
/// 任务中 = "lock";
|
||||
/// </summary>
|
||||
public const string 任务中 = "lock";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("Inventory")]
|
||||
public class Inventory : 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.ContainerCode", Description = "容器编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ContainerCode { get; set; }
|
||||
|
||||
[Display(Name = "Container.LocationCode", Description = "库位编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string LocaionCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.TaskQty", Description = "任务数量")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? TaskQty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode", Description = "入库单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ReceiptCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptDetailId", Description = "明细ID")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public int? ReceiptDetailId { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.TaskStatus", Description = "任务状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string TaskStatus { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("InventoryTransaction")]
|
||||
public class InventoryTransaction : 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 = "InventoryTransaction.Type", Description = "交易类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ContainerCode { get; set; }
|
||||
|
||||
[Display(Name = "Container.LocationCode", Description = "库位编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string LocaionCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType", Description = "单据类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillCode", Description = "单据编号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptDetailId", Description = "明细ID")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public int? BillDetailId { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Status { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ReceiptDetail")]
|
||||
public class ReceiptDetail : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public int ReceiptHeaderId { get; set; }
|
||||
|
||||
public ReceiptHeader ReceiptHeader { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.CompletedQty", Description = "完成数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? CompletedQty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string InventoryStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.Status", Description = "状态")]
|
||||
public ReceiptStatusEnum? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ReceiptDetailHistory")]
|
||||
public class ReceiptDetailHistory : BasePoco
|
||||
{
|
||||
[Key]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode")]
|
||||
public int ReceiptHeaderHistoryId { get; set; }
|
||||
|
||||
public ReceiptHeaderHistory ReceiptHeaderHistory { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.CompletedQty", Description = "完成数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? CompletedQty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string InventoryStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.Status", Description = "状态")]
|
||||
public ReceiptStatusEnum? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ReceiptHeader")]
|
||||
public class ReceiptHeader : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode", Description = "入库单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType", Description = "单据类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalQty", Description = "总数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? TotalQty { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalLines", Description = "总行数")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public int? TotalLines { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus", Description = "首状态")]
|
||||
public ReceiptStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus", Description = "尾状态")]
|
||||
public ReceiptStatusEnum? LastStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.AppointmentTime", Description = "预约时间")]
|
||||
public DateTime? AppointmentTime { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<ReceiptDetail> ReceiptDetails { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ReceiptHeaderHistory")]
|
||||
public class ReceiptHeaderHistory : BasePoco
|
||||
{
|
||||
[Key]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ReceiptCode", Description = "入库单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType", Description = "单据类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalQty", Description = "总数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? TotalQty { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalLines", Description = "总行数")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public int? TotalLines { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus", Description = "首状态")]
|
||||
public ReceiptStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus", Description = "尾状态")]
|
||||
public ReceiptStatusEnum? LastStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.AppointmentTime", Description = "预约时间")]
|
||||
public DateTime? AppointmentTime { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<ReceiptDetailHistory> ReceiptDetailsHistories { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ReportDesign")]
|
||||
public class ReportDesign : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "ReportDesign.Name", Description = "名称")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Display(Name = "ReportDesign.Sql", Description = "Sql")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string Sql { get; set; }
|
||||
|
||||
[Display(Name = "ReportDesign.Params", Description = "参数")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string Params { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
public class WcsRequest
|
||||
{
|
||||
public string TaskNo { get; set; }
|
||||
public short? State { get; set; }
|
||||
public int? RoadWay { get; set; }
|
||||
public int? Size { get; set; }
|
||||
public string PalletNo { get; set; }
|
||||
public decimal? Length { get; set; }
|
||||
public decimal? Width { get; set; }
|
||||
public decimal? Height { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
public class ApiJsonResult<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Status
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// State
|
||||
/// </summary>
|
||||
public bool State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Message
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data
|
||||
/// </summary>
|
||||
public T Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
public class ResponseResult<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 状态结果
|
||||
/// </summary>
|
||||
public bool Status { get; set; } = true;
|
||||
|
||||
private string _msg;
|
||||
|
||||
/// <summary>
|
||||
/// 消息描述
|
||||
/// </summary>
|
||||
public string Message
|
||||
{
|
||||
get
|
||||
{
|
||||
// 如果没有自定义的结果描述,则可以获取当前状态的描述
|
||||
return !string.IsNullOrEmpty(_msg) ? _msg : (Status ? "success" : "field");
|
||||
}
|
||||
set
|
||||
{
|
||||
_msg = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回结果
|
||||
/// </summary>
|
||||
public T Data { get; set; } = default(T);
|
||||
|
||||
/// <summary>
|
||||
/// 成功状态返回结果
|
||||
/// </summary>
|
||||
/// <param name="data">返回的数据</param>
|
||||
/// <param name="msg"></param>
|
||||
/// <returns></returns>
|
||||
public static ResponseResult<T> Success(T data, string msg)
|
||||
{
|
||||
return new ResponseResult<T> { Data = data, _msg = msg };
|
||||
}
|
||||
|
||||
public static ResponseResult<T> Success(T data)
|
||||
{
|
||||
return new ResponseResult<T> { Data = data};
|
||||
}
|
||||
|
||||
public static ResponseResult<T> Success(string msg)
|
||||
{
|
||||
return new ResponseResult<T> { _msg = msg };
|
||||
}
|
||||
|
||||
public static ResponseResult<T> Success()
|
||||
{
|
||||
return new ResponseResult<T> {};
|
||||
}
|
||||
/// <summary>
|
||||
/// 异常状态返回结果
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <param name="msg">异常信息</param>
|
||||
/// <returns></returns>
|
||||
public static ResponseResult<T> Error(T data, string msg)
|
||||
{
|
||||
return new ResponseResult<T> { Data = data, Status = false, _msg = msg };
|
||||
}
|
||||
|
||||
public static ResponseResult<T> Error(T data)
|
||||
{
|
||||
return new ResponseResult<T> { Data = data, Status = false};
|
||||
}
|
||||
|
||||
public static ResponseResult<T> Error(string msg)
|
||||
{
|
||||
return new ResponseResult<T> { Status = false, _msg = msg };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 自定义状态返回结果
|
||||
/// </summary>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="data"></param>
|
||||
/// <param name="msg"></param>
|
||||
/// <returns></returns>
|
||||
public static ResponseResult<T> Result(bool status, T data, string msg = null)
|
||||
{
|
||||
return new ResponseResult<T> { Status = status, Data = data, _msg = msg };
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ShipmentDetail")]
|
||||
public class ShipmentDetail : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Ship.ShipmentCode")]
|
||||
public int ShipmentHeaderId { get; set; }
|
||||
|
||||
public ShipmentHeader ShipmentHeader { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.CompletedQty", Description = "完成数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? CompletedQty { get; set; }
|
||||
|
||||
[Display(Name = "Ship.DividedQty", Description = "已分配数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? DividedQty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string InventoryStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.Status", Description = "状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public ShipStatusEnum? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ShipmentDetailHistory")]
|
||||
public class ShipmentDetailHistory : BasePoco
|
||||
{
|
||||
[Key]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Ship.ShipmentCode")]
|
||||
public int ShipmentHeaderHistoryId { get; set; }
|
||||
|
||||
public ShipmentHeaderHistory ShipmentHeaderHistory { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialCode", Description = "物料编码")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MaterialType { 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 = "Inventory.ManufactureDate", Description = "生产日期")]
|
||||
public DateTime? ManufactureDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ExpirationDate", Description = "失效日期")]
|
||||
public DateTime? ExpirationDate { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.CompletedQty", Description = "完成数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? CompletedQty { get; set; }
|
||||
|
||||
[Display(Name = "Ship.DividedQty", Description = "已分配数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? DividedQty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? Qty { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.Status", Description = "物料状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string InventoryStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.Status", Description = "状态")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public ShipStatusEnum? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ShipmentHeader")]
|
||||
public class ShipmentHeader : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ShipCode", Description = "出库单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType", Description = "单据类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalQty", Description = "总数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? TotalQty { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalLines", Description = "总行数")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public int? TotalLines { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus", Description = "首状态")]
|
||||
public ShipStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus", Description = "尾状态")]
|
||||
public ShipStatusEnum? LastStatus { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<ShipmentDetail> ShipmentDetails { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("ShipmentHeaderHistory")]
|
||||
public class ShipmentHeaderHistory : BasePoco
|
||||
{
|
||||
[Key]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SourceCode", Description = "上游单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SourceCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.ShipCode", Description = "出库单号")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.BillType", Description = "单据类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string BillType { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.CompanyCode", Description = "公司")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CompanyCode { get; set; }
|
||||
|
||||
[Display(Name = "Inventory.SupplierCode", Description = "供应商")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string SupplierCode { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalQty", Description = "总数量")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public decimal? TotalQty { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.TotalLines", Description = "总行数")]
|
||||
[Column(TypeName = "decimal(12,4)")]
|
||||
public int? TotalLines { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.FirstStatus", Description = "首状态")]
|
||||
public ShipStatusEnum? FirstStatus { get; set; }
|
||||
|
||||
[Display(Name = "Receipt.LastStatus", Description = "尾状态")]
|
||||
public ShipStatusEnum? LastStatus { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<ShipmentDetailHistory> ShipmentDetailHistories { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("SysCount")]
|
||||
public class SysCount : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "SysCount.Prefix", Description = "前缀")]
|
||||
[StringLength(5, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Prefix { get; set; }
|
||||
|
||||
[Display(Name = "SysCount.Value", Description = "值")]
|
||||
public int Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("SysDictData")]
|
||||
public class SysDictData : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "SysDictType.DictName")]
|
||||
public int SysDictTypeId { get; set; }
|
||||
public SysDictType SysDictType { get; set; }
|
||||
|
||||
// <summary>
|
||||
/// 字典排序
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictData.DictSort", Description = "字典排序")]
|
||||
public int? DictSort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典标签
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictData.DictLabel", Description = "字典标签")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string DictLabel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文标签
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictData.DictLabelUs", Description = "英文标签")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string DictLabelUs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典键值
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictData.DictValue", Description = "字典键值")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string DictValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典类型
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictType.DictType", Description = "字典类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string DictType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 样式属性
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictData.CssClass", Description = "样式属性")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string CssClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("SysDictType")]
|
||||
public class SysDictType : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典名称
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictType.DictName", Description = "字典名称")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string DictName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典类型
|
||||
/// </summary>
|
||||
[Display(Name = "SysDictType.DictType", Description = "字典类型")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string DictType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
public ICollection<SysDictData> SysDictDatas { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
[Table("SysJob")]
|
||||
public class SysJob : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.JobName", Description = "任务名称")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string JobName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务组名
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.JobGroup", Description = "任务组名")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务方法
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.MethodName", Description = "任务方法")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MethodName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 参数
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.MethodParams", Description = "参数")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MethodParams { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// cron执行表达式
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.CronExpression", Description = "cron执行表达式")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string CronExpression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次执行时间
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.LastFireTime", Description = "上次执行时间")]
|
||||
public DateTime? LastFireTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下次执行时间
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.NextFireTime", Description = "下次执行时间")]
|
||||
public DateTime? NextFireTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 错误策略
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.MisfirePolicy", Description = "错误策略")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string MisfirePolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态(1正常 0暂停)
|
||||
/// </summary>
|
||||
[Display(Name = "SysJob.Status", Description = "状态(1正常 0暂停)")]
|
||||
public SysJobEnum Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注信息
|
||||
/// </summary>
|
||||
[Display(Name = "_Admin.Remark", Description = "备注")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace WalkingTec.Mvvm.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// FrameworkUser
|
||||
/// </summary>
|
||||
[Table("FrameworkUsers")]
|
||||
public class FrameworkUser : FrameworkUserBase
|
||||
{
|
||||
|
||||
[Display(Name = "_Admin.Email")]
|
||||
[RegularExpression("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", ErrorMessage = "Validate.{0}formaterror")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Gender")]
|
||||
public GenderEnum? Gender { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.CellPhone")]
|
||||
[RegularExpression("^[1][3-9]\\d{9}$", ErrorMessage = "Validate.{0}formaterror")]
|
||||
public string CellPhone { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.HomePhone")]
|
||||
[StringLength(30, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
[RegularExpression("^[-0-9\\s]{8,30}$", ErrorMessage = "Validate.{0}formaterror")]
|
||||
public string HomePhone { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.Address")]
|
||||
[StringLength(200, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Address { get; set; }
|
||||
|
||||
[Display(Name = "_Admin.ZipCode")]
|
||||
[RegularExpression("^[0-9]{6,6}$", ErrorMessage = "Validate.{0}formaterror")]
|
||||
public string ZipCode { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user