@dssp/supervision 1.0.0-alpha.26 → 1.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/graphql/building-inspection.js +6 -0
- package/dist-client/graphql/building-inspection.js.map +1 -1
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +1 -1
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +25 -11
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +11 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +141 -10
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +22 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +431 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +17 -21
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +4 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +45 -19
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +1 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +39 -17
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +2 -2
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +1 -1
- package/dist-client/pages/checklist/checklist-view.js +28 -3
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +1 -1
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +1 -1
- package/dist-client/pages/issue/issue-importer.d.ts +1 -1
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -1
- package/dist-client/pages/project-report/project-report-importer.d.ts +1 -1
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -1
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js +7 -2
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.js +7 -1
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +2 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +8 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +3 -0
- package/dist-server/service/building-inspection/building-inspection.js +10 -0
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +14 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +135 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +19 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +74 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +27 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +104 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/checklist/checklist.d.ts +4 -1
- package/dist-server/service/checklist/checklist.js +15 -4
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/index.d.ts +2 -1
- package/dist-server/service/index.js +6 -2
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/dist-client/pages/building-inspection/component/inspection-document/name-list-upload-popup.d.ts +0 -21
- package/dist-client/pages/building-inspection/component/inspection-document/name-list-upload-popup.js +0 -327
- package/dist-client/pages/building-inspection/component/inspection-document/name-list-upload-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/photo-album-popup.d.ts +0 -41
- package/dist-client/pages/building-inspection/component/photo-album-popup.js +0 -406
- package/dist-client/pages/building-inspection/component/photo-album-popup.js.map +0 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklogQuery = void 0;
|
|
4
|
+
exports.generateDailyWorklogDocumentNo = generateDailyWorklogDocumentNo;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
10
|
+
const checklist_1 = require("../checklist/checklist");
|
|
11
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
12
|
+
const env_1 = require("@things-factory/env");
|
|
13
|
+
const moment_timezone_1 = tslib_1.__importDefault(require("moment-timezone"));
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const projectType = env_1.config.get('projectType', building_inspection_1.ProjectType.DSSP);
|
|
16
|
+
let BuildingInspectionDailyWorklogQuery = class BuildingInspectionDailyWorklogQuery {
|
|
17
|
+
/**
|
|
18
|
+
* 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
|
|
19
|
+
*/
|
|
20
|
+
async buildingInspectionDailyWorklogByProjectIdAndDate(projectId, date, context) {
|
|
21
|
+
const repository = (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
|
|
22
|
+
const worklogs = await repository.findOne({ where: { projectId, date } });
|
|
23
|
+
// 워크로그가 존재하면 해당 데이터를 반환
|
|
24
|
+
if (worklogs)
|
|
25
|
+
return worklogs;
|
|
26
|
+
// 존재하지 않으면 새 문서번호와 검측되지 않은 검측 데이터를 반환
|
|
27
|
+
const requestDate = (0, moment_timezone_1.default)(date).format('YYYY-MM-DD');
|
|
28
|
+
const documentNo = await generateDailyWorklogDocumentNo(projectId);
|
|
29
|
+
const buildingInspections = await (0, shell_1.getRepository)('projects')
|
|
30
|
+
.createQueryBuilder('p')
|
|
31
|
+
.select('bi.id', 'buildingInspectionId')
|
|
32
|
+
.addSelect('c.location', 'location')
|
|
33
|
+
.addSelect('c.construction_type', 'constructionType')
|
|
34
|
+
.leftJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')
|
|
35
|
+
.leftJoin('buildings', 'b', 'b.building_complex_id = bc.id')
|
|
36
|
+
.leftJoin('building_levels', 'bl', 'bl.building_id = b.id')
|
|
37
|
+
.leftJoin('building_inspections', 'bi', 'bi.building_level_id = bl.id')
|
|
38
|
+
.leftJoin('checklists', 'c', 'bi.checklist_id = c.id')
|
|
39
|
+
.where('p.id = :projectId', { projectId })
|
|
40
|
+
.andWhere('bi.project_type = :projectType', { projectType })
|
|
41
|
+
.andWhere('bi.worklog_id IS NULL')
|
|
42
|
+
.andWhere('c.inspection_result_updated_at IS NOT NULL') // 검측 결과 요청서가 생성된 경우
|
|
43
|
+
.andWhere('bi.request_date <= :requestDate', { requestDate })
|
|
44
|
+
.getRawMany();
|
|
45
|
+
// 선택된 검측 정보들의 정보 셋팅하여 신규 일일 업무일지에 기본 셋팅
|
|
46
|
+
const worklogsData = buildingInspections.map(inspection => ({
|
|
47
|
+
constructionType: inspection.constructionType,
|
|
48
|
+
supervisoryTitle: inspection.constructionType,
|
|
49
|
+
supervisorContent: `${inspection.location} - ${inspection.constructionType} 검측 완료`
|
|
50
|
+
}));
|
|
51
|
+
const buildingInspectionsIds = buildingInspections.map(inspection => ({
|
|
52
|
+
id: inspection.buildingInspectionId
|
|
53
|
+
}));
|
|
54
|
+
return { documentNo, worklogs: worklogsData, buildingInspections: buildingInspectionsIds };
|
|
55
|
+
}
|
|
56
|
+
async dailyWorklogDatesOfProject(projectId, startDate, endDate, context) {
|
|
57
|
+
const result = await (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog).find({
|
|
58
|
+
where: { projectId, date: (0, typeorm_1.Between)(startDate, endDate) },
|
|
59
|
+
order: { date: 'ASC' }
|
|
60
|
+
});
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
async domain(worklog) {
|
|
64
|
+
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: worklog.domainId });
|
|
65
|
+
}
|
|
66
|
+
async updater(worklog) {
|
|
67
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.updaterId });
|
|
68
|
+
}
|
|
69
|
+
async creator(worklog) {
|
|
70
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.creatorId });
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery;
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, type_graphql_1.Query)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
76
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
|
|
77
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('date')),
|
|
78
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
79
|
+
tslib_1.__metadata("design:type", Function),
|
|
80
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Object]),
|
|
81
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
82
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "buildingInspectionDailyWorklogByProjectIdAndDate", null);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, type_graphql_1.Query)(returns => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
85
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
|
|
86
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('startDate')),
|
|
87
|
+
tslib_1.__param(2, (0, type_graphql_1.Arg)('endDate')),
|
|
88
|
+
tslib_1.__param(3, (0, type_graphql_1.Ctx)()),
|
|
89
|
+
tslib_1.__metadata("design:type", Function),
|
|
90
|
+
tslib_1.__metadata("design:paramtypes", [String, String, String, Object]),
|
|
91
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
92
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "dailyWorklogDatesOfProject", null);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
95
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
96
|
+
tslib_1.__metadata("design:type", Function),
|
|
97
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
98
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
99
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "domain", null);
|
|
100
|
+
tslib_1.__decorate([
|
|
101
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
102
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
103
|
+
tslib_1.__metadata("design:type", Function),
|
|
104
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
105
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
106
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "updater", null);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
109
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
110
|
+
tslib_1.__metadata("design:type", Function),
|
|
111
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
112
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
113
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "creator", null);
|
|
114
|
+
exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery = tslib_1.__decorate([
|
|
115
|
+
(0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
116
|
+
], BuildingInspectionDailyWorklogQuery);
|
|
117
|
+
async function generateDailyWorklogDocumentNo(projectId) {
|
|
118
|
+
// 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1
|
|
119
|
+
const project = await (0, shell_1.getRepository)('projects').findOne({ where: { id: projectId } });
|
|
120
|
+
const naming = (project === null || project === void 0 ? void 0 : project.documentNaming) || '';
|
|
121
|
+
const latest = await (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
122
|
+
.createQueryBuilder('d')
|
|
123
|
+
.where('d.project_id = :projectId', { projectId })
|
|
124
|
+
.andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${checklist_1.DocumentNoType.DAILY_WORKLOG}-%` })
|
|
125
|
+
.orderBy('d.created_at', 'DESC')
|
|
126
|
+
.getOne();
|
|
127
|
+
let sequence = '00001';
|
|
128
|
+
if (latest === null || latest === void 0 ? void 0 : latest.documentNo) {
|
|
129
|
+
const match = latest.documentNo.match(/\-(\d{5})호$/);
|
|
130
|
+
if (match)
|
|
131
|
+
sequence = (Number(match[1]) + 1).toString().padStart(5, '0');
|
|
132
|
+
}
|
|
133
|
+
return `${naming} 검측 제04-${sequence}호`;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=building-inspection-daily-worklog-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog-query.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.ts"],"names":[],"mappings":";;;AA6FA,wEAmBC;;AAhHD,+CAA6E;AAC7E,iDAA6D;AAC7D,yDAAgD;AAChD,2FAAoF;AACpF,sDAAuD;AACvD,oFAAwE;AACxE,6CAA4C;AAC5C,8EAAoC;AACpC,qCAAiC;AAEjC,MAAM,WAAW,GAAG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,GAAG,CAAA;AACxC,CAAC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Ctx } from 'type-graphql'\nimport { Domain, getRepository } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { DocumentNoType } from '../checklist/checklist'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { config } from '@things-factory/env'\nimport moment from 'moment-timezone'\nimport { Between } from 'typeorm'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogQuery {\n /**\n * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환\n */\n @Query(returns => BuildingInspectionDailyWorklog, { nullable: true })\n async buildingInspectionDailyWorklogByProjectIdAndDate(\n @Arg('projectId') projectId: string,\n @Arg('date') date: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const repository = getRepository(BuildingInspectionDailyWorklog)\n const worklogs = await repository.findOne({ where: { projectId, date } })\n\n // 워크로그가 존재하면 해당 데이터를 반환\n if (worklogs) return worklogs\n\n // 존재하지 않으면 새 문서번호와 검측되지 않은 검측 데이터를 반환\n const requestDate = moment(date).format('YYYY-MM-DD')\n const documentNo = await generateDailyWorklogDocumentNo(projectId)\n const buildingInspections = await getRepository('projects')\n .createQueryBuilder('p')\n .select('bi.id', 'buildingInspectionId')\n .addSelect('c.location', 'location')\n .addSelect('c.construction_type', 'constructionType')\n .leftJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')\n .leftJoin('buildings', 'b', 'b.building_complex_id = bc.id')\n .leftJoin('building_levels', 'bl', 'bl.building_id = b.id')\n .leftJoin('building_inspections', 'bi', 'bi.building_level_id = bl.id')\n .leftJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .where('p.id = :projectId', { projectId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .andWhere('bi.worklog_id IS NULL')\n .andWhere('c.inspection_result_updated_at IS NOT NULL') // 검측 결과 요청서가 생성된 경우\n .andWhere('bi.request_date <= :requestDate', { requestDate })\n .getRawMany()\n\n // 선택된 검측 정보들의 정보 셋팅하여 신규 일일 업무일지에 기본 셋팅\n const worklogsData = buildingInspections.map(inspection => ({\n constructionType: inspection.constructionType,\n supervisoryTitle: inspection.constructionType,\n supervisorContent: `${inspection.location} - ${inspection.constructionType} 검측 완료`\n }))\n const buildingInspectionsIds = buildingInspections.map(inspection => ({\n id: inspection.buildingInspectionId\n }))\n\n return { documentNo, worklogs: worklogsData, buildingInspections: buildingInspectionsIds } as BuildingInspectionDailyWorklog\n }\n\n @Query(returns => [BuildingInspectionDailyWorklog])\n async dailyWorklogDatesOfProject(\n @Arg('projectId') projectId: string,\n @Arg('startDate') startDate: string,\n @Arg('endDate') endDate: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog[]> {\n const result = await getRepository(BuildingInspectionDailyWorklog).find({\n where: { projectId, date: Between(startDate, endDate) },\n order: { date: 'ASC' }\n })\n\n return result\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() worklog: BuildingInspectionDailyWorklog): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: worklog.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.creatorId })\n }\n}\n\nexport async function generateDailyWorklogDocumentNo(projectId: string): Promise<string> {\n // 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1\n const project = await getRepository<any>('projects').findOne({ where: { id: projectId } })\n const naming: string = project?.documentNaming || ''\n\n const latest = await getRepository(BuildingInspectionDailyWorklog)\n .createQueryBuilder('d')\n .where('d.project_id = :projectId', { projectId })\n .andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${DocumentNoType.DAILY_WORKLOG}-%` })\n .orderBy('d.created_at', 'DESC')\n .getOne()\n\n let sequence = '00001'\n if (latest?.documentNo) {\n const match = latest.documentNo.match(/\\-(\\d{5})호$/)\n if (match) sequence = (Number(match[1]) + 1).toString().padStart(5, '0')\n }\n\n return `${naming} 검측 제04-${sequence}호`\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
export declare class BuildingInspectionDailyWorklogNew {
|
|
3
|
+
projectId: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
worklogs?: any;
|
|
6
|
+
memo?: string;
|
|
7
|
+
directiveMemo?: string;
|
|
8
|
+
buildingInspectionIds?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildingInspectionDailyWorklogPatch {
|
|
11
|
+
id?: string;
|
|
12
|
+
worklogs?: any;
|
|
13
|
+
memo?: string;
|
|
14
|
+
directiveMemo?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class BuildingInspectionDailyWorklogList {
|
|
17
|
+
items: BuildingInspectionDailyWorklog[];
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklogList = exports.BuildingInspectionDailyWorklogPatch = exports.BuildingInspectionDailyWorklogNew = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const shell_1 = require("@things-factory/shell");
|
|
7
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
8
|
+
let BuildingInspectionDailyWorklogNew = class BuildingInspectionDailyWorklogNew {
|
|
9
|
+
};
|
|
10
|
+
exports.BuildingInspectionDailyWorklogNew = BuildingInspectionDailyWorklogNew;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
13
|
+
tslib_1.__metadata("design:type", String)
|
|
14
|
+
], BuildingInspectionDailyWorklogNew.prototype, "projectId", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], BuildingInspectionDailyWorklogNew.prototype, "date", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", Object)
|
|
22
|
+
], BuildingInspectionDailyWorklogNew.prototype, "worklogs", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BuildingInspectionDailyWorklogNew.prototype, "memo", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], BuildingInspectionDailyWorklogNew.prototype, "directiveMemo", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
33
|
+
tslib_1.__metadata("design:type", Array)
|
|
34
|
+
], BuildingInspectionDailyWorklogNew.prototype, "buildingInspectionIds", void 0);
|
|
35
|
+
exports.BuildingInspectionDailyWorklogNew = BuildingInspectionDailyWorklogNew = tslib_1.__decorate([
|
|
36
|
+
(0, type_graphql_1.InputType)()
|
|
37
|
+
], BuildingInspectionDailyWorklogNew);
|
|
38
|
+
let BuildingInspectionDailyWorklogPatch = class BuildingInspectionDailyWorklogPatch {
|
|
39
|
+
};
|
|
40
|
+
exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch;
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "id", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", Object)
|
|
48
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "worklogs", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "memo", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
tslib_1.__metadata("design:type", String)
|
|
56
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "directiveMemo", void 0);
|
|
57
|
+
exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch = tslib_1.__decorate([
|
|
58
|
+
(0, type_graphql_1.InputType)()
|
|
59
|
+
], BuildingInspectionDailyWorklogPatch);
|
|
60
|
+
let BuildingInspectionDailyWorklogList = class BuildingInspectionDailyWorklogList {
|
|
61
|
+
};
|
|
62
|
+
exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList;
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)(type => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
65
|
+
tslib_1.__metadata("design:type", Array)
|
|
66
|
+
], BuildingInspectionDailyWorklogList.prototype, "items", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
69
|
+
tslib_1.__metadata("design:type", Number)
|
|
70
|
+
], BuildingInspectionDailyWorklogList.prototype, "total", void 0);
|
|
71
|
+
exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList = tslib_1.__decorate([
|
|
72
|
+
(0, type_graphql_1.ObjectType)()
|
|
73
|
+
], BuildingInspectionDailyWorklogList);
|
|
74
|
+
//# sourceMappingURL=building-inspection-daily-worklog-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iDAAoD;AACpD,2FAAoF;AAG7E,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CAkB7C,CAAA;AAlBY,8EAAiC;AAE5C;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oEACT;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DACd;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEAClC;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACJ;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACZ;4CAjBrB,iCAAiC;IAD7C,IAAA,wBAAS,GAAE;GACC,iCAAiC,CAkB7C;AAGM,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;CAY/C,CAAA;AAZY,kFAAmC;AAE9C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DAC5B;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAClC;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0EACJ;8CAXX,mCAAmC;IAD/C,IAAA,wBAAS,GAAE;GACC,mCAAmC,CAY/C;AAGM,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;CAM9C,CAAA;AANY,gFAAkC;AAE7C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kEAA8B,CAAC,CAAC;;iEACT;AAGvC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;iEACN;6CALF,kCAAkC;IAD9C,IAAA,yBAAU,GAAE;GACA,kCAAkC,CAM9C","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ScalarObject } from '@things-factory/shell'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\n\n@InputType()\nexport class BuildingInspectionDailyWorklogNew {\n @Field({ nullable: false })\n projectId!: string\n\n @Field({ nullable: false })\n date?: string\n\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: any\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n directiveMemo?: string\n\n @Field(type => [String], { nullable: true })\n buildingInspectionIds?: string[]\n}\n\n@InputType()\nexport class BuildingInspectionDailyWorklogPatch {\n @Field(type => ID, { nullable: false })\n id?: string\n\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: any\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n directiveMemo?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionDailyWorklogList {\n @Field(type => [BuildingInspectionDailyWorklog])\n items: BuildingInspectionDailyWorklog[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
4
|
+
export interface Worklog {
|
|
5
|
+
constructionType: string;
|
|
6
|
+
supervisoryTitle: string;
|
|
7
|
+
supervisorContent: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class BuildingInspectionDailyWorklog {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
documentNo?: string;
|
|
15
|
+
date?: string;
|
|
16
|
+
worklogs?: Worklog[];
|
|
17
|
+
memo?: string;
|
|
18
|
+
directiveMemo?: string;
|
|
19
|
+
buildingInspections?: BuildingInspection[];
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
updatedAt?: Date;
|
|
22
|
+
deletedAt?: Date;
|
|
23
|
+
creator?: User;
|
|
24
|
+
creatorId?: string;
|
|
25
|
+
updater?: User;
|
|
26
|
+
updaterId?: string;
|
|
27
|
+
}
|
package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklog = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
10
|
+
let BuildingInspectionDailyWorklog = class BuildingInspectionDailyWorklog {
|
|
11
|
+
};
|
|
12
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], BuildingInspectionDailyWorklog.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
20
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
22
|
+
], BuildingInspectionDailyWorklog.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BuildingInspectionDailyWorklog.prototype, "domainId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 ID' }),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], BuildingInspectionDailyWorklog.prototype, "projectId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조
|
|
34
|
+
,
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], BuildingInspectionDailyWorklog.prototype, "documentNo", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '작성 날짜' }),
|
|
40
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], BuildingInspectionDailyWorklog.prototype, "date", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '작업사항' }),
|
|
45
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", Array)
|
|
47
|
+
], BuildingInspectionDailyWorklog.prototype, "worklogs", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '특기사항' }),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], BuildingInspectionDailyWorklog.prototype, "memo", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '지적 사항 및 처리결과' }),
|
|
55
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], BuildingInspectionDailyWorklog.prototype, "directiveMemo", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.OneToMany)(type => building_inspection_1.BuildingInspection, buildingInspection => buildingInspection.worklog),
|
|
60
|
+
(0, type_graphql_1.Field)(type => [building_inspection_1.BuildingInspection], { nullable: true }),
|
|
61
|
+
tslib_1.__metadata("design:type", Array)
|
|
62
|
+
], BuildingInspectionDailyWorklog.prototype, "buildingInspections", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
66
|
+
tslib_1.__metadata("design:type", Date)
|
|
67
|
+
], BuildingInspectionDailyWorklog.prototype, "createdAt", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
+
tslib_1.__metadata("design:type", Date)
|
|
72
|
+
], BuildingInspectionDailyWorklog.prototype, "updatedAt", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
75
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
76
|
+
tslib_1.__metadata("design:type", Date)
|
|
77
|
+
], BuildingInspectionDailyWorklog.prototype, "deletedAt", void 0);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
80
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
81
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
82
|
+
], BuildingInspectionDailyWorklog.prototype, "creator", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.creator),
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
86
|
+
], BuildingInspectionDailyWorklog.prototype, "creatorId", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
89
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
90
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
91
|
+
], BuildingInspectionDailyWorklog.prototype, "updater", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.updater),
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
95
|
+
], BuildingInspectionDailyWorklog.prototype, "updaterId", void 0);
|
|
96
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog = tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.Entity)({ comment: '일일 업무일지' }),
|
|
98
|
+
(0, typeorm_1.Index)('ix_building_inspection_daily_worklog_0', (worklog) => [worklog.projectId, worklog.date], {
|
|
99
|
+
unique: true,
|
|
100
|
+
where: '"deleted_at" IS NULL'
|
|
101
|
+
}),
|
|
102
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for BuildingInspectionDailyWorklog' })
|
|
103
|
+
], BuildingInspectionDailyWorklog);
|
|
104
|
+
//# sourceMappingURL=building-inspection-daily-worklog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAChD,oFAA+E;AAcxE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAiE1C,CAAA;AAjEY,wEAA8B;AAGhC;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACnB;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;gEACvD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iEACT;AAIlB;IAFC,IAA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,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;GAC5D,8BAA8B,CAiE1C","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n OneToMany\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\nexport interface Worklog {\n constructionType: string\n supervisoryTitle: string\n supervisorContent: string\n}\n\n@Entity({ comment: '일일 업무일지' })\n@Index('ix_building_inspection_daily_worklog_0', (worklog: BuildingInspectionDailyWorklog) => [worklog.projectId, worklog.date], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for BuildingInspectionDailyWorklog' })\nexport class BuildingInspectionDailyWorklog {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId!: string\n\n @Column({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ type: 'date', nullable: true, comment: '작성 날짜' })\n @Field(type => String, { nullable: true })\n date?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '작업사항' })\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: Worklog[]\n\n @Column({ nullable: true, comment: '특기사항' })\n @Field({ nullable: true })\n memo?: string\n\n @Column({ nullable: true, comment: '지적 사항 및 처리결과' })\n @Field({ nullable: true })\n directiveMemo?: string\n\n @OneToMany(type => BuildingInspection, buildingInspection => buildingInspection.worklog)\n @Field(type => [BuildingInspection], { nullable: true })\n buildingInspections?: BuildingInspection[]\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
import { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query';
|
|
3
|
+
import { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation';
|
|
4
|
+
export declare const entities: (typeof BuildingInspectionDailyWorklog)[];
|
|
5
|
+
export declare const resolvers: (typeof BuildingInspectionDailyWorklogQuery | typeof BuildingInspectionDailyWorklogMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
5
|
+
const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
|
|
6
|
+
const building_inspection_daily_worklog_mutation_1 = require("./building-inspection-daily-worklog-mutation");
|
|
7
|
+
exports.entities = [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog];
|
|
8
|
+
exports.resolvers = [building_inspection_daily_worklog_query_1.BuildingInspectionDailyWorklogQuery, building_inspection_daily_worklog_mutation_1.BuildingInspectionDailyWorklogMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/index.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,uGAA+F;AAC/F,6GAAqG;AAExF,QAAA,QAAQ,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC3C,QAAA,SAAS,GAAG,CAAC,6EAAmC,EAAE,mFAAsC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query'\nimport { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation'\n\nexport const entities = [BuildingInspectionDailyWorklog]\nexport const resolvers = [BuildingInspectionDailyWorklogQuery, BuildingInspectionDailyWorklogMutation]\n\n\n"]}
|
|
@@ -9,7 +9,8 @@ export declare enum ChecklistReferenceType {
|
|
|
9
9
|
export declare enum DocumentNoType {
|
|
10
10
|
CHECKLIST = "01",// 체크리스트
|
|
11
11
|
INSPECTION_REQUEST = "02",// 검측 요청서
|
|
12
|
-
INSPECTION_RESULT = "03"
|
|
12
|
+
INSPECTION_RESULT = "03",// 검측 결과 통보서
|
|
13
|
+
DAILY_WORKLOG = "04"
|
|
13
14
|
}
|
|
14
15
|
export declare enum InspectionResultStatus {
|
|
15
16
|
PASS = "PASS",// 합격
|
|
@@ -49,10 +50,12 @@ export declare class Checklist {
|
|
|
49
50
|
buildingInspection?: BuildingInspection;
|
|
50
51
|
inspectionRequestDocumentNo?: string;
|
|
51
52
|
inspectionRequestMemo?: string;
|
|
53
|
+
inspectionRequestUpdatedAt?: Date;
|
|
52
54
|
inspectionResultDocumentNo?: string;
|
|
53
55
|
inspectionResultMemo?: string;
|
|
54
56
|
inspectionResultStatus?: InspectionResultStatus;
|
|
55
57
|
inspectionResultType?: InspectionResultType;
|
|
58
|
+
inspectionResultUpdatedAt?: Date;
|
|
56
59
|
createdAt?: Date;
|
|
57
60
|
updatedAt?: Date;
|
|
58
61
|
deletedAt?: Date;
|
|
@@ -17,7 +17,8 @@ var DocumentNoType;
|
|
|
17
17
|
(function (DocumentNoType) {
|
|
18
18
|
DocumentNoType["CHECKLIST"] = "01";
|
|
19
19
|
DocumentNoType["INSPECTION_REQUEST"] = "02";
|
|
20
|
-
DocumentNoType["INSPECTION_RESULT"] = "03";
|
|
20
|
+
DocumentNoType["INSPECTION_RESULT"] = "03";
|
|
21
|
+
DocumentNoType["DAILY_WORKLOG"] = "04"; // 일일 업무일지
|
|
21
22
|
})(DocumentNoType || (exports.DocumentNoType = DocumentNoType = {}));
|
|
22
23
|
var InspectionResultStatus;
|
|
23
24
|
(function (InspectionResultStatus) {
|
|
@@ -186,6 +187,11 @@ tslib_1.__decorate([
|
|
|
186
187
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
187
188
|
tslib_1.__metadata("design:type", String)
|
|
188
189
|
], Checklist.prototype, "inspectionRequestMemo", void 0);
|
|
190
|
+
tslib_1.__decorate([
|
|
191
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 요청 시간' }),
|
|
192
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
193
|
+
tslib_1.__metadata("design:type", Date)
|
|
194
|
+
], Checklist.prototype, "inspectionRequestUpdatedAt", void 0);
|
|
189
195
|
tslib_1.__decorate([
|
|
190
196
|
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조
|
|
191
197
|
,
|
|
@@ -193,20 +199,25 @@ tslib_1.__decorate([
|
|
|
193
199
|
tslib_1.__metadata("design:type", String)
|
|
194
200
|
], Checklist.prototype, "inspectionResultDocumentNo", void 0);
|
|
195
201
|
tslib_1.__decorate([
|
|
196
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '지시 사항' }),
|
|
202
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' }),
|
|
197
203
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
198
204
|
tslib_1.__metadata("design:type", String)
|
|
199
205
|
], Checklist.prototype, "inspectionResultMemo", void 0);
|
|
200
206
|
tslib_1.__decorate([
|
|
201
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 여부' }),
|
|
207
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' }),
|
|
202
208
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
203
209
|
tslib_1.__metadata("design:type", String)
|
|
204
210
|
], Checklist.prototype, "inspectionResultStatus", void 0);
|
|
205
211
|
tslib_1.__decorate([
|
|
206
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 타입' }),
|
|
212
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' }),
|
|
207
213
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
208
214
|
tslib_1.__metadata("design:type", String)
|
|
209
215
|
], Checklist.prototype, "inspectionResultType", void 0);
|
|
216
|
+
tslib_1.__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' }),
|
|
218
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
219
|
+
tslib_1.__metadata("design:type", Date)
|
|
220
|
+
], Checklist.prototype, "inspectionResultUpdatedAt", void 0);
|
|
210
221
|
tslib_1.__decorate([
|
|
211
222
|
(0, typeorm_1.CreateDateColumn)(),
|
|
212
223
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,yDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAC/E,oFAAwE;AAExE,IAAY,sBA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gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;0CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;;4CACtC;oBAvJP,SAAS;IAHrB,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC5B,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IACjI,IAAA,yBAAU,GAAE;GACA,SAAS,CAwJrB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { ProjectType } from '../building-inspection/building-inspection'\n\nexport enum ChecklistReferenceType {\n INSPECTION = 'INSPECTION', // 검측\n TASK = 'TASK' // 공정표\n}\n\nexport enum DocumentNoType {\n CHECKLIST = '01', // 체크리스트\n INSPECTION_REQUEST = '02', // 검측 요청서\n INSPECTION_RESULT = '03' // 검측 결과 통보서\n}\n\nexport enum InspectionResultStatus {\n PASS = 'PASS', // 합격\n FAIL = 'FAIL' // 불합격\n}\n\nexport enum InspectionResultType {\n GENERAL = 'GENERAL', // 일반\n FOCUS = 'FOCUS', // 중점\n CONCEALED_WORK = 'CONCEALED_WORK' // 매몰부위\n}\n\nregisterEnumType(ChecklistReferenceType, {\n name: 'ChecklistReferenceType',\n description: '체크리스트 참조 타입'\n})\n\nregisterEnumType(DocumentNoType, {\n name: 'DocumentNoType',\n description: '문서 번호 타입'\n})\n\nregisterEnumType(InspectionResultStatus, {\n name: 'InspectionResultStatus',\n description: '검측 결과 상태'\n})\n\nregisterEnumType(InspectionResultType, {\n name: 'InspectionResultType',\n description: '검측 결과 타입'\n})\n\n@Entity({ comment: '체크리스트' })\n@Index('ix_checklist_1', (checklist: Checklist) => [checklist.documentNo, checklist.createdAt], { where: '\"deleted_at\" IS NULL' })\n@ObjectType()\nexport class Checklist {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: ChecklistReferenceType.INSPECTION })\n @Field({ nullable: true })\n checklistReferenceType?: ChecklistReferenceType\n\n @Column({ nullable: true, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: true, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: true, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: true, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.taskSupervisory)\n taskSupervisoryId?: string\n\n // 체크리스트 아이템 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItem, checklistItem => checklistItem.checklist)\n @Field(() => [ChecklistItem])\n checklistItems?: ChecklistItem[]\n\n // 검측 정보 (1:1 하위 테이블 참조)\n @OneToOne(() => BuildingInspection, buildingInspection => buildingInspection.checklist)\n @Field(() => BuildingInspection)\n buildingInspection?: BuildingInspection\n\n @Column({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionRequestDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 검측 사항' })\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionResultDocumentNo?: string\n\n @Column({ nullable: true, comment: '지시 사항' })\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 여부' })\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Column({ nullable: true, comment: '검측 결과 타입' })\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklist: Checklist) => checklist.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklist: Checklist) => checklist.updater)\n updaterId?: string\n}\n"]}
|
|
1
|
+
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,yDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAC/E,oFAAwE;AAExE,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,uCAAa,CAAA,CAAC,MAAM;AACtB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,kCAAgB,CAAA;IAChB,2CAAyB,CAAA;IACzB,0CAAwB,CAAA;IACxB,sCAAoB,CAAA,CAAC,UAAU;AACjC,CAAC,EALW,cAAc,8BAAd,cAAc,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C,SAAS,CAAC,OAAO,CAAC;;4CACtC;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;0CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;;4CACtC;oBA/JP,SAAS;IAHrB,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC5B,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IACjI,IAAA,yBAAU,GAAE;GACA,SAAS,CAgKrB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { ProjectType } from '../building-inspection/building-inspection'\n\nexport enum ChecklistReferenceType {\n INSPECTION = 'INSPECTION', // 검측\n TASK = 'TASK' // 공정표\n}\n\nexport enum DocumentNoType {\n CHECKLIST = '01', // 체크리스트\n INSPECTION_REQUEST = '02', // 검측 요청서\n INSPECTION_RESULT = '03', // 검측 결과 통보서\n DAILY_WORKLOG = '04' // 일일 업무일지\n}\n\nexport enum InspectionResultStatus {\n PASS = 'PASS', // 합격\n FAIL = 'FAIL' // 불합격\n}\n\nexport enum InspectionResultType {\n GENERAL = 'GENERAL', // 일반\n FOCUS = 'FOCUS', // 중점\n CONCEALED_WORK = 'CONCEALED_WORK' // 매몰부위\n}\n\nregisterEnumType(ChecklistReferenceType, {\n name: 'ChecklistReferenceType',\n description: '체크리스트 참조 타입'\n})\n\nregisterEnumType(DocumentNoType, {\n name: 'DocumentNoType',\n description: '문서 번호 타입'\n})\n\nregisterEnumType(InspectionResultStatus, {\n name: 'InspectionResultStatus',\n description: '검측 결과 상태'\n})\n\nregisterEnumType(InspectionResultType, {\n name: 'InspectionResultType',\n description: '검측 결과 타입'\n})\n\n@Entity({ comment: '체크리스트' })\n@Index('ix_checklist_1', (checklist: Checklist) => [checklist.documentNo, checklist.createdAt], { where: '\"deleted_at\" IS NULL' })\n@ObjectType()\nexport class Checklist {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: ChecklistReferenceType.INSPECTION })\n @Field({ nullable: true })\n checklistReferenceType?: ChecklistReferenceType\n\n @Column({ nullable: true, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: true, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: true, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: true, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.taskSupervisory)\n taskSupervisoryId?: string\n\n // 체크리스트 아이템 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItem, checklistItem => checklistItem.checklist)\n @Field(() => [ChecklistItem])\n checklistItems?: ChecklistItem[]\n\n // 검측 정보 (1:1 하위 테이블 참조)\n @OneToOne(() => BuildingInspection, buildingInspection => buildingInspection.checklist)\n @Field(() => BuildingInspection)\n buildingInspection?: BuildingInspection\n\n @Column({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionRequestDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 검측 사항' })\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 요청 시간' })\n @Field({ nullable: true })\n inspectionRequestUpdatedAt?: Date\n\n @Column({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionResultDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' })\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' })\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' })\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' })\n @Field({ nullable: true })\n inspectionResultUpdatedAt?: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklist: Checklist) => checklist.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklist: Checklist) => checklist.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -10,7 +10,8 @@ export * from './checklist-template/checklist-template';
|
|
|
10
10
|
export * from './checklist-template-item/checklist-template-item';
|
|
11
11
|
export * from './building-inspection/building-inspection';
|
|
12
12
|
export * from './building-inspection/building-inspection-type';
|
|
13
|
-
export
|
|
13
|
+
export * from './building-inspection-daily-worklog/building-inspection-daily-worklog';
|
|
14
|
+
export declare const entities: (typeof import("./building-inspection-daily-worklog/building-inspection-daily-worklog").BuildingInspectionDailyWorklog | typeof import("./action-plan/action-plan").ActionPlan | typeof import("./issue/issue").Issue | typeof import("./project-report/project-report").ProjectReport | typeof import("./supervisor/supervisor").Supervisor | typeof import("./checklist/checklist").Checklist | typeof import("./checklist/checklist-history").ChecklistHistory | typeof import("./checklist-item/checklist-item").ChecklistItem | typeof import("./checklist-item-comment/checklist-item-comment").ChecklistItemComment | typeof import("./checklist-type/checklist-type").ChecklistType | typeof import("./checklist-template-item/checklist-template-item").ChecklistTemplateItem | typeof import("./checklist-template/checklist-template").ChecklistTemplate | typeof import("./building-inspection/building-inspection").BuildingInspection | typeof import("./building-inspection/building-inspection-history").BuildingInspectionHistory)[];
|
|
14
15
|
export declare const schema: {
|
|
15
16
|
resolverClasses: typeof import("./checklist-item/checklist-item-mutation").ChecklistItemMutation[];
|
|
16
17
|
};
|