using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
namespace Appointment.Entity
{
///
/// 预订主单
///
[Serializable]
[SugarTable("appt_summary")]
public class ApptSummary
{
///
/// 递增主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int? Id { get; set; }
///
/// guid
///
///
/// 同一个订单的的(暂订单、确认单)GUID相同
///
public string Guid { get; set; }
///
/// 所属用户
///
public string UserId { get; set; }
///
/// 创建时间
///
public DateTime? CreateTime { get; set; }
///
/// 预订类型[appt_type.id]
/// 1- 默认模式,
/// 2- 江南春模式,
///
[SugarColumn(ColumnName = "appt_typeid")]
public int? ApptTypeId { get; set; }
///
/// 审核状态:见EnumAuditorStatus
///
[SugarColumn(ColumnName = "auditor_status")]
public int? AuditorStatus { get; set; }
///
/// 待审核角色id:0-无 appt_type
///
///
/// 江南春模式=0
///
[SugarColumn(ColumnName = "auditor_id")]
public int? AuditorId { get; set; }
///
/// 转审账号(当有转审时,将AuditorId=0)
///
[SugarColumn(ColumnName = "transfer_audit")]
public string TransferAudit { get; set; }
///
/// 订单类型预留字段
///
[SugarColumn(ColumnName = "appt_type")]
public int? ApptType { get; set; }
///
/// 编号(生成确认单时产生)
///
public string No { get; set; }
///
/// 组织单位
///
[SugarColumn(ColumnName = "buyer_name")]
public string BuyerName { get; set; }
///
/// 公司地址
///
[SugarColumn(ColumnName = "buyer_address")]
public string BuyerAddress { get; set; }
///
/// 订单名称
///
[SugarColumn(ColumnName = "buyer_title")]
public string BuyerTitle { get; set; }
///
/// 组织负责人
///
[SugarColumn(ColumnName = "leader_name")]
public string LeaderName { get; set; }
///
/// 组织负责人电话
///
[SugarColumn(ColumnName = "leader_mobile")]
public string LeaderMobile { get; set; }
///
/// 会议组房号
///
[SugarColumn(ColumnName = "leader_room")]
public string LeaderRoom { get; set; }
///
/// 营销部跟单人(发起人)
///
[SugarColumn(ColumnName = "sale_name")]
public string SaleName { get; set; }
///
/// 营销部跟单电话
///
[SugarColumn(ColumnName = "sale_mobile")]
public string SaleMobile { get; set; }
///
/// 营销总监 手工写
///
[SugarColumn(ColumnName = "sale_director")]
public string SaleDirector { get; set; }
///
/// 客房总备注
///
[SugarColumn(ColumnName = "room_remark")]
public string RoomRemark { get; set; }
///
/// 会议室总备注
///
[SugarColumn(ColumnName = "meeting_remark")]
public string MeetingRemark { get; set; }
///
/// 餐饮总备注
///
[SugarColumn(ColumnName = "catering_remark")]
public string CateringRemark { get; set; }
///
/// 温泉总备注
///
[SugarColumn(ColumnName = "spring_remark")]
public string SpringRemark { get; set; }
///
/// 编辑之前的主键
///
public int? Pid { get; set; }
///
/// 团队编号
///
///
/// 2021-6-16 江南春模式有效
///
[SugarColumn(ColumnName = "grp_no")]
public string GrpNo { get; set; }
///
/// 预定信息最小开始日期
///
[SugarColumn(ColumnName = "start_day")]
public DateTime StartDay { get; set; }
///
/// 预定信息最大结果日期
///
[SugarColumn(ColumnName = "end_day")]
public DateTime EndDay { get; set; }
///
/// 申请OA单状态:0-未占用资源,1-已占用资源
///
[SugarColumn(ColumnName = "apply_oa")]
public int ApplyOA { get; set; }
///
/// 为销售员再次编辑提交的时间,文件对比中使用该时间,显示什么时候改了内容
///
[SugarColumn(ColumnName = "alter_time")]
public DateTime AlterTime { get; set; }
// 关联表信息
///
/// 客房预订明细列表
///
[SqlSugar.SugarColumn(IsIgnore = true)]
public List ApptRoomList { get; set; }
///
/// 会议室预订明细列表
///
[SqlSugar.SugarColumn(IsIgnore = true)]
public List ApptMeetingList { get; set; }
///
/// 餐饮预订明细列表
///
[SqlSugar.SugarColumn(IsIgnore = true)]
public List ApptCateringList { get; set; }
///
/// 温泉预订明细列表
///
[SqlSugar.SugarColumn(IsIgnore = true)]
public List ApptSpringList { get; set; }
///
/// 自定义备注
///
[SqlSugar.SugarColumn(IsIgnore = true)]
public List ApptRemarks { get; set; }
}
}