using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Service.Reading.Dto
{
public class AddOrUpdateReadingQuestionCriterionTrialInDto
{
public Guid? Id { get; set; }
[NotDefault]
public Guid TrialId { get; set; }
///
/// 排序
///
public int ShowOrder { get; set; }
///
/// 标准
///
public string CriterionName { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
}
public class AddOrUpdateReadingQuestionCriterionSystemInDto
{
public Guid? Id { get; set; }
///
/// 标准ID
///
public Guid CriterionId { get; set; }
///
/// 标准
///
public string CriterionName { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
}
///
///
///
public class ReadingQuestionCriterionSystemViewInDto:PageInput
{
public string CriterionName { get; set; }=String.Empty;
}
public class CriterionList
{
public Guid Id { get; set; }
public string Value { get; set; }
///
/// 排序
///
public int ShowOrder { get; set; }
}
public class SetSystemReadingQuestionCriterionIsIsEnable
{
[NotDefault]
public Guid Id { get; set; }
public bool IsEnable { get; set; }
}
public class SetSystemReadingQuestionCriterionIsIsCompleteConfig
{
[NotDefault]
public Guid Id { get; set; }
public bool IsCompleteConfig { get; set; }
}
///
///
///
public class ReadingQuestionCriterionTrialViewInDto : PageInput
{
[NotDefault]
public Guid TrialId { get; set; }
public string CriterionName { get; set; } = string.Empty;
}
public class ReadingQuestionTrialView
{
public Guid Id { get; set; }
///
/// 系统标准Id
///
public Guid ReadingQuestionCriterionTrialId { get; set; }
public Guid TrialId { get; set; }
///
/// 类型
///
public string Type { get; set; }
///
/// 父问题触发
///
public string ParentTriggerValue { get; set; }
///
/// 问题名称
///
public string QuestionName { get; set; }
///
/// 是否是必须
///
public bool IsRequired { get; set; }
///
/// 排序
///
public int ShowOrder { get; set; }
///
/// 父问题ID
///
public Guid? ParentId { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 类型值
///
public string TypeValue { get; set; }
public bool IsEnable { get; set; }
public string ParentQuestionName { get; set; }
///
/// 是否是裁判问题
///
public bool IsJudgeQuestion { get; set; }
}
public class ReadingQuestionSystemView
{
///
/// Id
///
public Guid Id { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 系统标准Id
///
public Guid ReadingQuestionCriterionSystemId { get; set; }
///
/// 类型
///
public string Type { get; set; }
///
/// 父问题触发
///
public string ParentTriggerValue { get; set; }
///
/// 问题名称
///
public string QuestionName { get; set; }
///
/// 是否是必须
///
public bool IsRequired { get; set; }
///
/// 排序
///
public int ShowOrder { get; set; }
///
/// 父问题ID
///
public Guid? ParentId { get; set; }
public string ParentQuestionName { get; set; }
///
/// 类型值
///
public string TypeValue { get; set; }
//public bool IsEnable { get; set; }
///
/// 是否是裁判问题
///
public bool IsJudgeQuestion { get; set; }
}
public class ReadingQuestionTrialViewInDto : PageInput
{
///
/// 系统标准Id
///
[NotDefault]
public Guid ReadingQuestionCriterionTrialId { get; set; }
///
/// 类型
///
public string Type { get; set; } = string.Empty;
///
/// 问题名称
///
public string QuestionName { get; set; } = string.Empty;
}
///
/// 获取其他问题返回的Dto
///
public class CriterionOtherQuestionOutDto
{
public Guid QuestionId { get; set; }
///
/// 问题名称
///
public string QuestionName { get; set; }
///
/// 类型值
///
public string TypeValue { get; set; }
}
public class SetTrialQuestionIsIsJudgeQuestionInDto
{
[NotDefault]
public Guid Id { get; set; }
///
/// 是否是裁判问题
///
public bool IsJudgeQuestion { get; set; }
}
public class GetTrialCriterionOtherQuestionInDto
{
[NotDefault]
public Guid ReadingQuestionCriterionTrialId { get; set; }
///
/// 当前ID
///
public Guid? Id { get; set; }
}
public class GetSystemCriterionOtherQuestionInDto
{
[NotDefault]
public Guid ReadingQuestionCriterionSystemId { get; set; }
///
/// 当前ID
///
public Guid? Id { get; set; }
}
public class ReadingQuestionSystemViewInDto : PageInput
{
///
/// 系统标准Id
///
[NotDefault]
public Guid ReadingQuestionCriterionSystemId { get; set; }
///
/// 类型
///
public string Type { get; set; } = string.Empty;
///
/// 问题名称
///
public string QuestionName { get; set; } = string.Empty;
}
public class AddOrUpdateReadingQuestionSystemInDto
{
///
/// Id
///
public Guid? Id { get; set; }
///
/// 系统标准Id
///
public Guid ReadingQuestionCriterionSystemId { get; set; }
///
/// 类型
///
public string Type { get; set; }
///
/// 父问题触发
///
public string ParentTriggerValue { get; set; } = string.Empty;
///
/// 问题名称
///
public string QuestionName { get; set; }
///
/// 是否是必须
///
public bool IsRequired { get; set; } = false;
///
/// 排序
///
public int ShowOrder { get; set; } = 0;
///
/// 父问题ID
///
public Guid? ParentId { get; set; }
///
/// 是否是裁判问题
///
public bool IsJudgeQuestion { get; set; } = false;
///
/// 备注
///
public string Remark { get; set; } = string.Empty;
///
/// 类型值
///
public string TypeValue { get; set; }
public bool IsEnable { get; set; } = false;
}
public class AddOrUpdateReadingQuestionTrialInDto
{
///
/// Id
///
public Guid? Id { get; set; }
public Guid TrialId { get; set; }
///
/// 系统标准Id
///
public Guid ReadingQuestionCriterionTrialId { get; set; }
///
/// 是否是裁判问题
///
public bool IsJudgeQuestion { get; set; } = false;
///
/// 备注
///
public string Remark { get; set; } = string.Empty;
///
/// 类型
///
public string Type { get; set; }
///
/// 父问题触发
///
public string ParentTriggerValue { get; set; } = string.Empty;
///
/// 问题名称
///
public string QuestionName { get; set; }
///
/// 是否是必须
///
public bool IsRequired { get; set; } = false;
///
/// 排序
///
public int ShowOrder { get; set; } = 0;
///
/// 父问题ID
///
public Guid? ParentId { get; set; }
///
/// 类型值
///
public string TypeValue { get; set; }
public bool IsEnable { get; set; } = false;
}
public class ReadingQuestionCriterionSystemView
{
///
/// 返回的对象
///
public Guid Id { get; set; }
///
/// 标准ID
///
public Guid CriterionId { get; set; }
///
/// 标准
///
public string CriterionName { get; set; }
public int ShowOrder { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
///
/// 是否完成配置
///
public bool IsCompleteConfig { get; set; }
public int QuestionCount { get; set; }
}
public class ReadingQuestionCriterionTrialView
{
///
/// 返回的对象
///
public Guid Id { get; set; }
///
/// 系统标准ID
///
public Guid? ReadingQuestionCriterionSystemId { get; set; }
///
/// 标准
///
public string CriterionName { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
///
/// 是否完成配置
///
public bool IsCompleteConfig { get; set; }
public int QuestionCount { get; set; }
///
/// 是否是系统数据
///
public bool IsSystemData
{
get
{
return this.ReadingQuestionCriterionSystemId != null;
}
}
}
}