summaryrefslogtreecommitdiff
path: root/lib/docu-list-rule/document-class/service.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-09-30 19:50:09 +0900
committerjoonhoekim <26rote@gmail.com>2025-09-30 19:50:09 +0900
commitf02773ab37bd911b1f3a81a93a7d5aaffd04bcad (patch)
tree5714e9501586547d761db2086de3bb82fddf13db /lib/docu-list-rule/document-class/service.ts
parent2c02afd48a4d9276a4f5c132e088540a578d0972 (diff)
(김준회) 스테이지 선택 로직 오류 수정 및 스크롤 처리
Diffstat (limited to 'lib/docu-list-rule/document-class/service.ts')
-rw-r--r--lib/docu-list-rule/document-class/service.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/docu-list-rule/document-class/service.ts b/lib/docu-list-rule/document-class/service.ts
index 378c3215..29ed2642 100644
--- a/lib/docu-list-rule/document-class/service.ts
+++ b/lib/docu-list-rule/document-class/service.ts
@@ -593,4 +593,29 @@ export async function deleteDocumentClassOption(id: number) {
error: "Failed to delete document class option"
}
}
+}
+
+// 프로젝트 일정 설정을 가져오는 함수
+export async function getProjectKindScheduleSetting(projectCode: string): Promise<ScheduleSetting[]> {
+ try {
+ const response = await fetch(
+ `http://60.100.99.217/DDP/Services/VNDRService.svc/GetProjectKindScheduleSetting?PROJ_NO=${projectCode}`,
+ {
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ }
+ )
+
+ if (!response.ok) {
+ throw new Error('Failed to fetch schedule settings')
+ }
+
+ const data = await response.json()
+ return data.GetProjectKindScheduleSettingResult || []
+ } catch (error) {
+ console.error('Error fetching schedule settings:', error)
+ return []
+ }
} \ No newline at end of file