using SqlSugar;
namespace NewPdaSqlServer.entity;
///
///
[SugarTable("MES_INV_ITEM_OUTS")]
public class MesInvItemOuts
{
///
/// 默认值: (newid())
///
[SugarColumn(ColumnName = "GUID", IsPrimaryKey = true)]
public Guid Guid { get; set; }
///
/// 补料申请单号
///
[SugarColumn(ColumnName = "bbill_no")]
public string? BbillNo { get; set; }
///
/// 出库单号
///
[SugarColumn(ColumnName = "item_out_no")]
public string? ItemOutNo { get; set; }
///
/// 出库单对应的申请单号(采购入库:到货单,生产入库:指令工单-1)
///
[SugarColumn(ColumnName = "task_no")]
public string? TaskNo { get; set; }
///
/// 工序号
///
[SugarColumn(ColumnName = "proc_no")]
public string? ProcNo { get; set; }
///
/// 状态|0-未审核1-审核
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "status")]
public int? Status { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnName = "create_by")]
public string? CreateBy { get; set; }
///
/// 创建时间
/// 默认值: (getdate())
///
[SugarColumn(ColumnName = "create_date")]
public DateTime? CreateDate { get; set; }
///
/// 最后更新人
///
[SugarColumn(ColumnName = "lastupdate_by")]
public string? LastupdateBy { get; set; }
///
/// 最后更新时间
/// 默认值: (getdate())
///
[SugarColumn(ColumnName = "lastupdate_date")]
public DateTime? LastupdateDate { get; set; }
///
/// 单据类型ID
///
[SugarColumn(ColumnName = "bill_type_id")]
public int? BillTypeId { get; set; }
///
/// 事务类型
///
[SugarColumn(ColumnName = "transaction_no")]
public int? TransactionNo { get; set; }
///
/// 备注信息
///
[SugarColumn(ColumnName = "remark")]
public string? Remark { get; set; }
///
/// 出库原因
///
[SugarColumn(ColumnName = "reason")]
public string? Reason { get; set; }
///
/// 生产线编码
///
[SugarColumn(ColumnName = "produce_line_no")]
public string? ProduceLineNo { get; set; }
///
/// 审核人
///
[SugarColumn(ColumnName = "check_user")]
public string? CheckUser { get; set; }
///
/// 审核日期
///
[SugarColumn(ColumnName = "check_date")]
public DateTime? CheckDate { get; set; }
///
/// 领料日期
///
[SugarColumn(ColumnName = "out_date")]
public DateTime? OutDate { get; set; }
///
/// 领料工段
///
[SugarColumn(ColumnName = "mmlist")]
public string? Mmlist { get; set; }
///
/// 子库CODE
///
[SugarColumn(ColumnName = "depot_code")]
public string? DepotCode { get; set; }
///
/// SAP返回单据
///
[SugarColumn(ColumnName = "sapno")]
public string? Sapno { get; set; }
///
/// 是否已回写SAP
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "sapstatus")]
public bool? Sapstatus { get; set; }
///
/// SAP返回年份
///
[SugarColumn(ColumnName = "sapyear")]
public int? Sapyear { get; set; }
///
/// SAP返回信息
///
[SugarColumn(ColumnName = "saptext")]
public string? Saptext { get; set; }
///
/// 工序线体
///
[SugarColumn(ColumnName = "proc_line_no")]
public string? ProcLineNo { get; set; }
///
/// 领料部门
///
[SugarColumn(ColumnName = "out_part")]
public string? OutPart { get; set; }
///
/// 0 生产,1 委外
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "f_type")]
public int? FType { get; set; }
///
/// 录入提交
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "out_status")]
public bool? OutStatus { get; set; }
///
/// 是否可见
/// 默认值: ((1))
///
[SugarColumn(ColumnName = "is_visual")]
public bool? IsVisual { get; set; }
///
/// 接收人
///
[SugarColumn(ColumnName = "receiver")]
public string? Receiver { get; set; }
///
/// 工厂编号
///
[SugarColumn(ColumnName = "factory")]
public string? Factory { get; set; }
///
/// 公司编号
///
[SugarColumn(ColumnName = "company")]
public string? Company { get; set; }
///
/// 冲销事务类型编码
///
[SugarColumn(ColumnName = "mtransction_no")]
public int? MtransctionNo { get; set; }
///
/// 任务单号
///
[SugarColumn(ColumnName = "work_no")]
public string? WorkNo { get; set; }
///
/// 任务单号行号
///
[SugarColumn(ColumnName = "work_line")]
public int? WorkLine { get; set; }
///
/// 供应商编号
///
[SugarColumn(ColumnName = "supp_no")]
public string? SuppNo { get; set; }
///
/// 订单号
///
[SugarColumn(ColumnName = "cmpocode")]
public string? Cmpocode { get; set; }
///
/// 原物料出货标识
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "item_flag")]
public bool? ItemFlag { get; set; }
///
/// 1=半成品出货
/// 默认值: ((0))
///
[SugarColumn(ColumnName = "board_flag")]
public bool? BoardFlag { get; set; }
///
/// 出库类别
///
[SugarColumn(ColumnName = "out_type")]
public string? OutType { get; set; }
///
/// 业务类型
///
[SugarColumn(ColumnName = "business_type")]
public string? BusinessType { get; set; }
///
/// 产品编号
///
[SugarColumn(ColumnName = "board_item")]
public string? BoardItem { get; set; }
///
/// 产量
///
[SugarColumn(ColumnName = "plan_qty")]
public int? PlanQty { get; set; }
///
/// 领料编号/委外订单/其他出库单号
///
[SugarColumn(ColumnName = "pbill_no")]
public string? PbillNo { get; set; }
///
/// 标识 /1已推送
///
[SugarColumn(ColumnName = "nflag")]
public int? Nflag { get; set; }
///
/// 退料方式
///
[SugarColumn(ColumnName = "fmrmode")]
public string? Fmrmode { get; set; }
///
/// erp返回信息
///
[SugarColumn(ColumnName = "msg")]
public string? Msg { get; set; }
///
/// 状态
///
[SugarColumn(ColumnName = "states")]
public string? States { get; set; }
///
///
[SugarColumn(ColumnName = "supp_id")]
public int? SuppId { get; set; }
///
///
[SugarColumn(ColumnName = "depot_id")]
public int? DepotId { get; set; }
///
///
[SugarColumn(ColumnName = "TH_ORG_ID")]
public string? THORGID { get; set; }
[SugarColumn(IsIgnore = true)] public string? DepotName { get; set; }
[SugarColumn(IsIgnore = true)] public string? SuppName { get; set; }
[SugarColumn(IsIgnore = true)] public string? CreateByFname { get; set; }
[SugarColumn(IsIgnore = true)] public string? CheckUserFname { get; set; }
}