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