Changes for page Văn bản đến

Last modified by Hai NT on 2026/11/23 02:24

From version 9.2
edited by chatgpt
on 2026/11/22 06:10
Change comment: Updated application icon
To version 15.1
edited by Hai NT
on 2026/11/23 02:24
Change comment: Đưa hồ sơ thiếu ngày xuống cuối khi sắp xếp ngày văn bản mới nhất

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -VanBanDen
1 +Văn bản đến
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.chatgpt
1 +XWiki.haint
Content
... ... @@ -1,26 +1,42 @@
1 +{{include reference="XWiki.LiveTableResultsMacros" /}}
2 +
1 1  {{velocity}}
4 +#set ($columns = ['soKyHieu', 'trichYeu', 'ngayVanBan', 'coQuanBanHanh', 'lanhDao', 'hanXuLy', 'trangThaiNguon'])
5 +#set ($vanBanDenClass = 'VanBanDen.Code.VanBanDenClass')
6 +#if ($xcontext.action == 'get' && "$!request.outputSyntax" == 'plain')
7 + #set ($result = {'reqNo': $numbertool.toNumber($request.reqNo).intValue(), 'rows': [], 'totalrows': 0, 'returnedrows': 0})
8 + #if ("$!request.sort" == '' || $columns.contains($request.sort))
9 + #gridresultwithfilter_buildQuery($vanBanDenClass $columns '' '' {})
10 + ## Dùng cùng bộ lọc và kiểm tra quyền của LiveTable, chỉ đưa ngày trống xuống cuối.
11 + #if ($request.sort == 'ngayVanBan' && $orderDirection == 'desc' && $orderSql != '')
12 + #set ($sql = "$sql nulls last, doc.fullName asc")
13 + #end
14 + #if ("$!request.tagcloud" == 'true')
15 + #gridresult_buildTagCloudJSON($result)
16 + #end
17 + #gridresult_buildRowsJSON($result)
18 + #end
19 + #jsonResponse($result)
20 +#else
2 2  #set ($columnsProperties = {
3 - 'doc.title': {"link":"view"},
4 - 'maHoSo': {},
5 - 'soDen': {},
6 - 'ngayDen': {"html":true},
7 - 'soKyHieu': {},
8 - 'trichYeu': {},
9 - 'coQuanGui': {},
10 - 'donViXuLy': {},
22 + 'soKyHieu': {"link":"view"},
23 + 'trichYeu': {"link":"view"},
24 + 'ngayVanBan': {"html":true},
25 + 'coQuanBanHanh': {"html":true},
26 + 'lanhDao': {"html":true},
11 11   'hanXuLy': {"html":true},
12 - 'trangThai': {},
13 - '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
28 + 'trangThaiNguon': {"html":true}
14 14  })
15 15  #set ($options = {
16 - 'className': 'VanBanDen.Code.VanBanDenClass',
31 + 'className': $vanBanDenClass,
32 + 'resultPage': 'VanBanDen.WebHome',
17 17   'translationPrefix': 'vanbanden.livetable.',
18 18   'tagCloud': true,
19 19   'rowCount': 15,
20 20   'maxPages': 10,
21 - 'selectedColumn': 'doc.title',
22 - 'defaultOrder': 'asc'
37 + 'selectedColumn': 'ngayVanBan',
38 + 'defaultOrder': 'desc'
23 23  })
24 -#set ($columns = ['doc.title', 'maHoSo', 'soDen', 'ngayDen', 'soKyHieu', 'trichYeu', 'coQuanGui', 'donViXuLy', 'hanXuLy', 'trangThai', '_actions'])
25 25  #livetable('vanbanden' $columns $columnsProperties $options)
41 +#end
26 26  {{/velocity}}
AppWithinMinutes.LiveTableClass[0]
Live Table Columns
... ... @@ -1,1 +1,1 @@
1 -doc.title maHoSo soDen ngayDen soKyHieu trichYeu coQuanGui donViXuLy hanXuLy trangThai _actions
1 +soKyHieu trichYeu ngayVanBan coQuanBanHanh lanhDao hanXuLy trangThaiNguon
XWiki.UIExtensionClass[0]
Extension Parameters
... ... @@ -1,3 +1,3 @@
1 -label=VanBanDen
1 +label=Văn bản đến
2 2  target=VanBanDen.WebHome
3 3  icon=icon:application_view_list