using Performance.DtoModels;
using Performance.Services.ExtractExcelService.SheetDataWrite;
using System;
using System.Collections.Generic;
using System.Text;

namespace Performance.Services.ExtractExcelService
{
    public class WriteDataFactory
    {
        public ISheetDataWrite GetWriteData(SheetType sheetType)
        {
            ISheetDataWrite factory;
            switch (sheetType)
            {
                //case SheetType.Employee:
                //    factory = new EmployeeDataWrite();
                //    break;
                //case SheetType.ClinicEmployee:
                //    factory = new ClinicEmployeeDataWrite();
                //    break;
                //case SheetType.OtherIncome:
                //case SheetType.Expend:
                //    factory = new OtherIncomeDataWrite();
                //    break;
                //case SheetType.Income:
                //    factory = new IncomeDataWrite();
                //    break;
                //case SheetType.Workload:
                //    factory = new WorkloadDataWrite();
                //    break;
                //case SheetType.AccountBasic:
                //    factory = new AccountBasicDataWrite();
                //    break;
                case SheetType.SpecialUnit:
                    factory = new SpecialUnitDataWrite();
                    break;
                default:
                    return null;
            }
            return factory;
        }
    }
}
