using VT.FW.DB;
using System;
using System.Collections.Generic;
using System.Text;
using Mall.Model.Entity.Product;
using Mall.Model.Entity.BaseSetUp;
using Mall.Model.Extend.BaseSetUp;
using Mall.Common.Enum.GuideCar;

namespace Mall.Model.Extend.Product
{
    /// <summary>
    /// 商品表扩展实体
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Goods_Extend : RB_Goods
    {

        /// <summary>
        /// 是否查询低利润商品  1是  其他否
        /// </summary>
        public int IsSelectLowProfit { get; set; }
        /// <summary>
        /// 课程是否已付款
        /// </summary>
        public bool IsPay { get; set; }
        /// <summary>
        /// 课程列表
        /// </summary>
        public List<RB_Goods_WK_Course_Extend> CourseList { get; set; }
        /// <summary>
        /// 教师列表
        /// </summary>
        public List<RB_Goods_WK_Teacher_Extend> TeacherList { get; set; }
        /// <summary>
        /// 可预定日期
        /// </summary>
        public List<RB_Goods_TargetDate_Extend> TargetDateList { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public List<string> TargetDateStrList { get; set; }
        /// <summary>
        /// 线路描述list
        /// </summary>
        public List<string> LineDescriptionList { get; set; }
        /// <summary>
        /// 课程标签
        /// </summary>
        public List<string> CourseLableList { get; set; }

        /// <summary>
        /// 课程章节数
        /// </summary>
        public int CourseNum { get; set; }
        /// <summary>
        /// 教师id
        /// </summary>
        public int TeacherId { get; set; }


        #region 司导信息
        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }
        /// <summary>
        /// 导游名称
        /// </summary>
        public string GuideName { get; set; }

        /// <summary>
        /// 从业年限
        /// </summary>
        public decimal GuideWorkYears { get; set; }

        /// <summary>
        /// 用户评分
        /// </summary>
        public decimal GuideScore { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string GuideTelephone { get; set; }
        /// <summary>
        /// 导游简介
        /// </summary>
        public string Introduction { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string GuidePhoto { get; set; }

        /// <summary>
        /// 车辆名称
        /// </summary>
        public string CarName { get; set; }
        /// <summary>
        /// 车辆颜色
        /// </summary>
        public string CarColorName { get; set; }

        /// <summary>
        /// 车辆评分
        /// </summary>
        public decimal CarScore { get; set; }
        /// <summary>
        /// 车型号
        /// </summary>
        public string CarModel { get; set; }
        /// <summary>
        /// 车辆类型
        /// </summary>
        public int? CarClass { get; set; }

        public string RegionIds { get; set; }

        /// <summary>
        /// 车辆品牌
        /// </summary>
        public int? CarBrandId { get; set; }

        /// <summary>
        /// 剩余座位数
        /// </summary>
        public int SurplusNum { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        public int RegionId { get; set; }


        /// <summary>
        /// 车辆型号
        /// </summary>
        public string GuideCarType { get; set; }
        #endregion

        /// <summary>
        /// 教师名称
        /// </summary>
        public string TeacherName { get; set; }
        /// <summary>
        /// 微店id
        /// </summary>
        public int? SmallShopsId { get; set; }
        /// <summary>
        /// 推荐商品类型  1商品详情页  2订单完成后   3评论后
        /// </summary>
        public int? RecommendType { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int? GoodsId { get; set; }
        /// <summary>
        /// 排除商品id
        /// </summary>
        public int? NoGoodsId { get; set; }
        /// <summary>
        /// 采购商品id
        /// </summary>
        public int? ProcurementGoodsId { get; set; }
        /// <summary>
        /// 其他商户
        /// </summary>
        public int? NotTenantId { get; set; }
        /// <summary>
        /// 商品购买的数量
        /// </summary>
        public int? GoodsBuyNum { get; set; }
        /// <summary>
        /// 视频播放方向  1向下  2向上
        /// </summary>
        public int? SelectVideoDirection { get; set; }
        /// <summary>
        /// 小程序名称
        /// </summary>
        public string MallName { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? UserId { get; set; }
        /// <summary>
        /// 值查询有视频的
        /// </summary>
        public int? IsSelectVideo { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? OrderBy { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTime { get; set; }
        /// <summary>
        /// 是否查询售罄   1是  其他否
        /// </summary>
        public int? IsSelectSellOut { get; set; }
        /// <summary>
        /// 分类ids
        /// </summary>
        public string CategoryIds { get; set; }

        /// <summary>
        /// 商品分类Id【HK0803新增】
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 商品ids
        /// </summary>
        public string GoodsIds { get; set; }


        /// <summary>
        /// 分享来源商品ids
        /// </summary>
        public string SourceGoodsIdIds { get; set; }
        /// <summary>
        /// 商品str
        /// </summary>
        public string GoodsNameStr { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string CoverImage { get; set; }


        /// <summary>
        /// 自定义分享图片
        /// </summary>
        public string CustomShareImagePath { get; set; }
        /// <summary>
        /// 运费名称
        /// </summary>
        public string FreightName { get; set; }
        /// <summary>
        /// 表单名称
        /// </summary>
        public string FormsName { get; set; }
        /// <summary>
        /// 轮播图列表
        /// </summary>
        public List<RB_ImageCommonModel> CarouselImageList { get; set; }
        /// <summary>
        /// 服务列表
        /// </summary>
        public List<RB_ImageCommonModel> ServiceList { get; set; }
        /// <summary>
        /// 商品分类
        /// </summary>
        public List<RB_Goods_Category_Extend> CategoryList { get; set; }


        /// <summary>
        /// 区域列表
        /// </summary>
        public List<RB_Goods_Area_Extend> AreaList { get; set; }
        /// <summary>
        /// 区域购买导入
        /// </summary>
        public string AreaImport { get; set; }
        /// <summary>
        /// 规格名列表
        /// </summary>
        public List<RB_Goods_Specification_Extend> SpecificationList { get; set; }
        /// <summary>
        /// 规格组导入
        /// </summary>
        public string SpecificationImport { get; set; }
        /// <summary>
        /// 规格值名称列表
        /// </summary>
        public List<string> SpecificationNameList { get; set; }
        /// <summary>
        /// 规格价格列表
        /// </summary>
        public List<RB_Goods_SpecificationPrice_Extend> SpecificationPriceList { get; set; }
        /// <summary>
        /// 规格价格详情导入
        /// </summary>
        public string SpecificationPriceImport { get; set; }
        /// <summary>
        /// 分销佣金列表
        /// </summary>
        public List<RB_Goods_DistributionCommission_Extend> DistributionCommissionList { get; set; }

        /// <summary>
        /// 分销佣金列表(2号)
        /// </summary>
        public List<RB_Goods_DistributionCommission_Extend> DistributionCommissionTreeList { get; set; }

        /// <summary>
        /// 会员价格列表
        /// </summary>
        public List<RB_Goods_MemberPrice_Extend> MemberPriceList { get; set; }
        /// <summary>
        /// 会员价格列表
        /// </summary>
        public List<RB_Goods_MemberPrice_Extend> MemberPriceTreeList { get; set; }

        /// <summary>
        /// 关联商品列表
        /// </summary>
        public List<RB_Goods_Relevance_Extend> RelevanceList { get; set; }

        /// <summary>
        /// 是否收藏  true/false
        /// </summary>
        public bool Favorite { get; set; }
        /// <summary>
        /// 快递费用
        /// </summary>
        public decimal Express { get; set; }
        /// <summary>
        /// 最高分销返佣
        /// </summary>
        public decimal MaxShare { get; set; }

        /// <summary>
        /// 会员价格
        /// </summary>
        public decimal MemberPrice { get; set; }

        /// <summary>
        /// 供应商ids  2020-08-04 Add By:W
        /// </summary>
        public string SupplierIds { get; set; }

        /// <summary>
        /// 商品分类包邮规则
        /// </summary>
        public RB_FreeShipping_Extend FreeShippingModel { get; set; }

        /// <summary>
        /// 供应商-我的产品
        /// </summary>
        public List<object> SupplierSpecificationList { get; set; }

        /// <summary>
        /// 是否直查询有视频商品(1-是)HK0902新增
        /// </summary>
        public int IsVideo { get; set; }

        /// <summary>
        /// ERP商品对象
        /// </summary>
        public object ERPGoodObj { get; set; }

        /// <summary>
        /// 门店列表
        /// </summary>
        public List<int> StoresList
        {
            get
            {
                return Common.ConvertHelper.ConvertToListInt(this.StoresIds);
            }
        }

        /// <summary>
        /// 门店名称
        /// </summary>
        public List<string> StoreNameList { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 是否同步商品0-全部，1-是，2-否
        /// </summary>
        public int Isynchro { get; set; }

        /// <summary>
        /// 查询教育商品   1是  其他查询正常商品
        /// </summary>
        public int Q_GoodsEduType { get; set; }
    }

    /// <summary>
    /// 标签项目
    /// </summary>
    public class MarketingLogoItem
    {
        /// <summary>
        /// 标签类型(1-文字模式,2-图片模式,0-无模式)
        /// </summary>
        public int iswords { get; set; }

        /// <summary>
        /// 标签文字
        /// </summary>
        public string words { get; set; }

        /// <summary>
        /// 标签字体颜色
        /// </summary>
        public string wordsColor { get; set; }

        /// <summary>
        /// 标签背景颜色
        /// </summary>
        public string wordsBack { get; set; }

        /// <summary>
        /// 标签图片
        /// </summary>
        public string ico { get; set; }
    }

    /// <summary>
    /// 商品附加属性
    /// </summary>
    public class GoodsJsonItem
    {
        /// <summary>
        /// 班级编号
        /// </summary>
        public int ClassId { get; set; }

        /// <summary>
        /// 上课次数
        /// </summary>
        public decimal ClassNum { get; set; }

        /// <summary>
        /// 上课地址
        /// </summary>
        public string ClassAddress { get; set; }

        /// <summary>
        /// 上课时间
        /// </summary>
        public string ClassTime { get; set; }

        /// <summary>
        /// 上课时间详情
        /// </summary>
        public List<CourseTimeItem> ClassTimeList { get; set; }

        /// <summary>
        /// 开班日期
        /// </summary>
        public string OpenTime { get; set; }

        /// <summary>
        /// 节课日期
        /// </summary>
        public string EndClassDate { get; set; }

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

        /// <summary>
        /// 教师头像
        /// </summary>
        public string TeacherIcon { get; set; }

        /// <summary>
        /// 限招人数
        /// </summary>
        public int ClassPersion { get; set; }

        /// <summary>
        /// 教师介绍
        /// </summary>
        public string TeacherInfo { get; set; }

        /// <summary>
        /// 截止报名日期
        /// </summary>
        public string EndOrderTime { get; set; }

        /// <summary>
        /// 讲义价格
        /// </summary>
        public decimal BookPrice { get; set; }

        /// <summary>
        /// 班级报名条件
        /// </summary>
        public List<ClassConditionItem> ClassCondition { get; set; }
    }

    public class CourseTimeItem
    {
        /// <summary>
        /// 上课时间
        /// </summary>
        public string TimeStr { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public List<string> DateList { get; set; }

        /// <summary>
        /// 类型(周，固定的日期)
        /// </summary>
        public string TypeStr { get; set; }
    }

    /// <summary>
    /// 报名限制条件配置项
    /// </summary>
    public class ClassConditionItem
    {
        /// <summary>
        /// 班级Id
        /// </summary>
        public int ClassId { get; set; }

        /// <summary>
        /// 报名项目编号 (ItemType=5时发布编号)
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        /// 子项编号(ItemType=5时试卷编号)
        /// </summary>
        public int SubItemId { get; set; }

        /// <summary>
        /// 报名项目名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 报名限制条例类型
        /// </summary>
        public int ItemType { get; set; }

        /// <summary>
        /// 最低分
        /// </summary>
        public decimal LowScore { get; set; }

        /// <summary>
        /// 最高分
        /// </summary>
        public decimal HighScore { get; set; }
    }
}
