namespace Admin.NET.Plugin.AiDOP.Order; /// /// 合同评审主表(ado_contract_review) /// [SugarTable("ado_contract_review", "合同评审主表")] public class ContractReview { [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true, IsIdentity = true)] public int RecID { get; set; } /// 单据编号(业务主键,格式 CRyyyyMMxxxx) [SugarColumn(ColumnName = "BillNo", Length = 64)] public string BillNo { get; set; } = string.Empty; /// 合同标题 [SugarColumn(ColumnName = "Title", Length = 256, IsNullable = true)] public string? Title { get; set; } /// 客户名称 [SugarColumn(ColumnName = "CustomerName", Length = 128, IsNullable = true)] public string? CustomerName { get; set; } /// 客户编号 [SugarColumn(ColumnName = "CustomerNo", Length = 64, IsNullable = true)] public string? CustomerNo { get; set; } /// 销售公司 [SugarColumn(ColumnName = "SalesCompany", Length = 64, IsNullable = true)] public string? SalesCompany { get; set; } /// 销售区域 [SugarColumn(ColumnName = "SalesArea", Length = 64, IsNullable = true)] public string? SalesArea { get; set; } /// 项目编号 [SugarColumn(ColumnName = "ProjectCode", Length = 64, IsNullable = true)] public string? ProjectCode { get; set; } /// CRM机会编号 [SugarColumn(ColumnName = "CrmNo", Length = 64, IsNullable = true)] public string? CrmNo { get; set; } /// 负责人账号 [SugarColumn(ColumnName = "ResponsibleAccount", Length = 64, IsNullable = true)] public string? ResponsibleAccount { get; set; } /// 负责人姓名 [SugarColumn(ColumnName = "ResponsibleName", Length = 64, IsNullable = true)] public string? ResponsibleName { get; set; } /// 项目开始日期 [SugarColumn(ColumnName = "ProjectStartDate", IsNullable = true)] public DateTime? ProjectStartDate { get; set; } /// 当前审批阶段(0=草稿, 1~5=各环节) [SugarColumn(ColumnName = "CurrentStage", IsNullable = true)] public int? CurrentStage { get; set; } /// 当前审批部门 [SugarColumn(ColumnName = "CurrentDept", Length = 64, IsNullable = true)] public string? CurrentDept { get; set; } /// 项目孵化状态 [SugarColumn(ColumnName = "ProjectStatus", Length = 64, IsNullable = true)] public string? ProjectStatus { get; set; } /// 项目成单概率 [SugarColumn(ColumnName = "WinRate", Length = 32, IsNullable = true)] public string? WinRate { get; set; } /// 预计进单月份 [SugarColumn(ColumnName = "ExpectedOrderMonth", IsNullable = true)] public DateTime? ExpectedOrderMonth { get; set; } /// 预计发货日期 [SugarColumn(ColumnName = "ExpectedDeliveryDate", IsNullable = true)] public DateTime? ExpectedDeliveryDate { get; set; } /// 项目需求说明 [SugarColumn(ColumnName = "ProjectRequirement", Length = 1024, IsNullable = true)] public string? ProjectRequirement { get; set; } /// 备注 [SugarColumn(ColumnName = "Remark", Length = 512, IsNullable = true)] public string? Remark { get; set; } /// 流程状态:draft/reviewing/completed/rejected [SugarColumn(ColumnName = "FlowStatus", Length = 32, IsNullable = true)] public string? FlowStatus { get; set; } [SugarColumn(ColumnName = "CreateUser", Length = 64, IsNullable = true)] public string? CreateUser { get; set; } [SugarColumn(ColumnName = "CreateTime", IsNullable = true)] public DateTime? CreateTime { get; set; } [SugarColumn(ColumnName = "UpdateUser", Length = 64, IsNullable = true)] public string? UpdateUser { get; set; } [SugarColumn(ColumnName = "UpdateTime", IsNullable = true)] public DateTime? UpdateTime { get; set; } [SugarColumn(ColumnName = "IsActive", IsNullable = true)] public int? IsActive { get; set; } }