5216 lines
300 KiB
JavaScript
5216 lines
300 KiB
JavaScript
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) + ")" + " " +"پاکسازی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 3) {
|
||
textfile += (i + 1) + ")" + " " +"علائم" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 4) {
|
||
textfile += (i + 1) + ")" + " " + "حفاظ" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 5) {
|
||
textfile += (i + 1) + ")" + " " + "روشنایی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 6) {
|
||
textfile += (i + 1) + ")" + " " + "خط کشی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 7) {
|
||
textfile += (i + 1) + ")" + " " + "رنگ آمیزی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 8) {
|
||
textfile += (i + 1) + ")" + " " + "شستشو" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 9) {
|
||
textfile += (i + 1) + ")" + " " + "ایمن سازی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 10) {
|
||
textfile += (i + 1) + ")" + " " + "حریم" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 11) {
|
||
textfile += (i + 1) + ")" + " " + "پل" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 12) {
|
||
textfile += (i + 1) + ")" + " " + " تونل و گالری" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 13) {
|
||
textfile += (i + 1) + ")" + " " + "عملیات زمستانی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 14) {
|
||
textfile += (i + 1) + ")" + " " + " ماشین آلات" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 15) {
|
||
textfile += (i + 1) + ")" + " " + " راهدارخانه" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 16) {
|
||
textfile += (i + 1) + ")" + " " + " موارد اضطراری" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 17) {
|
||
textfile += (i + 1) + ")" + " " +" گزارش گشت راهداری" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 18) {
|
||
textfile += (i + 1) + ")" + " " +" کشیک راهداری زمستانی" + "<br>"
|
||
}
|
||
else if (data.sub_projects[i].item == 19) {
|
||
textfile += (i + 1) + ")" + " " + " ناوگان حمل و نقل عمومی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
|
||
}
|
||
return textfile;
|
||
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
}
|
||
|
||
},
|
||
{
|
||
"data": null,
|
||
|
||
render: function (data, type, row) {
|
||
if (data.type == "فعالیت روزانه و جاری راهداری") {
|
||
if (data.item != undefined) {
|
||
// return data.item
|
||
if (data.item == 1) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "ترمیم افتادگی لبه آسفالت" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "شانه سازی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "پر کردن گودافتادگی یا چاله با آسفالت" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "لکه گیری هندسی راه" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "مرمت آبشستگی راه ها و شانه راه ها" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "تنظیم سطح بستر حریم" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "درزگیری" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "مضرس کردن سطح راه ها" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "تراش رویه های موج زده" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
textfile += "تیغ زنی راه های روستایی" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
textfile += "شن ریزی، تسطیح و کمپکت راه روستایی" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
textfile += "عملیات تسطیح، خاکبرداری و خاکریزی در رفوژ میانی" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 2) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "پاک سازی و جاروزنی سطح راه" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "پاک سازی و تنقیه آبروهای کوچک و کالورت ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "پاک سازی سطح راه از لاشه حیوانات" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "پاک سازی قنوها و آبروهای طولی" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "پاک سازی سطح راه از آثار تصادفات" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "علف کنی و بوته کنی از حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "پاکسازی پارکینگ راه ها" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
textfile += "پاکسازی کناره قرنیز پل ها، دیواره تونل ها، جداول و نیوجرسی از مصالح انباشته شده" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
textfile += "پاکسازی و تمیزکاری جزیره های میانی" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
textfile += "پاکسازی و تنقیه داخل پل ها" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
textfile += "پاکسازی و تنقیه سیفون ها" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
textfile += "پاکسازی و جمع آوری شاخه درختان از دهانه آبنماهای لوله ای" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
textfile += "پاکسازی سطح راه از مواد نفتی یا روغنی" + "<br>"
|
||
}
|
||
if (value == 16) {
|
||
textfile += "علف کنی و بوته کنی به صورت دستی اطراف تابلو، علائم و ..." + "<br>"
|
||
}
|
||
if (value == 17) {
|
||
textfile += "ریزش برداری" + "<br>"
|
||
}
|
||
if (value == 18) {
|
||
textfile += "جمع آوری خرده سنگ های ریزشی" + "<br>"
|
||
}
|
||
if (value == 19) {
|
||
textfile += "لایروبی" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 3) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "نصب تابلوهای اخطاری، انتظامی و مسیرنمای جدید" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "نصب تابلوهای اطلاعاتی جدید" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "تعویض شبرنگ تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "تعویض صفحه تابلوهای اخطاری، انتظامی فاقد بازتاب و معیوب" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "مرمت شکستگی، خم شدگی و ... تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "اصلاح کج شدگی پایه تابلوها و علائم" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "نصب یا برداشت علائم موقت" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 4) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "ارتقای حفاظ موجود میانی راه ها با حفاظ های مرسوم یا سایر روش ها" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "ارتقای حفاظ موجود پل ها و پرتگاه ها با حفاظ های مرسوم یا سایر روش ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "بهسازی حفاظ های موجود و آسیب دیده" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 5) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "نگهداری و پاکسازی روشنایی طولی راه" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "نگهداری و پاکسازی روشنایی نقطه ای پارکینگ در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "نگهداری و پاکسازی روشنایی نقطه ای تقاطع در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "نگهداری و پاکسازی روشنایی نقطه ای محل نصب دوربین در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "نگهداری و پاکسازی روشنایی طولی نواحی یا گردنه های مه گیر" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "نگهداری و پاکسازی روشنایی تونل" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "تعمیرات شبکه روشنایی، کابل" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "تعمیرات شبکه روشنایی روشنایی، کله چراغ" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "تعمیرات شبکه روشنایی، مفصل زنی" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
textfile += "تعمیرات شبکه روشنایی، تعمیر تابلو" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
textfile += "تعمیرات برج نوری" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 6) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "خط کشی با رنگ گرم ترافیکی" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "خط کشی با رنگ سرد ترافیکی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "ترسیم نقوش، فلش، خط نوشته و ..." + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "اجرای اکستروژن طولی" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "اجرای اکستروژن عرضی" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "پاک کردن خطوط ترافیکی از سطح راه" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 7) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "رنگ آمیزی پایه تابلوها" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "رنگ آمیزی پایه چراغ ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "رنگ آمیزی پایه های روشنایی" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "رنگ آمیزی پل های عابر پیاده" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "رنگ آمیزی پایه تابلوهای دروازه ای" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "رنگ آمیزی حفاظ های فلزی" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "رنگ آمیزی نیوجرسی ها و سایر حفاظ های بتنی" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "رنگ آمیزی سرعتگاه ها" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "رنگ آمیزی پایه و کوله پل ها جهت آشکارسازی" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 8) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += " شستشوی تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += " شستشوی جداول" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += " شستشوی نیوجرسی ها" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += " شستشوی گاردریل ها و هندریل ها" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "شستشوی دیواره تونل ها" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "شستشوی تیکه گاه پل ها" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 9) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "ایمن سازی شیب شیروانی ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "اجرای استراحتگاه" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "تعمیرات چراغ های آذرخشی و چشمک زن" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "ایجاد شیراهای لرزاننده طولی لاین کنار" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "ضربه گیر استوانه ای" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "نصب سرعت گیر استاندارد پلاستیکی" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "ایجاد شیارهای لرزاننده طولی در اکس راه های دوطرفه" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "ایجاد شیارهای لرزاننده عرضی" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
textfile += "استوانه ایمنی جهت هدایت ترافیک" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
textfile += "احداث سرعتگیر آسفالتی" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
textfile += "اجرای هره خاکی نقطه ای" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
textfile += "اجرای هره خاکی طولی" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
textfile += "تعریض مقطعی جهت خروج اضطراری در سراشیبی ها" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
textfile += "حذف یا جا به جایی موانع صلب در حاشیه راه در محدوده عاری از مانع" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 10) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از ساخت و ساز در حریم" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از ایجاد راه دسترسی در حریم" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "اخطار، تخریب، بازدید و یا تهیه اطلاعات از عبور تاسیسات زیر بنایی در حریم" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "برخورد با دستفروشان حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "جمع آوری تابلوهای غیرمجاز در حاشیه راه ها" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "جمع آوری بنرهای تبلیغاتی غیرمجاز" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 11) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "احداث یا مرمت قرنیز پل" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "لوله گذاری آبروها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "تطویل و رفع انسداد آبچکان پل ها" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "بازسازی نرده پل" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "تعمیرات آبرو شامل کوله دستک و دال" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "مرمت و بازسازی درز انبساط" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "تعمیرات رادیه و برید" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 12) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "زهکشی طاق تونل" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "مرمت و بازرسی آبروهای هدایت آب" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "لاینینگ" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "تعمیر و بازسازی گالری" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "گاباریت" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "نگهداری دوربین ها و ابزار دقیق" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "نگهداری تهویه تونل" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 13) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "عملیات یخ زدایی با شن و نمک پاشی" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "برف روبی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "برف روبی با بولدوزر و ماشین برف خور" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "برف روبی در شرایط کولاک و عدم دید" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "میزان نمک و شن و ماسه مصرفی" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "ریزش برداری" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "مسافرین اسکان داده شده" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "کمک رسانی به خودرو" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 14) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "بنزین مصرفی کل ماشین آلات فعال - ماهانه" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "گازوئیل مصرفی کل ماشین آلات فعال - ماهانه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "مواد مصرفی نفتی و انواع روغن - ماهانه" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "بازسازی و راه اندازی ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "خرید ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "خرید تجهیزآلات مرتبط به ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "بازدید کارشناسان از ماشین آلات استان" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "سرویس کاری و تعمیرات جرئی روزانه" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "شستشوی نمک پاش ها و سایر ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
textfile += "جا به جایی دستگاه های سنگین راهداری" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 15) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "راهدارخانه های بازسازی شده" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "خرید تجهیزآلات مرتبط با راهدارخانه ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "تعمیرات جزئی و موردی راهدارخانه ها" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 16) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += "بازگشایی محورهایی که به علت کولاک مسدود شده اند" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += "جا به جایی ماشین های سنگین گرفتار در سطح راه" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
textfile += "لق گیری" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 17) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += "بازدید ادواری از ابنیه فنی و تکمیل چک لیست های مربوط توسط کارشناسان (نفر - ساعت)" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += "بازدید ادواری از وضعیت علائم و تعیین کسری علائم و ارزیابی وضعیت خط کشی ها، تجهیزات روشنایی و تهویه تونلها و گاردریل و نظایر آنها و تکمیل چک لیستها توسط کارشناسان (نفر -ساعت)" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += "ارزیابی ادواری وضعیت پایداری ترانشه ها و شیروانی ها، سیستم های زهکشی و ارزیابی علل ریزش ترانشه ها و علل شکست راه و تکمیل چک لیست توسط کارشناسان (نفر - ساعت)" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += "ارزیابی ادواری وضعیت رویه های آسفالتی و شانه ها و ارزیابی و کنترل ترکها و تکمیل چک لیستها توسط کارشناسان (کیلومتر)" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += "بررسی وضعیت حریم راه و تهیه گزارش مربوط با تجهیز و اعزام کارشناس (کیلومتر)" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += "بازدید کارشناسان از ماشین آلات استان (تعداد دستگاه)" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else return "_"
|
||
// return data.sub_items
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else if (data.type == "گشت راهداری و ترابری") {
|
||
if (data.sub_projects != undefined && data.sub_projects.length != 0) {
|
||
let textfile = ""
|
||
for (var i = 0; i < data.sub_projects.length; i++) {
|
||
if (data.sub_projects[i].item == 1) {
|
||
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ترمیم افتادگی لبه آسفالت" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "شانه سازی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پر کردن گودافتادگی یا چاله با آسفالت" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لکه گیری هندسی راه" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت آبشستگی راه ها و شانه راه ها" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تنظیم سطح بستر حریم" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 2) {
|
||
// textfilee += "test2"
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی و جاروزنی سطح راه" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی و تنقیه آبروهای کوچک" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه از لاشه حیوانات" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی قنوها و آبروهای طولی" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه از آثار تصادفات" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "علف کنی و بوته کنی" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی حریم راه از مواد زائد و نخاله های ساختمانی" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "جمع آوری قطعات آسیب دیده حفاظ، علائم و ..." + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 3) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب تابلوهای اخطاری، انتظامی و مسیرنما" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعویض شبرنگ تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب بازتاب بر روی گاردریل و حفاظ های حاشیه راه و چشم گربه ای" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 4) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ارتقای حفاظ میانی راه ها" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ارتقای حفاظ پل ها و پرتگاه ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بهسازی حفاظ های موجود" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 5) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی طولی راه" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای پارکینگ در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای تقاطع در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی نقطه ای محل نصب دوربین در حاشیه راه" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی طولی نواحی یا گردنه های مه گیر" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "روشنایی تونل" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 6) {
|
||
// let textfile = "test6"
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خط کشی با رنگ گرم ترافیکی" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خط کشی با رنگ سرد ترافیکی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ترسیم نقوش، فلش، خط نوشته و ..." + "<br>"
|
||
}
|
||
});
|
||
// textfilee +="test6"
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 7) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه تابلوها" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه چراغ ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه های روشنایی" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پل های عابر پیاده" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی پایه تابلوهای دروازه ای" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "رنگ آمیزی حفاظ ها" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 8) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "شستشوی علائم ایمنی اخطاری، انتظامی، مسیرنما و ..." + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی تابلوهای اطلاعاتی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی جداول" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی نیوجرسی ها" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " شستشوی گاردریل ها و هندریل ها" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "شستشوی دیواره تونل ها" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 9) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ایمن سازی سرگاردریل، موانع صلب، دماغه ها و موانع صلب" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ایمن سازی شیب شیروانی ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "اجرای استراحتگاه" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب و راه اندازی چراغ های آذرخشی و چشمک زن" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ایجاد شیراهای لرزاننده طولی" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ضربه گیر استوانه ای" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نصب سرعت گیر استاندارد پلاستیکی" + "<br>"
|
||
}
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 10) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ساخت و ساز" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "عبور تاسیسات زیربنایی" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "راه دسترسی اختصاصی" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "راه دسترسی تجمیع شده" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 11) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعمیرات الواسیون" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دراواسیون و تنظیم بستر پل های بالای 6 متر" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "احداث رادیه و برید" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت و بازسازی درز انبساط" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازسازی نرده پل" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 12) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "زهکشی طاق تونل" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مرمت و بازرسی آبروهای هدایت آب" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لاینینگ" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعمیر و بازسازی گالری" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "گاباریت" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 13) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "عملیات یخ زدایی با شن و نمک پاشی" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی با گریدر یا تیغه برف روب" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی با بولدوزر و ماشین برف خور" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برف روبی در شرایط کولاک و عدم دید" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "میزان نمک مصرفی" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "ریزش برداری" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مسافرین اسکان داده شده" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کمک رسانی به خودرو رهاشده" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 14) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بنزین مصرفی کل ماشین آلات فعال" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "گازوئیل مصرفی کل ماشین آلات فعال" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مواد مصرفی نفتی و انواع روغن" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازسازی و راه اندازی ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید تجهیزآلات مرتبط به ماشین آلات" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بازدید کارشناسان از ماشین آلات استان" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 15) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "راهدارخانه های بازسازی شده" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "خرید تجهیزآلات مرتبط با راهدارخانه ها" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "جلسات تشکیل شده در خصوص مدیریت بحران و پدافند غیرعامل" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 16) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else if (data.sub_projects[i].item == 17) {
|
||
// let textfile = ""
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "پاک سازی سطح راه و رفع انسداد ناشی از ریزش کوه و سقوط بهمن" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری تردد و رفع انسداد ناشی از وقوع تصادف یا واژگونی وسایط نقلیه و پخش محموله در سطح راه" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط و رفع انسداد ناشی از شن های روان" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط در راه هایی که به دلیل آب بردگی دچار قطع ارتباط شده اند" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "برقراری ارتباط موقت در راه هایی که به دلیل شکستگی پل یا ریزش تونل یا ... قطع شده اند" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "بستن راه و هدایت ترافیکی در مواقع اضطراری" + "<br>"
|
||
}
|
||
|
||
});
|
||
// return textfile
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
return textfile
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
// return data.item
|
||
}
|
||
|
||
},
|
||
{
|
||
"data": null,
|
||
render: function (data, type, row) {
|
||
if (data.type == "فعالیت روزانه و جاری راهداری") {
|
||
if (data.item != undefined) {
|
||
if (data.sub_items_data != null) {
|
||
if (data.item == 1) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['reconstruction1-1'] != undefined) {
|
||
textfile += data.sub_items_data['reconstruction1-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "</br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['reconstruction2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['reconstruction3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['reconstruction4-1']) {
|
||
|
||
textfile += data.sub_items_data['reconstruction4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['reconstruction5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['reconstruction6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['reconstruction7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['reconstruction8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['reconstruction9-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction9-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['reconstruction10-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction10-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['reconstruction11-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction11-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['reconstruction12-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['reconstruction12-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 2) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['cleaning1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['cleaning2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['cleaning3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['cleaning4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['cleaning5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['cleaning6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['cleaning7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['cleaning8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['cleaning9-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning9-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['cleaning10-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning10-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['cleaning11-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning11-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['cleaning12-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning12-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
if (data.sub_items_data['cleaning13-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning13-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
if (data.sub_items_data['cleaning14-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning14-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
if (data.sub_items_data['cleaning15-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning15-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 16) {
|
||
if (data.sub_items_data['cleaning16-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning16-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 17) {
|
||
if (data.sub_items_data['cleaning17-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning17-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 18) {
|
||
if (data.sub_items_data['cleaning18-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning18-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 19) {
|
||
if (data.sub_items_data['cleaning19-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['cleaning19-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 3) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['signs1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['signs2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['signs3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['signs4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['signs5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['signs6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['signs7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['signs8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['signs8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 4) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
|
||
if (value == 1) {
|
||
if (data.sub_items_data['shield1-1'] != undefined) {
|
||
textfile += data.sub_items_data['shield1-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['shield2-1'] != undefined) {
|
||
textfile += data.sub_items_data['shield2-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['shield3-1'] != undefined) {
|
||
textfile += data.sub_items_data['shield3-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 5) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['lighting1-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting1-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['lighting2-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting2-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['lighting3-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting3-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['lighting4-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting4-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['lighting5-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting5-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['lighting6-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting6-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['lighting7-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting7-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['lighting8-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting8-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['lighting9-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting9-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['lighting10-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting10-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['lighting11-1'] != undefined) {
|
||
textfile += data.sub_items_data['lighting11-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 6) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['lining1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['lining2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['lining3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['lining4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['lining5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['lining6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['lining6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 7) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['coloring1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['coloring2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['coloring3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['coloring4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['coloring5-1'] != undefined) {
|
||
textfile += data.sub_items_data['coloring5-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['coloring6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['coloring7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['coloring8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['coloring9-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['coloring9-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 8) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['washing1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['washing2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['washing3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['washing4-1'] != undefined) {
|
||
textfile += data.sub_items_data['washing4-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['washing5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['washing6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['washing7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['washing7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 9) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['securing1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['securing2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['securing3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['securing4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['securing5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['securing6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['securing7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['securing8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['securing9-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing9-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['securing10-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing10-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['securing11-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing11-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['securing12-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing12-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
if (data.sub_items_data['securing13-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing13-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
if (data.sub_items_data['securing14-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing14-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
if (data.sub_items_data['securing15-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['securing15-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 10) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['privacy1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['privacy2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['privacy3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['privacy4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['privacy5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['privacy6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['privacy6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 11) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['bridge1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['bridge2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['bridge3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['bridge4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['bridge5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['bridge6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['bridge7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['bridge7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 12) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['tunnel1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['tunnel2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['tunnel3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['tunnel4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['tunnel5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['tunnel6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['tunnel7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tunnel7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 13) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['winterOperation1-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation1-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['winterOperation2-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation2-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['winterOperation3-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation3-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['winterOperation4-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation4-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['winterOperation5-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation5-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['winterOperation6-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation6-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['winterOperation7-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation7-1'] + "<br>"
|
||
|
||
}
|
||
else textfile = "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['winterOperation8-1'] != undefined) {
|
||
textfile += data.sub_items_data['winterOperation8-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 14) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['machinery1-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery1-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['machinery2-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery2-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['machinery3-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery3-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['machinery4-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery4-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['machinery5-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery5-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['machinery6-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery6-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['machinery7-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery7-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['machinery8-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery8-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['machinery9-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery9-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['machinery10-1'] != undefined) {
|
||
textfile += data.sub_items_data['machinery10-1'] + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
// if (value == 4) {
|
||
// if ((data.sub_items_data['machinery4-1'] != undefined) && (data.sub_items_data['machinery4-2'] != undefined)) {
|
||
// textfile += data.sub_items_data['machinery4-1'] + data.sub_items_data['machinery4-2'] + "<br>"
|
||
|
||
// }
|
||
// else if ((data.sub_items_data['machinery4-1'] != undefined) && (data.sub_items_data['machinery4-2'] == undefined)) {
|
||
// textfile += data.sub_items_data['machinery4-1'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery4-1'] == undefined) && (data.sub_items_data['machinery4-2'] != undefined)) {
|
||
// textfile += data.sub_items_data['machinery4-2'] + "<br>"
|
||
// }
|
||
// else textfile += "_" + "<br>"
|
||
// }
|
||
// if (value == 5) {
|
||
// if ((data.sub_items_data['machinery5-1'] != undefined) && (data.sub_items_data['machinery5-2'] != undefined)) {
|
||
|
||
// textfile += data.sub_items_data['machinery5-1'] + data.sub_items_data['machinery5-2'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery5-1'] != undefined) && (data.sub_items_data['machinery5-2'] == undefined)) {
|
||
// textfile += data.sub_items_data['machinery5-1'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery5-1'] == undefined) && (data.sub_items_data['machinery5-2'] != undefined)) {
|
||
// textfile += data.sub_items_data['machinery5-2'] + "<br>"
|
||
|
||
// }
|
||
// else textfile += "_" + "<br>"
|
||
|
||
// }
|
||
// if (value == 6) {
|
||
// if ((data.sub_items_data['machinery6-1'] != undefined) && (data.sub_items_data['machinery6-2'] != undefined)) {
|
||
|
||
// textfile += data.sub_items_data['machinery6-1'] + data.sub_items_data['machinery6-2'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery6-1'] != undefined) && (data.sub_items_data['machinery6-2'] == undefined)) {
|
||
// textfile += data.sub_items_data['machinery6-1'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery6-1'] == undefined) && (data.sub_items_data['machinery6-2'] != undefined)) {
|
||
// textfile += data.sub_items_data['machinery6-2'] + "<br>"
|
||
// }
|
||
// else textfile += "_" + "<br>"
|
||
// }
|
||
// if (value == 7) {
|
||
// if ((data.sub_items_data['machinery7-1'] != undefined) && (data.sub_items_data['machinery7-2'] != undefined)) {
|
||
|
||
// textfile += data.sub_items_data['machinery7-1'] + data.sub_items_data['machinery7-2'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery7-1'] != undefined) && (data.sub_items_data['machinery7-2'] == undefined)) {
|
||
// textfile += data.sub_items_data['machinery7-1'] + "<br>"
|
||
// }
|
||
// else if ((data.sub_items_data['machinery7-1'] == undefined) && (data.sub_items_data['machinery7-2'] != undefined)) {
|
||
// textfile += data.sub_items_data['machinery7-2'] + "<br>"
|
||
// }
|
||
// else textfile += "_" + "<br>"
|
||
// }
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 15) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
|
||
|
||
textfile += data.sub_items_data['tollhouse1-1'] + data.sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] == undefined)) {
|
||
textfile += data.sub_items_data['tollhouse1-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse1-1'] == undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
|
||
textfile += data.sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
|
||
|
||
textfile += data.sub_items_data['tollhouse2-1'] + data.sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] == undefined)) {
|
||
textfile += data.sub_items_data['tollhouse2-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse2-1'] == undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
|
||
textfile += data.sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['tollhouse3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tollhouse3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['tollhouse4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tollhouse4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 16) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['emergency1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['emergency2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tollhouse2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['emergency3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['emergency4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['emergency5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['emergency6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['emergency7-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency7-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['emergency8-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency8-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['emergency9-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['emergency9-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 17) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['seeview1-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview1-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['seeview2-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview2-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['seeview3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['seeview4-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview4-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['seeview5-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview5-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['seeview6-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['seeview6-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
|
||
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else if (data.type = "گشت راهداری و ترابری") {
|
||
if (data.sub_projects != undefined && data.sub_projects.length != 0) {
|
||
let textfile = "";
|
||
for (var i = 0; i < data.sub_projects.length; i++) {
|
||
if (data.sub_projects[i].sub_items_data != null) {
|
||
if (data.sub_projects[i].item == 1) {
|
||
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['reconstruction1-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "</br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction2-1'] + "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction3-1'] + " تن" + "<br>"
|
||
// textfile+="تن"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction4-1']) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['reconstruction4-1'] + " متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction5-1'] + "متر مکعب " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['reconstruction6-1'] + "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 2) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning1-1'] + "کیلومتر-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning2-1'] + "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning3-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning4-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning5-1'] + "مترطول-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning6-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning7-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning7-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning8-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['cleaning8-1'] + "تن" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 3) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['signs1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['signs1-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['signs2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['signs2-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['signs3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['signs3-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['signs4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['signs4-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 4) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['shield1-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield1-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield1-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield1-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['shield2-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield2-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield2-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield2-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 3) {
|
||
if ((data.sub_projects[i].sub_items_data['shield3-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield3-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield3-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['shield3-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 5) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting1-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting1-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting1-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting1-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting1-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting1-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting2-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting2-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting2-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting2-2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting2-2-1'] + "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting2-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 3) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting3-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting3-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting3-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting3-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting3-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting3-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
|
||
}
|
||
if (value == 4) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting4-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting4-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting4-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting4-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting4-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting4-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 5) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting5-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting5-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting5-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting5-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting5-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_items_data['lighting5-2-1'] + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 6) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting6-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting6-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting6-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting6-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting6-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lighting6-2-1'] + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 6) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['lining1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lining1-1'] + "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['lining2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lining2-1'] + "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['lining3-1']) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['lining3-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 7) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['coloring1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring1-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['coloring2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring2-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['coloring3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring3-1'] + "اصله" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['coloring4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring4-1'] + "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['coloring5-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring5-1'] + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['coloring6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['coloring6-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 8) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['washing1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing1-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['washing2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing2-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['washing3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing3-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['washing4-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing4-1'] + "مترمربع" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['washing5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing5-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['washing6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['washing6-1'] + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 9) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['securing1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing1-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['securing2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing2-1'] + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['securing3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing3-1'] + "باب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['securing4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing4-1'] + "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['securing5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing5-1'] + "کیلومتر-شیار" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['securing6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing6-1'] + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['securing7-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['securing7-1'] + "طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 13) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation1-1'] + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation1-2'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation1-2'] + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation3-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation3-1'] + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation4-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation4-1'] + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation5-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation5-1'] + "تن" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation6-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation6-1'] + "مقطع" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation7-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation7-1'] + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile = "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation8-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['winterOperation8-1'] + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 14) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['machinery1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery1-1'] + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['machinery2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery2-1'] + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['machinery3-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery3-1'] + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery4-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery4-2'] + "هزینه" + "<br>"
|
||
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery4-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-1'] + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery4-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery4-2'] + "هزینه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery5-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery5-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery5-2'] + "نوع کاربری" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery5-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery5-1'] + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery5-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery5-2'] + "نوع کاربری " + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
|
||
}
|
||
if (value == 6) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery6-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery6-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery6-2'] + "نوع کاربری" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery6-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['machinery6-1'] + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery6-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery6-2'] + "نوع کاربری" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery7-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-1'] + "تعداد دستگاه" + data.sub_projects[i].sub_items_data['machinery7-2'] + "تعداد بازدید " + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery7-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-1'] + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery7-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['machinery7-2'] + "تعداد بازدید " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 15) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse1-1'] + "باب" + data.sub_projects[i].sub_items_data['tollhouse1-2'] + "هزینه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse1-1'] + "باب" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] == undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse1-2'] + "هزینه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse2-1'] + "تعداد" + data.sub_projects[i].sub_items_data['tollhouse2-2'] + "نوع" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse2-1'] + "تعداد" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] == undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse2-2'] + "نوع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['tollhouse3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " +data.sub_projects[i].sub_items_data['tollhouse3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else return "_"
|
||
// return textfile
|
||
}
|
||
else return "_"
|
||
}
|
||
return textfile
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
// return data.item
|
||
}
|
||
|
||
|
||
|
||
},
|
||
{
|
||
"data": null,
|
||
render: function (data, type, row) {
|
||
if (data.type == "فعالیت روزانه و جاری راهداری") {
|
||
if (data.item != undefined) {
|
||
if (data.sub_items_data != null) {
|
||
if (data.item == 1) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['reconstruction1-1'] != undefined) {
|
||
textfile += "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "</br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['reconstruction2-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['reconstruction3-1'] != undefined) {
|
||
|
||
textfile += " تن" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['reconstruction4-1']) {
|
||
|
||
textfile += " متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['reconstruction5-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['reconstruction6-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['reconstruction7-1'] != undefined) {
|
||
|
||
textfile += "متر طول " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['reconstruction8-1'] != undefined) {
|
||
|
||
textfile += "متر مربع " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['reconstruction9-1'] != undefined) {
|
||
|
||
textfile += "متر مربع " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['reconstruction10-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['reconstruction11-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['reconstruction12-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 2) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['cleaning1-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['cleaning2-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['cleaning3-1'] != undefined) {
|
||
|
||
textfile += "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['cleaning4-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['cleaning5-1'] != undefined) {
|
||
|
||
textfile += "مترطول-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['cleaning6-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['cleaning7-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['cleaning8-1'] != undefined) {
|
||
|
||
textfile += "تن" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['cleaning9-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['cleaning10-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['cleaning11-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['cleaning12-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
if (data.sub_items_data['cleaning13-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
if (data.sub_items_data['cleaning14-1'] != undefined) {
|
||
|
||
textfile += "نفر ساعت" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
if (data.sub_items_data['cleaning15-1'] != undefined) {
|
||
|
||
textfile += "مترطول-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 16) {
|
||
if (data.sub_items_data['cleaning16-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 17) {
|
||
if (data.sub_items_data['cleaning17-1'] != undefined) {
|
||
|
||
textfile += "مقطع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 18) {
|
||
if (data.sub_items_data['cleaning18-1'] != undefined) {
|
||
|
||
textfile += "نفر ساعت" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 19) {
|
||
if (data.sub_items_data['cleaning19-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 3) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['signs1-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['signs2-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['signs3-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['signs4-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['signs5-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['signs6-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['signs7-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['signs8-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 4) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['shield1-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['shield2-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['shield3-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 5) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['lighting1-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['lighting2-1'] != undefined) {
|
||
|
||
textfile += "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['lighting3-1'] != undefined) {
|
||
|
||
textfile += "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['lighting4-1'] != undefined) {
|
||
|
||
textfile += "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['lighting5-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['lighting6-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['lighting7-1'] != undefined) {
|
||
|
||
textfile += "متر طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['lighting8-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['lighting9-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['lighting10-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['lighting11-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 6) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['lining1-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['lining2-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['lining3-1']) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['lining4-1']) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['lining4-1']) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['lining4-1']) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 7) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['coloring1-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['coloring2-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['coloring3-1'] != undefined) {
|
||
|
||
textfile += "اصله" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['coloring4-1'] != undefined) {
|
||
|
||
textfile += "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['coloring5-1'] != undefined) {
|
||
textfile += "عدد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['coloring6-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['coloring7-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['coloring8-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['coloring9-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 8) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['washing1-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['washing2-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['washing3-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['washing4-1'] != undefined) {
|
||
textfile += "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['washing5-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['washing6-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['washing7-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 9) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['securing1-1'] != undefined) {
|
||
|
||
textfile += "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['securing2-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['securing3-1'] != undefined) {
|
||
|
||
textfile += "باب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['securing4-1'] != undefined) {
|
||
|
||
textfile += "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['securing5-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر-شیار" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['securing6-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['securing7-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['securing8-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر-شیار" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['securing9-1'] != undefined) {
|
||
|
||
textfile += "متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['securing10-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 11) {
|
||
if (data.sub_items_data['securing11-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 12) {
|
||
if (data.sub_items_data['securing12-1'] != undefined) {
|
||
|
||
textfile += "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 13) {
|
||
if (data.sub_items_data['securing13-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 14) {
|
||
if (data.sub_items_data['securing14-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 15) {
|
||
if (data.sub_items_data['securing15-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 10) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['privacy1-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['privacy2-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['privacy3-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['privacy4-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['privacy5-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['privacy6-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 11) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['bridge1-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['bridge2-1'] != undefined) {
|
||
|
||
textfile += "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['bridge3-1'] != undefined) {
|
||
|
||
textfile += "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['bridge4-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['bridge5-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['bridge6-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['bridge7-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 12) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['tunnel1-1'] != undefined) {
|
||
|
||
textfile += "مورد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['tunnel2-1'] != undefined) {
|
||
|
||
textfile += "مترطول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['tunnel3-1'] != undefined) {
|
||
|
||
textfile += "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['tunnel4-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['tunnel5-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['tunnel6-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['tunnel7-1'] != undefined) {
|
||
|
||
textfile += "عدد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
|
||
else if (data.item == 13) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['winterOperation1-1'] != undefined) {
|
||
textfile += "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['winterOperation2-1'] != undefined) {
|
||
textfile += "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['winterOperation3-1'] != undefined) {
|
||
textfile += "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['winterOperation4-1'] != undefined) {
|
||
textfile += "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['winterOperation5-1'] != undefined) {
|
||
textfile += "تن" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['winterOperation6-1'] != undefined) {
|
||
textfile += "مقطع" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['winterOperation7-1'] != undefined) {
|
||
textfile += "نفر" + "<br>"
|
||
|
||
}
|
||
else textfile = "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['winterOperation8-1'] != undefined) {
|
||
textfile += "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 14) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_items_data['machinery1-1'] != undefined) {
|
||
textfile += "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['machinery2-1'] != undefined) {
|
||
textfile += "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['machinery3-1'] != undefined) {
|
||
textfile += "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['machinery4-1'] != undefined) {
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['machinery5-1'] != undefined) {
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['machinery6-1'] != undefined) {
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['machinery7-1'] != undefined) {
|
||
textfile += "مسافت-کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['machinery8-1'] != undefined) {
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 9) {
|
||
if (data.sub_items_data['machinery9-1'] != undefined) {
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 10) {
|
||
if (data.sub_items_data['machinery10-1'] != undefined) {
|
||
textfile += "مسافت-کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 15) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
|
||
|
||
textfile += data.sub_items_data['tollhouse1-1'] + data.sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse1-1'] != undefined) && (data.sub_items_data['tollhouse1-2'] == undefined)) {
|
||
textfile += data.sub_items_data['tollhouse1-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse1-1'] == undefined) && (data.sub_items_data['tollhouse1-2'] != undefined)) {
|
||
textfile += data.sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
|
||
|
||
textfile += data.sub_items_data['tollhouse2-1'] + data.sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse2-1'] != undefined) && (data.sub_items_data['tollhouse2-2'] == undefined)) {
|
||
textfile += data.sub_items_data['tollhouse2-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_items_data['tollhouse2-1'] == undefined) && (data.sub_items_data['tollhouse2-2'] != undefined)) {
|
||
textfile += data.sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
if (value == 3) {
|
||
if (data.sub_items_data['tollhouse3-1'] != undefined) {
|
||
|
||
textfile += data.sub_items_data['tollhouse3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
if (value == 4) {
|
||
if (data.sub_items_data['tollhouse4-1'] != undefined) {
|
||
textfile += "مورد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 16) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
|
||
|
||
if (value == 1) {
|
||
if (data.sub_items_data['emergency1-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['emergency2-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['emergency3-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['emergency4-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['emergency5-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['emergency6-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_items_data['emergency7-1'] != undefined) {
|
||
|
||
textfile += "تعداد محور" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_items_data['emergency8-1'] != undefined) {
|
||
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
if (value == 9) {
|
||
if (data.sub_items_data['emergency9-1'] != undefined) {
|
||
textfile += "محور" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
else if (data.item == 17) {
|
||
let textfile = ""
|
||
data.sub_items.forEach(function (value, index) {
|
||
|
||
|
||
if (value == 1) {
|
||
if (data.sub_items_data['seeView1-1'] != undefined) {
|
||
|
||
textfile += "نفر-ساعت" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_items_data['seeView2-1'] != undefined) {
|
||
|
||
textfile += "نفر-ساعت" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_items_data['seeView3-1'] != undefined) {
|
||
|
||
textfile += "نفر-ساعت" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_items_data['seeView4-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_items_data['seeView5-1'] != undefined) {
|
||
|
||
textfile += "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_items_data['seeView6-1'] != undefined) {
|
||
|
||
textfile += "تعداد دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
|
||
});
|
||
return textfile
|
||
|
||
}
|
||
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else if (data.type = "گشت راهداری و ترابری") {
|
||
if (data.sub_projects != undefined && data.sub_projects.length != 0) {
|
||
let textfile = "";
|
||
for (var i = 0; i < data.sub_projects.length; i++) {
|
||
if (data.sub_projects[i].sub_items_data != null) {
|
||
if (data.sub_projects[i].item == 1) {
|
||
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "</br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " تن" + "<br>"
|
||
// textfile+="تن"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction4-1']) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + " متر مربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "متر مکعب " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['reconstruction6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 2) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "متر مکعب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترطول-باند" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning7-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_projects[i].sub_items_data['cleaning8-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تن" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 3) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['signs1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['signs2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['signs3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['signs4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 4) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['shield1-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield1-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield1-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['shield2-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield2-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield2-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 3) {
|
||
if ((data.sub_projects[i].sub_items_data['shield3-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-3'] != undefined) || (data.sub_projects[i].sub_items_data['shield3-1-4'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['shield3-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 5) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting1-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting1-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting1-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting1-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting2-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting2-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting2-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting2-2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 3) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting3-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting3-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting3-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting3-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
|
||
}
|
||
if (value == 4) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting4-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting4-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting4-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting4-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 5) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting5-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting5-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting5-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting5-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
|
||
}
|
||
}
|
||
if (value == 6) {
|
||
if ((data.sub_projects[i].sub_items_data['lighting6-1-1'] != undefined) || (data.sub_projects[i].sub_items_data['lighting6-1-2'] != undefined) || (data.sub_projects[i].sub_items_data['lighting6-1-3'] != undefined)) {
|
||
if (data.sub_projects[i].sub_items_data['lighting6-2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
else {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "موردی" + "<br>"
|
||
|
||
}
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 6) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['lining1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['lining2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-رنگ" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['lining3-1']) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 7) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['coloring1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['coloring2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['coloring3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "اصله" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['coloring4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['coloring5-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['coloring6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 8) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['washing1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['washing2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['washing3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['washing4-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['washing5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['washing6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مترمربع" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 9) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['securing1-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['securing2-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['securing3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "باب" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['securing4-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "دستگاه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['securing5-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-شیار" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['securing6-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['securing7-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "طول" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 13) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation1-2'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation3-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation4-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "کیلومتر-باند" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation5-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تن" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 6) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation6-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "مقطع" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation7-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile = "_" + "<br>"
|
||
}
|
||
if (value == 8) {
|
||
if (data.sub_projects[i].sub_items_data['winterOperation8-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 14) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if (data.sub_projects[i].sub_items_data['machinery1-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if (data.sub_projects[i].sub_items_data['machinery2-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['machinery3-1'] != undefined) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "لیتر" + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 4) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery4-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "هزینه" + "<br>"
|
||
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery4-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery4-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery4-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "هزینه" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 5) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery5-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "نوع کاربری" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery5-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery5-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery5-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نوع کاربری " + "<br>"
|
||
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
|
||
}
|
||
if (value == 6) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery6-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "نوع کاربری" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery6-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery6-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery6-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "نوع کاربری" + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 7) {
|
||
if ((data.sub_projects[i].sub_items_data['machinery7-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "تعداد بازدید " + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery7-1'] != undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد دستگاه" + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['machinery7-1'] == undefined) && (data.sub_projects[i].sub_items_data['machinery7-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + "تعداد بازدید " + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
|
||
|
||
})
|
||
// return textfile
|
||
}
|
||
else if (data.sub_projects[i].item == 15) {
|
||
// let textfile = "";
|
||
data.sub_projects[i].sub_items.forEach(function (value, index) {
|
||
if (value == 1) {
|
||
if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse1-1'] + data.sub_projects[i].sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse1-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse1-1'] == undefined) && (data.sub_projects[i].sub_items_data['tollhouse1-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse1-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 2) {
|
||
if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] != undefined)) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse2-1'] + data.sub_projects[i].sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] != undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] == undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse2-1'] + "<br>"
|
||
}
|
||
else if ((data.sub_projects[i].sub_items_data['tollhouse2-1'] == undefined) && (data.sub_projects[i].sub_items_data['tollhouse2-2'] != undefined)) {
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse2-2'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
if (value == 3) {
|
||
if (data.sub_projects[i].sub_items_data['tollhouse3-1'] != undefined) {
|
||
|
||
textfile += (i + 1) + "_" + (index + 1) + ")" + " " + data.sub_projects[i].sub_items_data['tollhouse3-1'] + "<br>"
|
||
}
|
||
else textfile += "_" + "<br>"
|
||
}
|
||
})
|
||
// return textfile
|
||
}
|
||
else return "_"
|
||
// return textfile
|
||
}
|
||
else return "_"
|
||
}
|
||
return textfile
|
||
|
||
}
|
||
else return "_"
|
||
}
|
||
else return "_"
|
||
// return data.item
|
||
}
|
||
|
||
|
||
|
||
},
|
||
{ "data": "created_at_jalali" },
|
||
{
|
||
"orderable": false,
|
||
className: "text-center",
|
||
"data": null,
|
||
render: function (data, type, row) {
|
||
if (data.type == "فعالیت روزانه و جاری راهداری") {
|
||
if (data.can_delete == 1) {
|
||
|
||
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه" onclick="window.open(`/projects/road-items-view/'+ data.id +'`, `_blank`);"><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه" onclick="window.open(`/projects/road-items/'+ data.id +'/edit`, `_blank`);"><i class="fas fa-edit"></i></button> <button class="btn btn-danger btn-sm editor_remove" title="حذف پروژه"><i class="fas fa-trash-alt"></i></i></button>'
|
||
}
|
||
else {
|
||
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه" onclick="window.open(`/projects/road-items-view/'+ data.id +'`, `_blank`);"><i class="fa fa-eye"></i></button>'
|
||
}
|
||
} else {
|
||
if (data.can_delete == 1) {
|
||
|
||
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه"><i class="fa fa-eye"></i></button> <button class="btn btn-warning btn-sm" title="ویرایش پروژه"><i class="fas fa-edit"></i></button> <button class="btn btn-danger btn-sm editor_remove" title="حذف پروژه"><i class="fas fa-trash-alt"></i></i></button>'
|
||
}
|
||
else {
|
||
return '<button class="btn btn-info btn-sm" title="مشاهده پروژه"><i class="fa fa-eye"></i></button>'
|
||
}
|
||
}
|
||
}
|
||
},
|
||
|
||
],
|
||
|
||
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()
|
||
}
|
||
});
|
||
}
|
||
}); |