修改一版
parent
bfb905d130
commit
b937ddbe51
|
@ -26,9 +26,14 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public Guid? RelevanceId { get; set; }
|
public Guid? RelevanceId { get; set; }
|
||||||
public string RelevanceValue { get; set; }
|
public string RelevanceValue { get; set; }
|
||||||
public int ShowQuestion { get; set; }
|
public int ShowQuestion { get; set; }
|
||||||
public int MaxRowCount { get; set; }
|
public int? MaxRowCount { get; set; }
|
||||||
public string DataTableName { get; set; }
|
public string DataTableName { get; set; }
|
||||||
public string DataTableColumn { get; set; }
|
public string DataTableColumn { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格问题类型
|
||||||
|
/// </summary>
|
||||||
|
public TableQuestionType TableQuestionType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,6 +43,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public Guid ReadingQuestionId { get; set; }
|
public Guid ReadingQuestionId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格问题类型
|
||||||
|
/// </summary>
|
||||||
|
public TableQuestionType? TableQuestionType { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///<summary> ReadingTableQuestionSystemAddOrEdit 列表查询参数模型</summary>
|
///<summary> ReadingTableQuestionSystemAddOrEdit 列表查询参数模型</summary>
|
||||||
|
@ -59,9 +69,14 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public Guid? RelevanceId { get; set; }
|
public Guid? RelevanceId { get; set; }
|
||||||
public string RelevanceValue { get; set; }
|
public string RelevanceValue { get; set; }
|
||||||
public int ShowQuestion { get; set; }
|
public int ShowQuestion { get; set; }
|
||||||
public int MaxRowCount { get; set; }
|
public int? MaxRowCount { get; set; }
|
||||||
public string DataTableName { get; set; }
|
public string DataTableName { get; set; }
|
||||||
public string DataTableColumn { get; set; }
|
public string DataTableColumn { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格问题类型
|
||||||
|
/// </summary>
|
||||||
|
public TableQuestionType TableQuestionType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ReadingCriterionPageView
|
public class ReadingCriterionPageView
|
||||||
|
@ -377,7 +392,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; }
|
public int? MaxQuestionCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ReadingQuestionSystemView
|
public class ReadingQuestionSystemView
|
||||||
|
@ -476,7 +491,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; }
|
public int? MaxQuestionCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -753,7 +768,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; } = 0;
|
public int? MaxQuestionCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -862,7 +877,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; } = 0;
|
public int? MaxQuestionCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
|
|
||||||
var readingTableQuestionSystemQueryable = _readingTableQuestionSystemRepository
|
var readingTableQuestionSystemQueryable = _readingTableQuestionSystemRepository
|
||||||
|
.WhereIf(inDto.TableQuestionType!=null,x=>x.TableQuestionType ==inDto.TableQuestionType!)
|
||||||
.Where(x=>x.ReadingQuestionId==inDto.ReadingQuestionId).ProjectTo<ReadingTableQuestionSystemView>(_mapper.ConfigurationProvider);
|
.Where(x=>x.ReadingQuestionId==inDto.ReadingQuestionId).ProjectTo<ReadingTableQuestionSystemView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
var result=await readingTableQuestionSystemQueryable.ToListAsync();
|
var result=await readingTableQuestionSystemQueryable.ToListAsync();
|
||||||
|
|
|
@ -172,6 +172,19 @@ namespace IRaCIS.Core.Domain.Share
|
||||||
SubjectVisit = 1
|
SubjectVisit = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum TableQuestionType
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义
|
||||||
|
/// </summary>
|
||||||
|
Customize=0,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关联数据
|
||||||
|
/// </summary>
|
||||||
|
LinkedData=1,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public enum FormType
|
public enum FormType
|
||||||
{
|
{
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; }
|
public int? MaxQuestionCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
|
|
|
@ -140,7 +140,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxQuestionCount { get; set; }
|
public int? MaxQuestionCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分页标准
|
/// 分页标准
|
||||||
|
|
|
@ -94,7 +94,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最大问题数
|
/// 最大问题数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxRowCount { get; set; }
|
public int? MaxRowCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据表名称
|
/// 数据表名称
|
||||||
|
@ -106,6 +106,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string DataTableColumn { get; set; }
|
public string DataTableColumn { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格问题类型
|
||||||
|
/// </summary>
|
||||||
|
public TableQuestionType TableQuestionType { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue