Files
f9-web-ai-test/backend/F9WebAiTest.Application/Dtos/SYS/Reports/ReportScaffoldDtos.cs
T
yanpeng200212 a8890c81e9 新增质量模块(工艺执行书 / 样茧试缫)与报表中心
质量模块:
- 11 张工艺执行书表:封面、试产、选剥茧(含混茧明细)、试缫与大样、煮茧(含分车间配温、副煮车间)、自动缫(含大样)、后缫
- 10 张样茧试缫表:原料小样/综合样主表 + 选茧、解舒、茧幅、切剖、清洁洁净、茧丝百回纤度
- 服务与接口、主控指针回写(列表 √ 标记)、封面编号自增、报表数据包
- 前端 8 张报表打印版式、7 类工艺单据与 6 类调查录入弹窗、字段驱动表单/表格组件
- 菜单种子新增「质量」目录,样茧子表增加 YjssType 判别列,避免原料小样与综合样自增 Id 重号串数据

报表中心:
- 报表模板管理、锐浪 grhtml5 加载与预览、全屏设计面板、数据源 Provider(落丝记录、职工花名册)

其他:同步工作进度 1-11 文档、开发数据库快照、.gitignore 忽略运行日志目录
2026-10-22 10:30:37 +08:00

56 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace F9WebAiTest.Application.Dtos.SYS.Reports;
/// <summary>已注册的报表数据源(IReportDataProvider.ReportName)</summary>
public class ReportDataSourceInfoDto
{
public string DsName { get; set; } = "";
}
/// <summary>明细字段(.grf 模板 DetailGrid.Recordset.Field 的映射来源),全部由查询结果推断</summary>
public class ReportFieldDefDto
{
public string Name { get; set; } = "";
public string Label { get; set; } = "";
public string DataType { get; set; } = "String";
}
/// <summary>探测请求:按 DsName(或 DataSql)执行一次查询,识别返回的列</summary>
public class ReportProbeRequestDto
{
/// <summary>数据源名称(IReportDataProvider.ReportName),优先于 DataSql</summary>
public string? DsName { get; set; }
/// <summary>数据 SQL(无 DsName 时用于探测列)</summary>
public string? DataSql { get; set; }
/// <summary>执行探测时传入的参数值(键 = 参数名;报表上已配置的参数由前端带入)</summary>
public Dictionary<string, object?> Params { get; set; } = new();
}
/// <summary>
/// 报表参数(后端 DataSource.Parameter_Data 的键值)。
/// 注意:这是「报表参数」——由查询执行后返回、供模板头展示的统计口径;
/// 与 Config.Parms 里的「查询条件」(q_*,用于查询面板传参)不是一回事。
/// </summary>
public class ReportParamValueDto
{
public string Name { get; set; } = "";
public string Value { get; set; } = "";
}
/// <summary>探测结果:查询返回的明细字段 + 报表参数 + 少量样本行</summary>
public class ReportProbeResultDto
{
public string DsName { get; set; } = "";
public List<ReportFieldDefDto> Fields { get; set; } = new();
/// <summary>报表参数(Parameter_Data 的键值),模板头/合计区直接引用</summary>
public List<ReportParamValueDto> Parameters { get; set; } = new();
public List<Dictionary<string, object?>> Rows { get; set; } = new();
public int Total { get; set; }
/// <summary>探测失败原因</summary>
public string? Error { get; set; }
}