Files
backend/public/dist/js/panel-admin.js
2024-02-01 09:53:53 +00:00

8093 lines
349 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var totalCounts = null;
var totalCountsecond = null;
var fromDate, toDate;
var province_id = null;
var fromDatesecond, toDatesecond;
var fromDatekeshvari, toDatekeshvari;
var fromDateTestItems, toDateTestItems;
var fromriz, toriz;
var tableriz;
function showLoaderScreen() {
$(".starter-loader-container").css("display", "flex").hide().fadeIn();
}
function hideLoaderScreen() {
$(".starter-loader-container").fadeOut();
}
$(document).ready(function () {
fromDate = $("#datepickfromdate").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
fromDate.touched = true;
$("#datepicktodate").prop("disabled", "");
if (
fromDate.getState().selected.unixDate >=
toDate.getState().selected.unixDate
) {
toDate.setDate(fromDate.getState().selected.unixDate);
}
if (toDate && toDate.options && toDate.options.minDate != unix) {
let cachedValue = toDate.getState().selected.unixDate;
toDate.options = { minDate: unix };
if (toDate.touched) {
toDate.setDate(cachedValue);
}
}
},
});
fromDatesecond = $("#datepickfrommdate").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
fromDatesecond.touched = true;
$("#datepicktoodate").prop("disabled", "");
if (
fromDatesecond.getState().selected.unixDate >=
toDatesecond.getState().selected.unixDate
) {
toDatesecond.setDate(fromDatesecond.getState().selected.unixDate);
}
if (
toDatesecond &&
toDatesecond.options &&
toDatesecond.options.minDate != unix
) {
let cachedValue = toDatesecond.getState().selected.unixDate;
toDatesecond.options = { minDate: unix };
if (toDatesecond.touched) {
toDatesecond.setDate(cachedValue);
}
}
},
});
fromDatekeshvari = $("#datepickfromdatekeshvar").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
fromDatekeshvari.touched = true;
$("#datepicktodatekeshvar").prop("disabled", "");
if (
fromDatekeshvari.getState().selected.unixDate >=
toDatekeshvari.getState().selected.unixDate
) {
toDatekeshvari.setDate(fromDatekeshvari.getState().selected.unixDate);
}
if (
toDatekeshvari &&
toDatekeshvari.options &&
toDatekeshvari.options.minDate != unix
) {
let cachedValue = toDatekeshvari.getState().selected.unixDate;
toDatekeshvari.options = { minDate: unix };
if (toDatekeshvari.touched) {
toDatekeshvari.setDate(cachedValue);
}
}
},
});
// mohammad edit start
fromDateTestItems = $("#datepickfromdateTestItems").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
fromDateTestItems.touched = true;
$("#datepicktodateTestItems").prop("disabled", "");
if (
fromDateTestItems.getState().selected.unixDate >=
toDateTestItems.getState().selected.unixDate
) {
toDateTestItems.setDate(fromDateTestItems.getState().selected.unixDate);
}
if (
toDateTestItems &&
toDateTestItems.options &&
toDateTestItems.options.minDate != unix
) {
let cachedValue = toDateTestItems.getState().selected.unixDate;
toDateTestItems.options = { minDate: unix };
if (toDateTestItems.touched) {
toDateTestItems.setDate(cachedValue);
}
}
},
});
// mohammad edit end
fromriz = $("#datepickfromriz").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
fromriz.touched = true;
$("#datepicktoriz").prop("disabled", "");
if (
fromriz.getState().selected.unixDate >=
toriz.getState().selected.unixDate
) {
toriz.setDate(fromriz.getState().selected.unixDate);
}
if (toriz && toriz.options && toriz.options.minDate != unix) {
let cachedValue = toriz.getState().selected.unixDate;
toriz.options = { minDate: unix };
if (toriz.touched) {
toriz.setDate(cachedValue);
}
}
},
});
toDate = $("#datepicktodate").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
toDate.touched = true;
/*if (fromDate && fromDate.options && fromDate.options.maxDate != unix) {
let cachedValue = fromDate.getState().selected.unixDate;
fromDate.options = { maxDate: unix };
if (fromDate.touched) {
fromDate.setDate(cachedValue);
}
}*/
},
});
toDatesecond = $("#datepicktoodate").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
toDatesecond.touched = true;
/*if (fromDate && fromDate.options && fromDate.options.maxDate != unix) {
let cachedValue = fromDate.getState().selected.unixDate;
fromDate.options = { maxDate: unix };
if (fromDate.touched) {
fromDate.setDate(cachedValue);
}
}*/
},
});
toDatekeshvari = $("#datepicktodatekeshvar").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
toDatekeshvari.touched = true;
/*if (fromDate && fromDate.options && fromDate.options.maxDate != unix) {
let cachedValue = fromDate.getState().selected.unixDate;
fromDate.options = { maxDate: unix };
if (fromDate.touched) {
fromDate.setDate(cachedValue);
}
}*/
},
});
// mohammad edit start
toDatekeshvari = $("#datepicktodateTestItems").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
toDateTestItems.touched = true;
},
});
// mohammad edit end
toriz = $("#datepicktoriz").persianDatepicker({
format: "YYYY/MM/DD",
autoClose: true,
onSelect: function (unix) {
toriz.touched = true;
/*if (fromDate && fromDate.options && fromDate.options.maxDate != unix) {
let cachedValue = fromDate.getState().selected.unixDate;
fromDate.options = { maxDate: unix };
if (fromDate.touched) {
fromDate.setDate(cachedValue);
}
}*/
},
});
var tablekeshvar = $("#examplekeshvar").DataTable({
dom: "lBfrtip",
// "pagingType": "full_numbers",
pagingType: "simple_numbers",
searching: false,
paging: false,
ordering: false,
info: false,
language: {
sEmptyTable: "هیچ داده‌ای در جدول وجود ندارد",
sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
sInfoPostFix: "",
sInfoThousands: ",",
sLengthMenu: "نمایش _MENU_ ردیف",
sLoadingRecords: "در حال بارگزاری...",
sProcessing: "در حال پردازش...",
sSearch: "جستجو: ",
sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
oPaginate: {
sFirst: "برگه‌ی نخست",
sLast: "برگه‌ی آخر",
sNext: "بعدی",
sPrevious: "قبلی",
},
oAria: {
sSortAscending: ": فعال سازی نمایش به صورت صعودی",
sSortDescending: ": فعال سازی نمایش به صورت نزولی",
},
},
processing: true,
ajax: {
url: "https://rms.rmto.ir/projects/ristat",
type: "GET",
dataSrc: function (json) {
// totalCounts = json.data.count;
console.log("holooo",json.data);
return json.data;
},
},
columns: [
{ orderable: false, data: "item_1" },
{ orderable: false, data: "item_2" },
{ orderable: false, data: "item_3" },
{ orderable: false, data: "item_4" },
{ orderable: false, data: "item_5" },
{ orderable: false, data: "item_6" },
{ orderable: false, data: "item_7" },
{ orderable: false, data: "item_8" },
{ orderable: false, data: "item_9" },
{ orderable: false, data: "item_10" },
{ orderable: false, data: "item_11" },
{ orderable: false, data: "item_12" },
{ orderable: false, data: "item_13" },
{ orderable: false, data: "item_14" },
{ orderable: false, data: "item_15" },
{ orderable: false, data: "item_16" },
{ orderable: false, data: "project" },
],
buttons: [
{
extend: "excelHtml5",
title: "Excel",
text: "خروجی به اکسل",
messageTop: " تعداد پروژه های ثبت شده کشور ",
},
],
});
var table = $("#example").DataTable({
dom: "lBfrtip",
// "pagingType": "full_numbers",
pagingType: "simple_numbers",
language: {
sEmptyTable: "هیچ داده‌ای در جدول وجود ندارد",
sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
sInfoPostFix: "",
sInfoThousands: ",",
sLengthMenu: "نمایش _MENU_ ردیف",
sLoadingRecords: "در حال بارگزاری...",
sProcessing: "در حال پردازش...",
sSearch: "جستجو: ",
sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
oPaginate: {
sFirst: "برگه‌ی نخست",
sLast: "برگه‌ی آخر",
sNext: "بعدی",
sPrevious: "قبلی",
},
oAria: {
sSortAscending: ": فعال سازی نمایش به صورت صعودی",
sSortDescending: ": فعال سازی نمایش به صورت نزولی",
},
},
order: [
[0, null],
[1, "asc"],
[2, "desc"],
[3, "desc"],
[4, "desc"],
[5, "desc"],
],
order: [[1, "asc"]],
processing: true,
ajax: {
url: "https://rms.rmto.ir/users/provinces-projects-count",
type: "GET",
dataSrc: function (json) {
totalCounts = json.data.count;
return json.data.projects;
},
},
columns: [
{
data: null,
render: function (data, type, row, meta) {
// console.log(meta.row);
return meta.row + 1;
},
},
{ data: "province_name" },
{ data: "roadItemsProjects" },
{ data: "roadPatrolProjects" },
{ data: "fastReaction" },
{ data: "projectsCount" },
{
orderable: false,
className: "text-center",
data: null,
render: function (data, type, row) {
return '<button class="btn btn-outline-info btn-sm show_table" title="مشاهده"><i class="fa fa-eye"></i></button>';
},
},
],
buttons: [
{
extend: "excelHtml5",
title: "Excel",
text: "خروجی به اکسل",
messageTop: " تعداد فعالیت ثبت شده استان ها ",
exportOptions: {
columns: [0, 1, 2, 3, 4],
},
},
],
footerCallback: function (row, data, start, end, display) {
var api = this.api();
// console.log(totalCounts);
// Update footer
$(api.column(0).footer()).html("");
$(api.column(1).footer()).html("مجموع");
if (totalCounts != null) {
$(api.column(2).footer()).html(totalCounts.roadItemsCount);
$(api.column(3).footer()).html(totalCounts.roadPatrolCount);
$(api.column(4).footer()).html(totalCounts.fastReaction);
$(api.column(5).footer()).html(totalCounts.totalCount);
}
},
});
// mohammad edit start
var testItemsTable = $("#exampleTestItems").DataTable({
dom: "lBfrtip",
// pagingType: "full_numbers",
pagingType: "simple_numbers",
searching: true,
paging: true,
ordering: true,
info: false,
language: {
sEmptyTable: "هیچ داده‌ای در جدول وجود ندارد",
sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
sInfoPostFix: "",
sInfoThousands: ",",
sLengthMenu: "نمایش _MENU_ ردیف",
sLoadingRecords: "در حال بارگزاری...",
sProcessing: "در حال پردازش...",
sSearch: "جستجو: ",
sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
oPaginate: {
sFirst: "برگه‌ی نخست",
sLast: "برگه‌ی آخر",
sNext: "بعدی",
sPrevious: "قبلی",
},
oAria: {
sSortAscending: ": فعال سازی نمایش به صورت صعودی",
sSortDescending: ": فعال سازی نمایش به صورت نزولی",
},
},
processing: true,
ajax: {
url: "https://rms.rmto.ir/api/testitems",
type: "GET",
dataSrc: function (json) {
// totalCounts = json.data.count;
// console.log(json.data);
return json.data;
},
},
columns: [
{ data: "city_na" },
{
data: "items.1",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.2",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.3",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.4",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.5",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.6",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.7",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.8",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.9",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.10",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.11",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.12",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.13",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.14",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.15",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.16",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{
data: "items.20",
render: function (data, type, row) {
if (data == undefined) {
return "";
} else {
return data;
}
},
},
{ data: "count_items" },
],
buttons: [
{
extend: "excelHtml5",
title: "Excel",
text: "خروجی به اکسل",
messageTop: " تعداد پروژه های ثبت شده کشور ",
},
],
});
// mohammad edit end
$("#example").on("click", "button.show_table", function (e) {
e.preventDefault();
province_id = table.row($(this).parents("tr")).data().province_id;
console.log("province_id-babe", province_id);
$(".ostan-main").css("display", "block");
$(".riz-main").css("display", "block");
var tablee = $("#examplee").DataTable({
dom: "lBfrtip",
destroy: true,
// "pagingType": "full_numbers",
pagingType: "simple_numbers",
language: {
sEmptyTable: "هیچ داده‌ای در جدول وجود ندارد",
sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
sInfoPostFix: "",
sInfoThousands: ",",
sLengthMenu: "نمایش _MENU_ ردیف",
sLoadingRecords: "در حال بارگزاری...",
sProcessing: "در حال پردازش...",
sSearch: "جستجو: ",
sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
oPaginate: {
sFirst: "برگه‌ی نخست",
sLast: "برگه‌ی آخر",
sNext: "بعدی",
sPrevious: "قبلی",
},
oAria: {
sSortAscending: ": فعال سازی نمایش به صورت صعودی",
sSortDescending: ": فعال سازی نمایش به صورت نزولی",
},
},
order: [
[0, "asc"],
[1, "asc"],
[2, "desc"],
[3, "desc"],
[4, "desc"],
],
// order: [[1, "asc"]],
processing: true,
ajax: {
url:
"https://rms.rmto.ir/users/province-cities-projects-count?province-id=" +
province_id,
type: "GET",
dataSrc: function (json) {
totalCountsecond = json.data.count;
return json.data.projects;
},
},
columns: [
{
data: null,
render: function (data, type, row, meta) {
// console.log(meta.row);
return meta.row + 1;
},
},
{ data: "city_name" },
{ data: "roadItemsProjects" },
{ data: "roadPatrolProjects" },
{ data: "projectsCount" },
],
buttons: [
{
extend: "excelHtml5",
title: "Excel",
text: "خروجی به اکسل",
messageTop: "تعداد فعالیت های ثبت شده اداره کل",
},
],
footerCallback: function (row, data, start, end, display) {
var api = this.api();
// console.log(totalCounts);
// Update footer
$(api.column(0).footer()).html("");
$(api.column(1).footer()).html("مجموع");
if (totalCountsecond != null) {
$(api.column(2).footer()).html(totalCountsecond.roadItemsCount);
$(api.column(3).footer()).html(totalCountsecond.roadPatrolCount);
$(api.column(4).footer()).html(totalCountsecond.totalCount);
}
},
});
//riz faliat
tableriz = $("#exampleriz").DataTable({
// "pagingType": "full_numbers",
// dom: 'Bfrtip',
// "scrollX": true,
dom: "lBfrtip",
destroy: true,
pagingType: "simple_numbers",
language: {
sEmptyTable: "هیچ داده‌ای در جدول وجود ندارد",
sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
sInfoPostFix: "",
sInfoThousands: ",",
sLengthMenu: "نمایش _MENU_ ردیف",
sLoadingRecords: "در حال بارگزاری...",
sProcessing: "در حال پردازش...",
sSearch: "جستجو: ",
sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
oPaginate: {
sFirst: "برگه‌ی نخست",
sLast: "برگه‌ی آخر",
sNext: "بعدی",
sPrevious: "قبلی",
},
oAria: {
sSortAscending: ": فعال سازی نمایش به صورت صعودی",
sSortDescending: ": فعال سازی نمایش به صورت نزولی",
},
},
order: [
[0, "asc"],
[1, "pstring-desc"],
[2, "pstring-desc"],
[3, "pstring-desc"],
[4, "asc"],
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/projects/getrirpadmin/" + province_id,
type: "GET",
dataSrc: function (json) {
// if (json.data[0])
// hideLoaderScreen()
// if (json.data[0].sub_projects.item!=unde){
// console.log(json.data[0][36].sub_projects.item)
// console.log(json.data[0][1].sub_projects[i].item)
return json.data[0];
},
},
columns: [
{
data: null,
render: function (data, type, row, meta) {
// console.log(meta.row);
return meta.row + 1;
},
},
{ data: "user" },
{ data: "type" },
{
data: null,
render: function (data, type, row) {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.item != undefined) {
if (data.item == 1) {
return " مرمت رویه";
} else if (data.item == 2) {
return " پاکسازی";
} else if (data.item == 3) {
return "علائم";
} else if (data.item == 4) {
return "حفاظ";
} else if (data.item == 5) {
return "روشنایی";
} else if (data.item == 6) {
return " خط کشی";
} else if (data.item == 7) {
return " رنگ آمیزی";
} else if (data.item == 8) {
return " شستشو‌";
} else if (data.item == 9) {
return " ایمن سازی";
} else if (data.item == 10) {
return "حریم";
} else if (data.item == 11) {
return "پل";
} else if (data.item == 12) {
return " تونل و گالری";
} else if (data.item == 13) {
return " عملیات زمستانی";
} else if (data.item == 14) {
return " ماشین آلات";
} else if (data.item == 15) {
return " راهدارخانه";
} else if (data.item == 16) {
return " موارد اضطراری";
} else if (data.item == 17) {
return "آیتم های بازدید و بازرسی و کنترل";
} else return "_";
}
} else if (data.type == "گشت راهداری و ترابری") {
if (
data.sub_projects != undefined &&
data.sub_projects.length != 0
) {
let textfile = " ";
for (var i = 0; i < data.sub_projects.length; i++) {
if (data.sub_projects[i].item == 1) {
textfile += i + 1 + ")" + " " + " مرمت رویه";
} else if (data.sub_projects[i].item == 2) {
textfile += i + 1 + ")" + " " + "پاکسازی" + "<br>";
} else if (data.sub_projects[i].item == 3) {
textfile += i + 1 + ")" + " " + "علائم" + "<br>";
} else if (data.sub_projects[i].item == 4) {
textfile += i + 1 + ")" + " " + "حفاظ" + "<br>";
} else if (data.sub_projects[i].item == 5) {
textfile += i + 1 + ")" + " " + "روشنایی" + "<br>";
} else if (data.sub_projects[i].item == 6) {
textfile += i + 1 + ")" + " " + "خط کشی" + "<br>";
} else if (data.sub_projects[i].item == 7) {
textfile += i + 1 + ")" + " " + "رنگ آمیزی" + "<br>";
} else if (data.sub_projects[i].item == 8) {
textfile += i + 1 + ")" + " " + "شستشو‌" + "<br>";
} else if (data.sub_projects[i].item == 9) {
textfile += i + 1 + ")" + " " + "ایمن سازی" + "<br>";
} else if (data.sub_projects[i].item == 10) {
textfile += i + 1 + ")" + " " + "حریم" + "<br>";
} else if (data.sub_projects[i].item == 11) {
textfile += i + 1 + ")" + " " + "پل" + "<br>";
} else if (data.sub_projects[i].item == 12) {
textfile += i + 1 + ")" + " " + " تونل و گالری" + "<br>";
} else if (data.sub_projects[i].item == 13) {
textfile += i + 1 + ")" + " " + "عملیات زمستانی" + "<br>";
} else if (data.sub_projects[i].item == 14) {
textfile += i + 1 + ")" + " " + " ماشین آلات" + "<br>";
} else if (data.sub_projects[i].item == 15) {
textfile += i + 1 + ")" + " " + " راهدارخانه" + "<br>";
} else if (data.sub_projects[i].item == 16) {
textfile += i + 1 + ")" + " " + " موارد اضطراری" + "<br>";
} else if (data.sub_projects[i].item == 17) {
textfile +=
i + 1 + ")" + " " + " گزارش گشت راهداری" + "<br>";
} else if (data.sub_projects[i].item == 18) {
textfile +=
i + 1 + ")" + " " + " کشیک راهداری زمستانی" + "<br>";
} else if (data.sub_projects[i].item == 19) {
textfile +=
i + 1 + ")" + " " + " ناوگان حمل و نقل عمومی" + "<br>";
} else textfile += "_" + "<br>";
}
return textfile;
} else return "_";
} else return "_";
},
},
{
data: null,
render: function (data, type, row) {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.item != undefined) {
// return data.item
if (data.item == 1) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "ترمیم افتادگی لبه آسفالت" + "<br>";
}
if (value == 2) {
textfile += "شانه سازی" + "<br>";
}
if (value == 3) {
textfile +=
"پر کردن گودافتادگی یا چاله با آسفالت" + "<br>";
}
if (value == 4) {
textfile += "لکه گیری هندسی راه" + "<br>";
}
if (value == 5) {
textfile += "مرمت آبشستگی راه ها و شانه راه ها" + "<br>";
}
if (value == 6) {
textfile += "تنظیم سطح بستر حریم" + "<br>";
}
if (value == 7) {
textfile += "درزگیری" + "<br>";
}
if (value == 8) {
textfile += "مضرس کردن سطح راه ها" + "<br>";
}
if (value == 9) {
textfile += "تراش رویه های موج زده" + "<br>";
}
if (value == 10) {
textfile += "تیغ زنی راه های تیک" + "<br>";
}
if (value == 11) {
textfile += "شن ریزی، تسطیح و کمپکت راه تیک" + "<br>";
}
if (value == 12) {
textfile +=
"عملیات تسطیح، خاکبرداری و خاکریزی در رفوژ میانی" +
"<br>";
}
});
return textfile;
} else if (data.item == 2) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "پاک سازی و جاروزنی سطح راه" + "<br>";
}
if (value == 2) {
textfile +=
"پاک سازی و تنقیه آبروهای کوچک و کالورت ها" + "<br>";
}
if (value == 3) {
textfile += "پاک سازی سطح راه از لاشه حیوانات" + "<br>";
}
if (value == 4) {
textfile += "پاک سازی قنوها و آبروهای طولی" + "<br>";
}
if (value == 5) {
textfile += "پاک سازی سطح راه از آثار تصادفات" + "<br>";
}
if (value == 6) {
textfile += "علف کنی و بوته کنی از حاشیه راه" + "<br>";
}
if (value == 7) {
textfile +=
"پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" +
"<br>";
}
if (value == 8) {
textfile +=
"جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." + "<br>";
}
if (value == 9) {
textfile += "پاکسازی پارکینگ راه ها" + "<br>";
}
if (value == 10) {
textfile +=
"پاکسازی کناره قرنیز پل ها، دیواره تونل ها، جداول و نیوجرسی از مصالح انباشته شده" +
"<br>";
}
if (value == 11) {
textfile += "پاکسازی و تمیزکاری جزیره های میانی" + "<br>";
}
if (value == 12) {
textfile += "پاکسازی و تنقیه داخل پل ها" + "<br>";
}
if (value == 13) {
textfile += "پاکسازی و تنقیه سیفون ها" + "<br>";
}
if (value == 14) {
textfile +=
"پاکسازی و جمع آوری شاخه درختان از دهانه آبنماهای لوله ای" +
"<br>";
}
if (value == 15) {
textfile +=
"پاکسازی سطح راه از مواد نفتی یا روغنی" + "<br>";
}
if (value == 16) {
textfile +=
"علف کنی و بوته کنی به صورت دستی اطراف تابلو، علائم و ..." +
"<br>";
}
if (value == 17) {
textfile += "ریزش برداری" + "<br>";
}
if (value == 18) {
textfile += "جمع آوری خرده سنگ های ریزشی" + "<br>";
}
if (value == 19) {
textfile += "لایروبی" + "<br>";
}
});
return textfile;
} else if (data.item == 3) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"نصب تابلوهای اخطاری، انتظامی و مسیرنمای جدید" + "<br>";
}
if (value == 2) {
textfile += "نصب تابلوهای اطلاعاتی جدید" + "<br>";
}
if (value == 3) {
textfile += "تعویض شبرنگ تابلوهای اطلاعاتی" + "<br>";
}
if (value == 4) {
textfile +=
"نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" +
"<br>";
}
if (value == 5) {
textfile +=
"تعویض صفحه تابلوهای اخطاری، انتظامی فاقد بازتاب و معیوب" +
"<br>";
}
if (value == 6) {
textfile +=
"مرمت شکستگی، خم شدگی و ... تابلوهای اطلاعاتی" + "<br>";
}
if (value == 7) {
textfile += "اصلاح کج شدگی پایه تابلوها و علائم" + "<br>";
}
if (value == 8) {
textfile += "نصب یا برداشت علائم موقت" + "<br>";
}
});
return textfile;
} else if (data.item == 4) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"ارتقای حفاظ موجود میانی راه ها با حفاظ های مرسوم یا سایر روش ها" +
"<br>";
}
if (value == 2) {
textfile +=
"ارتقای حفاظ موجود پل ها و پرتگاه ها با حفاظ های مرسوم یا سایر روش ها" +
"<br>";
}
if (value == 3) {
textfile += "بهسازی حفاظ های موجود و آسیب دیده" + "<br>";
}
});
return textfile;
} else if (data.item == 5) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "نگهداری و پاکسازی روشنایی طولی راه" + "<br>";
}
if (value == 2) {
textfile +=
"نگهداری و پاکسازی روشنایی نقطه ای پارکینگ در حاشیه راه" +
"<br>";
}
if (value == 3) {
textfile +=
"نگهداری و پاکسازی روشنایی نقطه ای تقاطع در حاشیه راه" +
"<br>";
}
if (value == 4) {
textfile +=
"نگهداری و پاکسازی روشنایی نقطه ای محل نصب دوربین در حاشیه راه" +
"<br>";
}
if (value == 5) {
textfile +=
"نگهداری و پاکسازی روشنایی طولی نواحی یا گردنه های مه گیر" +
"<br>";
}
if (value == 6) {
textfile += "نگهداری و پاکسازی روشنایی تونل" + "<br>";
}
if (value == 7) {
textfile += "تعمیرات شبکه روشنایی، کابل" + "<br>";
}
if (value == 8) {
textfile +=
"تعمیرات شبکه روشنایی روشنایی، کله چراغ" + "<br>";
}
if (value == 9) {
textfile += "تعمیرات شبکه روشنایی، مفصل زنی" + "<br>";
}
if (value == 10) {
textfile += "تعمیرات شبکه روشنایی، تعمیر تابلو" + "<br>";
}
if (value == 11) {
textfile += "تعمیرات برج نوری" + "<br>";
}
});
return textfile;
} else if (data.item == 6) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "خط کشی با رنگ گرم ترافیکی" + "<br>";
}
if (value == 2) {
textfile += "خط کشی با رنگ سرد ترافیکی" + "<br>";
}
if (value == 3) {
textfile += "ترسیم نقوش، فلش، خط نوشته و ..." + "<br>";
}
if (value == 4) {
textfile += "اجرای اکستروژن طولی" + "<br>";
}
if (value == 5) {
textfile += "اجرای اکستروژن عرضی" + "<br>";
}
if (value == 6) {
textfile += "پاک کردن خطوط ترافیکی از سطح راه" + "<br>";
}
});
return textfile;
} else if (data.item == 7) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "رنگ آمیزی پایه تابلوها" + "<br>";
}
if (value == 2) {
textfile += "رنگ آمیزی پایه چراغ ها" + "<br>";
}
if (value == 3) {
textfile += "رنگ آمیزی پایه های روشنایی" + "<br>";
}
if (value == 4) {
textfile += "رنگ آمیزی پل های عابر پیاده" + "<br>";
}
if (value == 5) {
textfile += "رنگ آمیزی پایه تابلوهای دروازه ای" + "<br>";
}
if (value == 6) {
textfile += "رنگ آمیزی حفاظ های فلزی" + "<br>";
}
if (value == 7) {
textfile +=
"رنگ آمیزی نیوجرسی ها و سایر حفاظ های بتنی" + "<br>";
}
if (value == 8) {
textfile += "رنگ آمیزی سرعتگاه ها" + "<br>";
}
if (value == 9) {
textfile +=
"رنگ آمیزی پایه و کوله پل ها جهت آشکارسازی" + "<br>";
}
});
return textfile;
} else if (data.item == 8) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." +
"<br>";
}
if (value == 2) {
textfile += " شستشوی تابلوهای اطلاعاتی" + "<br>";
}
if (value == 3) {
textfile += " شستشوی جداول" + "<br>";
}
if (value == 4) {
textfile += " شستشوی نیوجرسی ها" + "<br>";
}
if (value == 5) {
textfile += " شستشوی گاردریل ها و هندریل ها" + "<br>";
}
if (value == 6) {
textfile += "شستشوی دیواره تونل ها" + "<br>";
}
if (value == 7) {
textfile += "شستشوی تیکه گاه پل ها" + "<br>";
}
});
return textfile;
} else if (data.item == 9) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" +
"<br>";
}
if (value == 2) {
textfile += "ایمن سازی شیب شیروانی ها" + "<br>";
}
if (value == 3) {
textfile += "اجرای استراحتگاه" + "<br>";
}
if (value == 4) {
textfile += "تعمیرات چراغ های آذرخشی و چشمک زن" + "<br>";
}
if (value == 5) {
textfile +=
"ایجاد شیراهای لرزاننده طولی لاین کنار" + "<br>";
}
if (value == 6) {
textfile += "ضربه گیر استوانه ای" + "<br>";
}
if (value == 7) {
textfile += "نصب سرعت گیر استاندارد پلاستیکی" + "<br>";
}
if (value == 8) {
textfile +=
"ایجاد شیارهای لرزاننده طولی در اکس راه های دوطرفه" +
"<br>";
}
if (value == 9) {
textfile += "ایجاد شیارهای لرزاننده عرضی" + "<br>";
}
if (value == 10) {
textfile += "استوانه ایمنی جهت هدایت ترافیک" + "<br>";
}
if (value == 11) {
textfile += "احداث سرعتگیر آسفالتی" + "<br>";
}
if (value == 12) {
textfile += "اجرای هره خاکی نقطه ای" + "<br>";
}
if (value == 13) {
textfile += "اجرای هره خاکی طولی" + "<br>";
}
if (value == 14) {
textfile +=
"تعریض مقطعی جهت خروج اضطراری در سراشیبی ها" + "<br>";
}
if (value == 15) {
textfile +=
"حذف یا جا به جایی موانع صلب در حاشیه راه در محدوده عاری از مانع" +
"<br>";
}
});
return textfile;
} else if (data.item == 10) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"اخطار، تخریب، بازدید و یا تهیه اطلاعات از ساخت و ساز در حریم" +
"<br>";
}
if (value == 2) {
textfile +=
"اخطار، تخریب، بازدید و یا تهیه اطلاعات از ایجاد راه دسترسی در حریم" +
"<br>";
}
if (value == 3) {
textfile +=
"اخطار، تخریب، بازدید و یا تهیه اطلاعات از عبور تاسیسات زیر بنایی در حریم" +
"<br>";
}
if (value == 4) {
textfile += "برخورد با دستفروشان حاشیه راه" + "<br>";
}
if (value == 5) {
textfile +=
"جمع آوری تابلوهای غیرمجاز در حاشیه راه ها" + "<br>";
}
if (value == 6) {
textfile += "جمع آوری بنرهای تبلیغاتی غیرمجاز" + "<br>";
}
});
return textfile;
} else if (data.item == 11) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "احداث یا مرمت قرنیز پل" + "<br>";
}
if (value == 2) {
textfile += "لوله گذاری آبروها" + "<br>";
}
if (value == 3) {
textfile += "تطویل و رفع انسداد آبچکان پل ها" + "<br>";
}
if (value == 4) {
textfile += "بازسازی نرده پل" + "<br>";
}
if (value == 5) {
textfile += "تعمیرات آبرو شامل کوله دستک و دال" + "<br>";
}
if (value == 6) {
textfile += "مرمت و بازسازی درز انبساط" + "<br>";
}
if (value == 7) {
textfile += "تعمیرات رادیه و برید" + "<br>";
}
});
return textfile;
} else if (data.item == 12) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "زهکشی طاق تونل" + "<br>";
}
if (value == 2) {
textfile += "مرمت و بازرسی آبروهای هدایت آب" + "<br>";
}
if (value == 3) {
textfile += "لاینینگ" + "<br>";
}
if (value == 4) {
textfile += "تعمیر و بازسازی گالری" + "<br>";
}
if (value == 5) {
textfile += "گاباریت" + "<br>";
}
if (value == 6) {
textfile += "نگهداری دوربین ها و ابزار دقیق" + "<br>";
}
if (value == 7) {
textfile += "نگهداری تهویه تونل" + "<br>";
}
});
return textfile;
} else if (data.item == 13) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "عملیات یخ زدایی با شن و نمک پاشی" + "<br>";
}
if (value == 2) {
textfile += "برف روبی" + "<br>";
}
if (value == 3) {
textfile +=
"برف روبی با بولدوزر و ماشین برف خور" + "<br>";
}
if (value == 4) {
textfile += "برف روبی در شرایط کولاک و عدم دید" + "<br>";
}
if (value == 5) {
textfile += "میزان نمک و شن و ماسه مصرفی" + "<br>";
}
if (value == 6) {
textfile += "ریزش برداری" + "<br>";
}
if (value == 7) {
textfile += "مسافرین اسکان داده شده" + "<br>";
}
if (value == 8) {
textfile += "کمک رسانی به خودرو" + "<br>";
}
});
return textfile;
} else if (data.item == 14) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"بنزین مصرفی کل ماشین آلات فعال - ماهانه" + "<br>";
}
if (value == 2) {
textfile +=
"گازوئیل مصرفی کل ماشین آلات فعال - ماهانه" + "<br>";
}
if (value == 3) {
textfile +=
"مواد مصرفی نفتی و انواع روغن - ماهانه" + "<br>";
}
if (value == 4) {
textfile += "بازسازی و راه اندازی ماشین آلات" + "<br>";
}
if (value == 5) {
textfile += "خرید ماشین آلات" + "<br>";
}
if (value == 6) {
textfile += "خرید تجهیزآلات مرتبط به ماشین آلات" + "<br>";
}
if (value == 7) {
textfile +=
"بازدید کارشناسان از ماشین آلات استان" + "<br>";
}
if (value == 8) {
textfile += "سرویس کاری و تعمیرات جرئی روزانه" + "<br>";
}
if (value == 9) {
textfile +=
"شستشوی نمک پاش ها و سایر ماشین آلات" + "<br>";
}
if (value == 10) {
textfile +=
"جا به جایی دستگاه های سنگین راهداری" + "<br>";
}
});
return textfile;
} else if (data.item == 15) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "راهدارخانه های بازسازی شده" + "<br>";
}
if (value == 2) {
textfile +=
"خرید تجهیزآلات مرتبط با راهدارخانه ها" + "<br>";
}
if (value == 3) {
textfile +=
"جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" +
"<br>";
}
if (value == 4) {
textfile += "تعمیرات جزئی و موردی راهدارخانه ها" + "<br>";
}
});
return textfile;
} else if (data.item == 16) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" +
"<br>";
}
if (value == 2) {
textfile +=
"برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" +
"<br>";
}
if (value == 3) {
textfile +=
"برقراری ارتباط و رفع انسداد ناشی از شن های روان" +
"<br>";
}
if (value == 4) {
textfile +=
"برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" +
"<br>";
}
if (value == 5) {
textfile +=
"برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" +
"<br>";
}
if (value == 6) {
textfile +=
"بستن راه و هدایت ترافیکی در مواقع اضطراری" + "<br>";
}
if (value == 7) {
textfile +=
"بازگشایی محورهایی که به علت کولاک مسدود شده اند" +
"<br>";
}
if (value == 8) {
textfile +=
"جا به جایی ماشین های سنگین گرفتار در سطح راه" + "<br>";
}
if (value == 9) {
textfile += "لق گیری" + "<br>";
}
});
return textfile;
} else if (data.item == 17) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile +=
"بازدید ادواری از ابنیه فنی و تکمیل چک لیست های مربوط توسط کارشناسان (نفر - ساعت)" +
"<br>";
}
if (value == 2) {
textfile +=
"بازدید ادواری از وضعیت علائم و تعیین کسری علائم و ارزیابی وضعیت خط کشی ها، تجهیزات روشنایی و تهویه تونلها و گاردریل و نظایر آنها و تکمیل چک لیستها توسط کارشناسان (نفر -ساعت)" +
"<br>";
}
if (value == 3) {
textfile +=
"ارزیابی ادواری وضعیت پایداری ترانشه ها و شیروانی ها، سیستم های زهکشی و ارزیابی علل ریزش ترانشه ها و علل شکست راه و تکمیل چک لیست توسط کارشناسان (نفر - ساعت)" +
"<br>";
}
if (value == 4) {
textfile +=
"ارزیابی ادواری وضعیت رویه های آسفالتی و شانه ها و ارزیابی و کنترل ترکها و تکمیل چک لیستها توسط کارشناسان (کیلومتر)" +
"<br>";
}
if (value == 5) {
textfile +=
"بررسی وضعیت حریم راه و تهیه گزارش مربوط با تجهیز و اعزام کارشناس (کیلومتر)" +
"<br>";
}
if (value == 6) {
textfile +=
"بازدید کارشناسان از ماشین آلات استان (تعداد دستگاه)" +
"<br>";
}
});
return textfile;
} else return "_";
// return data.sub_items
} else return "_";
} else if (data.type == "گشت راهداری و ترابری") {
if (
data.sub_projects != undefined &&
data.sub_projects.length != 0
) {
let textfile = "";
for (var i = 0; i < data.sub_projects.length; i++) {
if (data.sub_projects[i].item == 1) {
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ترمیم افتادگی لبه آسفالت" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"شانه سازی" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پر کردن گودافتادگی یا چاله با آسفالت" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"لکه گیری هندسی راه" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مرمت آبشستگی راه ها و شانه راه ها" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تنظیم سطح بستر حریم" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 2) {
// textfilee += "test2"
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی و جاروزنی سطح راه" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی و تنقیه آبروهای کوچک" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی سطح راه از لاشه حیوانات" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی قنوها و آبروهای طولی" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی سطح راه از آثار تصادفات" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"علف کنی و بوته کنی" +
"<br>";
}
if (value == 7) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" +
"<br>";
}
if (value == 8) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 3) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نصب تابلوهای اخطاری، انتظامی و مسیرنما" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نصب تابلوهای اطلاعاتی" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعویض شبرنگ تابلوهای اطلاعاتی" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 4) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ارتقای حفاظ میانی راه ها" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ارتقای حفاظ پل ها و پرتگاه ها" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بهسازی حفاظ های موجود" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 5) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی طولی راه" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی نقطه ای پارکینگ در حاشیه راه" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی نقطه ای تقاطع در حاشیه راه" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی نقطه ای محل نصب دوربین در حاشیه راه" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی طولی نواحی یا گردنه های مه گیر" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"روشنایی تونل" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 6) {
// let textfile = "test6"
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"خط کشی با رنگ گرم ترافیکی" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"خط کشی با رنگ سرد ترافیکی" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ترسیم نقوش، فلش، خط نوشته و ..." +
"<br>";
}
});
// textfilee +="test6"
} else if (data.sub_projects[i].item == 7) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی پایه تابلوها" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی پایه چراغ ها" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی پایه های روشنایی" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی پل های عابر پیاده" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی پایه تابلوهای دروازه ای" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"رنگ آمیزی حفاظ ها" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 8) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" شستشوی تابلوهای اطلاعاتی" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" شستشوی جداول" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" شستشوی نیوجرسی ها" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" شستشوی گاردریل ها و هندریل ها" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"شستشوی دیواره تونل ها" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 9) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ایمن سازی شیب شیروانی ها" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"اجرای استراحتگاه" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نصب و راه اندازی چراغ های آذرخشی و چشمک زن" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ایجاد شیراهای لرزاننده طولی" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ضربه گیر استوانه ای" +
"<br>";
}
if (value == 7) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نصب سرعت گیر استاندارد پلاستیکی" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 10) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ساخت و ساز" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"عبور تاسیسات زیربنایی" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"راه دسترسی اختصاصی" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"راه دسترسی تجمیع شده" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 11) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعمیرات الواسیون" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"دراواسیون و تنظیم بستر پل های بالای 6 متر" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"احداث رادیه و برید" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مرمت و بازسازی درز انبساط" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بازسازی نرده پل" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 12) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"زهکشی طاق تونل" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مرمت و بازرسی آبروهای هدایت آب" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"لاینینگ" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعمیر و بازسازی گالری" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"گاباریت" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 13) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"عملیات یخ زدایی با شن و نمک پاشی" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برف روبی با گریدر یا تیغه برف روب" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برف روبی با بولدوزر و ماشین برف خور" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برف روبی در شرایط کولاک و عدم دید" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"میزان نمک مصرفی" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"ریزش برداری" +
"<br>";
}
if (value == 7) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مسافرین اسکان داده شده" +
"<br>";
}
if (value == 8) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کمک رسانی به خودرو رهاشده" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 14) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بنزین مصرفی کل ماشین آلات فعال" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"گازوئیل مصرفی کل ماشین آلات فعال" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مواد مصرفی نفتی و انواع روغن" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بازسازی و راه اندازی ماشین آلات" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"خرید ماشین آلات" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"خرید تجهیزآلات مرتبط به ماشین آلات" +
"<br>";
}
if (value == 7) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بازدید کارشناسان از ماشین آلات استان" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 15) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"راهدارخانه های بازسازی شده" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"خرید تجهیزآلات مرتبط با راهدارخانه ها" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 16) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط و رفع انسداد ناشی از شن های روان" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بستن راه و هدایت ترافیکی در مواقع اضطراری" +
"<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 17) {
// let textfile = ""
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" +
"<br>";
}
if (value == 2) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" +
"<br>";
}
if (value == 3) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط و رفع انسداد ناشی از شن های روان" +
"<br>";
}
if (value == 4) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" +
"<br>";
}
if (value == 5) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" +
"<br>";
}
if (value == 6) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"بستن راه و هدایت ترافیکی در مواقع اضطراری" +
"<br>";
}
});
// return textfile
} else return "_";
}
return textfile;
} else return "_";
} else return "_";
// return data.item
},
},
{
data: null,
render: function (data, type, row) {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.item != undefined) {
if (data.sub_items_data != null) {
if (data.item == 1) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["reconstruction1-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction1-1"] + "<br>";
} else textfile += "_" + "</br>";
}
if (value == 2) {
if (
data.sub_items_data["reconstruction2-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_items_data["reconstruction3-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["reconstruction4-1"]) {
textfile +=
data.sub_items_data["reconstruction4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_items_data["reconstruction5-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_items_data["reconstruction6-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_items_data["reconstruction7-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (
data.sub_items_data["reconstruction8-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (
data.sub_items_data["reconstruction9-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (
data.sub_items_data["reconstruction10-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction10-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (
data.sub_items_data["reconstruction11-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction11-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (
data.sub_items_data["reconstruction12-1"] != undefined
) {
textfile +=
data.sub_items_data["reconstruction12-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 2) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["cleaning1-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["cleaning2-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["cleaning3-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["cleaning4-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["cleaning5-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["cleaning6-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["cleaning7-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["cleaning8-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["cleaning9-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["cleaning10-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning10-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["cleaning11-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning11-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (data.sub_items_data["cleaning12-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning12-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 13) {
if (data.sub_items_data["cleaning13-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning13-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 14) {
if (data.sub_items_data["cleaning14-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning14-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 15) {
if (data.sub_items_data["cleaning15-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning15-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 16) {
if (data.sub_items_data["cleaning16-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning16-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 17) {
if (data.sub_items_data["cleaning17-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning17-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 18) {
if (data.sub_items_data["cleaning18-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning18-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 19) {
if (data.sub_items_data["cleaning19-1"] != undefined) {
textfile +=
data.sub_items_data["cleaning19-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 3) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["signs1-1"] != undefined) {
textfile += data.sub_items_data["signs1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["signs2-1"] != undefined) {
textfile += data.sub_items_data["signs2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["signs3-1"] != undefined) {
textfile += data.sub_items_data["signs3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["signs4-1"] != undefined) {
textfile += data.sub_items_data["signs4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["signs5-1"] != undefined) {
textfile += data.sub_items_data["signs5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["signs6-1"] != undefined) {
textfile += data.sub_items_data["signs6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["signs7-1"] != undefined) {
textfile += data.sub_items_data["signs7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["signs8-1"] != undefined) {
textfile += data.sub_items_data["signs8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 4) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["shield1-1"] != undefined) {
textfile += data.sub_items_data["shield1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["shield2-1"] != undefined) {
textfile += data.sub_items_data["shield2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["shield3-1"] != undefined) {
textfile += data.sub_items_data["shield3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 5) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["lighting1-1"] != undefined) {
textfile +=
data.sub_items_data["lighting1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["lighting2-1"] != undefined) {
textfile +=
data.sub_items_data["lighting2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["lighting3-1"] != undefined) {
textfile +=
data.sub_items_data["lighting3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["lighting4-1"] != undefined) {
textfile +=
data.sub_items_data["lighting4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["lighting5-1"] != undefined) {
textfile +=
data.sub_items_data["lighting5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["lighting6-1"] != undefined) {
textfile +=
data.sub_items_data["lighting6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["lighting7-1"] != undefined) {
textfile +=
data.sub_items_data["lighting7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["lighting8-1"] != undefined) {
textfile +=
data.sub_items_data["lighting8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["lighting9-1"] != undefined) {
textfile +=
data.sub_items_data["lighting9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["lighting10-1"] != undefined) {
textfile +=
data.sub_items_data["lighting10-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["lighting11-1"] != undefined) {
textfile +=
data.sub_items_data["lighting11-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 6) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["lining1-1"] != undefined) {
textfile += data.sub_items_data["lining1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["lining2-1"] != undefined) {
textfile += data.sub_items_data["lining2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["lining3-1"] != undefined) {
textfile += data.sub_items_data["lining3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["lining4-1"] != undefined) {
textfile += data.sub_items_data["lining4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["lining5-1"] != undefined) {
textfile += data.sub_items_data["lining5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["lining6-1"] != undefined) {
textfile += data.sub_items_data["lining6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 7) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["coloring1-1"] != undefined) {
textfile +=
data.sub_items_data["coloring1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["coloring2-1"] != undefined) {
textfile +=
data.sub_items_data["coloring2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["coloring3-1"] != undefined) {
textfile +=
data.sub_items_data["coloring3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["coloring4-1"] != undefined) {
textfile +=
data.sub_items_data["coloring4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["coloring5-1"] != undefined) {
textfile +=
data.sub_items_data["coloring5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["coloring6-1"] != undefined) {
textfile +=
data.sub_items_data["coloring6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["coloring7-1"] != undefined) {
textfile +=
data.sub_items_data["coloring7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["coloring8-1"] != undefined) {
textfile +=
data.sub_items_data["coloring8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["coloring9-1"] != undefined) {
textfile +=
data.sub_items_data["coloring9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 8) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["washing1-1"] != undefined) {
textfile +=
data.sub_items_data["washing1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["washing2-1"] != undefined) {
textfile +=
data.sub_items_data["washing2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["washing3-1"] != undefined) {
textfile +=
data.sub_items_data["washing3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["washing4-1"] != undefined) {
textfile +=
data.sub_items_data["washing4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["washing5-1"] != undefined) {
textfile +=
data.sub_items_data["washing5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["washing6-1"] != undefined) {
textfile +=
data.sub_items_data["washing6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["washing7-1"] != undefined) {
textfile +=
data.sub_items_data["washing7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 9) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["securing1-1"] != undefined) {
textfile +=
data.sub_items_data["securing1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["securing2-1"] != undefined) {
textfile +=
data.sub_items_data["securing2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["securing3-1"] != undefined) {
textfile +=
data.sub_items_data["securing3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["securing4-1"] != undefined) {
textfile +=
data.sub_items_data["securing4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["securing5-1"] != undefined) {
textfile +=
data.sub_items_data["securing5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["securing6-1"] != undefined) {
textfile +=
data.sub_items_data["securing6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["securing7-1"] != undefined) {
textfile +=
data.sub_items_data["securing7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["securing8-1"] != undefined) {
textfile +=
data.sub_items_data["securing8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["securing9-1"] != undefined) {
textfile +=
data.sub_items_data["securing9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["securing10-1"] != undefined) {
textfile +=
data.sub_items_data["securing10-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["securing11-1"] != undefined) {
textfile +=
data.sub_items_data["securing11-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (data.sub_items_data["securing12-1"] != undefined) {
textfile +=
data.sub_items_data["securing12-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 13) {
if (data.sub_items_data["securing13-1"] != undefined) {
textfile +=
data.sub_items_data["securing13-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 14) {
if (data.sub_items_data["securing14-1"] != undefined) {
textfile +=
data.sub_items_data["securing14-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 15) {
if (data.sub_items_data["securing15-1"] != undefined) {
textfile +=
data.sub_items_data["securing15-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 10) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["privacy1-1"] != undefined) {
textfile +=
data.sub_items_data["privacy1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["privacy2-1"] != undefined) {
textfile +=
data.sub_items_data["privacy2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["privacy3-1"] != undefined) {
textfile +=
data.sub_items_data["privacy3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["privacy4-1"] != undefined) {
textfile +=
data.sub_items_data["privacy4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["privacy5-1"] != undefined) {
textfile +=
data.sub_items_data["privacy5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["privacy6-1"] != undefined) {
textfile +=
data.sub_items_data["privacy6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 11) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["bridge1-1"] != undefined) {
textfile += data.sub_items_data["bridge1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["bridge2-1"] != undefined) {
textfile += data.sub_items_data["bridge2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["bridge3-1"] != undefined) {
textfile += data.sub_items_data["bridge3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["bridge4-1"] != undefined) {
textfile += data.sub_items_data["bridge4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["bridge5-1"] != undefined) {
textfile += data.sub_items_data["bridge5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["bridge6-1"] != undefined) {
textfile += data.sub_items_data["bridge6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["bridge7-1"] != undefined) {
textfile += data.sub_items_data["bridge7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 12) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["tunnel1-1"] != undefined) {
textfile += data.sub_items_data["tunnel1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["tunnel2-1"] != undefined) {
textfile += data.sub_items_data["tunnel2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["tunnel3-1"] != undefined) {
textfile += data.sub_items_data["tunnel3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["tunnel4-1"] != undefined) {
textfile += data.sub_items_data["tunnel4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["tunnel5-1"] != undefined) {
textfile += data.sub_items_data["tunnel5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["tunnel6-1"] != undefined) {
textfile += data.sub_items_data["tunnel6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["tunnel7-1"] != undefined) {
textfile += data.sub_items_data["tunnel7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 13) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["winterOperation1-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_items_data["winterOperation2-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_items_data["winterOperation3-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_items_data["winterOperation4-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_items_data["winterOperation5-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_items_data["winterOperation6-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_items_data["winterOperation7-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation7-1"] + "<br>";
} else textfile = "_" + "<br>";
}
if (value == 8) {
if (
data.sub_items_data["winterOperation8-1"] != undefined
) {
textfile +=
data.sub_items_data["winterOperation8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 14) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["machinery1-1"] != undefined) {
textfile +=
data.sub_items_data["machinery1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["machinery2-1"] != undefined) {
textfile +=
data.sub_items_data["machinery2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["machinery3-1"] != undefined) {
textfile +=
data.sub_items_data["machinery3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["machinery4-1"] != undefined) {
textfile +=
data.sub_items_data["machinery4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["machinery5-1"] != undefined) {
textfile +=
data.sub_items_data["machinery5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["machinery6-1"] != undefined) {
textfile +=
data.sub_items_data["machinery6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["machinery7-1"] != undefined) {
textfile +=
data.sub_items_data["machinery7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["machinery8-1"] != undefined) {
textfile +=
data.sub_items_data["machinery8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["machinery9-1"] != undefined) {
textfile +=
data.sub_items_data["machinery9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["machinery10-1"] != undefined) {
textfile +=
data.sub_items_data["machinery10-1"] + "<br>";
} else textfile += "_" + "<br>";
}
// if (value == 4) {
// if ((data.sub_items_data['machinery4-1'] != undefined) && (data.sub_items_data['machinery4-2'] != undefined)) {
// textfile += data.sub_items_data['machinery4-1'] + data.sub_items_data['machinery4-2'] + "<br>"
// }
// else if ((data.sub_items_data['machinery4-1'] != undefined) && (data.sub_items_data['machinery4-2'] == undefined)) {
// textfile += data.sub_items_data['machinery4-1'] + "<br>"
// }
// else if ((data.sub_items_data['machinery4-1'] == undefined) && (data.sub_items_data['machinery4-2'] != undefined)) {
// textfile += data.sub_items_data['machinery4-2'] + "<br>"
// }
// else textfile += "_" + "<br>"
// }
// if (value == 5) {
// if ((data.sub_items_data['machinery5-1'] != undefined) && (data.sub_items_data['machinery5-2'] != undefined)) {
// textfile += data.sub_items_data['machinery5-1'] + data.sub_items_data['machinery5-2'] + "<br>"
// }
// else if ((data.sub_items_data['machinery5-1'] != undefined) && (data.sub_items_data['machinery5-2'] == undefined)) {
// textfile += data.sub_items_data['machinery5-1'] + "<br>"
// }
// else if ((data.sub_items_data['machinery5-1'] == undefined) && (data.sub_items_data['machinery5-2'] != undefined)) {
// textfile += data.sub_items_data['machinery5-2'] + "<br>"
// }
// else textfile += "_" + "<br>"
// }
// if (value == 6) {
// if ((data.sub_items_data['machinery6-1'] != undefined) && (data.sub_items_data['machinery6-2'] != undefined)) {
// textfile += data.sub_items_data['machinery6-1'] + data.sub_items_data['machinery6-2'] + "<br>"
// }
// else if ((data.sub_items_data['machinery6-1'] != undefined) && (data.sub_items_data['machinery6-2'] == undefined)) {
// textfile += data.sub_items_data['machinery6-1'] + "<br>"
// }
// else if ((data.sub_items_data['machinery6-1'] == undefined) && (data.sub_items_data['machinery6-2'] != undefined)) {
// textfile += data.sub_items_data['machinery6-2'] + "<br>"
// }
// else textfile += "_" + "<br>"
// }
// if (value == 7) {
// if ((data.sub_items_data['machinery7-1'] != undefined) && (data.sub_items_data['machinery7-2'] != undefined)) {
// textfile += data.sub_items_data['machinery7-1'] + data.sub_items_data['machinery7-2'] + "<br>"
// }
// else if ((data.sub_items_data['machinery7-1'] != undefined) && (data.sub_items_data['machinery7-2'] == undefined)) {
// textfile += data.sub_items_data['machinery7-1'] + "<br>"
// }
// else if ((data.sub_items_data['machinery7-1'] == undefined) && (data.sub_items_data['machinery7-2'] != undefined)) {
// textfile += data.sub_items_data['machinery7-2'] + "<br>"
// }
// else textfile += "_" + "<br>"
// }
});
return textfile;
} else if (data.item == 15) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["tollhouse1-1"] != undefined &&
data.sub_items_data["tollhouse1-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse1-1"] +
data.sub_items_data["tollhouse1-2"] +
"<br>";
} else if (
data.sub_items_data["tollhouse1-1"] != undefined &&
data.sub_items_data["tollhouse1-2"] == undefined
) {
textfile +=
data.sub_items_data["tollhouse1-1"] + "<br>";
} else if (
data.sub_items_data["tollhouse1-1"] == undefined &&
data.sub_items_data["tollhouse1-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse1-2"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_items_data["tollhouse2-1"] != undefined &&
data.sub_items_data["tollhouse2-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse2-1"] +
data.sub_items_data["tollhouse2-2"] +
"<br>";
} else if (
data.sub_items_data["tollhouse2-1"] != undefined &&
data.sub_items_data["tollhouse2-2"] == undefined
) {
textfile +=
data.sub_items_data["tollhouse2-1"] + "<br>";
} else if (
data.sub_items_data["tollhouse2-1"] == undefined &&
data.sub_items_data["tollhouse2-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse2-2"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["tollhouse3-1"] != undefined) {
textfile +=
data.sub_items_data["tollhouse3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["tollhouse4-1"] != undefined) {
textfile +=
data.sub_items_data["tollhouse4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 16) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["emergency1-1"] != undefined) {
textfile +=
data.sub_items_data["emergency1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["emergency2-1"] != undefined) {
textfile +=
data.sub_items_data["tollhouse2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["emergency3-1"] != undefined) {
textfile +=
data.sub_items_data["emergency3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["emergency4-1"] != undefined) {
textfile +=
data.sub_items_data["emergency4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["emergency5-1"] != undefined) {
textfile +=
data.sub_items_data["emergency5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["emergency6-1"] != undefined) {
textfile +=
data.sub_items_data["emergency6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["emergency7-1"] != undefined) {
textfile +=
data.sub_items_data["emergency7-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["emergency8-1"] != undefined) {
textfile +=
data.sub_items_data["emergency8-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["emergency9-1"] != undefined) {
textfile +=
data.sub_items_data["emergency9-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 17) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["seeview1-1"] != undefined) {
textfile +=
data.sub_items_data["seeview1-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["seeview2-1"] != undefined) {
textfile +=
data.sub_items_data["seeview2-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["seeview3-1"] != undefined) {
textfile +=
data.sub_items_data["seeview3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["seeview4-1"] != undefined) {
textfile +=
data.sub_items_data["seeview4-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["seeview5-1"] != undefined) {
textfile +=
data.sub_items_data["seeview5-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["seeview6-1"] != undefined) {
textfile +=
data.sub_items_data["seeview6-1"] + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else return "_";
} else return "_";
} else return "_";
} else if ((data.type = "گشت راهداری و ترابری")) {
if (
data.sub_projects != undefined &&
data.sub_projects.length != 0
) {
let textfile = "";
for (var i = 0; i < data.sub_projects.length; i++) {
if (data.sub_projects[i].sub_items_data != null) {
if (data.sub_projects[i].item == 1) {
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction1-1"
] + "<br>";
} else textfile += "_" + "</br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction3-1"
] + "<br>";
// textfile+="تن"
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction4-1"
]
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction5-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction6-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"reconstruction6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 2) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"cleaning1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"cleaning2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"cleaning3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"cleaning4-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"cleaning5-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"cleaning6-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"cleaning7-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning7-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (
data.sub_projects[i].sub_items_data[
"cleaning8-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"cleaning8-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 3) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["signs1-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["signs1-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["signs2-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["signs2-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["signs3-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["signs3-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data["signs4-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["signs4-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 4) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"shield1-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield1-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"shield1-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"shield1-2-1"
] + "<br>";
}
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"shield2-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield2-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"shield2-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"shield2-2-1"
] + "<br>";
}
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"shield3-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield3-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"shield3-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"shield3-2-1"
] + "<br>";
}
}
});
// return textfile
} else if (data.sub_projects[i].item == 5) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"lighting1-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting1-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting1-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting1-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting1-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting1-2-1"
] + "<br>";
}
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"lighting2-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting2-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting2-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting2-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting2-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting2-2-1"
] + "<br>";
}
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"lighting3-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting3-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting3-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting3-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting3-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting3-2-1"
] + "<br>";
}
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"lighting4-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting4-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting4-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting4-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting4-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting4-2-1"
] + "<br>";
}
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"lighting5-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting5-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting5-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting5-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting5-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting5-2-1"
] + "<br>";
}
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"lighting6-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting6-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting6-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting6-2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting6-2-1"
] + "<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
data.sub_projects[i].sub_items_data[
"lighting6-2-1"
] + "<br>";
}
}
});
// return textfile
} else if (data.sub_projects[i].item == 6) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["lining1-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["lining1-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["lining2-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data["lining2-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["lining3-1"]
) {
textfile +=
data.sub_projects[i].sub_items_data["lining3-1"] +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 7) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"coloring1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"coloring2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"coloring3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"coloring4-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"coloring5-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"coloring6-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"coloring6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 8) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["washing1-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["washing2-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["washing3-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data["washing4-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data["washing5-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data["washing6-1"] !=
undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"washing6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 9) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"securing1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"securing2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"securing3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"securing4-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"securing5-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"securing6-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"securing7-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"securing7-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 10) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"privacy1-1-1"
] != undefined
) {
textfile += "اخطار" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy1-1-2"
] != undefined
) {
textfile += "تخریب" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy1-1-3"
] != undefined
) {
textfile += "مجوز" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy1-1-3"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy1-1-2"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy1-1-1"
] == undefined
) {
textfile += "_" + "<br>";
}
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"privacy2-1-1"
] != undefined
) {
textfile += "اخطار" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy2-1-2"
] != undefined
) {
textfile += "تخریب" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy2-1-3"
] != undefined
) {
textfile += "مجوز" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy2-1-3"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy2-1-2"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy2-1-1"
] == undefined
) {
textfile += "_" + "<br>";
}
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"privacy3-1-1"
] != undefined
) {
textfile += "اخطار " + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy3-1-2"
] != undefined
) {
textfile += "تخریب " + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy3-1-3"
] != undefined
) {
textfile += "مجوز " + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy3-1-3"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy3-1-2"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy3-1-1"
] == undefined
) {
textfile += "_" + "<br>";
}
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"privacy4-1-1"
] != undefined
) {
textfile += "اخطار" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy4-1-2"
] != undefined
) {
textfile += "تخریب" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy4-1-3"
] != undefined
) {
textfile += "مجوز" + "<br>";
}
if (
data.sub_projects[i].sub_items_data[
"privacy4-1-3"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy4-1-2"
] == undefined &&
data.sub_projects[i].sub_items_data[
"privacy4-1-1"
] == undefined
) {
textfile += "_" + "<br>";
}
}
});
// return textfile
} else if (data.sub_projects[i].item == 13) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation1-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation1-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation4-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation4-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation5-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation5-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation6-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation6-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation7-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation7-1"
] + "<br>";
} else textfile = "_" + "<br>";
}
if (value == 8) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation8-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"winterOperation8-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 14) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"machinery1-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery1-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"machinery2-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery2-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"machinery3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery4-1"
] +
data.sub_projects[i].sub_items_data[
"machinery4-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery4-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery4-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery5-1"
] +
data.sub_projects[i].sub_items_data[
"machinery5-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery5-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery5-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery6-1"
] +
data.sub_projects[i].sub_items_data[
"machinery6-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery6-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery6-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery7-1"
] +
data.sub_projects[i].sub_items_data[
"machinery7-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery7-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"machinery7-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 15) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] +
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] +
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] == undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] + "<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse3-1"
] != undefined
) {
textfile +=
data.sub_projects[i].sub_items_data[
"tollhouse3-1"
] + "<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else return "_";
// return textfile
} else return "_";
}
return textfile;
} else return "_";
} else return "_";
// return data.item
},
},
{
data: null,
render: function (data, type, row) {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.item != undefined) {
if (data.sub_items_data != null) {
if (data.item == 1) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["reconstruction1-1"] != undefined
) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "</br>";
}
if (value == 2) {
if (
data.sub_items_data["reconstruction2-1"] != undefined
) {
textfile += "کیلومتر " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_items_data["reconstruction3-1"] != undefined
) {
textfile += " تن" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["reconstruction4-1"]) {
textfile += " متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_items_data["reconstruction5-1"] != undefined
) {
textfile += "متر مکعب " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_items_data["reconstruction6-1"] != undefined
) {
textfile += "کیلومتر " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_items_data["reconstruction7-1"] != undefined
) {
textfile += "متر طول " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (
data.sub_items_data["reconstruction8-1"] != undefined
) {
textfile += "متر مربع " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (
data.sub_items_data["reconstruction9-1"] != undefined
) {
textfile += "متر مربع " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (
data.sub_items_data["reconstruction10-1"] != undefined
) {
textfile += "کیلومتر " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (
data.sub_items_data["reconstruction11-1"] != undefined
) {
textfile += "کیلومتر " + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (
data.sub_items_data["reconstruction12-1"] != undefined
) {
textfile += "متر مکعب " + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 2) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["cleaning1-1"] != undefined) {
textfile += "کیلومتر-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["cleaning2-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["cleaning3-1"] != undefined) {
textfile += "تعداد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["cleaning4-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["cleaning5-1"] != undefined) {
textfile += "مترطول-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["cleaning6-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["cleaning7-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["cleaning8-1"] != undefined) {
textfile += "تن" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["cleaning9-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["cleaning10-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["cleaning11-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (data.sub_items_data["cleaning12-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 13) {
if (data.sub_items_data["cleaning13-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 14) {
if (data.sub_items_data["cleaning14-1"] != undefined) {
textfile += "نفر ساعت" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 15) {
if (data.sub_items_data["cleaning15-1"] != undefined) {
textfile += "مترطول-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 16) {
if (data.sub_items_data["cleaning16-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 17) {
if (data.sub_items_data["cleaning17-1"] != undefined) {
textfile += "مقطع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 18) {
if (data.sub_items_data["cleaning18-1"] != undefined) {
textfile += "نفر ساعت" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 19) {
if (data.sub_items_data["cleaning19-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 3) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["signs1-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["signs2-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["signs3-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["signs4-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["signs5-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["signs6-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["signs7-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["signs8-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 4) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["shield1-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["shield2-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["shield3-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 5) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["lighting1-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["lighting2-1"] != undefined) {
textfile += "موردی" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["lighting3-1"] != undefined) {
textfile += "موردی" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["lighting4-1"] != undefined) {
textfile += "موردی" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["lighting5-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["lighting6-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["lighting7-1"] != undefined) {
textfile += "متر طول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["lighting8-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["lighting9-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["lighting10-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["lighting11-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 6) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["lining1-1"] != undefined) {
textfile += "کیلومتر-رنگ" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["lining2-1"] != undefined) {
textfile += "کیلومتر-رنگ" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["lining3-1"]) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["lining4-1"]) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["lining4-1"]) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["lining4-1"]) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 7) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["coloring1-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["coloring2-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["coloring3-1"] != undefined) {
textfile += "اصله" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["coloring4-1"] != undefined) {
textfile += "دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["coloring5-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["coloring6-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["coloring7-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["coloring8-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["coloring9-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 8) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["washing1-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["washing2-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["washing3-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["washing4-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["washing5-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["washing6-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["washing7-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 9) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["securing1-1"] != undefined) {
textfile += "تعداد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["securing2-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["securing3-1"] != undefined) {
textfile += "باب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["securing4-1"] != undefined) {
textfile += "دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["securing5-1"] != undefined) {
textfile += "کیلومتر-شیار" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["securing6-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["securing7-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["securing8-1"] != undefined) {
textfile += "کیلومتر-شیار" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["securing9-1"] != undefined) {
textfile += "متر مربع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["securing10-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 11) {
if (data.sub_items_data["securing11-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 12) {
if (data.sub_items_data["securing12-1"] != undefined) {
textfile += "موردی" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 13) {
if (data.sub_items_data["securing13-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 14) {
if (data.sub_items_data["securing14-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 15) {
if (data.sub_items_data["securing15-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 10) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["privacy1-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["privacy2-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["privacy3-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["privacy4-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["privacy5-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["privacy6-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 11) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["bridge1-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["bridge2-1"] != undefined) {
textfile += "تعداد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["bridge3-1"] != undefined) {
textfile += "تعداد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["bridge4-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["bridge5-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["bridge6-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["bridge7-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 12) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["tunnel1-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["tunnel2-1"] != undefined) {
textfile += "مترطول" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["tunnel3-1"] != undefined) {
textfile += "متر مکعب" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["tunnel4-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["tunnel5-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["tunnel6-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["tunnel7-1"] != undefined) {
textfile += "عدد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 13) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["winterOperation1-1"] != undefined
) {
textfile += "کیلومتر-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_items_data["winterOperation2-1"] != undefined
) {
textfile += "کیلومتر-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_items_data["winterOperation3-1"] != undefined
) {
textfile += "کیلومتر-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_items_data["winterOperation4-1"] != undefined
) {
textfile += "کیلومتر-باند" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_items_data["winterOperation5-1"] != undefined
) {
textfile += "تن" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_items_data["winterOperation6-1"] != undefined
) {
textfile += "مقطع" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_items_data["winterOperation7-1"] != undefined
) {
textfile += "نفر" + "<br>";
} else textfile = "_" + "<br>";
}
if (value == 8) {
if (
data.sub_items_data["winterOperation8-1"] != undefined
) {
textfile += "تعداد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 14) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["machinery1-1"] != undefined) {
textfile += "لیتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["machinery2-1"] != undefined) {
textfile += "لیتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["machinery3-1"] != undefined) {
textfile += "لیتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["machinery4-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["machinery5-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["machinery6-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["machinery7-1"] != undefined) {
textfile += "مسافت-کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["machinery8-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["machinery9-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 10) {
if (data.sub_items_data["machinery10-1"] != undefined) {
textfile += "مسافت-کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 15) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (
data.sub_items_data["tollhouse1-1"] != undefined &&
data.sub_items_data["tollhouse1-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse1-1"] +
data.sub_items_data["tollhouse1-2"] +
"<br>";
} else if (
data.sub_items_data["tollhouse1-1"] != undefined &&
data.sub_items_data["tollhouse1-2"] == undefined
) {
textfile +=
data.sub_items_data["tollhouse1-1"] + "<br>";
} else if (
data.sub_items_data["tollhouse1-1"] == undefined &&
data.sub_items_data["tollhouse1-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse1-2"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_items_data["tollhouse2-1"] != undefined &&
data.sub_items_data["tollhouse2-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse2-1"] +
data.sub_items_data["tollhouse2-2"] +
"<br>";
} else if (
data.sub_items_data["tollhouse2-1"] != undefined &&
data.sub_items_data["tollhouse2-2"] == undefined
) {
textfile +=
data.sub_items_data["tollhouse2-1"] + "<br>";
} else if (
data.sub_items_data["tollhouse2-1"] == undefined &&
data.sub_items_data["tollhouse2-2"] != undefined
) {
textfile +=
data.sub_items_data["tollhouse2-2"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["tollhouse3-1"] != undefined) {
textfile +=
data.sub_items_data["tollhouse3-1"] + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["tollhouse4-1"] != undefined) {
textfile += "مورد" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 16) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["emergency1-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["emergency2-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["emergency3-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["emergency4-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["emergency5-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["emergency6-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (data.sub_items_data["emergency7-1"] != undefined) {
textfile += "تعداد محور" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (data.sub_items_data["emergency8-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 9) {
if (data.sub_items_data["emergency9-1"] != undefined) {
textfile += "محور" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else if (data.item == 17) {
let textfile = "";
data.sub_items.forEach(function (value, index) {
if (value == 1) {
if (data.sub_items_data["seeView1-1"] != undefined) {
textfile += "نفر-ساعت" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (data.sub_items_data["seeView2-1"] != undefined) {
textfile += "نفر-ساعت" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (data.sub_items_data["seeView3-1"] != undefined) {
textfile += "نفر-ساعت" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (data.sub_items_data["seeView4-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (data.sub_items_data["seeView5-1"] != undefined) {
textfile += "کیلومتر" + "<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (data.sub_items_data["seeView6-1"] != undefined) {
textfile += "تعداد دستگاه" + "<br>";
} else textfile += "_" + "<br>";
}
});
return textfile;
} else return "_";
} else return "_";
} else return "_";
} else if ((data.type = "گشت راهداری و ترابری")) {
if (
data.sub_projects != undefined &&
data.sub_projects.length != 0
) {
let textfile = "";
for (var i = 0; i < data.sub_projects.length; i++) {
if (data.sub_projects[i].sub_items_data != null) {
if (data.sub_projects[i].item == 1) {
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "</br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر " +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" تن" +
"<br>";
// textfile+="تن"
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction4-1"
]
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
" متر مربع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction5-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"متر مکعب " +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"reconstruction6-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر " +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 2) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"cleaning1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"cleaning2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"متر مکعب" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"cleaning3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"cleaning4-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"cleaning5-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترطول-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"cleaning6-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"cleaning7-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 8) {
if (
data.sub_projects[i].sub_items_data[
"cleaning8-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تن" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 3) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["signs1-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["signs2-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["signs3-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data["signs4-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 4) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"shield1-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield1-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield1-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
}
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"shield2-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield2-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield2-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
}
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"shield3-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-3"
] != undefined ||
data.sub_projects[i].sub_items_data[
"shield3-1-4"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"shield3-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
}
}
});
// return textfile
} else if (data.sub_projects[i].item == 5) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"lighting1-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting1-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting1-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting1-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
}
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"lighting2-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting2-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting2-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting2-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
}
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"lighting3-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting3-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting3-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting3-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
}
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"lighting4-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting4-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting4-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting4-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
}
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"lighting5-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting5-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting5-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting5-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
}
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"lighting6-1-1"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting6-1-2"
] != undefined ||
data.sub_projects[i].sub_items_data[
"lighting6-1-3"
] != undefined
) {
if (
data.sub_projects[i].sub_items_data[
"lighting6-2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
} else textfile += "_" + "<br>";
} else {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"موردی" +
"<br>";
}
}
});
// return textfile
} else if (data.sub_projects[i].item == 6) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["lining1-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-رنگ" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["lining2-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-رنگ" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["lining3-1"]
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 7) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"coloring1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"coloring2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"coloring3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"اصله" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"coloring4-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"دستگاه" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"coloring5-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"coloring6-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 8) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data["washing1-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data["washing2-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data["washing3-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data["washing4-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data["washing5-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data["washing6-1"] !=
undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مترمربع" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 9) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"securing1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"securing2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"securing3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"باب" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"securing4-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"دستگاه" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"securing5-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-شیار" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"securing6-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"securing7-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"طول" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 13) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation1-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation4-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"کیلومتر-باند" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation5-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تن" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation6-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"مقطع" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation7-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile = "_" + "<br>";
}
if (value == 8) {
if (
data.sub_projects[i].sub_items_data[
"winterOperation8-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد" +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 14) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"machinery1-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"لیتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"machinery2-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"لیتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"machinery3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"لیتر" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 4) {
if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"هزینه" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery4-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery4-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"هزینه" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 5) {
if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"نوع کاربری" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery5-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery5-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نوع کاربری " +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 6) {
if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"نوع کاربری" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery6-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery6-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"نوع کاربری" +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 7) {
if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"تعداد بازدید " +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد دستگاه" +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"machinery7-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"machinery7-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
"تعداد بازدید " +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else if (data.sub_projects[i].item == 15) {
// let textfile = "";
data.sub_projects[i].sub_items.forEach(function (
value,
index
) {
if (value == 1) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] +
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse1-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse1-2"
] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 2) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] +
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] != undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] == undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] +
"<br>";
} else if (
data.sub_projects[i].sub_items_data[
"tollhouse2-1"
] == undefined &&
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse2-2"
] +
"<br>";
} else textfile += "_" + "<br>";
}
if (value == 3) {
if (
data.sub_projects[i].sub_items_data[
"tollhouse3-1"
] != undefined
) {
textfile +=
i +
1 +
"_" +
(index + 1) +
")" +
" " +
data.sub_projects[i].sub_items_data[
"tollhouse3-1"
] +
"<br>";
} else textfile += "_" + "<br>";
}
});
// return textfile
} else return "_";
// return textfile
} else return "_";
}
return textfile;
} else return "_";
} else return "_";
// return data.item
},
},
{ data: "created_at_jalali" },
{
orderable: false,
className: "text-center",
data: null,
render: function (data, type, row) {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.can_delete == 1) {
return (
'<button class="btn btn-info btn-sm" title="مشاهده پروژه" onclick="window.open(`/projects/road-items-view/' +
data.id +
'`, `_blank`);"><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه" onclick="window.open(`/projects/road-items/' +
data.id +
'/edit`, `_blank`);"><i class="fas fa-edit"></i></button> <button class="btn btn-danger btn-sm editor_remove" title="حذف پروژه"><i class="fas fa-trash-alt"></i></i></button>'
);
} else
return (
'<button class="btn btn-info btn-sm" title="مشاهده پروژه" onclick="window.open(`/projects/road-items-view/' +
data.id +
'`, `_blank`);"><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه" onclick="window.open(`/projects/road-items/' +
data.id +
'/edit`, `_blank`);"><i class="fas fa-edit"></i></button>'
);
} else if (data.type !== "فعالیت روزانه و جاری راهداری") {
if (data.can_delete == 1) {
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه" disabled><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه" disabled><i class="fas fa-edit"></i></button> <button class="btn btn-danger btn-sm editor_remove" title="حذف پروژه"><i class="fas fa-trash-alt"></i></i></button>';
} else
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه" disabled><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه" disabled><i class="fas fa-edit"></i></button>';
}
},
},
],
buttons: [
{
extend: "excelHtml5",
title: "Excel",
text: "خروجی به اکسل",
messageTop: "فهرست فعالیت های ثبت شده ",
// header : true,
//Columns to export
exportOptions: {
columns: [1, 2, 3, 4, 5, 6],
},
},
],
});
}),
table
.on("order.dt search.dt", function () {
table
.column(0, { search: "applied", order: "applied" })
.nodes()
.each(function (cell, i) {
cell.innerHTML = i + 1;
});
})
.draw();
});
$("#exampleriz").on("click", "button.editor_remove", function (e) {
e.preventDefault();
// console.log("hi")
var type = "";
var id = tableriz.row($(this).parents("tr")).data().id;
if (
tableriz.row($(this).parents("tr")).data().type ==
"فعالیت روزانه و جاری راهداری"
) {
type = "ri";
} else if (
tableriz.row($(this).parents("tr")).data().type == "گشت راهداری و ترابری"
) {
type = "rp";
} else type = "";
// console.log("datai", id)
// console.log("type" , type)
Swal.fire({
icon: "warning",
title: "آیا مطمئن هستید؟",
text: "این عملیات قابل بازگشت نیست!",
showCancelButton: true,
confirmButtonColor: "#3085d6",
cancelButtonColor: "#d33",
confirmButtonText: "بله، تایید می‌شود",
cancelButtonText: "منصرف شدم!",
showLoaderOnConfirm: true,
preConfirm: () => {
// console.log("dataid" , id)
// console.log("type" , type)
$.ajax({
url: "https://rms.rmto.ir/users/cities-projects-item/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
},
data: {
id: id,
type: type,
},
success: function (result) {
console.log(result);
showLoaderScreen();
ajaxcalltable();
},
error: function (error) {
console.log(error);
Swal.fire({
icon: "error",
title: "خطا",
text: "مشکلی پیش آمده",
confirmButtonText: "بستن",
});
},
});
},
});
});
function ajaxcalltable() {
$.ajax({
url: "https://rms.rmto.ir/projects/getrirpadmin/" + province_id,
type: "GET",
success: function (result) {
// console.log(result.data[0]);
$("#exampleriz").dataTable().fnClearTable();
$("#exampleriz").dataTable().fnAddData(result.data[0]);
hideLoaderScreen();
Swal.fire({
icon: "success",
title: "با موفقیت حذف شد",
confirmButtonText: "بستن",
});
},
});
}
$("#sort_date").on("click", function () {
if (
$("#datepickfromdate").val() != " " &&
$("#datepicktodate").val() != " "
) {
let startDate = moment(
fromDate.getState().selected.year +
"/" +
fromDate.getState().selected.month +
"/" +
fromDate.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toDate.getState().selected.year +
"/" +
toDate.getState().selected.month +
"/" +
toDate.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
// $("#example").DataTable().clear().draw();
$("#example")
.DataTable()
.ajax.url(
"https://rms.rmto.ir/users/provinces-projects-count" +
"?end-date=" +
endDate +
"&start-date=" +
startDate
)
.load();
}
});
$("#sortt_date").on("click", function () {
if (
$("#datepickfrommdate").val() != " " &&
$("#datepicktoodate").val() != " "
) {
let startDate = moment(
fromDatesecond.getState().selected.year +
"/" +
fromDatesecond.getState().selected.month +
"/" +
fromDatesecond.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toDatesecond.getState().selected.year +
"/" +
toDatesecond.getState().selected.month +
"/" +
toDatesecond.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
// console.log(endDate)
// $("#example").DataTable().clear().draw();
$("#examplee")
.DataTable()
.ajax.url(
"https://rms.rmto.ir/users/province-cities-projects-count" +
"?province-id=" +
province_id +
"&end-date=" +
endDate +
"&start-date=" +
startDate
)
.load();
}
});
$("#sort_datekeshvar").on("click", function () {
if (
$("#datepickfromdatekeshvar").val() != " " &&
$("#datepicktodatekeshvar").val() != " "
) {
let startDate = moment(
fromDatekeshvari.getState().selected.year +
"/" +
fromDatekeshvari.getState().selected.month +
"/" +
fromDatekeshvari.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toDatekeshvari.getState().selected.year +
"/" +
toDatekeshvari.getState().selected.month +
"/" +
toDatekeshvari.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
// $("#example").DataTable().clear().draw();
$("#examplekeshvar")
.DataTable()
.ajax.url(
"https://rms.rmto.ir/projects/ri" +
"?end-date=" +
endDate +
"&start-date=" +
startDate
)
.load();
}
});
// mohammad edit start
$("#sort_dateTestItems").on("click", function () {
if (
$("#datepickfromdateTestItems").val() != " " &&
$("#datepicktodateTestItems").val() != " "
) {
let startDate = moment(
fromDateTestItems.getState().selected.year +
"/" +
fromDateTestItems.getState().selected.month +
"/" +
fromDateTestItems.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toDateTestItems.getState().selected.year +
"/" +
toDateTestItems.getState().selected.month +
"/" +
toDateTestItems.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
// $("#example").DataTable().clear().draw();
$("#exampleTestItems")
.DataTable()
.ajax.url(
"https://rms.rmto.ir/api/testitems" +
"?end-date=" +
endDate +
"&start-date=" +
startDate
)
.load();
}
});
// mohammad edit end
$("#sortt_dateriz").on("click", function () {
if ($("#datepickfromriz").val() != " " && $("#datepicktoriz").val() != " ") {
let startDate = moment(
fromriz.getState().selected.year +
"/" +
fromriz.getState().selected.month +
"/" +
fromriz.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toriz.getState().selected.year +
"/" +
toriz.getState().selected.month +
"/" +
toriz.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
// console.log(endDate)
// console.log(startDate)
// console.log("https://rms.rmto.ir/projects/getrirpadmin/" + province_id + "?end-date=" + endDate + "&start-date=" + startDate)
// $("#example").DataTable().clear().draw();
$("#exampleriz")
.DataTable()
.ajax.url(
"https://rms.rmto.ir/projects/getrirpadmin/" +
province_id +
"?end-date=" +
endDate +
"&start-date=" +
startDate
)
.load();
}
});