You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
4.5 KiB
141 lines
4.5 KiB
namespace Tiobon.Core.Model.ViewModels.Extend;
|
|
|
|
public class InsertGhre_SurveyExtend
|
|
{
|
|
/// <summary>
|
|
/// 封面图
|
|
/// </summary>
|
|
[Display(Name = "CoverImageUrl"), Description("封面图"), MaxLength(128, ErrorMessage = "封面图 不能超过 128 个字符")]
|
|
public string CoverImageUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 问卷编号
|
|
/// </summary>
|
|
[Display(Name = "SurveyNo"), Description("问卷编号"), MaxLength(32, ErrorMessage = "问卷编号 不能超过 32 个字符")]
|
|
public string SurveyNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 问卷名称
|
|
/// </summary>
|
|
[Display(Name = "SurveyName"), Description("问卷名称"), MaxLength(64, ErrorMessage = "问卷名称 不能超过 64 个字符")]
|
|
public string SurveyName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类
|
|
/// </summary>
|
|
[Display(Name = "SurveyClass"), Description("分类"), MaxLength(32, ErrorMessage = "分类 不能超过 32 个字符")]
|
|
public string SurveyClass { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
|
|
public string RemarkSz { get; set; }
|
|
|
|
/// <summary>
|
|
/// 问卷调查题目
|
|
/// </summary>
|
|
public List<InsertGhre_SurveyQuestionExtend> Questions { get; set; }
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 问卷调查题目
|
|
/// </summary>
|
|
public class InsertGhre_SurveyQuestionExtend
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
/// 题目类型
|
|
/// </summary>
|
|
[Display(Name = "QuestionType"), Description("题目类型"), MaxLength(32, ErrorMessage = "题目类型 不能超过 32 个字符")]
|
|
public string QuestionType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 题目内容
|
|
/// </summary>
|
|
[Display(Name = "QuestionContent"), Description("题目内容"), MaxLength(2000, ErrorMessage = "题目内容 不能超过 2000 个字符")]
|
|
public string QuestionContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 题目解析
|
|
/// </summary>
|
|
[Display(Name = "QuestionAnalysis"), Description("题目解析"), MaxLength(2000, ErrorMessage = "题目解析 不能超过 2000 个字符")]
|
|
public string QuestionAnalysis { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
public int? SortNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
|
|
public string RemarkSz { get; set; }
|
|
|
|
/// <summary>
|
|
/// 问卷调查选项
|
|
/// </summary>
|
|
public List<InsertGhre_SurveyOptionExtend> Options { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 问卷调查选项
|
|
/// </summary>
|
|
public class InsertGhre_SurveyOptionExtend
|
|
{
|
|
/// <summary>
|
|
/// 选项编号
|
|
/// </summary>
|
|
[Display(Name = "OptionNo"), Description("选项编号"), MaxLength(32, ErrorMessage = "选项编号 不能超过 32 个字符")]
|
|
public string OptionNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 选项内容
|
|
/// </summary>
|
|
[Display(Name = "OptionContent"), Description("选项内容"), MaxLength(2000, ErrorMessage = "选项内容 不能超过 2000 个字符")]
|
|
public string OptionContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否必填
|
|
/// </summary>
|
|
public bool? IsRequired { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分数
|
|
/// </summary>
|
|
[Display(Name = "Score"), Description("分数"), Column(TypeName = "decimal(20,2)")]
|
|
public decimal? Score { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否其他选项
|
|
/// </summary>
|
|
public bool? IsOther { get; set; }
|
|
|
|
/// <summary>
|
|
/// 其他选项内容
|
|
/// </summary>
|
|
[Display(Name = "OtherContent"), Description("其他选项内容"), MaxLength(128, ErrorMessage = "其他选项内容 不能超过 128 个字符")]
|
|
public string OtherContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片地址
|
|
/// </summary>
|
|
[Display(Name = "ImageUrl"), Description("图片地址"), MaxLength(128, ErrorMessage = "图片地址 不能超过 128 个字符")]
|
|
public string ImageUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片宽度
|
|
/// </summary>
|
|
[Display(Name = "ImageWidthPc"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
|
|
public string ImageWidthPc { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片宽度
|
|
/// </summary>
|
|
[Display(Name = "ImageWidthApp"), Description("图片宽度"), MaxLength(32, ErrorMessage = "图片宽度 不能超过 32 个字符")]
|
|
public string ImageWidthApp { get; set; }
|
|
} |