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

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

From 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
To version 12.2
edited by Hai NT
on 2026/11/23 01:00
Change comment: Updated application icon

Summary

Details

Page properties
Content
... ... @@ -1,26 +3,7 @@
1 -{{include reference="XWiki.LiveTableResultsMacros" /}}
2 -
3 3  {{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
21 21  #set ($columnsProperties = {
22 - 'soKyHieu': {"link":"view"},
23 - 'trichYeu': {"link":"view"},
3 + 'soKyHieu': {},
4 + 'trichYeu': {},
24 24   'ngayVanBan': {"html":true},
25 25   'coQuanBanHanh': {"html":true},
26 26   'lanhDao': {"html":true},
... ... @@ -28,15 +28,14 @@
28 28   'trangThaiNguon': {"html":true}
29 29  })
30 30  #set ($options = {
31 - 'className': $vanBanDenClass,
32 - 'resultPage': 'VanBanDen.WebHome',
12 + 'className': 'VanBanDen.Code.VanBanDenClass',
33 33   'translationPrefix': 'vanbanden.livetable.',
34 34   'tagCloud': true,
35 35   'rowCount': 15,
36 36   'maxPages': 10,
37 - 'selectedColumn': 'ngayVanBan',
38 - 'defaultOrder': 'desc'
17 + 'selectedColumn': 'soKyHieu',
18 + 'defaultOrder': 'asc'
39 39  })
20 +#set ($columns = ['soKyHieu', 'trichYeu', 'ngayVanBan', 'coQuanBanHanh', 'lanhDao', 'hanXuLy', 'trangThaiNguon'])
40 40  #livetable('vanbanden' $columns $columnsProperties $options)
41 -#end
42 42  {{/velocity}}