var fromDatee = "";
var toDatee = "";
function showLoaderScreen() {
$('.starter-loader-container').css('display', 'flex').hide().fadeIn();
}
function hideLoaderScreen() {
$('.starter-loader-container').fadeOut();
}
$(document).ready(function () {
// showLoaderScreen()
fromDatee = $('#datepickfromm').persianDatepicker({
format: 'YYYY/MM/DD',
autoClose: true,
onSelect: function (unix) {
fromDatee.touched = true;
$('#datepicktoo').prop('disabled', '');
if (fromDatee.getState().selected.unixDate >= toDatee.getState().selected.unixDate) {
toDatee.setDate(fromDatee.getState().selected.unixDate);
}
if (toDatee && toDatee.options && toDatee.options.minDate != unix) {
let cachedValue = toDatee.getState().selected.unixDate;
toDatee.options = { minDate: unix };
if (toDatee.touched) {
toDatee.setDate(cachedValue);
}
}
}
});
toDatee = $('#datepicktoo').persianDatepicker({
format: 'YYYY/MM/DD',
autoClose: true,
format: 'YYYY/MM/DD',
autoClose: true,
onSelect: function (unix) {
toDatee.touched = true;
/*if (fromDatee && fromDatee.options && fromDatee.options.maxDate != unix) {
let cachedValue = fromDatee.getState().selected.unixDate;
fromDatee.options = { maxDate: unix };
if (fromDatee.touched) {
fromDatee.setDate(cachedValue);
}
}*/
}
});
var tablee = $('#examplee').DataTable({
// "pagingType": "full_numbers",
// dom: 'Bfrtip',
// "scrollX": true,
dom: 'lBfrtip',
"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/users/cities-projects-item",
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) + ")" + " " +"پاکسازی" + "
"
}
else if (data.sub_projects[i].item == 3) {
textfile += (i + 1) + ")" + " " +"علائم" + "
"
}
else if (data.sub_projects[i].item == 4) {
textfile += (i + 1) + ")" + " " + "حفاظ" + "
"
}
else if (data.sub_projects[i].item == 5) {
textfile += (i + 1) + ")" + " " + "روشنایی" + "
"
}
else if (data.sub_projects[i].item == 6) {
textfile += (i + 1) + ")" + " " + "خط کشی" + "
"
}
else if (data.sub_projects[i].item == 7) {
textfile += (i + 1) + ")" + " " + "رنگ آمیزی" + "
"
}
else if (data.sub_projects[i].item == 8) {
textfile += (i + 1) + ")" + " " + "شستشو" + "
"
}
else if (data.sub_projects[i].item == 9) {
textfile += (i + 1) + ")" + " " + "ایمن سازی" + "
"
}
else if (data.sub_projects[i].item == 10) {
textfile += (i + 1) + ")" + " " + "حریم" + "
"
}
else if (data.sub_projects[i].item == 11) {
textfile += (i + 1) + ")" + " " + "پل" + "
"
}
else if (data.sub_projects[i].item == 12) {
textfile += (i + 1) + ")" + " " + " تونل و گالری" + "
"
}
else if (data.sub_projects[i].item == 13) {
textfile += (i + 1) + ")" + " " + "عملیات زمستانی" + "
"
}
else if (data.sub_projects[i].item == 14) {
textfile += (i + 1) + ")" + " " + " ماشین آلات" + "
"
}
else if (data.sub_projects[i].item == 15) {
textfile += (i + 1) + ")" + " " + " راهدارخانه" + "
"
}
else if (data.sub_projects[i].item == 16) {
textfile += (i + 1) + ")" + " " + " موارد اضطراری" + "
"
}
else if (data.sub_projects[i].item == 17) {
textfile += (i + 1) + ")" + " " +" گزارش گشت راهداری" + "
"
}
else if (data.sub_projects[i].item == 18) {
textfile += (i + 1) + ")" + " " +" کشیک راهداری زمستانی" + "
"
}
else if (data.sub_projects[i].item == 19) {
textfile += (i + 1) + ")" + " " + " ناوگان حمل و نقل عمومی" + "
"
}
else textfile += "_" + "
"
}
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 += "ترمیم افتادگی لبه آسفالت" + "
"
}
if (value == 2) {
textfile += "شانه سازی" + "
"
}
if (value == 3) {
textfile += "پر کردن گودافتادگی یا چاله با آسفالت" + "
"
}
if (value == 4) {
textfile += "لکه گیری هندسی راه" + "
"
}
if (value == 5) {
textfile += "مرمت آبشستگی راه ها و شانه راه ها" + "
"
}
if (value == 6) {
textfile += "تنظیم سطح بستر حریم" + "
"
}
if (value == 7) {
textfile += "درزگیری" + "
"
}
if (value == 8) {
textfile += "مضرس کردن سطح راه ها" + "
"
}
if (value == 9) {
textfile += "تراش رویه های موج زده" + "
"
}
if (value == 10) {
textfile += "تیغ زنی راه های روستایی" + "
"
}
if (value == 11) {
textfile += "شن ریزی، تسطیح و کمپکت راه روستایی" + "
"
}
if (value == 12) {
textfile += "عملیات تسطیح، خاکبرداری و خاکریزی در رفوژ میانی" + "
"
}
});
return textfile
}
else if (data.item == 2) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "پاک سازی و جاروزنی سطح راه" + "
"
}
if (value == 2) {
textfile += "پاک سازی و تنقیه آبروهای کوچک و کالورت ها" + "
"
}
if (value == 3) {
textfile += "پاک سازی سطح راه از لاشه حیوانات" + "
"
}
if (value == 4) {
textfile += "پاک سازی قنوها و آبروهای طولی" + "
"
}
if (value == 5) {
textfile += "پاک سازی سطح راه از آثار تصادفات" + "
"
}
if (value == 6) {
textfile += "علف کنی و بوته کنی از حاشیه راه" + "
"
}
if (value == 7) {
textfile += "پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" + "
"
}
if (value == 8) {
textfile += "جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." + "
"
}
if (value == 9) {
textfile += "پاکسازی پارکینگ راه ها" + "
"
}
if (value == 10) {
textfile += "پاکسازی کناره قرنیز پل ها، دیواره تونل ها، جداول و نیوجرسی از مصالح انباشته شده" + "
"
}
if (value == 11) {
textfile += "پاکسازی و تمیزکاری جزیره های میانی" + "
"
}
if (value == 12) {
textfile += "پاکسازی و تنقیه داخل پل ها" + "
"
}
if (value == 13) {
textfile += "پاکسازی و تنقیه سیفون ها" + "
"
}
if (value == 14) {
textfile += "پاکسازی و جمع آوری شاخه درختان از دهانه آبنماهای لوله ای" + "
"
}
if (value == 15) {
textfile += "پاکسازی سطح راه از مواد نفتی یا روغنی" + "
"
}
if (value == 16) {
textfile += "علف کنی و بوته کنی به صورت دستی اطراف تابلو، علائم و ..." + "
"
}
if (value == 17) {
textfile += "ریزش برداری" + "
"
}
if (value == 18) {
textfile += "جمع آوری خرده سنگ های ریزشی" + "
"
}
if (value == 19) {
textfile += "لایروبی" + "
"
}
});
return textfile
}
else if (data.item == 3) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "نصب تابلوهای اخطاری، انتظامی و مسیرنمای جدید" + "
"
}
if (value == 2) {
textfile += "نصب تابلوهای اطلاعاتی جدید" + "
"
}
if (value == 3) {
textfile += "تعویض شبرنگ تابلوهای اطلاعاتی" + "
"
}
if (value == 4) {
textfile += "نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" + "
"
}
if (value == 5) {
textfile += "تعویض صفحه تابلوهای اخطاری، انتظامی فاقد بازتاب و معیوب" + "
"
}
if (value == 6) {
textfile += "مرمت شکستگی، خم شدگی و ... تابلوهای اطلاعاتی" + "
"
}
if (value == 7) {
textfile += "اصلاح کج شدگی پایه تابلوها و علائم" + "
"
}
if (value == 8) {
textfile += "نصب یا برداشت علائم موقت" + "
"
}
});
return textfile
}
else if (data.item == 4) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "ارتقای حفاظ موجود میانی راه ها با حفاظ های مرسوم یا سایر روش ها" + "
"
}
if (value == 2) {
textfile += "ارتقای حفاظ موجود پل ها و پرتگاه ها با حفاظ های مرسوم یا سایر روش ها" + "
"
}
if (value == 3) {
textfile += "بهسازی حفاظ های موجود و آسیب دیده" + "
"
}
});
return textfile
}
else if (data.item == 5) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "نگهداری و پاکسازی روشنایی طولی راه" + "
"
}
if (value == 2) {
textfile += "نگهداری و پاکسازی روشنایی نقطه ای پارکینگ در حاشیه راه" + "
"
}
if (value == 3) {
textfile += "نگهداری و پاکسازی روشنایی نقطه ای تقاطع در حاشیه راه" + "
"
}
if (value == 4) {
textfile += "نگهداری و پاکسازی روشنایی نقطه ای محل نصب دوربین در حاشیه راه" + "
"
}
if (value == 5) {
textfile += "نگهداری و پاکسازی روشنایی طولی نواحی یا گردنه های مه گیر" + "
"
}
if (value == 6) {
textfile += "نگهداری و پاکسازی روشنایی تونل" + "
"
}
if (value == 7) {
textfile += "تعمیرات شبکه روشنایی، کابل" + "
"
}
if (value == 8) {
textfile += "تعمیرات شبکه روشنایی روشنایی، کله چراغ" + "
"
}
if (value == 9) {
textfile += "تعمیرات شبکه روشنایی، مفصل زنی" + "
"
}
if (value == 10) {
textfile += "تعمیرات شبکه روشنایی، تعمیر تابلو" + "
"
}
if (value == 11) {
textfile += "تعمیرات برج نوری" + "
"
}
});
return textfile
}
else if (data.item == 6) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "خط کشی با رنگ گرم ترافیکی" + "
"
}
if (value == 2) {
textfile += "خط کشی با رنگ سرد ترافیکی" + "
"
}
if (value == 3) {
textfile += "ترسیم نقوش، فلش، خط نوشته و ..." + "
"
}
if (value == 4) {
textfile += "اجرای اکستروژن طولی" + "
"
}
if (value == 5) {
textfile += "اجرای اکستروژن عرضی" + "
"
}
if (value == 6) {
textfile += "پاک کردن خطوط ترافیکی از سطح راه" + "
"
}
});
return textfile
}
else if (data.item == 7) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "رنگ آمیزی پایه تابلوها" + "
"
}
if (value == 2) {
textfile += "رنگ آمیزی پایه چراغ ها" + "
"
}
if (value == 3) {
textfile += "رنگ آمیزی پایه های روشنایی" + "
"
}
if (value == 4) {
textfile += "رنگ آمیزی پل های عابر پیاده" + "
"
}
if (value == 5) {
textfile += "رنگ آمیزی پایه تابلوهای دروازه ای" + "
"
}
if (value == 6) {
textfile += "رنگ آمیزی حفاظ های فلزی" + "
"
}
if (value == 7) {
textfile += "رنگ آمیزی نیوجرسی ها و سایر حفاظ های بتنی" + "
"
}
if (value == 8) {
textfile += "رنگ آمیزی سرعتگاه ها" + "
"
}
if (value == 9) {
textfile += "رنگ آمیزی پایه و کوله پل ها جهت آشکارسازی" + "
"
}
});
return textfile
}
else if (data.item == 8) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." + "
"
}
if (value == 2) {
textfile += " شستشوی تابلوهای اطلاعاتی" + "
"
}
if (value == 3) {
textfile += " شستشوی جداول" + "
"
}
if (value == 4) {
textfile += " شستشوی نیوجرسی ها" + "
"
}
if (value == 5) {
textfile += " شستشوی گاردریل ها و هندریل ها" + "
"
}
if (value == 6) {
textfile += "شستشوی دیواره تونل ها" + "
"
}
if (value == 7) {
textfile += "شستشوی تیکه گاه پل ها" + "
"
}
});
return textfile
}
else if (data.item == 9) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" + "
"
}
if (value == 2) {
textfile += "ایمن سازی شیب شیروانی ها" + "
"
}
if (value == 3) {
textfile += "اجرای استراحتگاه" + "
"
}
if (value == 4) {
textfile += "تعمیرات چراغ های آذرخشی و چشمک زن" + "
"
}
if (value == 5) {
textfile += "ایجاد شیراهای لرزاننده طولی لاین کنار" + "
"
}
if (value == 6) {
textfile += "ضربه گیر استوانه ای" + "
"
}
if (value == 7) {
textfile += "نصب سرعت گیر استاندارد پلاستیکی" + "
"
}
if (value == 8) {
textfile += "ایجاد شیارهای لرزاننده طولی در اکس راه های دوطرفه" + "
"
}
if (value == 9) {
textfile += "ایجاد شیارهای لرزاننده عرضی" + "
"
}
if (value == 10) {
textfile += "استوانه ایمنی جهت هدایت ترافیک" + "
"
}
if (value == 11) {
textfile += "احداث سرعتگیر آسفالتی" + "
"
}
if (value == 12) {
textfile += "اجرای هره خاکی نقطه ای" + "
"
}
if (value == 13) {
textfile += "اجرای هره خاکی طولی" + "
"
}
if (value == 14) {
textfile += "تعریض مقطعی جهت خروج اضطراری در سراشیبی ها" + "
"
}
if (value == 15) {
textfile += "حذف یا جا به جایی موانع صلب در حاشیه راه در محدوده عاری از مانع" + "
"
}
});
return textfile
}
else if (data.item == 10) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از ساخت و ساز در حریم" + "
"
}
if (value == 2) {
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از ایجاد راه دسترسی در حریم" + "
"
}
if (value == 3) {
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از عبور تاسیسات زیر بنایی در حریم" + "
"
}
if (value == 4) {
textfile += "برخورد با دستفروشان حاشیه راه" + "
"
}
if (value == 5) {
textfile += "جمع آوری تابلوهای غیرمجاز در حاشیه راه ها" + "
"
}
if (value == 6) {
textfile += "جمع آوری بنرهای تبلیغاتی غیرمجاز" + "
"
}
});
return textfile
}
else if (data.item == 11) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "احداث یا مرمت قرنیز پل" + "
"
}
if (value == 2) {
textfile += "لوله گذاری آبروها" + "
"
}
if (value == 3) {
textfile += "تطویل و رفع انسداد آبچکان پل ها" + "
"
}
if (value == 4) {
textfile += "بازسازی نرده پل" + "
"
}
if (value == 5) {
textfile += "تعمیرات آبرو شامل کوله دستک و دال" + "
"
}
if (value == 6) {
textfile += "مرمت و بازسازی درز انبساط" + "
"
}
if (value == 7) {
textfile += "تعمیرات رادیه و برید" + "
"
}
});
return textfile
}
else if (data.item == 12) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "زهکشی طاق تونل" + "
"
}
if (value == 2) {
textfile += "مرمت و بازرسی آبروهای هدایت آب" + "
"
}
if (value == 3) {
textfile += "لاینینگ" + "
"
}
if (value == 4) {
textfile += "تعمیر و بازسازی گالری" + "
"
}
if (value == 5) {
textfile += "گاباریت" + "
"
}
if (value == 6) {
textfile += "نگهداری دوربین ها و ابزار دقیق" + "
"
}
if (value == 7) {
textfile += "نگهداری تهویه تونل" + "
"
}
});
return textfile
}
else if (data.item == 13) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "عملیات یخ زدایی با شن و نمک پاشی" + "
"
}
if (value == 2) {
textfile += "برف روبی" + "
"
}
if (value == 3) {
textfile += "برف روبی با بولدوزر و ماشین برف خور" + "
"
}
if (value == 4) {
textfile += "برف روبی در شرایط کولاک و عدم دید" + "
"
}
if (value == 5) {
textfile += "میزان نمک و شن و ماسه مصرفی" + "
"
}
if (value == 6) {
textfile += "ریزش برداری" + "
"
}
if (value == 7) {
textfile += "مسافرین اسکان داده شده" + "
"
}
if (value == 8) {
textfile += "کمک رسانی به خودرو" + "
"
}
});
return textfile
}
else if (data.item == 14) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "بنزین مصرفی کل ماشین آلات فعال - ماهانه" + "
"
}
if (value == 2) {
textfile += "گازوئیل مصرفی کل ماشین آلات فعال - ماهانه" + "
"
}
if (value == 3) {
textfile += "مواد مصرفی نفتی و انواع روغن - ماهانه" + "
"
}
if (value == 4) {
textfile += "بازسازی و راه اندازی ماشین آلات" + "
"
}
if (value == 5) {
textfile += "خرید ماشین آلات" + "
"
}
if (value == 6) {
textfile += "خرید تجهیزآلات مرتبط به ماشین آلات" + "
"
}
if (value == 7) {
textfile += "بازدید کارشناسان از ماشین آلات استان" + "
"
}
if (value == 8) {
textfile += "سرویس کاری و تعمیرات جرئی روزانه" + "
"
}
if (value == 9) {
textfile += "شستشوی نمک پاش ها و سایر ماشین آلات" + "
"
}
if (value == 10) {
textfile += "جا به جایی دستگاه های سنگین راهداری" + "
"
}
});
return textfile
}
else if (data.item == 15) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "راهدارخانه های بازسازی شده" + "
"
}
if (value == 2) {
textfile += "خرید تجهیزآلات مرتبط با راهدارخانه ها" + "
"
}
if (value == 3) {
textfile += "جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" + "
"
}
if (value == 4) {
textfile += "تعمیرات جزئی و موردی راهدارخانه ها" + "
"
}
});
return textfile
}
else if (data.item == 16) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "
"
}
if (value == 2) {
textfile += "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "
"
}
if (value == 3) {
textfile += "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "
"
}
if (value == 4) {
textfile += "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "
"
}
if (value == 5) {
textfile += "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "
"
}
if (value == 6) {
textfile += "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "
"
}
if (value == 7) {
textfile += "بازگشایی محورهایی که به علت کولاک مسدود شده اند" + "
"
}
if (value == 8) {
textfile += "جا به جایی ماشین های سنگین گرفتار در سطح راه" + "
"
}
if (value == 9) {
textfile += "لق گیری" + "
"
}
});
return textfile
}
else if (data.item == 17) {
let textfile = ""
data.sub_items.forEach(function (value, index) {
if (value == 1) {
textfile += "بازدید ادواری از ابنیه فنی و تکمیل چک لیست های مربوط توسط کارشناسان (نفر - ساعت)" + "
"
}
if (value == 2) {
textfile += "بازدید ادواری از وضعیت علائم و تعیین کسری علائم و ارزیابی وضعیت خط کشی ها، تجهیزات روشنایی و تهویه تونلها و گاردریل و نظایر آنها و تکمیل چک لیستها توسط کارشناسان (نفر -ساعت)" + "
"
}
if (value == 3) {
textfile += "ارزیابی ادواری وضعیت پایداری ترانشه ها و شیروانی ها، سیستم های زهکشی و ارزیابی علل ریزش ترانشه ها و علل شکست راه و تکمیل چک لیست توسط کارشناسان (نفر - ساعت)" + "
"
}
if (value == 4) {
textfile += "ارزیابی ادواری وضعیت رویه های آسفالتی و شانه ها و ارزیابی و کنترل ترکها و تکمیل چک لیستها توسط کارشناسان (کیلومتر)" + "
"
}
if (value == 5) {
textfile += "بررسی وضعیت حریم راه و تهیه گزارش مربوط با تجهیز و اعزام کارشناس (کیلومتر)" + "
"
}
if (value == 6) {
textfile += "بازدید کارشناسان از ماشین آلات استان (تعداد دستگاه)" + "
"
}
});
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) + ")" + " " + "ترمیم افتادگی لبه آسفالت" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "شانه سازی" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پر کردن گودافتادگی یا چاله با آسفالت" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لکه گیری هندسی راه" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت آبشستگی راه ها و شانه راه ها" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تنظیم سطح بستر حریم" + "
"
}
})
// 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) + ")" + " " + "پاک سازی و جاروزنی سطح راه" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی و تنقیه آبروهای کوچک" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه از لاشه حیوانات" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی قنوها و آبروهای طولی" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه از آثار تصادفات" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "علف کنی و بوته کنی" + "
"
}
if (value == 7) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" + "
"
}
if (value == 8) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." + "
"
}
});
// 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) + ")" + " " + "نصب تابلوهای اخطاری، انتظامی و مسیرنما" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب تابلوهای اطلاعاتی" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعویض شبرنگ تابلوهای اطلاعاتی" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" + "
"
}
});
// 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) + ")" + " " + "ارتقای حفاظ میانی راه ها" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ارتقای حفاظ پل ها و پرتگاه ها" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بهسازی حفاظ های موجود" + "
"
}
});
// 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) + ")" + " " + "روشنایی طولی راه" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای پارکینگ در حاشیه راه" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای تقاطع در حاشیه راه" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای محل نصب دوربین در حاشیه راه" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی طولی نواحی یا گردنه های مه گیر" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی تونل" + "
"
}
});
// 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) + ")" + " " + "خط کشی با رنگ گرم ترافیکی" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خط کشی با رنگ سرد ترافیکی" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ترسیم نقوش، فلش، خط نوشته و ..." + "
"
}
});
// 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) + ")" + " " + "رنگ آمیزی پایه تابلوها" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه چراغ ها" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه های روشنایی" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پل های عابر پیاده" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه تابلوهای دروازه ای" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی حفاظ ها" + "
"
}
});
// 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) + ")" + " " + "شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی تابلوهای اطلاعاتی" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی جداول" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی نیوجرسی ها" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی گاردریل ها و هندریل ها" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "شستشوی دیواره تونل ها" + "
"
}
});
// 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) + ")" + " " + "ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ایمن سازی شیب شیروانی ها" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "اجرای استراحتگاه" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب و راه اندازی چراغ های آذرخشی و چشمک زن" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ایجاد شیراهای لرزاننده طولی" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ضربه گیر استوانه ای" + "
"
}
if (value == 7) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب سرعت گیر استاندارد پلاستیکی" + "
"
}
});
// 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) + ")" + " " + "ساخت و ساز" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "عبور تاسیسات زیربنایی" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "راه دسترسی اختصاصی" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "راه دسترسی تجمیع شده" + "
"
}
});
// 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) + ")" + " " + "تعمیرات الواسیون" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دراواسیون و تنظیم بستر پل های بالای 6 متر" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "احداث رادیه و برید" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت و بازسازی درز انبساط" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازسازی نرده پل" + "
"
}
});
// 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) + ")" + " " + "زهکشی طاق تونل" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت و بازرسی آبروهای هدایت آب" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لاینینگ" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعمیر و بازسازی گالری" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "گاباریت" + "
"
}
});
// 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) + ")" + " " + "عملیات یخ زدایی با شن و نمک پاشی" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی با گریدر یا تیغه برف روب" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی با بولدوزر و ماشین برف خور" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی در شرایط کولاک و عدم دید" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "میزان نمک مصرفی" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ریزش برداری" + "
"
}
if (value == 7) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مسافرین اسکان داده شده" + "
"
}
if (value == 8) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کمک رسانی به خودرو رهاشده" + "
"
}
});
// 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) + ")" + " " + "بنزین مصرفی کل ماشین آلات فعال" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "گازوئیل مصرفی کل ماشین آلات فعال" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مواد مصرفی نفتی و انواع روغن" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازسازی و راه اندازی ماشین آلات" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید ماشین آلات" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید تجهیزآلات مرتبط به ماشین آلات" + "
"
}
if (value == 7) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازدید کارشناسان از ماشین آلات استان" + "
"
}
});
// 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) + ")" + " " + "راهدارخانه های بازسازی شده" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید تجهیزآلات مرتبط با راهدارخانه ها" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" + "
"
}
});
// 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) + ")" + " " + "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "
"
}
});
// 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) + ")" + " " + "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "
"
}
if (value == 2) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "
"
}
if (value == 3) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "
"
}
if (value == 4) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "
"
}
if (value == 5) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "
"
}
if (value == 6) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "
"
}
});
// 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'] + "
"
}
else textfile += "_" + ""
}
if (value == 2) {
if (data.sub_items_data['reconstruction2-1'] != undefined) {
textfile += data.sub_items_data['reconstruction2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['reconstruction3-1'] != undefined) {
textfile += data.sub_items_data['reconstruction3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['reconstruction4-1']) {
textfile += data.sub_items_data['reconstruction4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['reconstruction5-1'] != undefined) {
textfile += data.sub_items_data['reconstruction5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['reconstruction6-1'] != undefined) {
textfile += data.sub_items_data['reconstruction6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['reconstruction7-1'] != undefined) {
textfile += data.sub_items_data['reconstruction7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['reconstruction8-1'] != undefined) {
textfile += data.sub_items_data['reconstruction8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['reconstruction9-1'] != undefined) {
textfile += data.sub_items_data['reconstruction9-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['reconstruction10-1'] != undefined) {
textfile += data.sub_items_data['reconstruction10-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['reconstruction11-1'] != undefined) {
textfile += data.sub_items_data['reconstruction11-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['reconstruction12-1'] != undefined) {
textfile += data.sub_items_data['reconstruction12-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['cleaning2-1'] != undefined) {
textfile += data.sub_items_data['cleaning2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['cleaning3-1'] != undefined) {
textfile += data.sub_items_data['cleaning3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['cleaning4-1'] != undefined) {
textfile += data.sub_items_data['cleaning4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['cleaning5-1'] != undefined) {
textfile += data.sub_items_data['cleaning5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['cleaning6-1'] != undefined) {
textfile += data.sub_items_data['cleaning6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['cleaning7-1'] != undefined) {
textfile += data.sub_items_data['cleaning7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['cleaning8-1'] != undefined) {
textfile += data.sub_items_data['cleaning8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['cleaning9-1'] != undefined) {
textfile += data.sub_items_data['cleaning9-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['cleaning10-1'] != undefined) {
textfile += data.sub_items_data['cleaning10-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['cleaning11-1'] != undefined) {
textfile += data.sub_items_data['cleaning11-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['cleaning12-1'] != undefined) {
textfile += data.sub_items_data['cleaning12-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 13) {
if (data.sub_items_data['cleaning13-1'] != undefined) {
textfile += data.sub_items_data['cleaning13-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 14) {
if (data.sub_items_data['cleaning14-1'] != undefined) {
textfile += data.sub_items_data['cleaning14-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 15) {
if (data.sub_items_data['cleaning15-1'] != undefined) {
textfile += data.sub_items_data['cleaning15-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 16) {
if (data.sub_items_data['cleaning16-1'] != undefined) {
textfile += data.sub_items_data['cleaning16-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 17) {
if (data.sub_items_data['cleaning17-1'] != undefined) {
textfile += data.sub_items_data['cleaning17-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 18) {
if (data.sub_items_data['cleaning18-1'] != undefined) {
textfile += data.sub_items_data['cleaning18-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 19) {
if (data.sub_items_data['cleaning19-1'] != undefined) {
textfile += data.sub_items_data['cleaning19-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['signs2-1'] != undefined) {
textfile += data.sub_items_data['signs2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['signs3-1'] != undefined) {
textfile += data.sub_items_data['signs3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['signs4-1'] != undefined) {
textfile += data.sub_items_data['signs4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['signs5-1'] != undefined) {
textfile += data.sub_items_data['signs5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['signs6-1'] != undefined) {
textfile += data.sub_items_data['signs6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['signs7-1'] != undefined) {
textfile += data.sub_items_data['signs7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['signs8-1'] != undefined) {
textfile += data.sub_items_data['signs8-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['shield2-1'] != undefined) {
textfile += data.sub_items_data['shield2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['shield3-1'] != undefined) {
textfile += data.sub_items_data['shield3-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['lighting2-1'] != undefined) {
textfile += data.sub_items_data['lighting2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['lighting3-1'] != undefined) {
textfile += data.sub_items_data['lighting3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['lighting4-1'] != undefined) {
textfile += data.sub_items_data['lighting4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['lighting5-1'] != undefined) {
textfile += data.sub_items_data['lighting5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['lighting6-1'] != undefined) {
textfile += data.sub_items_data['lighting6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['lighting7-1'] != undefined) {
textfile += data.sub_items_data['lighting7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['lighting8-1'] != undefined) {
textfile += data.sub_items_data['lighting8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['lighting9-1'] != undefined) {
textfile += data.sub_items_data['lighting9-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['lighting10-1'] != undefined) {
textfile += data.sub_items_data['lighting10-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['lighting11-1'] != undefined) {
textfile += data.sub_items_data['lighting11-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['lining2-1'] != undefined) {
textfile += data.sub_items_data['lining2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['lining3-1'] != undefined) {
textfile += data.sub_items_data['lining3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['lining4-1'] != undefined) {
textfile += data.sub_items_data['lining4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['lining5-1'] != undefined) {
textfile += data.sub_items_data['lining5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['lining6-1'] != undefined) {
textfile += data.sub_items_data['lining6-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['coloring2-1'] != undefined) {
textfile += data.sub_items_data['coloring2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['coloring3-1'] != undefined) {
textfile += data.sub_items_data['coloring3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['coloring4-1'] != undefined) {
textfile += data.sub_items_data['coloring4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['coloring5-1'] != undefined) {
textfile += data.sub_items_data['coloring5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['coloring6-1'] != undefined) {
textfile += data.sub_items_data['coloring6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['coloring7-1'] != undefined) {
textfile += data.sub_items_data['coloring7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['coloring8-1'] != undefined) {
textfile += data.sub_items_data['coloring8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['coloring9-1'] != undefined) {
textfile += data.sub_items_data['coloring9-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['washing2-1'] != undefined) {
textfile += data.sub_items_data['washing2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['washing3-1'] != undefined) {
textfile += data.sub_items_data['washing3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['washing4-1'] != undefined) {
textfile += data.sub_items_data['washing4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['washing5-1'] != undefined) {
textfile += data.sub_items_data['washing5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['washing6-1'] != undefined) {
textfile += data.sub_items_data['washing6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['washing7-1'] != undefined) {
textfile += data.sub_items_data['washing7-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['securing2-1'] != undefined) {
textfile += data.sub_items_data['securing2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['securing3-1'] != undefined) {
textfile += data.sub_items_data['securing3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['securing4-1'] != undefined) {
textfile += data.sub_items_data['securing4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['securing5-1'] != undefined) {
textfile += data.sub_items_data['securing5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['securing6-1'] != undefined) {
textfile += data.sub_items_data['securing6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['securing7-1'] != undefined) {
textfile += data.sub_items_data['securing7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['securing8-1'] != undefined) {
textfile += data.sub_items_data['securing8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['securing9-1'] != undefined) {
textfile += data.sub_items_data['securing9-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['securing10-1'] != undefined) {
textfile += data.sub_items_data['securing10-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['securing11-1'] != undefined) {
textfile += data.sub_items_data['securing11-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['securing12-1'] != undefined) {
textfile += data.sub_items_data['securing12-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 13) {
if (data.sub_items_data['securing13-1'] != undefined) {
textfile += data.sub_items_data['securing13-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 14) {
if (data.sub_items_data['securing14-1'] != undefined) {
textfile += data.sub_items_data['securing14-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 15) {
if (data.sub_items_data['securing15-1'] != undefined) {
textfile += data.sub_items_data['securing15-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['privacy2-1'] != undefined) {
textfile += data.sub_items_data['privacy2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['privacy3-1'] != undefined) {
textfile += data.sub_items_data['privacy3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['privacy4-1'] != undefined) {
textfile += data.sub_items_data['privacy4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['privacy5-1'] != undefined) {
textfile += data.sub_items_data['privacy5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['privacy6-1'] != undefined) {
textfile += data.sub_items_data['privacy6-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['bridge2-1'] != undefined) {
textfile += data.sub_items_data['bridge2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['bridge3-1'] != undefined) {
textfile += data.sub_items_data['bridge3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['bridge4-1'] != undefined) {
textfile += data.sub_items_data['bridge4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['bridge5-1'] != undefined) {
textfile += data.sub_items_data['bridge5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['bridge6-1'] != undefined) {
textfile += data.sub_items_data['bridge6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['bridge7-1'] != undefined) {
textfile += data.sub_items_data['bridge7-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['tunnel2-1'] != undefined) {
textfile += data.sub_items_data['tunnel2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['tunnel3-1'] != undefined) {
textfile += data.sub_items_data['tunnel3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['tunnel4-1'] != undefined) {
textfile += data.sub_items_data['tunnel4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['tunnel5-1'] != undefined) {
textfile += data.sub_items_data['tunnel5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['tunnel6-1'] != undefined) {
textfile += data.sub_items_data['tunnel6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['tunnel7-1'] != undefined) {
textfile += data.sub_items_data['tunnel7-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['winterOperation2-1'] != undefined) {
textfile += data.sub_items_data['winterOperation2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['winterOperation3-1'] != undefined) {
textfile += data.sub_items_data['winterOperation3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['winterOperation4-1'] != undefined) {
textfile += data.sub_items_data['winterOperation4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['winterOperation5-1'] != undefined) {
textfile += data.sub_items_data['winterOperation5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['winterOperation6-1'] != undefined) {
textfile += data.sub_items_data['winterOperation6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['winterOperation7-1'] != undefined) {
textfile += data.sub_items_data['winterOperation7-1'] + "
"
}
else textfile = "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['winterOperation8-1'] != undefined) {
textfile += data.sub_items_data['winterOperation8-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['machinery2-1'] != undefined) {
textfile += data.sub_items_data['machinery2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['machinery3-1'] != undefined) {
textfile += data.sub_items_data['machinery3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['machinery4-1'] != undefined) {
textfile += data.sub_items_data['machinery4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['machinery5-1'] != undefined) {
textfile += data.sub_items_data['machinery5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['machinery6-1'] != undefined) {
textfile += data.sub_items_data['machinery6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['machinery7-1'] != undefined) {
textfile += data.sub_items_data['machinery7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['machinery8-1'] != undefined) {
textfile += data.sub_items_data['machinery8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['machinery9-1'] != undefined) {
textfile += data.sub_items_data['machinery9-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['machinery10-1'] != undefined) {
textfile += data.sub_items_data['machinery10-1'] + "
"
}
else textfile += "_" + "
"
}
// 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'] + "
"
// }
// else if ((data.sub_items_data['machinery4-1'] != undefined) && (data.sub_items_data['machinery4-2'] == undefined)) {
// textfile += data.sub_items_data['machinery4-1'] + "
"
// }
// else if ((data.sub_items_data['machinery4-1'] == undefined) && (data.sub_items_data['machinery4-2'] != undefined)) {
// textfile += data.sub_items_data['machinery4-2'] + "
"
// }
// else textfile += "_" + "
"
// }
// 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'] + "
"
// }
// else if ((data.sub_items_data['machinery5-1'] != undefined) && (data.sub_items_data['machinery5-2'] == undefined)) {
// textfile += data.sub_items_data['machinery5-1'] + "
"
// }
// else if ((data.sub_items_data['machinery5-1'] == undefined) && (data.sub_items_data['machinery5-2'] != undefined)) {
// textfile += data.sub_items_data['machinery5-2'] + "
"
// }
// else textfile += "_" + "
"
// }
// 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'] + "
"
// }
// else if ((data.sub_items_data['machinery6-1'] != undefined) && (data.sub_items_data['machinery6-2'] == undefined)) {
// textfile += data.sub_items_data['machinery6-1'] + "
"
// }
// else if ((data.sub_items_data['machinery6-1'] == undefined) && (data.sub_items_data['machinery6-2'] != undefined)) {
// textfile += data.sub_items_data['machinery6-2'] + "
"
// }
// else textfile += "_" + "
"
// }
// 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'] + "
"
// }
// else if ((data.sub_items_data['machinery7-1'] != undefined) && (data.sub_items_data['machinery7-2'] == undefined)) {
// textfile += data.sub_items_data['machinery7-1'] + "
"
// }
// else if ((data.sub_items_data['machinery7-1'] == undefined) && (data.sub_items_data['machinery7-2'] != undefined)) {
// textfile += data.sub_items_data['machinery7-2'] + "
"
// }
// else textfile += "_" + "
"
// }
});
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'] + "
"
}
else if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] == undefined)) {
textfile += data.sub_items_data['tollhouse1-1'] + "
"
}
else if ((data.sub_items_data['tollhouse1-1'] == undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
textfile += data.sub_items_data['tollhouse1-2'] + "
"
}
else textfile += "_" + "
"
}
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'] + "
"
}
else if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] == undefined)) {
textfile += data.sub_items_data['tollhouse2-1'] + "
"
}
else if ((data.sub_items_data['tollhouse2-1'] == undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
textfile += data.sub_items_data['tollhouse2-2'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['tollhouse3-1'] != undefined) {
textfile += data.sub_items_data['tollhouse3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['tollhouse4-1'] != undefined) {
textfile += data.sub_items_data['tollhouse4-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['emergency2-1'] != undefined) {
textfile += data.sub_items_data['tollhouse2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['emergency3-1'] != undefined) {
textfile += data.sub_items_data['emergency3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['emergency4-1'] != undefined) {
textfile += data.sub_items_data['emergency4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['emergency5-1'] != undefined) {
textfile += data.sub_items_data['emergency5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['emergency6-1'] != undefined) {
textfile += data.sub_items_data['emergency6-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['emergency7-1'] != undefined) {
textfile += data.sub_items_data['emergency7-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['emergency8-1'] != undefined) {
textfile += data.sub_items_data['emergency8-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['emergency9-1'] != undefined) {
textfile += data.sub_items_data['emergency9-1'] + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['seeview2-1'] != undefined) {
textfile += data.sub_items_data['seeview2-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['seeview3-1'] != undefined) {
textfile += data.sub_items_data['seeview3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['seeview4-1'] != undefined) {
textfile += data.sub_items_data['seeview4-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['seeview5-1'] != undefined) {
textfile += data.sub_items_data['seeview5-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['seeview6-1'] != undefined) {
textfile += data.sub_items_data['seeview6-1'] + "
"
}
else textfile += "_" + "
"
}
});
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) + ")" + " " +data.sub_projects[i].sub_items_data['reconstruction1-1'] + "کیلومتر" + "
"
}
else textfile += "_" + ""
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['reconstruction2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction2-1'] + "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['reconstruction3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction3-1'] + " تن" + "
"
// textfile+="تن"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['reconstruction4-1']) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['reconstruction4-1'] + " متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['reconstruction5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction5-1'] + "متر مکعب " + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['reconstruction6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction6-1'] + "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning1-1'] + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['cleaning2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning2-1'] + "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['cleaning3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning3-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['cleaning4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning4-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['cleaning5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning5-1'] + "مترطول-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['cleaning6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning6-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['cleaning7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning7-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_projects[i].sub_items_data['cleaning8-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning8-1'] + "تن" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['signs1-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['signs2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['signs2-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['signs3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['signs3-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['signs4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['signs4-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['shield1-2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield1-2-1'] + "کیلومتر" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['shield2-2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield2-2-1'] + "کیلومتر" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['shield3-2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield3-2-1'] + "کیلومتر" + "
"
}
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting1-2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting1-2-1'] + "کیلومتر" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting2-2-1'] + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting2-2-1'] + "موردی" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting3-2-1'] + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting3-2-1'] + "موردی" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting4-2-1'] + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting4-2-1'] + "موردی" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting5-2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_items_data['lighting5-2-1'] + "کیلومتر" + "
"
}
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['lighting6-2-1'] + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting6-2-1'] + "موردی" + "
"
}
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['lining1-1'] + "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['lining2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lining2-1'] + "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['lining3-1']) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lining3-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['coloring1-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['coloring2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring2-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['coloring3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring3-1'] + "اصله" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['coloring4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring4-1'] + "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['coloring5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring5-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['coloring6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring6-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['washing1-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['washing2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing2-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['washing3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing3-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['washing4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing4-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['washing5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing5-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['washing6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing6-1'] + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['securing1-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['securing2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing2-1'] + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['securing3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing3-1'] + "باب" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['securing4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing4-1'] + "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['securing5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing5-1'] + "کیلومتر-شیار" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['securing6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing6-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['securing7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing7-1'] + "طول" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation1-1'] + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['winterOperation1-2'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation1-2'] + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['winterOperation3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation3-1'] + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['winterOperation4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation4-1'] + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['winterOperation5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation5-1'] + "تن" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['winterOperation6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation6-1'] + "مقطع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['winterOperation7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation7-1'] + "تعداد" + "
"
}
else textfile = "_" + "
"
}
if (value == 8) {
if (data.sub_projects[i].sub_items_data['winterOperation8-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation8-1'] + "تعداد" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + data.sub_projects[i].sub_items_data['machinery1-1'] + "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['machinery2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery2-1'] + "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['machinery3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery3-1'] + "لیتر" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery4-2'] + "هزینه" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-1'] + "تعداد دستگاه" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-2'] + "هزینه" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery5-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery5-2'] + "نوع کاربری" + "
"
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['machinery5-1'] + "تعداد دستگاه" + "
"
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['machinery5-2'] + "نوع کاربری " + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery6-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery6-2'] + "نوع کاربری" + "
"
}
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) + ")" + " " + data.sub_projects[i].sub_items_data['machinery6-1'] + "تعداد دستگاه" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery6-2'] + "نوع کاربری" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery7-2'] + "تعداد بازدید " + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-1'] + "تعداد دستگاه" + "
"
}
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) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-2'] + "تعداد بازدید " + "
"
}
else textfile += "_" + "
"
}
})
// 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'] + "هزینه" + "
"
}
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'] + "باب" + "
"
}
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'] + "هزینه" + "
"
}
else textfile += "_" + "
"
}
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'] + "نوع" + "
"
}
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'] + "تعداد" + "
"
}
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'] + "نوع" + "
"
}
else textfile += "_" + "
"
}
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'] + "
"
}
else textfile += "_" + "
"
}
})
// 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 += "کیلومتر" + "
"
}
else textfile += "_" + ""
}
if (value == 2) {
if (data.sub_items_data['reconstruction2-1'] != undefined) {
textfile += "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['reconstruction3-1'] != undefined) {
textfile += " تن" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['reconstruction4-1']) {
textfile += " متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['reconstruction5-1'] != undefined) {
textfile += "متر مکعب " + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['reconstruction6-1'] != undefined) {
textfile += "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['reconstruction7-1'] != undefined) {
textfile += "متر طول " + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['reconstruction8-1'] != undefined) {
textfile += "متر مربع " + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['reconstruction9-1'] != undefined) {
textfile += "متر مربع " + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['reconstruction10-1'] != undefined) {
textfile += "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['reconstruction11-1'] != undefined) {
textfile += "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['reconstruction12-1'] != undefined) {
textfile += "متر مکعب " + "
"
}
else textfile += "_" + "
"
}
});
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 += "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['cleaning2-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['cleaning3-1'] != undefined) {
textfile += "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['cleaning4-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['cleaning5-1'] != undefined) {
textfile += "مترطول-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['cleaning6-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['cleaning7-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['cleaning8-1'] != undefined) {
textfile += "تن" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['cleaning9-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['cleaning10-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['cleaning11-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['cleaning12-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 13) {
if (data.sub_items_data['cleaning13-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 14) {
if (data.sub_items_data['cleaning14-1'] != undefined) {
textfile += "نفر ساعت" + "
"
}
else textfile += "_" + "
"
}
if (value == 15) {
if (data.sub_items_data['cleaning15-1'] != undefined) {
textfile += "مترطول-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 16) {
if (data.sub_items_data['cleaning16-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 17) {
if (data.sub_items_data['cleaning17-1'] != undefined) {
textfile += "مقطع" + "
"
}
else textfile += "_" + "
"
}
if (value == 18) {
if (data.sub_items_data['cleaning18-1'] != undefined) {
textfile += "نفر ساعت" + "
"
}
else textfile += "_" + "
"
}
if (value == 19) {
if (data.sub_items_data['cleaning19-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
});
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 += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['signs2-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['signs3-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['signs4-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['signs5-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['signs6-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['signs7-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['signs8-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['shield2-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['shield3-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
});
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 += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['lighting2-1'] != undefined) {
textfile += "موردی" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['lighting3-1'] != undefined) {
textfile += "موردی" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['lighting4-1'] != undefined) {
textfile += "موردی" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['lighting5-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['lighting6-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['lighting7-1'] != undefined) {
textfile += "متر طول" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['lighting8-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['lighting9-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['lighting10-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['lighting11-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['lining2-1'] != undefined) {
textfile += "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['lining3-1']) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['lining4-1']) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['lining4-1']) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['lining4-1']) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
});
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 += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['coloring2-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['coloring3-1'] != undefined) {
textfile += "اصله" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['coloring4-1'] != undefined) {
textfile += "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['coloring5-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['coloring6-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['coloring7-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['coloring8-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['coloring9-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
});
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 += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['washing2-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['washing3-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['washing4-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['washing5-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['washing6-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['washing7-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['securing2-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['securing3-1'] != undefined) {
textfile += "باب" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['securing4-1'] != undefined) {
textfile += "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['securing5-1'] != undefined) {
textfile += "کیلومتر-شیار" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['securing6-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['securing7-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['securing8-1'] != undefined) {
textfile += "کیلومتر-شیار" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['securing9-1'] != undefined) {
textfile += "متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['securing10-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 11) {
if (data.sub_items_data['securing11-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 12) {
if (data.sub_items_data['securing12-1'] != undefined) {
textfile += "موردی" + "
"
}
else textfile += "_" + "
"
}
if (value == 13) {
if (data.sub_items_data['securing13-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 14) {
if (data.sub_items_data['securing14-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 15) {
if (data.sub_items_data['securing15-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['privacy2-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['privacy3-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['privacy4-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['privacy5-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['privacy6-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['bridge2-1'] != undefined) {
textfile += "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['bridge3-1'] != undefined) {
textfile += "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['bridge4-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['bridge5-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['bridge6-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['bridge7-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
});
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 += "مورد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['tunnel2-1'] != undefined) {
textfile += "مترطول" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['tunnel3-1'] != undefined) {
textfile += "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['tunnel4-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['tunnel5-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['tunnel6-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['tunnel7-1'] != undefined) {
textfile += "عدد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['winterOperation2-1'] != undefined) {
textfile += "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['winterOperation3-1'] != undefined) {
textfile += "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['winterOperation4-1'] != undefined) {
textfile += "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['winterOperation5-1'] != undefined) {
textfile += "تن" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['winterOperation6-1'] != undefined) {
textfile += "مقطع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['winterOperation7-1'] != undefined) {
textfile += "نفر" + "
"
}
else textfile = "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['winterOperation8-1'] != undefined) {
textfile += "تعداد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['machinery2-1'] != undefined) {
textfile += "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['machinery3-1'] != undefined) {
textfile += "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['machinery4-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['machinery5-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['machinery6-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['machinery7-1'] != undefined) {
textfile += "مسافت-کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['machinery8-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['machinery9-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 10) {
if (data.sub_items_data['machinery10-1'] != undefined) {
textfile += "مسافت-کیلومتر" + "
"
}
else textfile += "_" + "
"
}
});
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'] + "
"
}
else if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] == undefined)) {
textfile += data.sub_items_data['tollhouse1-1'] + "
"
}
else if ((data.sub_items_data['tollhouse1-1'] == undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
textfile += data.sub_items_data['tollhouse1-2'] + "
"
}
else textfile += "_" + "
"
}
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'] + "
"
}
else if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] == undefined)) {
textfile += data.sub_items_data['tollhouse2-1'] + "
"
}
else if ((data.sub_items_data['tollhouse2-1'] == undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
textfile += data.sub_items_data['tollhouse2-2'] + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['tollhouse3-1'] != undefined) {
textfile += data.sub_items_data['tollhouse3-1'] + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['tollhouse4-1'] != undefined) {
textfile += "مورد" + "
"
}
else textfile += "_" + "
"
}
});
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 += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['emergency2-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['emergency3-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['emergency4-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['emergency5-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['emergency6-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_items_data['emergency7-1'] != undefined) {
textfile += "تعداد محور" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_items_data['emergency8-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 9) {
if (data.sub_items_data['emergency9-1'] != undefined) {
textfile += "محور" + "
"
}
else textfile += "_" + "
"
}
});
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 += "نفر-ساعت" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_items_data['seeView2-1'] != undefined) {
textfile += "نفر-ساعت" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_items_data['seeView3-1'] != undefined) {
textfile += "نفر-ساعت" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_items_data['seeView4-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_items_data['seeView5-1'] != undefined) {
textfile += "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_items_data['seeView6-1'] != undefined) {
textfile += "تعداد دستگاه" + "
"
}
else textfile += "_" + "
"
}
});
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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + ""
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['reconstruction2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['reconstruction3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " تن" + "
"
// textfile+="تن"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['reconstruction4-1']) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " متر مربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['reconstruction5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "متر مکعب " + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['reconstruction6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر " + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['cleaning2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "متر مکعب" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['cleaning3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['cleaning4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['cleaning5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترطول-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['cleaning6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['cleaning7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 8) {
if (data.sub_projects[i].sub_items_data['cleaning8-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تن" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['signs2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['signs3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['signs4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
}
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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
}
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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
}
})
// 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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
}
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) + ")" + " " + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "
"
}
}
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) + ")" + " " + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "
"
}
}
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) + ")" + " " + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "
"
}
}
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) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
}
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) + ")" + " " + "موردی" + "
"
}
else textfile += "_" + "
"
}
else {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "
"
}
}
})
// 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) + ")" + " " + "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['lining2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-رنگ" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['lining3-1']) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['coloring2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['coloring3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "اصله" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['coloring4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['coloring5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['coloring6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['washing2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['washing3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['washing4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['washing5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['washing6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['securing2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['securing3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "باب" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['securing4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دستگاه" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['securing5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-شیار" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['securing6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['securing7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "طول" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['winterOperation1-2'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['winterOperation3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 4) {
if (data.sub_projects[i].sub_items_data['winterOperation4-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "
"
}
else textfile += "_" + "
"
}
if (value == 5) {
if (data.sub_projects[i].sub_items_data['winterOperation5-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تن" + "
"
}
else textfile += "_" + "
"
}
if (value == 6) {
if (data.sub_projects[i].sub_items_data['winterOperation6-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مقطع" + "
"
}
else textfile += "_" + "
"
}
if (value == 7) {
if (data.sub_projects[i].sub_items_data['winterOperation7-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile = "_" + "
"
}
if (value == 8) {
if (data.sub_projects[i].sub_items_data['winterOperation8-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "
"
}
else textfile += "_" + "
"
}
})
// 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) + ")" + " " + "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 2) {
if (data.sub_projects[i].sub_items_data['machinery2-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لیتر" + "
"
}
else textfile += "_" + "
"
}
if (value == 3) {
if (data.sub_projects[i].sub_items_data['machinery3-1'] != undefined) {
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لیتر" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "هزینه" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "
"
}
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) + ")" + " " + "هزینه" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "نوع کاربری" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "
"
}
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) + ")" + " " + "نوع کاربری " + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "نوع کاربری" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "
"
}
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) + ")" + " " + "نوع کاربری" + "
"
}
else textfile += "_" + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "تعداد بازدید " + "
"
}
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) + ")" + " " + "تعداد دستگاه" + "
"
}
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) + ")" + " " + "تعداد بازدید " + "
"
}
else textfile += "_" + "
"
}
})
// 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'] + "
"
}
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'] + "
"
}
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'] + "
"
}
else textfile += "_" + "
"
}
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'] + "
"
}
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'] + "
"
}
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'] + "
"
}
else textfile += "_" + "
"
}
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'] + "
"
}
else textfile += "_" + "
"
}
})
// 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 ' '
}
else {
return ''
}
} else {
if (data.can_delete == 1) {
return ' '
}
else {
return ''
}
}
}
},
],
buttons: [
{
extend: 'excelHtml5',
title: 'Excel',
text: 'خروجی به اکسل',
messageTop: 'فهرست فعالیت های ثبت شده اداره کل',
// header : true,
//Columns to export
exportOptions: {
columns: [1, 2, 3, 4, 5, 6]
}
}
]
});
$('#examplee').on('click', 'button.editor_remove', function (e) {
e.preventDefault();
// console.log("hi")
var type = ""
var id = tablee.row($(this).parents('tr')).data().id;
if (tablee.row($(this).parents('tr')).data().type == "فعالیت روزانه و جاری راهداری") {
type = "ri"
}
else if (tablee.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: "/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/users/cities-projects-item",
type: "GET",
success: function (result) {
// console.log(result.data[0]);
$("#examplee").dataTable().fnClearTable();
$("#examplee").dataTable().fnAddData(result.data[0]);
hideLoaderScreen()
Swal.fire({
icon: 'success',
title: 'با موفقیت حذف شد',
confirmButtonText: 'بستن'
})
},
});
}
$("#sortt_date").on("click", function () {
if ($("#datepickfromm").val() != " " && $("#datepicktoo").val() != " ") {
showLoaderScreen();
let startDate = moment(
fromDatee.getState().selected.year +
"/" +
fromDatee.getState().selected.month +
"/" +
fromDatee.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
let endDate = moment(
toDatee.getState().selected.year +
"/" +
toDatee.getState().selected.month +
"/" +
toDatee.getState().selected.date,
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
$.ajax({
url: "https://rms.rmto.ir/users/cities-projects-item" + "?end-date=" + endDate + "&start-date=" + startDate,
type: "GET",
success: function (result) {
// console.log(result.data[0]);
$("#examplee").dataTable().fnClearTable();
$("#examplee").dataTable().fnAddData(result.data[0]);
hideLoaderScreen()
}
});
}
});