Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Tôi muốn xem được danh sách phân hệ bao gồm các thông tin:
    • Tên phân hệ
    • Phân hệ cha
    • Thứ tự hiển thị
    • Danh sách chức năng
    • Trạng thái
  2. Tôi muốn người dùng tìm kiếm gần đúng trên danh sách phân hệ  theo các  thông tin
    • Tên phân hệ
  3. Tôi muốn tạo mới/Sửa/Xóa/Xem chi tiết được thông tin phân hệ bao gồm các thông tin
    • Tên phân hệ
    • Chọn phân hệ chaChọn thứ tự hiển thị
    • Danh sách chức năng
  4. Tôi muốn người dùng được chọn/bỏ chọn các thông tin các chức năng sử dụng trong phân hệ
  5. Hệ thống cảnh báo và chặn trong trường hợp trùng tên phân hệ, trùng thứ tự hiển thị trong cùng level
  6. Hệ thống cảnh báo và chặn trong trường hợp chọn chức năng đã được thêm vào một phân hệ khác
  7. Tôi muốn người dùng export được thông tin Danh mục nhóm chức năng phân hệ trên hệ thống theo thông tin tìm kiếm

...

3.2.4. Xem chi tiết phân hệ

3.2.5.Xóa phân hệ

3.2.6. Xuất file excel

Image Removed

3.3 API Spec: <gắn link tài liệu mô tả API vào đây>Xuất file excel

Image Added

3.3 API Spec: <gắn link tài liệu mô tả API vào đây>

Panel
titleAPI lấy danh sách phân hệ

Method

GET

URL

system/module/list

Description

API lấy danh sách phân hệ

Note


1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1namefalseString tên phân hệ

2ignoredModuleIdfalseIntegerid phân hệ - lọc để không tìm kiếm id này

3pagetrueInteger


4limittrueInteger


3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công, != 0 thất bại

2messageString


3resultObjectObject

4

(result) loadMoreAble

Boolean


5

(result) page

Integer


6

(result) preLoadAble

Integer


7

(result) total

Integer




8

(result) items

List<Object>        

9

(items) id

IntegerId phân hệ

10

(items) name

Stringtên phân hệ

11

(items) position

Integervị trí hiển thị

12

(items) active

IntegerTrạng thái (0: inactive, 1: active)

13

(items) parentName

Stringtên phân hệ cha

14

(items) parentId

Integerid phân hệ cha

15(items) hasResourceIntegerđánh dấu xem phân hệ này có cấu hình chức năng hay không (0: không cấu hình, 1: có cấu hình)



16(items) resourcesList<Object> Danh sách chức năng



17(items) childrenList<Object> Danh sách phân hệ con



18(resources) idIntegerid chức năng



19(resources) nameStringtên chức năng



20(resources) descriptionStringmô tả chức năng



21(resources) codeStringmã chức năng



22(resources) uriStringuri chức năng



23(resources) actionsStringactions chức năng



24(resources) activeIntegertrạng thái chức năng  (0: inactive, 1: active)



25

(children) id

IntegerId phân hệ con



26

(children) name

Stringtên phân hệ con



27

(children) position

Integervị trí hiển thị con

28

(children) active

IntegerTrạng thái (0: inactive, 1: active)

29

(children) parentName

Stringtên phân hệ cha

30

(children) parentId

Integerid phân hệ cha

31(children) hasResourceIntegerđánh dấu xem phân hệ này có cấu hình chức năng hay không (0: không cấu hình, 1: có cấu hình)

32(children) resourcesList<Object> Danh sách chức năng phân hệ con

33(children) childrenList<Object> Danh sách phân hệ con

Panel
titleAPI Spec xem thông tin chi tiết 1 phân hệ

Method

Get

URL

system/module/get

Description

API lấy thông tin chi tiết của 1 phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. Param

STT

Field

Required

Data Type / Length

Description

Note

1idtrueIntegerid phân hệ

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) id

IntegerId phân hệ
5

(result) name

StringTên phân hệ
6

(result) parentName

Stringtên phân hệ cha
7

(result) parentId

Integerid phân hệ cha
8

(result) position

Integervị trí
9

(result) active

Integertrạng thái chức năng  (0: inactive, 1: active)
Panel
titleAPI thêm mới phân hệ

Method

POST

URL

system/module/insert

Description

API thêm mới phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1nametrueStringtên phân hệ
2activetrueIntegertrạng thái phân hệ (0: inactive, 1:active)
3apptrueStringmặc định BPM
4

parentId

falseIntegerid phân hệ cha

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) id

Integerid  phân hệ
5

(result) name

Stringtên phân hệ
6

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
7

(result) app

String

8

(result) parentId

Integerid phân hệ cha
Panel
titleAPI chỉnh sửa phân hệ

Method

PUT

URL

system/module/update

Description

API chỉnh sửa phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1nametrueStringtên phân hệ
2activetrueIntegertrạng thái phân hệ (0: inactive, 1:active)
3apptrueStringmặc định BPM
4

parentId

falseIntegerid phân hệ cha
5

id

trueIntegerid phân hệ

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) id

Integerid  phân hệ
5

(result) name

Stringtên phân hệ
6

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
7

(result) app

String

8

(result) parentId

Integerid phân hệ cha
Panel
titleAPI cập nhật trạng thái phân hệ

Method

PUT

URL

system/module/updateStatus

Description

API cập nhật trạng thái phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

id

trueIntegerid phân hệ
2activetrueIntegertrạng thái phân hệ (0: inactive, 1:active)

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) id

Integerid  phân hệ
5

(result) active

Integertrạng thái phân hệ (0: inactive, 1:active)
Panel
titleAPI cập nhật thứ tự phân hệ

Method

PUT

URL

system/module/reorderModule

Description

API cập nhật thứ tự phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

id

trueIntegerid phân hệ
2

parentId

trueIntegerid phân hệ cha
3

oldPosition

trueIntegervị trí cũ
4

newPosition

trueIntegervị trí mới

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

Panel
titleAPI xóa phân hệ

Method

DELETE

URL

system/module/delete

Description

API xóa phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

id

trueIntegerid phân hệ

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) totalDeleted

Integersố bản ghi đã xóa
5

(result) modules

List<Object>danh sách các modules
6

(modules) id

Integerid phân hệ
7

(modules) name

Stringtên phân hệ
Panel
titleAPI xóa nhiều phân hệ

Method

POST

URL

system/module/deleteBatch

Description

API xóa nhiều phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

ids

trueList<Integer>danh sách id phân hệ cần xóa

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultObjectObject
4

(result) totalDeleted

Integersố bản ghi đã xóa
5

(result) modules

List<Object>danh sách các modules
6

(modules) id

Integerid phân hệ
7

(modules) name

Stringtên phân hệ
Panel
titleAPI thêm mới chức năng vào phân hệ

Method

POST

URL

system/moduleResource/insertBatch

Description

API thêm mới chức năng vào phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

moduleId

trueIntegerid phân hệ
2

resourceIds

trueList<Integer>danh sách id chức năng

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultList<Object>List<Object>
4

(result) id

Integer

5

(result) moduleId

Integerid phân hệ
6

(result) resourceId

Integerid chức năng
7

(result) position

Integervị trí
Panel
titleAPI xóa chức năng vào phân hệ

Method

POST

URL

system/moduleResource/deleteBatch

Description

API xóa chức năng vào phân hệ

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody      

STT

Field

Required

Data Type / Length

Description

Note

1

moduleId

trueIntegerid phân hệ
2

resourceIds

trueList<Integer>danh sách id chức năng cần xóa

3. Response / Incoming Data Specification

STT 

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, != 0 thất bại
2messageString

3resultIntegersố lượng đã xóa


3.4 Mô tả các trường dữ liệu trên màn hình:

...

Thông tin file excel: Danh sách phân hệ.xlsx

Image RemovedImage Added


STT

Trường/ Nút chức năng

Kiểu dữ liệu

Điều kiện

Quy định

Mô tả

1Thời gian


Thời gian xuất dữ liệu
2Người xuất


Tên hiển thị của người xuất dữ liệu
3STT


Tự tăng
4Tên phân hệ


Tên phân hệ 
5Phân hệ chacha 


Tên phân hệ cha (Nếu có)5Tên phân hệTên phân hệ 
6Trạng thái


Trạng thái của phân hệ
7Chức năng


Chức năng được cấu hình của phân hệ ( Liệt kê thành nhiều dòng, tên phân hệ và phân hệ cha có thể lặp lại)

...

STT

Trường/ Nút chức năng

Kiểu dữ liệu

Điều kiện

Quy định

Mô tả

1Thêm mới phân hệLabel


2Tên phân hệTextboxBắt buộcEnableCho phép nhập tên phân hệ
3Phân hệ chaComboboxKhông bắt buộc

Enable

Cho phép chọn phân hệ cha trong danh sách phân hệ 

Thông tin phân hệ cha con sử dụng để phân cấp level khi hiển thị tại Tab Cấu hình trong màn hình Thêm mới/Chỉnh sửa nhóm quyền

Hiển thị thông tin tối đa 2 cấp 

4Trạng tháiToggleBắt buộcEnable

Mặc định hiển thị Hoạt động

5HủyButton
EnableCho phép thoát khỏi popup hiện tại
6Áp dụngButton
Enable

Không thành công:

  • Hệ thống cảnh báo và chặn khi một phân hệ đang là phân hệ con và đươc cấu hình thành phân hệ cha của một phân hệ khác đang active=> " Thất bại- Phân hệ đang cấu hình đã là con của phân hệ khác!"

Thành công:

  • Hoàn thành và lưu thông tin tạo mới thành công, hiển thị thông báo toast: " Thành công- Thêm mới phân hệ thành công"
  • Lưu thông tin
  • Phân hệ mới được hiển thị dưới cùng bàn ghi

3.4.5. Mô tả Popup chỉnh sửa phân hệ

...

STT

Trường/ Nút chức năng

Kiểu dữ liệu

Điều kiện

Quy định

Mô tả

1

Tồn tại phân hệ đã cấu hình chức năng. Vui lòng kiểm tra lại!

  1. Phân hệ A
Label+ hyper link

List các phân hệ được chọn xóa đã cấu hình chức năng trong đó:

A là tên chức năngphân hệ

2Thoátbutton

Cho phép thoát khỏi popup Cảnh báo và không hoàn thành được thao tác 

...