namespace F9WebAiTest.Application.Dtos.Prod; // ==================== 丝片检查 ==================== /// 丝片检查列表行 public class SpjcListItemDto { public long Id { get; set; } public DateTime Date { get; set; } public long DeptId { get; set; } public string DeptName { get; set; } = ""; public long GyzkId { get; set; } public string GyzkName { get; set; } = ""; public string Guige { get; set; } = ""; public int Pianshu { get; set; } public int PianshuXuegong { get; set; } public int QsJiahua { get; set; } public int QsYouwu { get; set; } public int QsHeidian { get; set; } public int QsShangsi { get; set; } public int QsYetiao { get; set; } public int QsXiaosipian { get; set; } public int QsQita { get; set; } public int QsHeji { get; set; } public int HsYouwu { get; set; } public int HsShangsi { get; set; } public int HsShuangsi { get; set; } public int HsZhisi { get; set; } public int HsZhantiao { get; set; } public int HsYingjiao { get; set; } public int HsGuojiao { get; set; } public int HsShouchu { get; set; } public int HsWuran { get; set; } public int HsLiansi { get; set; } public int HsWdmt { get; set; } public int HsMaoluan { get; set; } public int HsQita { get; set; } public int HsHeji { get; set; } public string Memo { get; set; } = ""; } /// 丝片检查新增/修改:所有数量前端录入,合计由服务端重算 public class SpjcSaveDto { public long Id { get; set; } public DateTime Date { get; set; } public long DeptId { get; set; } public string DeptName { get; set; } = ""; // 仅用于编辑回填显示 public long GyzkId { get; set; } public string GyzkName { get; set; } = ""; // 仅用于编辑回填显示 public string Guige { get; set; } = ""; public int Pianshu { get; set; } public int PianshuXuegong { get; set; } public int QsJiahua { get; set; } public int QsYouwu { get; set; } public int QsHeidian { get; set; } public int QsShangsi { get; set; } public int QsYetiao { get; set; } public int QsXiaosipian { get; set; } public int QsQita { get; set; } public int HsYouwu { get; set; } public int HsShangsi { get; set; } public int HsShuangsi { get; set; } public int HsZhisi { get; set; } public int HsZhantiao { get; set; } public int HsYingjiao { get; set; } public int HsGuojiao { get; set; } public int HsShouchu { get; set; } public int HsWuran { get; set; } public int HsLiansi { get; set; } public int HsWdmt { get; set; } public int HsMaoluan { get; set; } public int HsQita { get; set; } public string Memo { get; set; } = ""; } // ==================== 丝片台帐 ==================== /// 丝片台帐列表行 public class SptzListItemDto { public long Id { get; set; } public DateTime Date { get; set; } public DateTime DateLast { get; set; } public int JsShangcun { get; set; } public int JsXiasi { get; set; } public int JsJinsi { get; set; } public int JsSrylJrxz { get; set; } public int JsJincun { get; set; } public int FsFsps { get; set; } public int BsBsps { get; set; } public int ZlZhengpin { get; set; } public int ZlTichu { get; set; } public string Memo { get; set; } = ""; } /// 丝片台帐新增默认值:上一日本台账 + 按当日「丝片检查」汇总出的整理片数 public class SptzDefaultsDto { public DateTime Date { get; set; } public DateTime? DateLast { get; set; } // 上一本台账日期(无则为 null) public int JsShangcun { get; set; } // 上存 = 上一日今存 public DateTime? LatestDate { get; set; } // 当前最新台账日期(用于「无法新增该日期台账」校验) public int ZlTichu { get; set; } // 剔除片数 = Σ丝片检查前缫合计 public int ZlZhengpin { get; set; } // 正品片数 = Σ(总片数 + 学工片数) − 剔除 public bool HasSpjc { get; set; } // 当日是否存在丝片检查数据 } /// 丝片台帐保存请求 public class SptzSaveDto { public long Id { get; set; } public DateTime Date { get; set; } public DateTime DateLast { get; set; } public int JsShangcun { get; set; } public int JsXiasi { get; set; } public int JsJinsi { get; set; } public int FsFsps { get; set; } public int BsBsps { get; set; } public int ZlZhengpin { get; set; } public int ZlTichu { get; set; } public string Memo { get; set; } = ""; }