package cn.ey.biz.module.external.api.smarthub.service.responsedto;

import java.math.BigDecimal;
import java.util.List;

import lombok.Data;

/**
 * 项目信息
 *
 * @author congchunhe
 * */
@Data
public class EngagementResDTO {

    private List<EngagementDto> budgetList;

    private TotalDto budgetPackage;

    @Data
    public static class EngagementDto {
        /**
         * Eng Code
         * */
        private String code;

        /**
         * 业务单元
         * */
        private String bu;

        /**
         * 客户ID
         * */
        private String ccid;

        /**
         * 客户名称
         * */
        private String clientName;

        /**
         * 币种
         * */
        private String currency;

        /**
         * Dummy Code
         * */
        private String dummyCode;

        /**
         * Dummy Code关联Group ID
         * */
        private Long dummyGroupId;

        /**
         * EAF
         * */
        private BigDecimal eaf;

        /**
         * EM角色人员姓名
         * */
        private String em;

        /**
         * EP角色人员姓名
         * */
        private String ep;

        /**
         * EP工时占比
         * */
        private BigDecimal epRate;

        /**
         * ERP
         * */
        private BigDecimal erp;

        /**
         * 费用
         * */
        private BigDecimal expense;

        /**
         * 管理单元
         * */
        private String mu;

        /**
         * 运营单位
         * */
        private String ou;

        /**
         * 项目名称
         * */
        private String projectName;

        /**
         * 项目编号
         * */
        private String projectNo;

        /**
         * 子管理单元
         * */
        private String smu;

        /**
         * TER
         * */
        private BigDecimal ter;

        /**
         * TOTAL_HOURS
         * */
        private BigDecimal totalHours;

        /**
         * 是否主Code
         * */
        private Boolean isPrimary;

        /**
         * budget的Id
         */
        private Long budgetId;

        /**
         * EAF
         * */
        private BigDecimal packageEaf = BigDecimal.ZERO;

        /**
         * Group总体ERP
         * */
        private BigDecimal packageErp;

        /**
         * Group总体费用
         * */
        private BigDecimal packageExpense;

        /**
         * Group总体TER
         * */
        private BigDecimal packageTer;

        /**
         * Group总体TOTAL_HOURS
         * */
        private BigDecimal packageTotalHours;
        
        private BigDecimal ser;
        
        private BigDecimal ner;
        
        private BigDecimal partnerInvolvement;
        
        private BigDecimal packageSer;
        
        private BigDecimal packageNer;
        
        private Boolean match;
        
    }

    @Data
    public static class TotalDto {
        /**
         * EAF
         * */
        private BigDecimal eaf;

        /**
         * ERP
         * */
        private BigDecimal erp;

        /**
         * 费用
         * */
        private BigDecimal expense;

        /**
         * TER
         * */
        private BigDecimal ter;

        /**
         * TOTAL_HOURS
         * */
        private BigDecimal totalHours;
        
        private BigDecimal ser;
        
        private BigDecimal ner;
    }
}
