namespace Tnb.BasicData.Entities.Dto { public class ErpBasMaterialInput { public ErpBasMaterial bas_material { get; set; } public List bas_material_units { get; set; } = new List(); // public List bas_material_into_factory_specificationses { get; set; } = new List(); // // public List bas_substitution_materials { get; set; } = new List(); // // public List bas_material_send_warehouses { get; set; } = new List(); // // public List bas_material_inbound_whs { get; set; } = new List(); } public class ErpBasMaterial { /// /// 物料代码 /// public string code { get; set; } = string.Empty; /// /// 物料名称 /// public string name { get; set; } = string.Empty; /// /// 物料分类ID /// public string category_id { get; set; } = string.Empty; /// /// 单位ID /// public string unit_id { get; set; } = string.Empty; // /// // /// 单价 // /// // public decimal? cost { get; set; } // // /// // /// 毛重 // /// // public decimal? grossweight { get; set; } // // /// // /// 净重 // /// // public decimal? netweight { get; set; } // // /// // /// 长 // /// // public decimal? length { get; set; } // // /// // /// 宽 // /// // public decimal? width { get; set; } // // /// // /// 高 // /// // public decimal? high { get; set; } // // /// // /// 体积 // /// // public decimal? volumn { get; set; } // // /// // /// 是否免检 // /// // public int? isexemption { get; set; } /// /// 安全库存 /// public decimal? safeqty { get; set; } /// /// 保质期 /// public int? qualityperiod { get; set; } // /// // /// 是否过期允许出库 // /// // public string? expireout { get; set; } /// /// 最小包装 /// public decimal? minpacking { get; set; } /// /// 是否先进先出管控 /// public string? fifo { get; set; } // /// // /// 先进先出间隔天数,批次间隔天数 // /// // public int? fifo_interval_days { get; set; } /// /// 物料规格型号 /// public string? material_standard { get; set; } // /// // /// 海关编码 // /// // public string? fhscode { get; set; } // /// // /// 附属性 // /// // public string? attribute { get; set; } // /// // /// 管控类型: 批管控:Lot 单管控:KeyParts 非管控:NoControl // /// // public string? controltype { get; set; } /// /// 备注 /// public string? remark { get; set; } // /// // /// 创建用户 // /// // public string? create_id { get; set; } /// /// 创建用户 /// public string? create_count { get; set; } /// /// 创建时间 /// public DateTime? create_time { get; set; } // /// // /// 修改用户 // /// // public string? modify_id { get; set; } /// /// 修改用户 /// public string? modify_count { get; set; } /// /// 修改时间 /// public DateTime? modify_time { get; set; } // /// // /// 扩展字段 // /// // public string? extras { get; set; } /// /// 状态 /// public string? state { get; set; } /// /// 物料属性 /// public string? material_property { get; set; } /// /// 标签 /// public string? label { get; set; } /// /// 描述 /// public string? descrip { get; set; } /// /// 批次管理 /// public int? is_batch_enabled { get; set; } /// /// 标签管理 /// public int? is_label_enabled { get; set; } // /// // /// 附件 // /// // public string? attachment { get; set; } /// /// 先进先出 0否 1是 /// public int? first_in_out { get; set; } /// /// 存储有效期(天) /// public int? storage_valid_day { get; set; } /// /// 预警提前期(天) /// public int? early_warn_day { get; set; } /// /// 安全库存 /// public int? safe_stock { get; set; } /// /// 安全库存包含状态 /// public string? safe_stock_stauts { get; set; } /// /// 发料仓库id /// public string? send_warehouse_id { get; set; } /// /// 入厂单位id /// public string? into_factory_unit_id { get; set; } /// /// 投料单位 /// public string? material_in_unit_id { get; set; } /// /// 产出单位 /// public string? material_out_unit_id { get; set; } /// /// 请料方式 1按计划排程请料 2自行管控 /// public string? material_request_method { get; set; } /// /// 是否包含入库数 /// public int? is_contain_into_num { get; set; } /// /// 是否创建子工单 /// public string? is_create_sub_work_order { get; set; } /// /// 保质期 /// public int? quality_guarantee_period { get; set; } /// /// DI编码 /// public string? di { get; set; } } public class ErpBasMaterialUnit { /// /// 主单位数量 /// public string? number_of_primary_unit { get; set; } /// /// 辅助单位数量 /// public string? number_of_auxiliary_unit { get; set; } /// /// 辅助单位 /// public string auxiliary_unit_id { get; set; } = string.Empty; } public class ErpBasMaterialIntoFactorySpecifications { /// /// 单位id /// public string unit_id { get; set; } = string.Empty; /// /// 数量 /// public decimal num { get; set; } } public class ErpBasSubstitutionMaterial { /// /// 替代料编号 /// public string sub_material_code { get; set; } = string.Empty; /// /// 替代比例,如1(一个物料可以用一个替代料代替) /// public decimal proportion { get; set; } } public class ErpBasMaterialSendWarehouse { /// /// 仓库编号 /// public string? wh_code { get; set; } /// /// 最大库存 /// public int? max_stock { get; set; } /// /// 最小库存 /// public int? min_stock { get; set; } /// /// 安全库存 /// public int? safe_stock { get; set; } } public class ErpBasMaterialInboundWh { /// /// 仓库编号 /// public string? wh_code { get; set; } /// /// 最大库存 /// public int? max_stock { get; set; } /// /// 最小库存 /// public int? min_stock { get; set; } /// /// 安全库存 /// public int? safe_stock { get; set; } } }