using Edu.Model.CacheModel;
using Edu.Model.Entity.EduTask;
using System;
using System.Collections.Generic;
using System.Text;

namespace Edu.Model.ViewModel.EduTask
{
    /// <summary>
    /// 订单转班、分拆视图实体类
    /// </summary>
    public class RB_Order_Change_ViewModel : RB_Order_Change
    {
        /// <summary>
        /// 查询编号【多个逗号分隔】
        /// </summary>
        public string QIds { get; set; }

        /// <summary>
        /// 学员名称
        /// </summary>
        public string GuestName { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 班级编号
        /// </summary>
        public string ClassNo { get; set; }

        /// <summary>
        /// 课程名称
        /// </summary>
        public string CourseName { get; set; }

        /// <summary>
        /// 老师名称
        /// </summary>
        public string TeacherName { get; set; }

        /// <summary>
        /// 生效时间
        /// </summary>
        public string EffectiveDateStr { get { return Common.ConvertHelper.FormatDate(this.EffectiveDate); } }
    }

    /// <summary>
    /// 订单转班分拆生成财务单据实体类
    /// </summary>
    public class OrderChangeFinace
    {
        /// <summary>
        /// 更改类型(1-转班，2-分拆)
        /// </summary>
        public int ChangeType { get; set; }

        /// <summary>
        /// 应收/退款
        /// </summary>
        public decimal InCome { get; set; }
            
        /// <summary>
        /// 学员编号
        /// </summary>
        public int GuestId { get; set; }

        /// <summary>
        /// 学员名称
        /// </summary>
        public string GuestName { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        public UserInfo UserInfo { get; set; }

        /// <summary>
        /// 班级编号
        /// </summary>
        public int ClassId { get; set; }

        /// <summary>
        /// 班级所在校区编号
        /// </summary>
        public int Class_School_Id { get; set; }

        /// <summary>
        /// 校区名称
        /// </summary>
        public string SName { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public int OrderId { get; set; }
            
        /// <summary>
        /// 关联财务单号
        /// </summary>
        public int ReFinanceId { get; set; }
    }
}
