80 lines
3.4 KiB
C#
80 lines
3.4 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Xml.Serialization;
|
|
using YLErp.Modules.SuperviseReportModule.SAC.Common;
|
|
using static YLErp.DBModels.Consts.ConsReport;
|
|
|
|
namespace YLErp.Modules.SuperviseReportModule.SAC.Model
|
|
{
|
|
/// <summary>
|
|
/// 履约保证书
|
|
/// </summary>
|
|
[Table("A1008_PerformanceGuaranteeAgrmt")]
|
|
public class PerformanceGuaranteeAgrmtModel : ReportBaseModel
|
|
{
|
|
/// <summary>
|
|
/// 操作标识
|
|
/// <para>长度:1</para>
|
|
/// <para>必填:是</para>
|
|
/// <para>说明:<see cref="OptFlagsEnum"/></para>
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
[SacDescription("OperationType", "操作标识", "1", true, "")]
|
|
public OptFlagsEnum OperationType { get; set; }
|
|
/// <summary>
|
|
/// 主协议编号(双方约定)
|
|
/// <para>长度:100</para>
|
|
/// <para>必填:是</para>
|
|
/// <para>说明:</para>
|
|
/// </summary>
|
|
[CheckStringMaxLength(MaxLength = 100)]
|
|
[DefaultValue("")]
|
|
[SacDescription("MasterAgrmtNo", "主协议编号(双方约定)", "100", true, "")]
|
|
public string MasterAgrmtNo { get; set; }
|
|
/// <summary>
|
|
/// 补充协议编号(双方约定)
|
|
/// <para>长度:100</para>
|
|
/// <para>必填:是</para>
|
|
/// <para>说明:</para>
|
|
/// </summary>
|
|
[CheckStringMaxLength(MaxLength = 100)]
|
|
[DefaultValue("")]
|
|
[SacDescription("SupAgrmtNo", "补充协议编号(双方约定)", "100", true, "")]
|
|
public string SupAgrmtNo { get; set; }
|
|
/// <summary>
|
|
/// 履约担保协议编号
|
|
/// <para>长度:32</para>
|
|
/// <para>必填:否</para>
|
|
/// <para>说明:校验规则:补正时必填</para>
|
|
/// </summary>
|
|
[CheckConditionStringValue(ConditionName = nameof(OperationType), ConditionValue = "A", CheckHandleNameArr = new[] { "B" })]
|
|
[CheckConditionStringNEQValue(ConditionName = nameof(OperationType), ConditionValue = "A", CheckHandleNameArr = new[] { "A" })]
|
|
[CheckStringMaxLength(MaxLength = 32, CheckHandleName = "A")]
|
|
[CheckStringMaxLength(MaxLength = 32, Required = false, CheckHandleName = "B")]
|
|
[DefaultValue("")]
|
|
[SacDescription("PerformanceGuaranteeAgrmtID", "履约担保协议编号", "32", false, "校验规则:补正时必填;")]
|
|
public string PerformanceGuaranteeAgrmtID { get; set; }
|
|
/// <summary>
|
|
/// 履约担保协议(附件)
|
|
/// <para>长度:100</para>
|
|
/// <para>必填:是</para>
|
|
/// <para>说明:校验规则:只支持PDF格式</para>
|
|
/// </summary>
|
|
[CheckStringMaxLength(MaxLength = 100)]
|
|
[CheckStringEndsWith(EndsWithString = ".pdf")]
|
|
[DefaultValue("")]
|
|
[SacDescription("PerformanceGuaranteeAgrmt", "履约担保协议(附件)", "100", true, "校验规则:只支持PDF格式;")]
|
|
public string PerformanceGuaranteeAgrmt { get; set; }
|
|
/// <summary>
|
|
/// 签署时间
|
|
/// <para>长度:10</para>
|
|
/// <para>必填:是</para>
|
|
/// <para>说明:校验规则:必须是yyyy-MM-dd</para>
|
|
/// </summary>
|
|
[CheckStringLength(Length = 10)]
|
|
[CheckStringIsDateTimeFormat(FormatString = "yyyy-MM-dd")]
|
|
[DefaultValue("")]
|
|
[SacDescription("SigningDate", "签署时间", "10", true, "校验规则:必须是YYYY-MM-DD;")]
|
|
public string SigningDate { get; set; }
|
|
}
|
|
} |