功能: - 后端新增 KtpbCtgs / KtpbDcgs / KtpbZbzs 三张表、KtpbService 与 api/prod/ktpb 接口 (车头工、挡车工、值班长分页查询与维护,挡车工按车间+班次+机组整组替换保存) - 挡车数按 F9 口径自动重算:接壤车台各计 0.5,保存时服务端重新计算并校验车台范围 - 前端新增 /prod/qianxian/ktpb 看台排班页(三页签 + 车间/班次/机组过滤 + 批量编辑弹窗) - 新增通用职工选择弹窗 EmployeeSelect(单选/多选,按部门过滤) - 生产-前缫菜单下新增「看台排班」,权限 prod:ktpb:list 数据导入: - 重新生成 biz_prod_qs_jzct.json,新增 ktpb_ctg / ktpb_dcg / ktpb_zbz 三个内嵌资源 - F9 部门 Id 经 DeptData 映射到本系统部门;职工按原始雪花 Id 关联 - 剔除软删除/脏数据:机组车台 24 条、车头工 33 条、挡车工 202 条(34 组)、值班长 7 条 - 导入幂等:机组车台按车间+机组 upsert,排班按业务唯一键去重,已维护的组不覆盖 其他:同步工作进度-12 文档与开发数据库快照
71 lines
2.3 KiB
C#
71 lines
2.3 KiB
C#
using F9WebAiTest.Domain.Enums.SYS.Employees;
|
|
|
|
namespace F9WebAiTest.Application.Dtos.Prod;
|
|
|
|
// ==================== 车头工看台排班 ====================
|
|
|
|
/// <summary>车头工看台排班(列表/编辑)</summary>
|
|
public class KtpbctgReadDto_View
|
|
{
|
|
public long Id { get; set; }
|
|
public long DepId { get; set; }
|
|
public string DeptName { get; set; } = "";
|
|
public Prod_Banci_Enum Banci { get; set; }
|
|
public string BanciName { get; set; } = "";
|
|
public int Jizu { get; set; }
|
|
public long Ygid1 { get; set; }
|
|
public string Ygid1Name { get; set; } = "";
|
|
public long Ygid2 { get; set; }
|
|
public string Ygid2Name { get; set; } = "";
|
|
}
|
|
|
|
// ==================== 挡车工看台排班 ====================
|
|
|
|
/// <summary>挡车工看台排班(列表/编辑)</summary>
|
|
public class KtpbdcgReadDto_View
|
|
{
|
|
public long Id { get; set; }
|
|
public long DepId { get; set; }
|
|
public string DeptName { get; set; } = "";
|
|
public Prod_Banci_Enum Banci { get; set; }
|
|
public string BanciName { get; set; } = "";
|
|
public int Jizu { get; set; }
|
|
public int ChetaiStart { get; set; }
|
|
public int ChetaiEnd { get; set; }
|
|
public long YgId { get; set; }
|
|
public string YgName { get; set; } = "";
|
|
public double Dangcheshu { get; set; }
|
|
}
|
|
|
|
/// <summary>挡车工批量编辑:一个「车间 + 班次 + 机组」下的整组排班替换</summary>
|
|
public class KtpbdcgBatchDto
|
|
{
|
|
public long DepId { get; set; }
|
|
public Prod_Banci_Enum Banci { get; set; }
|
|
public int Jizu { get; set; }
|
|
/// <summary>该组下的全部挡车工排班(为空表示清空该组)</summary>
|
|
public List<KtpbdcgReadDto_View> Items { get; set; } = new();
|
|
}
|
|
|
|
// ==================== 值班长排班 ====================
|
|
|
|
/// <summary>值班长排班(列表/编辑)</summary>
|
|
public class KtpbzbzReadDto_View
|
|
{
|
|
public long Id { get; set; }
|
|
public long DepId { get; set; }
|
|
public string DeptName { get; set; } = "";
|
|
public Prod_Banci_Enum Banci { get; set; }
|
|
public string BanciName { get; set; } = "";
|
|
public long YgId { get; set; }
|
|
public string YgName { get; set; } = "";
|
|
}
|
|
|
|
/// <summary>机组下拉项(来源于机组车台)</summary>
|
|
public class KtpbJizuOptionDto
|
|
{
|
|
public int Jizu { get; set; }
|
|
public int ChetaiStart { get; set; }
|
|
public int ChetaiEnd { get; set; }
|
|
}
|