Changes for page Văn bản đến
Last modified by Hai NT on 2026/11/23 02:24
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,26 @@ 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 - 'soKyHieu': {}, 4 - 'trichYeu': {}, 22 + 'soKyHieu': {"link":"view"}, 23 + 'trichYeu': {"link":"view"}, 5 5 'ngayVanBan': {"html":true}, 6 6 'coQuanBanHanh': {"html":true}, 7 7 'lanhDao': {"html":true}, ... ... @@ -9,14 +9,15 @@ 9 9 'trangThaiNguon': {"html":true} 10 10 }) 11 11 #set ($options = { 12 - 'className': 'VanBanDen.Code.VanBanDenClass', 31 + 'className': $vanBanDenClass, 32 + 'resultPage': 'VanBanDen.WebHome', 13 13 'translationPrefix': 'vanbanden.livetable.', 14 14 'tagCloud': true, 15 15 'rowCount': 15, 16 16 'maxPages': 10, 17 - 'selectedColumn': ' soKyHieu',18 - 'defaultOrder': ' asc'37 + 'selectedColumn': 'ngayVanBan', 38 + 'defaultOrder': 'desc' 19 19 }) 20 -#set ($columns = ['soKyHieu', 'trichYeu', 'ngayVanBan', 'coQuanBanHanh', 'lanhDao', 'hanXuLy', 'trangThaiNguon']) 21 21 #livetable('vanbanden' $columns $columnsProperties $options) 41 +#end 22 22 {{/velocity}}
- XWiki.UIExtensionClass[0]
-
- Extension Parameters
-
... ... @@ -1,3 +1,3 @@ 1 -label=V anBanDen1 +label=Văn bản đến 2 2 target=VanBanDen.WebHome 3 3 icon=icon:application_view_list