using Edu.Model.Entity.Customer;
using System;
using System.Collections.Generic;
using System.Text;

namespace Edu.Model.ViewModel.Customer
{
    /// <summary>
    /// 客户幸福存折和返佣扩展实体类
    /// </summary>
    public class RB_Customer_BalanceDetail_ViewModel : RB_Customer_BalanceDetail
    {
        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }

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

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 返佣类型字符串
        /// </summary>
        public string RebateTypeStr
        {
            get
            {
                string str = "";
                if (this.RebateType == 1)
                {
                    str = "返佣";
                }
                else
                {
                    str = "幸福存折";
                }
                return str;
            }
        }

        /// <summary>
        /// 存入抵扣类型
        /// </summary>
        public string BalanceTypeStr
        {
            get
            {
                string str = "";
                if (this.BalanceType == 1)
                {
                    str = "存入";
                }
                else
                {
                    str = "扣除";
                }
                return str;
            }
        }

        /// <summary>
        /// 操作时间字符串
        /// </summary>
        public string UpdateTimeStr { get { return Common.ConvertHelper.FormatTime(this.UpdateTime); } }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string QOrderIds { get; set; }

        /// <summary>
        /// 返佣状态字符串
        /// </summary>
        public string BalanceStateStr
        {
            get
            {
                string str = "待返佣";
                if (this.BalanceState == 1)
                {
                    str = "已返佣";
                }
                else if (this.BalanceState == 2)
                {
                    str = "待返佣";
                }
                return str;
            }
        }

        /// <summary>
        /// 是否提现字符串
        /// </summary>
        public string RemitStr
        {
            get
            {
                string str = "未提现";
                if (this.IsRemit == 1)
                {
                    str = "已提现";
                }
                else if (this.IsRemit == 2)
                {
                    str = "未提现";
                }
                return str;
            }
        }
    }
}
