xwt
2025-09-30 b5636d685f902bacfba65827d78bf59978c111e8
StandardInterface/MES.Service/Modes/Zzcxa.cs
@@ -1,19 +1,38 @@
using System;
// 文件: MES.Service.Modes/ZZCXA.cs
using SqlSugar;
using System.Collections.Generic;
namespace MES.Service.Modes
{
    /// <summary>
    /// ZZCXA 主表
    /// ZZCXA - 组装拆卸 子表
    /// </summary>
    [SugarTable("ZZCXA")]
    public class Zzcxa
    public class ZZCXA
    {
        /// <summary>
        /// 主键ID
        /// 主键 ID(Oracle 序列)
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, OracleSequenceName = "SEQ_ZZCXA")]
        public decimal? Id { get; set; }
        /// <summary>
        /// 父表 ID (对应 ZZCX.ID)
        /// </summary>
        [SugarColumn(ColumnName = "PID")]
        public decimal? Pid { get; set; }
        /// <summary>
        /// YD_ID:写入主表的 ERPID
        /// </summary>
        [SugarColumn(ColumnName = "YD_ID")]
        public decimal? YdId { get; set; }
        /// <summary>
        /// ERP 子表 ID
        /// </summary>
        [SugarColumn(ColumnName = "ERPID")]
        public decimal? Erpid { get; set; }
        /// <summary>
        /// 单据编码
@@ -22,85 +41,7 @@
        public string BillNo { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        [SugarColumn(ColumnName = "DJ_LX")]
        public string DjLx { get; set; }
        /// <summary>
        /// 库存组织
        /// </summary>
        [SugarColumn(ColumnName = "KC_ZZ")]
        public string KcZz { get; set; }
        /// <summary>
        /// 事务类型
        /// </summary>
        [SugarColumn(ColumnName = "SW_LX")]
        public string SwLx { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        [SugarColumn(ColumnName = "TIME")]
        public string Time { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnName = "BM")]
        public string Bm { get; set; }
        /// <summary>
        /// 仓管员
        /// </summary>
        [SugarColumn(ColumnName = "CGY")]
        public string Cgy { get; set; }
        /// <summary>
        /// 库存组
        /// </summary>
        [SugarColumn(ColumnName = "KCZ")]
        public string Kcz { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        [SugarColumn(ColumnName = "DJ_ZT")]
        public string DjZt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "MEMO")]
        public string Memo { get; set; }
        /// <summary>
        /// 成品货主类型
        /// </summary>
        [SugarColumn(ColumnName = "CPHZLX")]
        public string Cphzlx { get; set; }
        /// <summary>
        /// 成品货主
        /// </summary>
        [SugarColumn(ColumnName = "CPHZ")]
        public string Cphz { get; set; }
        /// <summary>
        /// 子件货主类型
        /// </summary>
        [SugarColumn(ColumnName = "ZJHZLX")]
        public string Zjhzlx { get; set; }
        /// <summary>
        /// 子件货主
        /// </summary>
        [SugarColumn(ColumnName = "ZJHZ")]
        public string Zjhz { get; set; }
        /// <summary>
        /// 物料编码id
        /// 物料编码 ID
        /// </summary>
        [SugarColumn(ColumnName = "ITEM_ID")]
        public decimal? ItemId { get; set; }
@@ -118,15 +59,17 @@
        public string Unit { get; set; }
        /// <summary>
        /// 仓库
        /// 仓库 ID
        /// </summary>
        [SugarColumn(ColumnName = "DEPOT_ID")]
        public string DepotId { get; set; }
        public decimal? DepotId { get; set; }
        /// <summary>
        /// ERP 主表id
        /// 孙表集合
        /// </summary>
        [SugarColumn(ColumnName = "ERPID")]
        public string Erpid { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<ZZCXB> SubItems { get; set; } = new List<ZZCXB>();
    }
}