using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
namespace wms.sqlsugar.model.cp
{
[Tenant("cp")]
[SugarTable("bill_inv_flow", "流水表")]
public class cpBillInvFlow : BaseModel
{
///
/// 容器id
///
[SugarColumn(ColumnName = "stock_id")]
public long ContGrpId { get; set; }
///
/// 容器条码(盘条码,合金:RFID,分拣:托盘号)
///
[SugarColumn(ColumnName = "cont_grp_barcode", ColumnDataType = "nvarchar", Length = 100)]
public string ContGrpBarCode { get; set; }
///
/// 成品箱条码
///
[SugarColumn(ColumnName = "box_barcode", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string BoxBarCode { get; set; }
///
/// 操作状态
///
[SugarColumn(ColumnName = "exec_state", ColumnDataType = "nvarchar", Length = 50)]
public string ExecState { get; set; }
///
/// 垛型ID
///
[SugarColumn(ColumnName = "stack_id")]
public long StackId { get; set; }
///
// Bom工单号
///
[SugarColumn(ColumnName = "bom_docs_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string BomDocsNo { get; set; }
///
// 执行单据号
///
[SugarColumn(ColumnName = "exec_docs_no", ColumnDataType = "nvarchar", Length = 100)]
public string ExecDocsNo { get; set; }
///
// 执行单据行号
///
[SugarColumn(ColumnName = "exec_docs_row_no", ColumnDataType = "nvarchar", Length = 100)]
public string ExecDocsRowNo { get; set; }
///
// 执行单据类型代码
///
[SugarColumn(ColumnName = "exec_docs_type_code", ColumnDataType = "nvarchar", Length = 100)]
public string ExecDocsTypeCode { get; set; }
///
// 操作时间
///
[SugarColumn(ColumnName = "exec_time")]
public DateTime ExecTime { get; set; } = DateTime.Now;
///
// 操作用户
///
[SugarColumn(ColumnName = "exec_who", ColumnDataType = "nvarchar", Length = 100)]
public string ExecWho { get; set; } = "";
///
/// 客戶编码
///
[SugarColumn(ColumnName = "cust_code", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string CustCode { get; set; }
///
/// 客戶名称
///
[SugarColumn(ColumnName = "cust_name", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string CustName { get; set; }
///
/// 摆放行
///
[SugarColumn(ColumnName = "put_row")]
public int PutRow { get; set; }
///
/// 摆放列
///
[SugarColumn(ColumnName = "put_col")]
public int PutCol { get; set; }
///
/// 摆放层
///
[SugarColumn(ColumnName = "put_layer")]
public int PutLayer { get; set; }
///
/// 摆放位置编号
///
[SugarColumn(ColumnName = "put_loc_no", ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string PutLocNo { get; set; }
///
/// 材料号,空容器为容器号
///
[SugarColumn(ColumnName = "inv_barcode", ColumnDataType = "nvarchar", Length = 100)]
public string InvBarCode { get; set; }
///
/// 库存状态(正常/锁定:Normal/Lock)
///
[SugarColumn(ColumnName = "inv_state", ColumnDataType = "nvarchar", Length = 100)]
public string InvState { get; set; }
///
/// 入库单据号
///
[SugarColumn(ColumnName = "in_docs_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string InDocsNo { get; set; }
///
/// 入库单据行号
///
[SugarColumn(ColumnName = "in_docs_row_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string InDocsRowNo { get; set; }
///
/// 供应商编码
///
[SugarColumn(ColumnName = "supp_code", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string SuppCode { get; set; }
///
/// 供应商名称
///
[SugarColumn(ColumnName = "supp_name", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string SuppName { get; set; }
///
/// 物料编码
///
[SugarColumn(ColumnName = "mat_code", ColumnDataType = "nvarchar", Length = 50)]
public string MatCode { get; set; }
///
/// 物料id
///
[SugarColumn(ColumnName = "mat_id")]
public long MatId { get; set; }
///
/// 仓库编码
///
[SugarColumn(ColumnName = "warehouse_code", ColumnDataType = "nvarchar", Length = 50)]
public string WarehouseCode { get; set; }
///
/// 仓库id
///
[SugarColumn(ColumnName = "warehouse_id")]
public long WarehouseId { get; set; }
///
/// 总重量
///
[SugarColumn(ColumnName = "total_wt_qty", Length = 18, DecimalDigits = 6)]
public decimal TotalWtQty { get; set; }
///
/// 净重(重量,盘条:包重,其他:钢丝净重)
///
[SugarColumn(ColumnName = "net_wt_qty", Length = 18, DecimalDigits = 6)]
public decimal NetWQty { get; set; }
///
/// 皮重(空工字轮重量)
///
[SugarColumn(ColumnName = "tare_wt_qty", Length = 18, DecimalDigits = 6)]
public decimal TareWQty { get; set; }
///
/// 长度
///
[SugarColumn(ColumnName = "length_qty", Length = 18, DecimalDigits = 6)]
public decimal LengthQty { get; set; }
///
/// 生产批号
///
[SugarColumn(ColumnName = "batch", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Batch { get; set; }
///
/// 生产时间('20230214;默认值19000101)
///
[SugarColumn(ColumnName = "product_time")]
public DateTime ProductTime { get; set; }
///
/// 第一次入库时间('20230214;默认值19000101)
///
[SugarColumn(ColumnName = "one_in_time")]
public DateTime OneInTime { get; set; }
///
/// 碳当量
///
[SugarColumn(ColumnName = "ca_qty", Length = 18, DecimalDigits = 6)]
public decimal CaQty { get; set; }
///
/// 盘条条码
///
[SugarColumn(ColumnName = "rod_barcode", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string RodBarCode { get; set; }
///
/// 工字轮条码
///
[SugarColumn(ColumnName = "hw_barcode", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string HWBarCode { get; set; }
///
/// RFID条码
///
[SugarColumn(ColumnName = "rfid_barcode", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string RFIDBarCode { get; set; }
///
/// 工字轮规格(WS09,WS18,等, 500,800)
///
[SugarColumn(ColumnName = "hw_spec", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string HWSpec { get; set; }
///
/// 炉号
///
[SugarColumn(ColumnName = "boiler_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string BoilerNo { get; set; }
///
/// 包号
///
[SugarColumn(ColumnName = "pack_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string PackNo { get; set; }
///
/// 牌号
///
[SugarColumn(ColumnName = "brand_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string BrandNo { get; set; }
///
/// 执行标准
///
[SugarColumn(ColumnName = "exec_sd", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string ExecStd { get; set; }
///
/// 许可证号
///
[SugarColumn(ColumnName = "licence_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string LicenceNo { get; set; }
///
/// 改手盘标记
///
[SugarColumn(ColumnName = "is_surplus", IsNullable = true)]
public bool IsSurplus { get; set; }
///
/// 返工标记
///
[SugarColumn(ColumnName = "is_rework", IsNullable = true)]
public bool IsRework { get; set; }
///
/// 单/双丝
///
[SugarColumn(ColumnName = "silk_type", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string SilkType { get; set; }
///
/// 是否黑盘
///
[SugarColumn(ColumnName = "is_black")]
public bool IsBlack { get; set; }
///
/// 是否芯股
///
[SugarColumn(ColumnName = "is_core")]
public bool IsCore { get; set; }
///
/// 快投标记
///
[SugarColumn(ColumnName = "is_fast", IsNullable = true)]
public bool IsFast { get; set; }
///
/// 是否异常
///
[SugarColumn(ColumnName = "is_fail", IsNullable = true)]
public bool IsFail { get; set; }
///
/// 异常原因
///
[SugarColumn(ColumnName = "fail_reason", ColumnDataType = "nvarchar", Length = 200, IsNullable = true)]
public string FailReason { get; set; }
///
/// 焊点数量
///
[SugarColumn(ColumnName = "solder_qty")]
public int SolderQty { get; set; }
///
/// 等级
///
[SugarColumn(ColumnName = "grade", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Grade { get; set; }
///
/// 退料原因
///
[SugarColumn(ColumnName = "reason", ColumnDataType = "nvarchar", Length = 500, IsNullable = true)]
public string Reason { get; set; }
///
/// 是否退料
///
[SugarColumn(ColumnName = "is_back")]
public bool IsBack { get; set; }
///
/// 是否 扭转检测
///
[SugarColumn(ColumnName = "is_tors_chk")]
public bool IsTorsChk { get; set; }
///
/// 扭转次数
///
[SugarColumn(ColumnName = "tors_chk_qty")]
public int TorsChkQty { get; set; }
///
/// 扭转检测时间
///
[SugarColumn(ColumnName = "tors_chk_time")]
public DateTime TorsChkTime { get; set; }
///
/// 扭转检测结果值
///
[SugarColumn(ColumnName = "tors_chk_value", Length = 18, DecimalDigits = 6)]
public decimal TorsChkValue { get; set; }
///
/// 扭转检测设备号
///
[SugarColumn(ColumnName = "tors_chk_no", ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string TorsChkMacNo { get; set; }
///
/// 工序订单号
///
[SugarColumn(ColumnName = "process_docs_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string ProcessDocsNo { get; set; }
///
/// 生产机台号
///
[SugarColumn(ColumnName = "product_wb_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string ProductWbNo { get; set; }
///
/// 生产产线号
///
[SugarColumn(ColumnName = "product_line_no", ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string ProductLineNo { get; set; }
}
}