Files
f9-web-ai-test/backend/F9WebAiTest.Application/Dtos/Base/BusinessDtos.cs
T
yanpeng200212 8c4c464362 完善机组车台功能,并导入机组车台 / 车间班次数据
一、机组车台功能完善
- 车间下拉改为只取「前缫」职责类型的部门(新增接口 /api/jizuchetai/qianxian-deps)
- 补齐校验:车间、机组号、开始车台号必填;结束车台号不得小于开始车台号;同车间同机组不可重复
- 前端页面同步调整:车间改为下拉选择、增加必填提示、表格加 row-key

二、数据导入(新增 ProdSeedData,幂等导入器)
- biz_prod_qs_jzct:机组车台 35 条(其中 11 条已删除)→ 有效 24 条
- biz_prod_qs_cjbc:车间班次 7 条(其中 1 条已删除)→ 有效 6 条
- F9 的部门 Id 通过部门名称映射到本系统部门;已删除的数据不导入;
  已存在且一致的数据不重复写入,缺失的自动补回
2026-10-14 09:42:06 +08:00

94 lines
3.1 KiB
C#

namespace F9WebAiTest.Application.Dtos.Base;
// ---- 工艺庄口 ----
public class CraftZhuangKouDto
{
public long Id { get; set; }
public int BelongingYear { get; set; }
public int BendiWaidi { get; set; }
public string BendiWaidiName { get; set; }
public string JidiWaigou { get; set; }
public string ZhuangKouCode { get; set; }
public string ZhuangKouName { get; set; }
public string ProductionDisplayName { get; set; }
public string Chandi { get; set; }
public int Sort { get; set; }
public string Memo { get; set; }
public string IsJiezhuang { get; set; }
}
public class CraftZhuangKouCreateDto
{
public int BelongingYear { get; set; }
public int BendiWaidi { get; set; }
public string JidiWaigou { get; set; } = "";
public string ZhuangKouCode { get; set; } = "";
public string ZhuangKouName { get; set; } = "";
public string ProductionDisplayName { get; set; } = "";
public string Chandi { get; set; } = "";
public int Sort { get; set; }
public string Memo { get; set; } = "";
public string IsJiezhuang { get; set; } = "0";
}
// ---- 生丝规格 ----
public class ShengsiGuigeDto
{
public long Id { get; set; }
public string Guige { get; set; }
public double CenterrangeLolimit { get; set; }
public double CenterrangeUplimit { get; set; }
public double CenterXiandu { get; set; }
public double ValidLolimit { get; set; }
public double ValidUplimit { get; set; }
public double XiaoyeLolimit { get; set; }
public double XiaoyeUplimit { get; set; }
public double DayeLolimit { get; set; }
public double DayeUplimit { get; set; }
public double TeyeLolimit { get; set; }
public double TeyeUplimit { get; set; }
public double YexianNkLolimitLeft { get; set; }
public double YexianNkLolimitRight { get; set; }
public double YexianNkUplimitLeft { get; set; }
public double YexianNkUplimitRight { get; set; }
public double LaodongJingsaiYexianLolimit { get; set; }
public double LaodongJingsaiYexianUplimit { get; set; }
public int Sort { get; set; }
public string Memo { get; set; }
}
// ---- 生丝定级指标 ----
public class ShengsiDingjizhibiaoDto
{
public long Id { get; set; }
public int Standard { get; set; }
public string StandardName { get; set; }
public string Guige { get; set; }
public string Grade { get; set; }
public double GradeScore { get; set; }
public double Piancha { get; set; }
public double Dacha { get; set; }
public double Erdu { get; set; }
public double Sandu { get; set; }
public double Qingjie { get; set; }
public double Jiejing { get; set; }
}
// ---- 机组车台 ----
public class JizuChetaiDto
{
public long Id { get; set; }
public long DepartmentId { get; set; }
public string DepartmentName { get; set; }
public int Jizu { get; set; }
public int ChetaiStart { get; set; }
public int ChetaiEnd { get; set; }
}
// ---- 部门下拉项(机组车台等模块选用车间)----
public class DeptOptionDto
{
public long Id { get; set; }
public string Name { get; set; } = "";
}