Hệ thống pháp luật

BỘ KẾ HOẠCH VÀ ĐẦU TƯ
-------

CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
Độc lập - Tự do - Hạnh phúc
---------------

Số: 5721/BKHĐT-TH
V/v thu hồi vốn ứng trước chưa bố trí trong Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025

Hà Nội, ngày 19 tháng 7 năm 2023

 

Kính gửi:

- Văn phòng Trung ương Đảng;
- Học viện Chính trị quốc gia Hồ Chí Minh;
- Văn phòng Quốc hội;
- Kiểm toán Nhà nước;
- Các bộ, cơ quan ngang Bộ, cơ quan thuộc Chính phủ, cơ quan khác ở Trung ương;
- UBND các tỉnh, thành phố trực thuộc Trung ương.

Thực hiện Nghị quyết số 93/2023/QH15 ngày 22 tháng 6 năm 2023 về phân bổ vốn Chương trình phục hồi và phát triển kinh tế - xã hội; phân bổ, điều chỉnh kế hoạch đầu tư công trung hạn vốn ngân sách trung ương giai đoạn 2021-2025 và phân bổ kế hoạch đầu tư vốn ngân sách trung ương năm 2023 của các Chương trình mục tiêu quốc gia, Nghị quyết số 97/NQ-CP ngày 8 tháng 7 năm 2023 của Chính phủ về Phiên họp Chính phủ thường kỳ tháng 6 năm 2023 và Hội nghị trực tuyến với các địa phương, để báo cáo việc thực hiện thu hồi vốn ứng trước còn lại chưa thu hồi tại Kỳ họp thứ 6, Quốc hội khóa XV, tiếp theo văn bản số 5507/BKHĐT-TH ngày 13 tháng 7 năm 2023, Bộ Kế hoạch và Đầu tư đề nghị các Bộ, cơ quan trung ương và địa phương chỉ đạo các đơn vị trực thuộc triển khai các nội dung sau:

1. Rà soát danh mục dự án thu hồi vốn ứng trước thuộc trách nhiệm của ngân sách trung ương (NSTW) nhưng chưa bố trí trong Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025 để thu hồi đã được Chính phủ tổng hợp từ các bộ, cơ quan trung ương và địa phương để báo cáo Quốc hội tại Tờ trình số 231/TTr-CP ngày 16 tháng 5 năm 20232. Thực hiện thu hồi số vốn ứng trước thuộc trách nhiệm của NSTW nhưng chưa bố trí trong Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025 để thu hồi:

- Trường hợp sử dụng vốn NSTW để hoàn trả: Rà soát danh mục dự án đã được giao Kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 nhưng chậm hoàn thiện thủ tục đầu tư, quyết toán còn dư vốn... để đề xuất điều chỉnh kế hoạch vốn cho dự án còn dư ứng trước thuộc trách nhiệm của NSTW chưa bố trí nguồn hoàn trả- Trường hợp sử dụng vốn ngân sách địa phương: Ủy ban nhân dân các cấp báo cáo Hội đồng nhân dân các cấp bố trí vốn ngân sách địa phương nộp trả NSTW để thu hồi vốn ứng trước theo Nghị quyết số 93/2023/QH15 ngày 22 tháng 6 năm 2023 của Quốc hội. Thời hạn hoàn thành trước ngày 15 tháng 8 năm 2023.

Đề nghị các bộ, cơ quan trung ương và địa phương cam kết sử dụng nguồn vốn NSTW hoặc ngân sách địa phương để bố trí thu hồi vốn ứng trước theo đúng quy định tại Nghị quyết số 93/2023/QH15 của Quốc hội. Trường hợp các Bộ, cơ quan trung ương và địa phương không thực hiện hoàn trả vốn ứng trước, không báo cáo chính xác, đầy đủ, kiên quyết không bố trí vốn ngân sách nhà nước để thu hồi vốn ứng trước, đồng thời kiểm điểm và xử lý trách nhiệm người đứng đầu và các tổ chức, cá nhân liên quan theo đúng quy định tại Nghị quyết số 93/2023/QH15 của Quốc hội.

3. Báo cáo việc thu hồi vốn ứng trước

- Các bộ, cơ quan trung ương và địa phương báo cáo việc thu hồi vốn ứng trước trên Hệ thống thông tin quốc gia về đầu tư công trước ngày 31 tháng 8 năm 2023 để Bộ Kế hoạch và Đầu tư tổng hợp, trình Thủ tướng Chính phủ, Chính phủ báo cáo Quốc hội tại kỳ họp thứ 6, Quốc hội khóa XV (tháng 10 năm 2023).

- Nội dung báo cáo bao gồm: danh mục dự án thuộc trách nhiệm của NSTW nhưng chưa bố trí nguồn thu hồi trong Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025, số vốn đã bố trí thu hồi (NSTW và ngân sách địa phương), các Nghị quyết của Hội đồng nhân dân về việc bố trí vốn ngân sách địa phương để hoàn trả NSTW.

Các bộ, cơ quan trung ương và địa phương chịu trách nhiệm toàn diện trước Thủ tướng Chính phủ, các cơ quan thanh tra, kiểm toán về danh mục dự án, tính chính xác và thống nhất về thông tin, số liệu giữa báo cáo trên Hệ thống thông tin quốc gia về đầu tư công và văn bản báo cáo; chịu trách nhiệm trước Thủ tướng Chính phủ về sự chậm trễ của bộ, cơ quan trung ương và địa phương trong trường hợp báo cáo gửi chậm so với thời gian quy định.

Trong quá trình triển khai, trường hợp có khó khăn, vướng mắc, đề nghị phản ánh kịp thời về Bộ Kế hoạch và Đầu tư tổng hợp, báo cáo cấp có thẩm quyền xem xét, quyết định./.

 


Nơi nhận:
- Như trên (d/s kèm theo);
- Thủ tướng Chính phủ (để b/c);
- Văn phòng Chính phủ;
- Bộ Tài chính;
- Bộ KH&ĐT: Lãnh đạo Bộ, các đơn vị:
KTĐP<, KTCNDV, PTHT&ĐT,
TCTT, KTNN, LĐVHXH, QPAN;
KHGDTN&MT;
- Sở KH&ĐT các tỉnh, thành phố trực thuộc TW;
- Lưu VT, Vụ TH.

KT. BỘ TRƯỞNG
THỨ TRƯỞNG




Trần Quốc Phương

 

DANH SÁCH ĐƠN VỊ NHẬN VĂN BẢN

(Lưu hành nội bộ)

Đơn vị: Triệu đồng

TT

Bộ, ngành, địa phương

Gửi Eoffice

 

TỔNG SỐ

 

A

Như nơi nhận

 

B

Các bộ, địa phương

 

 

Bộ, ngành

 

1

Văn phòng Quốc hội

 

2

Văn phòng Trung ương Đảng

 

3

Văn phòng Chính phủ

 

4

Tòa án nhân dân tối cao

 

5

Viện kiểm sát nhân dân tối cao

 

6

Học viện Chính trị Quốc gia Hồ Chí Minh

 

7

Bộ Quốc phòng

 

8

Bộ Công an

 

9

Bộ Ngoại giao

 

10

Bộ Tư pháp

 

11

Bộ Kế hoạch và Đầu tư

 

12

Bộ Tài chính

 

13

Bộ Nông nghiệp và Phát triển nông thôn

 

14

Bộ Công thương

 

15

Bộ Giao thông vận tải

 

16

Bộ Xây dựng

 

17

Bộ Thông tin và Truyền thông

 

18

Bộ Khoa học và Công nghệ

 

19

Bộ Giáo dục và Đào tạo

 

20

Bộ Y tế

 

21

Bộ Văn hóa, Thể thao và Du lịch

 

22

Bộ Nội vu

 

23

Bộ Lao động - Thương binh và Xã hội

 

24

Bộ Tài nguyên và Môi trường

 

25

Thanh tra Chính phủ

 

26

Ngân hàng Nhà nước Việt Nam

 

27

Ủy ban dân tộc

 

28

Ban Quản lý Lăng Chủ tịch Hồ Chí Minh

 

29

Viện Hàn lâm Khoa học Xã hội Việt Nam

 

30

Viện Hàn lâm Khoa học và Công nghệ Việt Nam

 

31

Thông tấn xã Việt Nam

 

32

Đài tiếng nói Việt Nam

 

33

Đài Truyền hình Việt Nam

 

34

Kiểm toán nhà nước

 

35

Mặt trận tổ quốc Việt Nam

 

36

Tổng liên đoàn lao động Việt Nam

 

37

Trung ương Đoàn Thanh niên Cộng sản Hồ Chí Minh

 

38

Trung ương Hội liên hiệp Phụ nữ Việt Nam

 

39

Hội nông dân Việt Nam

 

40

Đại học Quốc gia Hà Nội

 

41

Đại học Quốc gia Thành phố Hồ Chí Minh

 

42

Ngân hàng Phát triển Việt Nam

 

43

Ngân hàng Chính sách xã hội

 

44

Ban Quản lý Làng văn hóa các dân tộc Việt Nam

 

45

Tập đoàn Điện lực Việt Nam

 

46

Liên minh Hợp tác xã Việt Nam

 

47

Ủy ban toàn quốc Liên hiệp các Hội văn học nghệ thuật Việt Nam

 

48

Hội Nhà báo Việt Nam

 

49

Liên hiệp các hội Khoa học và Kỹ thuật Việt Nam

 

50

Ban quản lý Khu công nghệ cao Hòa Lạc

 

51

Hội Nhà văn Việt Nam

 

52

Hội Luật gia Việt Nam

 

53

Tổng công ty Thuốc lá Việt Nam

 

 

Địa phương (UBND, Sở KH&ĐT, Ban QLKCN, KKT)

 

 

Miền núi phía Bắc

 

1

Hà Giang

 

2

Tuyên Quang

 

3

Cao Bằng

 

4

Lạng Sơn

 

5

Lào Cai

 

6

Yên Bái

 

7

Thái Nguyên

 

8

Bắc Kạn

 

9

Phú Thọ

 

10

Bắc Giang

 

11

Hòa Bình

 

12

Sơn La

 

13

Lai Châu

 

14

Điện Biên

 

 

Đồng bằng sông Hồng

 

15

Thành phố Hà Nội

 

16

Thành phố Hải Phòng

 

17

Quảng Ninh

 

18

Hải Dương

 

19

Hưng Yên

 

20

Vĩnh Phúc

 

21

Bắc Ninh

 

22

Hà Nam

 

23

Nam Định

 

24

Ninh Bình

 

25

Thái Bình

 

 

Bắc Trung Bộ và Duyên hải miền Trung

 

26

Thanh Hóa

 

27

Nghệ An

 

28

Ha Tĩnh

 

29

Quảng Bình

 

30

Quảng Trị

 

31

Thừa Thiên Huế

 

32

Thành phố Đà Nẵng

 

33

Quảng Nam

 

34

Quảng Ngãi

 

35

Bình Định

 

36

Phú Yên

 

37

Khánh Hòa

 

38

Ninh Thuận

 

39

Bình Thuận

 

 

Tây Nguyên

 

40

Đắk Lắk

 

41

Đắk Nông

 

42

Gia Lai

 

43

Kon Tum

 

44

Lâm Đồng

 

 

Đông Nam Bộ

 

45

Thành phố Hồ Chí Minh

 

46

Đồng Nai

 

47

Bình Dương

 

48

Bình Phước

 

49

Tây Ninh

 

50

Bà Rịa Vũng Tàu

 

 

Đồng bằng sông Cửu Long

 

51

Long An

 

52

Tiền Giang

 

53

Bến Tre

 

54

Trà Vinh

 

55

Vĩnh Long

 

56

Thành phố Cần Thơ

 

57

Hậu Giang

 

58

Sóc Trăng

 

59

An Giang

 

60

Đồng Tháp

 

61

Kiên Giang

 

62

Bạc Liêu

 

63

Cà Mau

 

C

Các đơn vị thuộc Bộ

 

1

Lãnh đạo Bộ

 

2

Cục KTHT

 

3

Vụ THKTQD

 

4

Vụ KTĐP<

 

5

Vụ LĐVX

 

6

Vụ KHGDTNMT

 

7

Vụ QPAN

 

8

Vụ KTNN

 

9

Vụ KTCNDV

 

10

Vụ PTHT&ĐT

 

11

Vụ TCTT

 

12

Vụ KTĐN

 

13

Vụ QLKKT

 

14

Vụ QLQH

 

15

Cục PTDN

 

16

Cục QLĐT

 

17

Vụ Pháp chế

 

18

Trung tâm tin học

 

 



'; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_chu_thich_" + chuthich_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dtttct, 'id_ct': id_ct, 'dc_text': dc_text }, success: function(response) { $("#noi_dung_chu_thich_" + chuthich_id).html(response); } }); } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + chuthich_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } else { pointy_width2 = $("#tctn-button").width() + $("#exco").width() + $(".tnpl-title").width() + $(".fa-expand").width() - 23; } var min_bg_num = 1; var max_bg_num = 10; var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } if ($(chuthich_buble_id).length) { $main = $(this); $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); $('html,body').animate({ scrollTop: $(chuthich_buble_id).find('h3.tieu_de_dan_chieu').offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); $(this).pointy({ pointer: $pointer, defaultClass: '', activeClass: 'pointy-active', arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.chu_thich').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { // update pointy while dragging $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //dan_chieu cho Login $('.dan_chieu').each(function() { $(this).removeAttr('onmouseover'); $(this).removeAttr('onmouseout'); $(this).removeAttr('data-target'); $(this).attr('id', 'rnd_' + random_string_id(20)); if (!$(this).attr('class').includes('dan_chieu_tu_dong')) { $(this).addClass('dan_chieu_tu_dong'); } }); $('.dan_chieu').removeAttr('data-toggle'); $('.dan_chieu').click(function() { if ($('#ajax_tra_cuu').is(':visible')) { $('#ajax_tra_cuu').hide(); } var text_html = $(this).text(); dtttct = $(this).attr('data-dc'); if (this.hasAttribute('o-title')) { tieu_de_dan_chieu = $(this).attr('o-title'); } else { tieu_de_dan_chieu = text_html; } var $this_pointer = $(this).find('.pointer'); if (typeof ct_html === 'undefined') {} else { //$('html').prepend(ct_html); } if (typeof danchieu_id === 'undefined') {} danchieu_id = 'dc_' + $(this).attr('id'); dcase = $(this).attr('data-dcase'); chuthich_buble_id = '#dan_chieu_bubble_' + danchieu_id; danchieu_id_content = '#noi_dung_td_' + danchieu_id; $(this).find('.dan_chieu').on('click', function() { allow_close_pointy = false; }); if (typeof allow_close_pointy === 'undefined') { allow_close_pointy = true; } if (!$(chuthich_buble_id).length) { so_dan_chieu = $(danchieu_id_content + ' .badge-round').length; if (so_dan_chieu == 0) { so_dan_chieu = $(danchieu_id_content + ' .panel-default').length; } pointer_html = ''; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_dan_chieu_" + danchieu_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { if (dtttct.length == 32) { $.ajax({ type: 'POST', url: '/ajax/public/dan-chieu/' + dtttct, data: { 'text_dan_chieu': text_html }, success: function(response) { $("#noi_dung_dan_chieu_" + danchieu_id).html(response); } }); } else { $("#noi_dung_dan_chieu_" + danchieu_id).load('/ajax/public/dan-chieu/' + dtttct + '/'); } } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + danchieu_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } var min_bg_num = 1; var max_bg_num = 10; var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } if ($(chuthich_buble_id).length) { $main = $(this); $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $('html,body').animate({ scrollTop: $(chuthich_buble_id).offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); $(this).pointy({ pointer: $pointer, defaultClass: '', activeClass: 'pointy-active', arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.dan_chieu').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //dan chieu tham khao ////chu thich cho Login $('.dan_chieu_tham_khao').each(function() { $(this).removeAttr('onmouseover'); $(this).removeAttr('onmouseout'); $(this).removeAttr('data-target'); $(this).attr('id', 'rnd_' + random_string_id(20)); }); $('.dan_chieu_tham_khao').removeAttr('data-toggle'); $('.dan_chieu_tham_khao').click(function() { // if ($('#ajax_tra_cuu').is(':visible')) { $('#ajax_tra_cuu').hide(); } dtttct = $(this).attr('data-ct'); id_ct = $(this).attr('id'); dc_text = $(this).html(); var $this_pointer = $(this).find('.pointer'); text_html = $(this).text(); if (typeof ct_html === 'undefined') {} else { //$('html').prepend(ct_html); } if (typeof chuthich_id === 'undefined') {} chuthich_id = 'dc_' + $(this).attr('id'); dcase = $(this).attr('data-dcase'); chuthich_buble_id = '#dan_chieu_tham_khao_bubble_' + chuthich_id; chuthich_id_content = '#noi_dung_td_' + chuthich_id; $(this).find('.dan_chieu_tham_khao').on('click', function() { allow_close_pointy = false; }); if (typeof allow_close_pointy === 'undefined') { allow_close_pointy = true; } if (!$(chuthich_buble_id).length) { so_chu_thich = $(chuthich_id_content + ' .badge-round').length; if (so_chu_thich == 0) { so_chu_thich = $(chuthich_id_content + ' .panel-default').length; } var buble_height = $(window).height() * 0.8; pointer_html = ''; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_dan_chieu_tham_khao_" + chuthich_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dtttct, 'id_ct': id_ct, 'loai_hd': 'noi_dung_tham_khao', 'dc_text': dc_text }, success: function(response) { $("#noi_dung_dan_chieu_tham_khao_" + chuthich_id).html(response); } }); } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + chuthich_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } else { pointy_width2 = $("#tctn-button").width() + $("#exco").width() + $(".tnpl-title").width() + $(".fa-expand").width() - 23; // alert(pointy_width2); } var min_bg_num = 1; var max_bg_num = 10; // and the formula is: var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); //$(chuthich_buble_id).css('background', +rnd_rgb_1); //$(chuthich_buble_id).addClass('pointer_bg_'+random_bg_num); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } //var check_bubble = setInterval(function(){ },100); if ($(chuthich_buble_id).length) { $main = $(this); // fixed block // draggable element $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); //$("#box_noi_dung_vb").removeClass('box-shadow-z3 col-md-12 box-shadow-z2 ng-scope m-b-10').addClass('col-md-7 box-shadow-z2 ng-scope m-b-10'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); if ($("#doc-right-col").not(':visible')) { $('#doc-right-col').show(); } $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 35 + "px"); //$(chuthich_buble_id).find('h3.tieu_de_dan_chieu').text('ok'); $('html,body').animate({ scrollTop: $(chuthich_buble_id).find('h3.tieu_de_dan_chieu').offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); //alert(x.top); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); // initialize pointy $(this).pointy({ pointer: $pointer, // additional class name added to the pointer & the arrow (canvas) // to add a z-index of 1 defaultClass: '', // "pointy-active" class is used to keep the last updated pointer on top // this is the default value activeClass: 'pointy-active', // arrow base width (in pixels) arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $(".nav-dropdown").css('width', $('#doc-right-col').width() +'px'); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.dan_chieu_tham_khao').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { // update pointy while dragging $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //ket thuc dan chieu tham khao $("cttd dctd dctk .dan_chieu_tham_khao").on('click mouseover', function(e) { e.preventDefault(); e.stopPropagation(); }); $('dctd, cttd, chuthich, dctk').click(function() { $('#customSidebar').animate({ right: '-280px' }, 500); $('#toggleSidebar').html(''); }); }); function random_string_id(numstr) { var text = ""; var possible = "abcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < numstr; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; }