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 16.1
edited by Hai NT
on 2026/11/23 02:24
Change comment: Hiển thị đầy đủ cột trong danh sách sắp xếp theo ngày văn bản

Summary

Details

Page properties
Content
... ... @@ -2,11 +2,12 @@
2 2  
3 3  {{velocity}}
4 4  #set ($columns = ['soKyHieu', 'trichYeu', 'ngayVanBan', 'coQuanBanHanh', 'lanhDao', 'hanXuLy', 'trangThaiNguon'])
5 -#set ($vanBanDenClass = 'VanBanDen.Code.VanBanDenClass')
5 +#set ($className = 'VanBanDen.Code.VanBanDenClass')
6 6  #if ($xcontext.action == 'get' && "$!request.outputSyntax" == 'plain')
7 7   #set ($result = {'reqNo': $numbertool.toNumber($request.reqNo).intValue(), 'rows': [], 'totalrows': 0, 'returnedrows': 0})
8 8   #if ("$!request.sort" == '' || $columns.contains($request.sort))
9 - #gridresultwithfilter_buildQuery($vanBanDenClass $columns '' '' {})
9 + #set ($collist = $columns)
10 + #gridresultwithfilter_buildQuery($className $collist '' '' {})
10 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 11   #if ($request.sort == 'ngayVanBan' && $orderDirection == 'desc' && $orderSql != '')
12 12   #set ($sql = "$sql nulls last, doc.fullName asc")
... ... @@ -28,7 +28,7 @@
28 28   'trangThaiNguon': {"html":true}
29 29  })
30 30  #set ($options = {
31 - 'className': $vanBanDenClass,
32 + 'className': $className,
32 32   'resultPage': 'VanBanDen.WebHome',
33 33   'translationPrefix': 'vanbanden.livetable.',
34 34   'tagCloud': true,