using Edu.Common;
using Edu.Common.Plugin;
using Edu.Model.ViewModel.Mall;
using Edu.Model.ViewModel.User;
using System;
using System.Collections.Generic;
namespace Edu.Model.ViewModel.Course
{
///
/// 课程视图实体类
///
[Serializable]
public class RB_Course_ViewModel : Model.Entity.Course.RB_Course
{
///
/// 创建人
///
public string CreateByName { get; set; }
///
/// 修改人
///
public string UpdateByName { get; set; }
///
/// 创建时间字符串
///
public string CreateTimeStr { get { return this.CreateTime.FormatTime(); } }
///
/// 更新时间
///
public string UpdateTimeStr { get { return this.UpdateTime.FormatTime(); } }
///
/// 分类名称
///
public string CateName { get; set; }
///
/// 分类编号【查询使用】
///
public string QCateIds { get; set; }
///
/// 课程编号
///
public string QCourseIds { get; set; }
///
/// 是否查询优化价格
///
public int IsQPrice { get; set; }
///
/// 是否查询老师
///
public int IsQTeacher { get; set; }
///
/// 课程阶梯价格列表
///
public List StepPriceList { get; set; }
///
/// 课程优惠列表
///
public List PreferentialList { get; set; }
///
/// 讲师列表
///
public List TeacherList { get; set; }
///
/// 教师团队
///
public List TeacherIdList
{
get
{
if (!string.IsNullOrEmpty(this.Teacher_Ids))
{
return Common.ConvertHelper.StringToList(this.Teacher_Ids);
}
return new List();
}
}
///
/// 销售平台[修改使用]
///
public List SalePlatList
{
get
{
if (!string.IsNullOrEmpty(this.Saleplat))
{
return Common.ConvertHelper.StringToList(this.Saleplat);
}
return new List();
}
}
///
/// 销售平台数组
///
public List SalePlatArr
{
get
{
List list = new List();
if (this.SalePlatList != null && this.SalePlatList.Count > 0)
{
foreach (var item in this.SalePlatList)
{
switch (item)
{
case 1:
list.Add("内部销售");
break;
case 2:
list.Add("学员App");
break;
case 3:
list.Add("网课端");
break;
}
}
}
return list;
}
}
///
/// 是否取随机条数
///
public bool IsRand { get; set; }
///
/// 随机条数
///
public int RandNum { get; set; }
///
/// 单元数量
///
public int UnitCount { get; set; }
///
/// 章节数量
///
public int ChapterCount { get; set; }
///
/// 小程序商品分类
///
public List CategoryList { get; set; }
///
/// 课程等级
///
public string CourseRateName { get { return this.CourseRate.ToName(); } }
///
/// 所属科目名称
///
public string CourseSubjectName { get; set; }
}
}