GET api/Jobs/GetJobDataForEdit?jobID={jobID}&Lang={Lang}

Trả về dữ liệu phục vụ sửa công việc Cần gọi trước khi tạo giao diện sửa công việc và cập nhật các sửa đổi qua API

Request Information

URI Parameters

NameDescriptionTypeAdditional information
jobID

ID công việc

integer

Required

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

TJobEditModel
NameDescriptionTypeAdditional information
id

ID công việc (Job)

integer

None.

JobData

Dữ liệu job cần soạn thảo đọc về

TJobEdit

None.

SelectedDate

Ngày chọn

date

None.

Tab

Loại danh sách hiển thị: Tab = 0: danh sách công việc do mình tạo ra Tab = 1: danh sách công việc được mời tham gia

integer

None.

JobStateList

Danh sách trạng thái công việc để lựa chọn thiết lập cho công việc

Collection of TIntIDList

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "JobData": {
    "$id": "2",
    "ID": 1,
    "Title": "sample string 2",
    "Summary": "sample string 3",
    "Content": "sample string 4",
    "Result": "sample string 5",
    "StartTime": "2026-01-09T22:10:19.6785885+07:00",
    "EndTime": "2026-01-09T22:10:19.6785885+07:00",
    "State": 8,
    "Note": "sample string 9",
    "Location": "sample string 10",
    "Link": "sample string 11"
  },
  "SelectedDate": "2026-01-09T22:10:19.6785885+07:00",
  "Tab": 2,
  "JobStateList": [
    {
      "$id": "3",
      "ID": 1,
      "Text": "sample string 2"
    },
    {
      "$ref": "3"
    }
  ]
}