| | |
| | | using System; |
| | | // 文件: MES.Service.Modes/ZZCXA.cs |
| | | using System; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.Modes |
| | | { |
| | | /// <summary> |
| | | /// ZZCXA 主表 |
| | | /// ZZCXA - 组装拆卸 子表(之前的 ZZCXA 字段集合),新增 YD_ID 字段来记录主表 ERPID |
| | | /// </summary> |
| | | [SugarTable("ZZCXA")] |
| | | public class Zzcxa |
| | | public class ZZCXA |
| | | { |
| | | /// <summary> |
| | | /// 主键ID |
| | | /// 主键 ID |
| | | /// </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(你要求:子表的 yd_id 存主表的 erpid) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "YD_ID")] |
| | | public string YdId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ERP 子表/行 id(erpid/eid 等 ERP 行标识) |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ERPID")] |
| | | public string Erpid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 单据编码 |
| | |
| | | public string Zjhz { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 物料编码id |
| | | /// 物料编码 id |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ITEM_ID")] |
| | | public decimal? ItemId { get; set; } |
| | | public string ItemId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 数量 |
| | |
| | | [SugarColumn(ColumnName = "DEPOT_ID")] |
| | | public string 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>(); |
| | | |
| | | |
| | | } |
| | | } |