SystemDocumentListEntry - 범위가 지정됨, 전역

  • 릴리스 버전: Yokohama
  • 업데이트 날짜 2025년 01월 30일
  • 읽기6분
  • SystemDocumentListEntry API는 문서 목록 항목 [ds_document_list_entry] 테이블의 레코드 필드를 설정하기 위한 메서드를 제공합니다.

    이 API에는 플러그인(com.snc.platform_document_management)이 문서 관리 필요하며 sn_doc_services 네임스페이스 내에서 제공됩니다. 자세한 내용은 문서 서비스를 참조하십시오.

    이 API의 메서드를 사용하기 전에 해당 버전이 있는 문서를 추가하고 문서 목록을 만들어야 합니다.

    SystemDocumentListEntry - SystemDocumentListEntry(문자열 목록 ID)

    SystemDocumentListEntry 개체를 인스턴스화합니다.

    표 1. 매개변수
    이름 유형 설명
    listSysId 문자열 문서 목록 [ds_document_lists] 테이블에 있는 문서 목록 기록의 Sys_id입니다.
    표 2. 반환
    유형 설명
    안 함

    다음 예제에서는 SystemDocumentListEntry 개체를 인스턴스화하는 방법을 보여 줍니다.

    var docList = new sn_doc_services.SystemDocumentListEntry("<docListSysId>");

    SystemDocumentListEntry - description(문자열 설명)

    문서 목록 항목 기록의 설명 필드를 설정합니다.

    표 3. 매개변수
    이름 유형 설명
    설명 문자열 문서 목록 항목에 대한 설명입니다.
    표 4. 반환
    유형 설명
    안 함

    다음 예제에서는 생성자를 사용하여 제공된 문서 목록 항목에 설명을 추가하는 방법을 보여 줍니다. DocumentListEntryService API도 참조하십시오.

    var docListEntry = new sn_doc_services.SystemDocumentListEntry('21afddea2460fc10f877a6fed1c2b0dd');
    
    docListEntry.description('birth');
    
    var dlEntrySvc = new sn_doc_services.DocumentListEntryService();
    gs.info(JSON.stringify(dlEntrySvc.createDocumentListEntry(docListEntry), null, 2));
    출력:
    {
      "message": "Create List Entry , List Entry sysId : d3f0b13624e8fc10f877a6fed1c2b0d9is successful.",
      "request_id": "d3f0b13624e8fc10f877a6fed1c2b0d9",
      "status": "success"
    }

    SystemDocumentListEntry - 문서(문자열 문서 시스템 ID)

    문서 목록에 추가할 문서 템플릿을 지정합니다.

    문서를 템플릿으로 정의하는 방법:
    • SystemDocument – template() 메서드를 true로 설정하는 문서 개체를 정의합니다. DocumentService API의 메서드를 사용하여 문서 기록을 만들거나 업데이트합니다.
    • 문서 [ds_document] 테이블에 있는 문서의 템플릿 확인란을 선택합니다.
    지정된 문서 기록에 버전이 있어야 합니다. 다음 API를 사용하여 문서 버전을 정의하고 추가합니다.
    표 5. 매개변수
    이름 유형 설명
    문서 시스템 ID 문자열 문서 [ds_document] 테이블의 문서 기록 Sys_id. 지정된 문서는 템플릿이어야 하며 버전이 있어야 합니다.
    표 6. 반환
    유형 설명
    안 함

    다음 예제에서는 문서 템플릿을 문서 목록 항목으로 추가하는 방법을 보여 줍니다. 다른 살펴볼 내용 DocumentListEntryService API.

    var docListEntry = new sn_doc_services.SystemDocumentListEntry('21afddea2460fc10f877a6fed1c2b0dd');
    docListEntry.document("9acd7fea24587410f877a6fed1c2b060");
    docListEntry.description('birth certificate');
    
    var dlEntrySvc = new sn_doc_services.DocumentListEntryService();
    gs.info(JSON.stringify(dlEntrySvc.createDocumentListEntry(docListEntry), null, 2));
    출력:
    {
      "message": "Create List Entry , List Entry sysId : d3f0b13624e8fc10f877a6fed1c2b0d9is successful.",
      "request_id": "d3f0b13624e8fc10f877a6fed1c2b0d9",
      "status": "success"
    }

    SystemDocumentListEntry - documentList(문자열 listSysId)

    문서를 추가할 문서 목록을 지정합니다.

    주:
    또는 문서 목록을 SystemDocumentListEntry() 생성자의 매개 변수로 설정할 수 있습니다.
    다음 API를 사용하여 문서 목록을 정의하고 생성합니다.
    표 7. 매개변수
    이름 유형 설명
    listSysId 문자열 문서 목록 [ds_document_lists] 테이블에 있는 문서 목록 기록의 Sys_id입니다.
    표 8. 반환
    유형 설명
    안 함

    다음 예제에서는 문서를 추가할 문서 목록을 설정하는 방법을 보여 줍니다. 다른 살펴볼 내용 DocumentListEntryService API.

    var docListEntry = new sn_doc_services.SystemDocumentListEntry();
    
    docListEntry.documentList('21afddea2460fc10f877a6fed1c2b0dd');
    docListEntry.document('deaef1ce24103410f877a6fed1c2b085');
    docListEntry.description('passport');
    
    var dlEntrySvc = new sn_doc_services.DocumentListEntryService();
    gs.info(JSON.stringify(dlEntrySvc.createDocumentListEntry(docListEntry), null, 2));
    출력:
    {
      "message": "Create List Entry , List Entry sysId : c4ccaa8b24283050f877a6fed1c2b003is successful.",
      "request_id": "c4ccaa8b24283050f877a6fed1c2b003",
      "status": "success"
    }