UNPKG

evmtools-node

Version:

このライブラリは、プライムブレインズ社で利用している「進捗管理ツール(Excel)」ファイルを読み込み、 プロジェクトの進捗状況や要員別の作業量を可視化するためのライブラリです。

47 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TaskRowFactory = void 0; const TaskRow_1 = require("../domain/TaskRow"); class TaskRowFactory { static fromDto(dto) { return new TaskRow_1.TaskRow(dto.sharp, dto.id, dto.level, dto.name, dto.assignee, dto.workload, dto.startDate, dto.endDate, // dto.progress, dto.actualStartDate, dto.actualEndDate, dto.progressRate, dto.scheduledWorkDays, dto.pv, dto.ev, dto.spi, dto.expectedProgressDate, dto.delayDays, dto.remarks, dto.parentId, dto.isLeaf, dto.plotMap); } static toDto(entity) { return { sharp: entity.sharp, id: entity.id, level: entity.level, name: entity.name, assignee: entity.assignee, workload: entity.workload, startDate: entity.startDate, endDate: entity.endDate, // progress: entity.progress, actualStartDate: entity.actualStartDate, actualEndDate: entity.actualEndDate, progressRate: entity.progressRate, scheduledWorkDays: entity.scheduledWorkDays, pv: entity.pv, ev: entity.ev, spi: entity.spi, expectedProgressDate: entity.expectedProgressDate, delayDays: entity.delayDays, remarks: entity.remarks, parentId: entity.parentId, isLeaf: entity.isLeaf, plotMap: entity.plotMap, }; } static fromDtos(dtos) { // eslint-disable-next-line @typescript-eslint/unbound-method return dtos.map(this.fromDto); } static toDtos(entities) { // eslint-disable-next-line @typescript-eslint/unbound-method return entities.map(this.toDto); } } exports.TaskRowFactory = TaskRowFactory; //# sourceMappingURL=TaskRowFactory.js.map