- 新增 PayRoll(工资)、Wms(仓储)、Prod(车速/缫丝/考勤/丝片检测/丝片台账/纤检日报/质量日报) 模块 - 新增对应 Domain 实体、Application DTO/Service、Api Controller 与前端页面 - 移除旧 Attendance 考勤模块(Controller/Service/Entity/DTO 及 5 个前端页面),由 Prod/Kaoqin 取代 - 调整路由、仪表盘、Lsjl 流丝记录实体与服务 - 更新业务种子数据与 DbSeeder - 补充工作进度文档 14-27
130 lines
4.6 KiB
C#
130 lines
4.6 KiB
C#
namespace F9WebAiTest.Application.Dtos.Prod;
|
|
|
|
// ==================== 丝片检查 ====================
|
|
|
|
/// <summary>丝片检查列表行</summary>
|
|
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; } = "";
|
|
}
|
|
|
|
/// <summary>丝片检查新增/修改:所有数量前端录入,合计由服务端重算</summary>
|
|
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; } = "";
|
|
}
|
|
|
|
// ==================== 丝片台帐 ====================
|
|
|
|
/// <summary>丝片台帐列表行</summary>
|
|
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; } = "";
|
|
}
|
|
|
|
/// <summary>丝片台帐新增默认值:上一日本台账 + 按当日「丝片检查」汇总出的整理片数</summary>
|
|
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; } // 当日是否存在丝片检查数据
|
|
}
|
|
|
|
/// <summary>丝片台帐保存请求</summary>
|
|
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; } = "";
|
|
}
|