using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace Business.Domain
{
///
/// 成品库存占用表
///
[CollectionName("dopbase", "mes_stockoccupy")]
[Comment("成品库存占用表")]
public class mes_stockoccupy : BaseEntity
{
/////
///// 成品库存占用id
/////
//[Key]
//[Comment("成品库存占用id")]
//public long soccupy_id { get; set; }
///
/// 类型
///
[Required]
[StringLength(50)]
[Comment("类型")]
public string soccupy_type { get; set; }
///
/// 订单行id
///
[Comment("订单行id")]
public long? soentry_id { get; set; }
///
/// 订单行号
///
[Comment("订单行号")]
public long? fentry_id { get; set; }
///
/// 订单编号
///
[StringLength(50)]
[Comment("订单编号")]
public string fbill_no { get; set; }
///
/// 物料编码
///
[StringLength(50)]
[Comment("物料编码")]
public string fitem_number { get; set; }
///
/// 物料名称
///
[StringLength(200)]
[Comment("物料名称")]
public string fitem_name { get; set; }
///
/// 规格型号
///
[StringLength(200)]
[Comment("规格型号")]
public string fmodel { get; set; }
///
/// 仓库id
///
[Comment("仓库id")]
public long warehouse_id { get; set; }
///
/// 仓库名称
///
[StringLength(80)]
[Comment("仓库名称")]
public string warehouse_name { get; set; }
///
/// 仓库类型
///
[StringLength(50)]
[Comment("仓库类型")]
public string warehouse_type { get; set; }
///
/// 占用量
///
[Precision(20, 2)]
[Comment("占用量")]
public decimal? occupyqty { get; set; }
///
/// 开始时间
///
[Comment("开始时间")]
public DateTime? soccupy_stime { get; set; }
///
/// 结束时间
///
[Comment("结束时间")]
public DateTime? soccupy_etime { get; set; }
///
/// 占用状态
///
[StringLength(50)]
[Comment("占用状态")]
public string soccupy_state { get; set; }
///
/// 变更人
///
[StringLength(50)]
[Comment("变更人")]
public string soccupy_cby { get; set; }
///
/// 变更时间
///
[Comment("变更时间")]
public DateTime? soccupy_ctime { get; set; }
///
/// 变更原因
///
[StringLength(255)]
[Comment("变更原因")]
public string soccupy_creason { get; set; }
}
}