GET api/Calendars/GetCalendarList?SelectedDate={SelectedDate}&vm={vm}&Page={Page}&PageSize={PageSize}&SearchString={SearchString}&Lang={Lang}

API này trả về thông tin lịch làm việc để hiển thị ở trang quản lý lịch (Canlendar).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SelectedDate

Ngày hiện đang chọn.

date

Required

vm

Kiểu hiển thị (0=Trong ngày, 1=trong tuần,2=trong tháng,3=trong quý,4=trong năm).

integer

Default value is 0

Page

Số trang hiện tại cần lấy. Mặc định là 1.

integer

Default value is 1

PageSize

Số lượng bài viết trên mỗi trang. Mặc định là 8.

integer

Default value is 8

SearchString

Chuỗi tìm kiếm để lọc danh sách bài viết theo tiêu đề hoặc nội dung.

string

Default value is

Lang

Ngôn ngữ của nội dung trả về. Có thể là "vi" (tiếng Việt) hoặc "en" (tiếng Anh). Mặc định là "vi".

string

Default value is vi

Body Parameters

None.

Response Information

Resource Description

Trả về một đối tượng chứa thông tin công việc lịch.

TCalendarListModel
NameDescriptionTypeAdditional information
SearchString

Xâu tìm kiếm.

string

None.

Page

Trang hiện tại đang lấy.

integer

None.

PageSize

Cỡ trang (số lượng bài viết trên mỗi trang).

integer

None.

PageCount

Tổng số trang.

integer

None.

RecordCount

Tổng số bản ghi.

integer

None.

CalendarItems

Danh sách các công việc lịch theo phạm vi chọn hiển thị

Collection of TCalendarBrief

None.

InvitedCalendarItems

Danh sách các công việc lịch được mời tham gia

Collection of TInviteCalendar

None.

JobMonthCount

Số công việc từng ngày trong tháng chứa ngày được chọn. Giá trị =0 nếu không có việc.

Collection of integer

None.

en

Ngôn ngữ đang áp dụng (1 - tiếng Anh).

integer

None.

CalendarDisplayTypeList

Danh sách kiểu hiển thị lịch để chọn

Collection of TIntIDList

None.

vm

Kiểu hiển thị (0=Trong ngày, 1=trong tuần,2=trong tháng,3=trong quý,4=trong năm).

integer

None.

SelectedDate

Ngày chọn

date

None.

UserID

ID người dùng hiện tại

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "SearchString": "sample string 1",
  "Page": 2,
  "PageSize": 3,
  "PageCount": 4,
  "RecordCount": 5,
  "CalendarItems": [
    {
      "$id": "2",
      "ID": 1,
      "Title": "sample string 2",
      "StartTime": "2026-01-09T22:10:16.1632449+07:00",
      "EndTime": "2026-01-09T22:10:16.1632449+07:00",
      "State": 5
    },
    {
      "$ref": "2"
    }
  ],
  "InvitedCalendarItems": [
    {
      "$id": "3",
      "ID": 1,
      "InviterName": "sample string 2",
      "Title": "sample string 3",
      "StartTime": "2026-01-09T22:10:16.1873447+07:00",
      "EndTime": "2026-01-09T22:10:16.1873447+07:00",
      "State": 6
    },
    {
      "$ref": "3"
    }
  ],
  "JobMonthCount": [
    1,
    2
  ],
  "en": 6,
  "CalendarDisplayTypeList": [
    {
      "$id": "4",
      "ID": 1,
      "Text": "sample string 2"
    },
    {
      "$ref": "4"
    }
  ],
  "vm": 7,
  "SelectedDate": "2026-01-09T22:10:16.1873447+07:00",
  "UserID": 9
}