Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/bizproc/debugger/src/session/ |
Upload File : |
import {Type, Text} from 'main.core'; import {DocumentOptions} from './document-options'; import {Helper} from '../helper'; export class Document { #id: number; #sessionId: string; #documentId: string; #categoryId: number; #dateExpire: Date; #documentSigned: string = ''; constructor(options: DocumentOptions) { this.#id = parseInt(options.Id) >= 0 ? parseInt(options.Id) : 0; this.#sessionId = Type.isStringFilled(options.SessionId) ? options.SessionId : ''; this.#documentId = Type.isStringFilled(options.DocumentId) ? options.DocumentId : ''; this.#categoryId = Text.toInteger(options.DocumentCategoryId); this.#dateExpire = Helper.toDate(options.DateExpire); if (options.DocumentSigned) { this.documentSigned = options.DocumentSigned; } } get documentId(): string { return this.#documentId; } get categoryId(): number { return this.#categoryId; } set categoryId(categoryId: number) { this.#categoryId = Type.isNumber(categoryId) ? categoryId : 0; } get documentSigned(): string { return this.#documentSigned; } set documentSigned(documentSigned: string) { this.#documentSigned = Type.isStringFilled(documentSigned) ? documentSigned : ''; } }