add-修改CTU移库,添加移库记录
parent
714966307b
commit
9fbe84cf2c
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue