using SqlSugar; 
 | 
using System; 
 | 
using System.Collections.Generic; 
 | 
using System.Linq; 
 | 
using System.Text; 
 | 
using System.Threading.Tasks; 
 | 
using WIDESEA_Core.Attributes; 
 | 
  
 | 
namespace WIDESEA_DTO.ERP 
 | 
{ 
 | 
    /// <summary> 
 | 
    /// 其他入库订单 
 | 
    /// </summary> 
 | 
    [ModelValidate] 
 | 
    public class ErpInOrderDTO 
 | 
    { 
 | 
        /// <summary> 
 | 
        /// 操作类型<br/> 
 | 
        /// 1:新增<br/> 
 | 
        /// 2:修改<br/> 
 | 
        /// 3:删除(删除只要明细行号和领料单号) 
 | 
        /// </summary> 
 | 
        [PropertyValidate("操作类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3 })] 
 | 
        public int Way { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 明细行号 
 | 
        /// </summary> 
 | 
        [PropertyValidate("明细行号", NotNullAndEmpty = true)] 
 | 
        public string RowNo { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 入库订单号 
 | 
        /// </summary> 
 | 
        [PropertyValidate("入库订单号", NotNullAndEmpty = true)] 
 | 
        public string OrderNo { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 仓库编号 
 | 
        /// </summary> 
 | 
        [PropertyValidate("仓库编号", NotNullAndEmpty = true)] 
 | 
        public string WaId { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 订单类型<br/> 
 | 
        /// 1:调拨入库<br/> 
 | 
        /// 3:客供回收<br/> 
 | 
        /// 6:物料销售退货<br/> 
 | 
        /// </summary> 
 | 
        [PropertyValidate("订单类型", NotNullAndEmpty = true, Check = new object[] { 1,  3, 6 })] 
 | 
        public int OType { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 物料编码 
 | 
        /// </summary> 
 | 
        [PropertyValidate("物料编码", NotNullAndEmpty = true)] 
 | 
        public string MCode { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 数量 
 | 
        /// </summary> 
 | 
        [PropertyValidate("数量", NotNullAndEmpty = true, MinValue = 0, IsContainMinValue = false)] 
 | 
        public float Qty { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 单位 
 | 
        /// </summary> 
 | 
        [PropertyValidate("单位", NotNullAndEmpty = true)] 
 | 
        public string Unit { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 下单日期 
 | 
        /// </summary> 
 | 
        [PropertyValidate("下单日期", NotNullAndEmpty = true)] 
 | 
        public string OrderData { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 备注 
 | 
        /// </summary> 
 | 
        [PropertyValidate("备注")] 
 | 
        public string Node { get; set; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 回收类型 
 | 
        /// </summary> 
 | 
        [PropertyValidate("回收类型")] 
 | 
        public string Type { get; set; } 
 | 
    } 
 | 
} 
 |