using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
namespace WIDESEA_DTO.Basic
{
///
/// 二期ERP物料接收实体
///
[ModelValidate]
public class ERPMaterialDTO
{
///
/// 操作类型 1:新增、2:修改、3:删除
///
[PropertyValidate("操作类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3 })]
public int OperateType { get; set; }
///
/// 物料编号
///
[PropertyValidate("物料编号", NotNullAndEmpty = true)]
public string MaterielNo { get; set; }
///
/// 物料名称
///
[PropertyValidate("物料名称", NotNullAndEmpty = true)]
public string MaterielName { get; set; }
///
/// 规格
///
[PropertyValidate("规格", NotNullAndEmpty = false)]
public string MaterielSpec { get; set; }
///
/// 物料类型 成品 = 1,半成品 = 2,原材料 = 3,辅料备件 = 4
///
[PropertyValidate("物料类型 成品 = 1,半成品 = 2,原材料 = 3,辅料备件 = 4", NotNullAndEmpty = true)]
public int MaterielType { get; set; }
///
/// 物料宽
///
[PropertyValidate("物料宽", NotNullAndEmpty = true)]
public decimal MaterielWidth { get; set; }
///
/// 物料厚度
///
[PropertyValidate("物料厚度", NotNullAndEmpty = true)]
public decimal MaterielThickness { get; set; }
///
/// 物料长
///
[PropertyValidate("物料长", NotNullAndEmpty = true)]
public decimal MaterielLength { get; set; }
///
/// 物料重
///
[PropertyValidate("物料重", NotNullAndEmpty = true)]
public decimal Weight { get; set; }
///
/// 状态
///
[PropertyValidate("0:禁用、1:可用;默认为1", NotNullAndEmpty = true)]
public int State { get; set; }
///
/// 是否检验 1=是,0=否
///
[PropertyValidate("是否检验 1=是,0=否", NotNullAndEmpty = true)]
public int IsCheck { get; set; }
///
/// 仓库代号
///
[PropertyValidate("仓库代号", NotNullAndEmpty = true)]
public string WarehouseCode { get; set; }
///
/// 计量单位(Kg:千克)
///
[PropertyValidate("计量单位:Kg:公斤、M:米、Pcs:个(只)", NotNullAndEmpty = true)]
public string Unit { get; set; }
}
}