质量模块: - 11 张工艺执行书表:封面、试产、选剥茧(含混茧明细)、试缫与大样、煮茧(含分车间配温、副煮车间)、自动缫(含大样)、后缫 - 10 张样茧试缫表:原料小样/综合样主表 + 选茧、解舒、茧幅、切剖、清洁洁净、茧丝百回纤度 - 服务与接口、主控指针回写(列表 √ 标记)、封面编号自增、报表数据包 - 前端 8 张报表打印版式、7 类工艺单据与 6 类调查录入弹窗、字段驱动表单/表格组件 - 菜单种子新增「质量」目录,样茧子表增加 YjssType 判别列,避免原料小样与综合样自增 Id 重号串数据 报表中心: - 报表模板管理、锐浪 grhtml5 加载与预览、全屏设计面板、数据源 Provider(落丝记录、职工花名册) 其他:同步工作进度 1-11 文档、开发数据库快照、.gitignore 忽略运行日志目录
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using FreeSql.DataAnnotations;
|
|
|
|
namespace F9WebAiTest.Domain.Entities.SYS.Reports;
|
|
|
|
/// <summary>
|
|
/// 报表模板文件(对齐 BBIT.F9.Domain.Entities.SYS.Reports.ReportFile)。
|
|
/// 报表模板作为独立实体与报表定义(Report)分离存储,Report 通过 ReportFileId 关联其模板实例。
|
|
/// .grf 本质是 UTF-8 JSON 文本,故以文本(DesignContent)保存。
|
|
/// </summary>
|
|
[Table(Name = "sys_report_files")]
|
|
public class ReportFile : BusinessEntity
|
|
{
|
|
[Column(Name = "report_id")]
|
|
public long ReportId { get; private set; }
|
|
|
|
/// <summary>模板设计内容(.grf 的 JSON 文本)</summary>
|
|
[Column(Name = "design_content", StringLength = -2)]
|
|
public string DesignContent { get; private set; } = "";
|
|
|
|
public ReportFile() { }
|
|
|
|
public ReportFile(long id, long reportId, string designContent)
|
|
{
|
|
Id = id;
|
|
ReportId = reportId;
|
|
DesignContent = designContent ?? "";
|
|
CreatedAt = DateTime.Now;
|
|
}
|
|
|
|
public void UpdateContent(string designContent)
|
|
{
|
|
DesignContent = designContent ?? "";
|
|
UpdatedAt = DateTime.Now;
|
|
}
|
|
}
|