using System.ComponentModel; using System.Xml.Serialization; using YLErp.Modules.SuperviseReportModule.SAC.Common; using static YLErp.DBModels.Consts.ConsReport; namespace YLErp.Modules.SuperviseReportModule.SAC.Model { public class OtherReportModel : ReportBaseModel { /// /// 操作标识 /// 长度:1 /// 必填:是 /// 说明: /// [XmlIgnore] [SacDescription("OperationType", "操作标识", "1", true, "")] public OptFlagsEnum OperationType { get; set; } /// /// 业务编号 /// 长度:50 /// 必填:否 /// 说明:校验规则:补正时必填; /// [CheckConditionStringValue(ConditionName = nameof(OperationType), ConditionValue = "A", CheckHandleNameArr = new[] { "B" })] [CheckConditionStringNEQValue(ConditionName = nameof(OperationType), ConditionValue = "A", CheckHandleNameArr = new[] { "A" })] [CheckStringMaxLength(MaxLength = 50, CheckHandleName = "A")] [CheckStringMaxLength(MaxLength = 50, Required = false, CheckHandleName = "B")] [DefaultValue("")] [SacDescription("BizID", "业务编号", "50", false, "校验规则:补正时必填;")] public new string BizID { get; set; } /// /// 填报人姓名 /// 长度:200 /// 必填:是 /// 说明: /// [CheckStringMaxLength(MaxLength = 200)] [DefaultValue("")] [SacDescription("Name", "填报人姓名", "200", true, "")] public string Name { get; set; } /// /// 手机 /// 长度:11 /// 必填:是 /// 说明:校验规则:手机号 /// [CheckStringLength(Length = 11)] [DefaultValue("")] [SacDescription("Telephone", "手机", "11", true, "校验规则:手机号")] public string Telephone { get; set; } /// /// 手机 /// 长度:200 /// 必填:否 /// 说明: /// [CheckStringMaxLength(MaxLength = 200, Required = false)] [DefaultValue("")] [SacDescription("FixedPhone", "固定电话", "200", false, "")] public string FixedPhone { get; set; } /// /// 其他报告文件 /// 长度: /// 必填: /// 说明: /// [XmlElement] [SacDescription("OtherReportFileTuple", "其他报告文件", "", false, "")] public List OtherReportFileTuple { get; set; } /// /// 详细说明 /// 长度:1024 /// 必填:是 /// 说明: /// [CheckStringMaxLength(MaxLength = 1024)] [DefaultValue("")] [SacDescription("DetailedDescription", "详细说明", "1024", true, "")] public string DetailedDescription { get; set; } } public class OtherReportFileDetailModel { /// /// 其他报告文件 /// 长度: /// 必填:是 /// 说明:校验规则:格式必须为 PDF 、WORD、EXCEL [CheckStringEndsWith(EndsWithString = ".pdf|.doc|.docx|.xlsx|.xls", Multiple = true)] [DefaultValue("")] [SacDescription("OtherReportFile", "其他报告文件", "", true, "校验规则:格式必须为 PDF 、WORD、EXCEL;")] public string OtherReportFile { get; set; } } }