using System;
using System.Collections.Generic;
using System.Text;
using Edu.Model.Entity.Finance;
using VT.FW.DB;

namespace Edu.Model.ViewModel.Finance
{
    /// <summary>
    /// 简易报表扩展表
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DataStatisticsConnection")]
    public class RB_SimpleReport_Extend : RB_SimpleReport
    {
        /// <summary>
        /// 费用类型集合
        /// </summary>
        public string CostIds { get; set; }
        /// <summary>
        /// 查询所有公司
        /// </summary>
        public int? IsSelectAllCompany { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string BranchName { get; set; }
        /// <summary>
        /// 跨年统计  起始月份
        /// </summary>
        public string StartMonth { get; set; }

        /// <summary>
        /// 是否更新  1是
        /// </summary>
        public int IsUpdate { get; set; }
    }

    /// <summary>
    /// 报表分组
    /// </summary>
    public class ReportGroupModel { 
        /// <summary>
        /// 费用id
        /// </summary>
        public int CostTypeId { get; set; }

        /// <summary>
        /// 费用名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类型  1费用（计算利润）   2往来   3其他
        /// </summary>
        public int ReportType { get; set; }

        /// <summary>
        /// 收支  1收  2支
        /// </summary>
        public int IncomeType { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<ReportChildModel> ChildList { get; set; }
    }

    /// <summary>
    /// 子集
    /// </summary>
    public class ReportChildModel {
        /// <summary>
        /// 费用id
        /// </summary>
        public int CostTypeId { get; set; }

        /// <summary>
        /// 费用名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
