- 在MmMaterial类中添加ParentMaterialCode字段支持物料层级关系 - 扩展MmRecordOutbound类增加供应商信息字段 - 重构FeedProcessReportwork方法支持原材料工单领料和库存ID指定 - 新增物料库存查询、领料、成品入库、出货等接口 - 完善库存操作逻辑,支持根据库存ID直接操作 - 添加相关DTO类支持新功能的数据传输
103 lines
2.7 KiB
C#
103 lines
2.7 KiB
C#
|
|
namespace DOAN.Model.BZFM
|
|
{
|
|
/// <summary>
|
|
/// 物料表
|
|
/// </summary>
|
|
[SugarTable("mm_material")]
|
|
public class MmMaterial
|
|
{
|
|
public object CateoryName;
|
|
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_code")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_name")]
|
|
public string MaterialName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 规格型号
|
|
/// </summary>
|
|
public string Specification { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_code")]
|
|
public string CategoryCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_name")]
|
|
public string CategoryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 计量单位
|
|
/// </summary>
|
|
public string Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料类型(原材料/半成品/产成品/打包材料/辅料)
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_code")]
|
|
public string SupplierCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_name")]
|
|
public string SupplierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 安全库存
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "safety_stock")]
|
|
public decimal SafetyStock { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态(停用/启用)
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_time")]
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_time")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 父物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "parent_material_code")]
|
|
public string ParentMaterialCode { get; set; }
|
|
}
|
|
} |