using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace wms.dto.request.hj.dto { public class Model { public long Id { get; set; } public string AddWho { get; set; } public string EditWho { get; set; } public DateTime AddTime { get; set; } public DateTime EditTime { get; set; } public string Remark { get; set; } public string Default1 { get; set; } public string Default2 { get; set; } public string Default3 { get; set; } public string Default4 { get; set; } public string Default5 { get; set; } } public class AddModel : Model { /// /// 编码 /// [Required(ErrorMessage = "{0} 必须填写")] [MaxLength(30, ErrorMessage = "{0}长度不可超过{1}")] public string Code { get; set; } /// /// 名称 /// [Required(ErrorMessage = "{0} 必须填写")] [MaxLength(100, ErrorMessage = "{0}长度不可超过{1}")] public string Name { get; set; } //[Required(ErrorMessage = "{0} 必须填写")] //[MaxLength(50, ErrorMessage = "{0}长度不可超过{1}")] /// /// 仓库类型 /// public string? WareType { get; set; } //[Required(ErrorMessage = "{0} 必须填写")] //[RegularExpression(@"^[0-9]*$", ErrorMessage = "{0}只能是数字")] /// /// 仓库状态 /// public string? WareState { get; set; } = "1"; /// /// 厂区 /// public string? FactoryNo { get; set; } /// /// 仓库地址ID /// public long? WareAddrID { get; set; } /// /// 仓库对数据连接 /// public long? WareDbLink { get; set; } /// /// 仓库Id /// public long? WareId { get; set; } /// /// 库区状态 /// public string? WZoneState { get; set; } //[Required(ErrorMessage = "{0} 必须填写")] //[MaxLength(50, ErrorMessage = "{0}长度不可超过{1}")] /// /// 仓库编码 /// public string? WareCode { get; set; } //[Required(ErrorMessage = "{0} 必须填写")] //[RegularExpression(@"^[0-9]*$", ErrorMessage = "{0}只能是数字")] /// /// 库区编码 /// public string? ZoneCode { get; set; } /// /// 货位类型 /// public int? LocationType { get; set; } /// /// 行删除 /// public int? RowDel { get; set; } /// /// 行停用 /// public int? RowStop { get; set; } /// /// 货位锁 /// public int? LocationLock { get; set; } /// /// 货位状态 /// public int? LocationState { get; set; } /// /// 排序 /// public int? Sort { get; set; } /// /// 巷道 /// public int? Tunnel { get; set; } /// /// 行 /// public int? Row { get; set; } /// /// 列 /// public int? Col { get; set; } /// /// 层 /// public int? Layer { get; set; } /// /// 深度 /// public int? Depth { get; set; } /// /// 货位大小 /// public int? Size { get; set; } /// /// 货架 /// public string? Shelf { get; set; } /// /// 容器ID /// public long? ContGrpID { get; set; } /// /// 容器编码 /// public string? ContGrpBarCode { get; set; } /// /// 是否空容器 /// public int? IsEmptyContainer { get; set; } /// /// 库区id /// public long? ZoneId { get; set; } /// /// 主单位 /// public string? PrimaryUnit { get; set; } /// /// 副单位 /// public string? DeputyUnit { get; set; } /// /// 换算率 /// public string? ConversionUnit { get; set; } /// /// BOM编码 /// public string? BomCode { get; set; } /// /// 湿拉物料编码 /// public string? MaterCode { get; set; } /// /// 轮子个数 /// public int? HWCount { get; set; } /// /// 状态 /// public int? BomStatus { get; set; } } public class DetailsRequest { public List Ids { get; set; } public string? Status { get; set; } public string? Flag { get; set; } //获取档案类型 public string? Remark { get; set; } } public class DetailRequest { public long Id { get; set; } } public class UpdateMaterEntity : Model { public string MatCode { get; set; } public string MatName { get; set; } public string MatShortDesc { get; set; } public string MatFullDesc { get; set; } public string MatExtDesc { get; set; } public string MatEnName { get; set; } public long MaterGroupId { get; set; } public string LeafTypeCode { get; set; } public string LeafTypeName { get; set; } public string MidTypeCode { get; set; } public string MidTypeName { get; set; } public string HeadTypeCode { get; set; } public string HeadTypeName { get; set; } public string Describe { get; set; } public string Texture { get; set; } public string FigureNo { get; set; } public string Strength { get; set; } public string Plating { get; set; } public decimal PlatingWeight { get; set; } public decimal PlatingConQty { get; set; } public decimal Linear { get; set; } public string ProCode { get; set; } public string ProName { get; set; } public string ProStre { get; set; } public decimal LinearMax { get; set; } public decimal LinearMin { get; set; } public decimal LinearTar { get; set; } public decimal Mono { get; set; } public string SpoolType { get; set; } public string SpoolCode { get; set; } public decimal Length { get; set; } public decimal OilQty { get; set; } public string LubType { get; set; } public decimal LineSpace { get; set; } public decimal LayLength { get; set; } public string LayDirect { get; set; } public string CumIndex { get; set; } public string IsSolder { get; set; } public string SKUCode { get; set; } public string SKUDesc { get; set; } public string Tors { get; set; } public string PackGroupId { get; set; } public string BlackSamp { get; set; } public string BlackChk { get; set; } public string CustCode { get; set; } public string CustName { get; set; } public string AddressCode { get; set; } public string AddressName { get; set; } public decimal Qty { get; set; } public decimal BoxMaxSolder { get; set; } public decimal SpoolMaxSolder { get; set; } public decimal OVC { get; set; } public string DrummLevel { get; set; } public string ComCode { get; set; } public string ComName { get; set; } public string CalcUnit { get; set; } public string StockUnit { get; set; } public decimal Weight { get; set; } public string WeightUnit { get; set; } public bool IsHold { get; set; } public decimal HoldDuration { get; set; } } public class UpdateBarcodeEntity : Model { /// /// 材料号,空容器为容器号 /// public string InvBarCode { get; set; } /// /// 库存状态(正常/锁定:Normal/Lock) /// public string InvState { get; set; } /// /// 入库单据号 /// public string InDocsNo { get; set; } /// /// 入库单据行号 /// public string InDocsRowNo { get; set; } /// /// 供应商编码 /// public string SuppCode { get; set; } /// /// 供应商名称 /// public string SuppName { get; set; } /// /// 物料编码 /// public string MatCode { get; set; } /// /// 物料id /// public long MatId { get; set; } /// /// 仓库编码 /// public string WarehouseCode { get; set; } /// /// 仓库id /// public long WarehouseId { get; set; } /// /// 总重量 /// public decimal TotalWtQty { get; set; } /// /// 净重(重量,盘条:包重,其他:钢丝净重) /// public decimal NetWQty { get; set; } /// /// 皮重(空工字轮重量) /// public decimal TareWQty { get; set; } /// /// 长度 /// public decimal LengthQty { get; set; } /// /// 生产批号 /// public string Batch { get; set; } /// /// 生产时间('20230214;默认值19000101) /// public DateTime ProductTime { get; set; } /// /// 第一次入库时间('20230214;默认值19000101) /// public DateTime OneInTime { get; set; } /// /// 碳当量 /// public decimal CaQty { get; set; } /// /// 盘条条码 /// public string RodBarCode { get; set; } /// /// 工字轮条码 /// public string HWBarCode { get; set; } /// /// RFID条码 /// public string RFIDBarCode { get; set; } /// /// 工字轮规格(WS09,WS18,等, 500,800) /// public string HWSpec { get; set; } /// /// 炉号 /// public string BoilerNo { get; set; } /// /// 包号 /// public string PackNo { get; set; } /// /// 牌号 /// public string BrandNo { get; set; } /// /// 执行标准 /// public string ExecStd { get; set; } /// /// 许可证号 /// public string LicenceNo { get; set; } /// /// 改手盘标记 /// public bool IsSurplus { get; set; } /// /// 返工标记 /// public bool IsRework { get; set; } /// /// 单/双丝 /// public string SilkType { get; set; } /// /// 是否黑盘 /// public bool IsBlack { get; set; } /// /// 是否芯股 /// public bool IsCore { get; set; } /// /// 快投标记 /// public bool IsFast { get; set; } /// /// 是否异常 /// public bool IsFail { get; set; } /// /// 异常原因 /// public string FailReason { get; set; } /// /// 焊点数量 /// public int SolderQty { get; set; } /// /// 等级 /// public string Grade { get; set; } /// /// 退料原因 /// public string Reason { get; set; } /// /// 是否退料 /// public bool IsBack { get; set; } /// /// 是否 扭转检测 /// public bool IsTorsChk { get; set; } /// /// 扭转次数 /// public int TorsChkQty { get; set; } /// /// 扭转检测时间 /// public DateTime TorsChkTime { get; set; } /// /// 扭转检测结果值 /// public decimal TorsChkValue { get; set; } /// /// 扭转检测设备号 /// public string TorsChkMacNo { get; set; } /// /// 工序订单号 /// public string ProcessDocsNo { get; set; } /// /// 生产机台号 /// public string ProductWbNo { get; set; } /// /// 生产产线号 /// public string ProductLineNo { get; set; } } }