11038 lines
278 KiB
JavaScript
11038 lines
278 KiB
JavaScript
var objectsend = [];
|
|
var objectplus = [];
|
|
|
|
var objectsendtown = []
|
|
|
|
var eacharray = {};
|
|
var sub = [];
|
|
var subobject = {};
|
|
|
|
|
|
|
|
|
|
var tablemaremat
|
|
var tablepaksazi
|
|
var tablealaem
|
|
var tablehefaz
|
|
var tablelighting
|
|
var tableruller
|
|
var tablecoloring
|
|
var tablewashing
|
|
var tablesafety
|
|
var tableharim
|
|
var tablepol
|
|
var tabletunnel
|
|
var tablezem
|
|
var tablemachin
|
|
var tablerahdar
|
|
var tableemer
|
|
|
|
var tablemarematsecond
|
|
var tablepaksazisecond
|
|
var tablealaemsecond
|
|
var tablehefazsecond
|
|
var tablelightingsecond
|
|
var tablerullersecond
|
|
var tablecoloringsecond
|
|
var tablewashingsecond
|
|
var tablesafetysecond
|
|
var tableharimsecond
|
|
var tablepolsecond
|
|
var tabletunnelsecond
|
|
var tablezemsecond
|
|
var tablemachinsecond
|
|
var tablerahdarsecond
|
|
var tableemersecond
|
|
|
|
|
|
var provincechoose = null;
|
|
function showLoaderScreen() {
|
|
$(".divloader").css("display", "flex").hide().fadeIn();
|
|
}
|
|
|
|
function hideLoaderScreen() {
|
|
$(".divloader").fadeOut();
|
|
}
|
|
$(document).ready(function () {
|
|
showprovincename();
|
|
showLoaderScreen()
|
|
})
|
|
function showprovincename() {
|
|
let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
|
|
// showLoaderScreen();
|
|
$.ajax({
|
|
url: reqUrl,
|
|
type: "GET",
|
|
success: function (result) {
|
|
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsend.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
|
|
showtable1();
|
|
|
|
|
|
|
|
},
|
|
error: function (error) {
|
|
|
|
},
|
|
});
|
|
}
|
|
function showtable1() {
|
|
tablemaremat = $("#maremat").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=1",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
// const response = await $.ajax({url: "https://rms.rmto.ir/public/contents/provinces", success: function(result){
|
|
|
|
// console.log("log 1");
|
|
|
|
// for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// // eacharray.province= i
|
|
// objectsend.push({
|
|
// id: result.data[i].id,
|
|
// name_fa: result.data[i].name_fa,
|
|
// })
|
|
// }
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// console.log("mooz", objectsend);
|
|
|
|
// return objectsend;
|
|
|
|
// }});
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
return objectsend;
|
|
|
|
|
|
|
|
// return objectsend;
|
|
// console.log("hiiii", chiz.responseJSON)
|
|
// return chiz.responseJSON;
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtable2() {
|
|
showLoaderScreen()
|
|
tablepaksazi = $("#paksazi").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=2",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t13 != null) {
|
|
return data.t13.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t13 != null) {
|
|
return data.t13.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t14 != null) {
|
|
return data.t14.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t14 != null) {
|
|
return data.t14.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t15 != null) {
|
|
return data.t15.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t15 != null) {
|
|
return data.t15.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t16 != null) {
|
|
return data.t16.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t16 != null) {
|
|
return data.t16.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t17 != null) {
|
|
return data.t17.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t17 != null) {
|
|
return data.t17.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t18 != null) {
|
|
return data.t18.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t18 != null) {
|
|
return data.t18.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t19 != null) {
|
|
return data.t19.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t19 != null) {
|
|
return data.t19.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
function showtable3() {
|
|
showLoaderScreen()
|
|
tablealaem = $("#alaem").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=3",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
function showtable4() {
|
|
showLoaderScreen()
|
|
tablehefaz = $("#hefaz").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=4",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
function showtable5() {
|
|
showLoaderScreen()
|
|
tablelighting = $("#lighting").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=5",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtable6() {
|
|
showLoaderScreen()
|
|
tableruller = $("#ruler").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=6",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
function showtable7() {
|
|
showLoaderScreen()
|
|
tablecoloring = $("#coloring").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=7",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable8() {
|
|
showLoaderScreen()
|
|
tablewashing = $("#washed").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=8",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtable9() {
|
|
showLoaderScreen()
|
|
tablesafety = $("#saftey").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=9",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable10() {
|
|
showLoaderScreen()
|
|
tableharim = $("#harim").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=10",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable11() {
|
|
showLoaderScreen()
|
|
tablepol = $("#pol").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=11",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable12() {
|
|
showLoaderScreen()
|
|
tabletunnel = $("#tunnelGaleri").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=12",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable13() {
|
|
showLoaderScreen()
|
|
tablezem = $("#zemestanii").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=13",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable14() {
|
|
showLoaderScreen()
|
|
tablemachin = $("#mashinAlat").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=14",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable15() {
|
|
showLoaderScreen()
|
|
tablerahdar = $("#tollhouse").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=10",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
function showtable16() {
|
|
showLoaderScreen()
|
|
tableemer = $("#emergency").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province?item=16",
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
objectplus = objectsend;
|
|
|
|
for (var j = 0; j < objectplus.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectplus[j].id == json.data[i].p) {
|
|
objectplus[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsend;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
$("#optionfilter").on("change", function () {
|
|
if (parseInt($(this).children("option:selected").val()) == 0) {
|
|
$("#marematt").css('display', 'block')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
|
|
|
|
showtable1()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 1) {
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'block')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
showtable2()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 2) {
|
|
// alert("hi")
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'block')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
showtable3()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 3) {
|
|
// alert("hiiiii")
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'block')
|
|
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable4()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 4) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#lightingg").css('display', 'block')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable5()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 5) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'block')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
showtable6()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 6) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'block')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable7()
|
|
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 7) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'block')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable8()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 8) {
|
|
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'block')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
|
|
|
|
showtable9()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 9) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'block')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
showtable10()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 10) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'block')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
showtable11()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 11) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'block')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable12()
|
|
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 12) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'block')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable13()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 13) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'block')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable14()
|
|
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 14) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#safteyy").css('display', 'none')
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'block')
|
|
$("#emer").css('display', 'none')
|
|
|
|
showtable15()
|
|
}
|
|
if (parseInt($(this).children("option:selected").val()) == 15) {
|
|
|
|
$("#marematt").css('display', 'none')
|
|
$("#paksazii").css('display', 'none')
|
|
$("#alaemmm").css('display', 'none')
|
|
$("#lightingg").css('display', 'none')
|
|
$("#ruller").css('display', 'none')
|
|
$("#coloringgg").css('display', 'none')
|
|
$("#washingg").css('display', 'none')
|
|
$("#safteyy").css('display', 'none')
|
|
$("#heafzz").css('display', 'none')
|
|
|
|
$("#harimm").css('display', 'none')
|
|
$("#poll").css('display', 'none')
|
|
$("#tunell").css('display', 'none')
|
|
$("#zemestani").css('display', 'none')
|
|
$("#mashinAlattt").css('display', 'none')
|
|
$("#tollhousee").css('display', 'none')
|
|
$("#emer").css('display', 'block')
|
|
|
|
showtable16()
|
|
|
|
}
|
|
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
})
|
|
|
|
|
|
$("#maremat").on("click", "button.show_table", function () {
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablemaremat.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
showtabletownmaremat(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#paksazi").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablepaksazi.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("paksazi", id)
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
showtabletownpaksazi(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#alaem").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablealaem.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownalaemmm(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#hefaz").on("click", "button.show_table", function () {
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablehefaz.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownheafz(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#lighting").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablelighting.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownlighting(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#ruler").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tableruller.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownruller(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#coloring").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablecoloring.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletowncoloring(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#washed").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablewashing.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownwashing(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#saftey").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablesafety.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownsafteyy(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#harim").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tableharim.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownharimm(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#pol").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablepol.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownpoll(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#tunnelGaleri").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tabletunnel.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletowntunel(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#zemestanii").on("click", "button.show_table", function () {
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablezem.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownzemestani(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#mashinAlat").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablemachin.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
|
|
showtabletownmashinAlat(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
$("#tollhouse").on("click", "button.show_table", function () {
|
|
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tablerahdar.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletowntollhouse(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
$("#emer").on("click", "button.show_table", function () {
|
|
|
|
|
|
var tr = $(this).closest("tr");
|
|
var id = tableemer.row(tr).data().id;
|
|
|
|
$.ajax({
|
|
url: "https://rms.rmto.ir/public/contents/provinces/" + id, success: function (result) {
|
|
|
|
objectsendtown = [];
|
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
|
// eacharray.province= i
|
|
objectsendtown.push({
|
|
id: result.data[i].id,
|
|
name_fa: result.data[i].name_fa,
|
|
})
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
|
|
$("#maremattTown").css('display', 'none')
|
|
$("#paksaziiTown").css('display', 'none')
|
|
$("#alaemmmTown").css('display', 'none')
|
|
$("#heafzzTown").css('display', 'none')
|
|
$("#lightinggTown").css('display', 'none')
|
|
$("#rullerTown").css('display', 'none')
|
|
$("#coloringggTown").css('display', 'none')
|
|
$("#washinggTown").css('display', 'none')
|
|
$("#safteyyTown").css('display', 'none')
|
|
$("#harimmTown").css('display', 'none')
|
|
$("#pollTown").css('display', 'none')
|
|
$("#tunellTown").css('display', 'none')
|
|
$("#zemestaniTown").css('display', 'none')
|
|
$("#mashinAlatttTown").css('display', 'none')
|
|
$("#tollhouseeTown").css('display', 'none')
|
|
$("#emerTown").css('display', 'none')
|
|
|
|
showtabletownemer(id)
|
|
|
|
// for (var j = 0; j < objectsendtown.length; j++) {
|
|
// for (var i = 0; i < json.data.length; i++) {
|
|
|
|
// if (objectsendtown[j].id == json.data[i].ci) {
|
|
// objectsendtown[j]['t' + json.data[i].t] = {
|
|
// "c": json.data[i].c,
|
|
// "s": json.data[i].s
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function showtabletownmaremat(num) {
|
|
|
|
$("#maremattTown").css('display', 'block')
|
|
tablemarematsecond = $("#marematTown").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=1&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
console.log(json)
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
console.log("objectsendtown", objectsendtown)
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
return objectsendtown;
|
|
|
|
|
|
|
|
// return objectsend;
|
|
// console.log("hiiii", chiz.responseJSON)
|
|
// return chiz.responseJSON;
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
// {
|
|
// data: null,
|
|
// render: function (data, type, row) {
|
|
// return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
// }
|
|
// },
|
|
|
|
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownpaksazi(num) {
|
|
$("#paksaziiTown").css('display', 'block')
|
|
tablepaksazisecond = $("#paksaziTown").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=2&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
console.log("javab paksazi1", json);
|
|
console.log("javab paksazi2", objectsendtown);
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t13 != null) {
|
|
return data.t13.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t13 != null) {
|
|
return data.t13.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t14 != null) {
|
|
return data.t14.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t14 != null) {
|
|
return data.t14.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t15 != null) {
|
|
return data.t15.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t15 != null) {
|
|
return data.t15.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t16 != null) {
|
|
return data.t16.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t16 != null) {
|
|
return data.t16.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t17 != null) {
|
|
return data.t17.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t17 != null) {
|
|
return data.t17.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t18 != null) {
|
|
return data.t18.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t18 != null) {
|
|
return data.t18.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t19 != null) {
|
|
return data.t19.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t19 != null) {
|
|
return data.t19.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
// {
|
|
// data: null,
|
|
// render: function (data, type, row) {
|
|
// return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
// }
|
|
// },
|
|
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtabletownalaemmm(num) {
|
|
|
|
$("#alaemmmTown").css('display', 'block')
|
|
tablealaemsecond = $("#alaemTown").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=3&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
// {
|
|
// data: null,
|
|
// render: function (data, type, row) {
|
|
// return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
// }
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtabletownheafz(num) {
|
|
$("#heafzzTown").css('display', 'block')
|
|
|
|
tablehefazsecond = $("#hefaz").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=4&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
// data: null,
|
|
// render: function (data, type, row) {
|
|
// return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
// }
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownlighting(num) {
|
|
$("#lightinggTown").css('display', 'block')
|
|
|
|
tablelightingsecond = $("#lighting").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=5&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
function showtabletownruller(num) {
|
|
$("#rullerTown").css('display', 'block')
|
|
|
|
tablerullersecond = $("#ruler").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=6&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtabletowncoloring(num) {
|
|
$("#coloringggTown").css('display', 'block')
|
|
|
|
tablecoloringsecond = $("#coloring").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=7&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownwashing(num) {
|
|
$("#washinggTown").css('display', 'block')
|
|
|
|
tablewashingsecond = $("#washed").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=8&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownsafteyy(num) {
|
|
$("#safteyyTown").css('display', 'block')
|
|
|
|
tablesafetysecond = $("#saftey").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=9&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t10 != null) {
|
|
return data.t10.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t11 != null) {
|
|
return data.t11.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t12 != null) {
|
|
return data.t12.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownharimm(num) {
|
|
$("#harimmTown").css('display', 'block')
|
|
|
|
tableharimsecond = $("#harim").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=10&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownpoll(num) {
|
|
$("#pollTown").css('display', 'block')
|
|
|
|
tablepolsecond = $("#pol").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=11&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletowntunel(num) {
|
|
$("#tunellTown").css('display', 'block')
|
|
|
|
tabletunnelsecond = $("#tunnelGaleri").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=12&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownzemestani(num) {
|
|
$("#zemestaniTown").css('display', 'block')
|
|
|
|
tablezemsecond = $("#zemestanii").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=13&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
function showtabletownmashinAlat(num) {
|
|
$("#mashinAlatttTown").css('display', 'block')
|
|
|
|
tablemachinsecond = $("#mashinAlat").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=14&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
function showtabletowntollhouse(num) {
|
|
$("#tollhouseeTown").css('display', 'block')
|
|
|
|
tablerahdarsecond = $("#tollhouse").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=15&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].ci) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function showtabletownemer(num) {
|
|
$("#emerTown").css('display', 'block')
|
|
|
|
tableemersecond = $("#emergency").DataTable({
|
|
dom: 'lBfrtip',
|
|
scrollX: true,
|
|
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"]
|
|
],
|
|
processing: true,
|
|
ajax: {
|
|
url: "https://rms.rmto.ir/api/report/total-items-group-province-city?item=16&province_id=" + num,
|
|
type: "GET",
|
|
dataSrc: function (json) {
|
|
|
|
|
|
for (var j = 0; j < objectsendtown.length; j++) {
|
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
|
|
if (objectsendtown[j].id == json.data[i].p) {
|
|
objectsendtown[j]['t' + json.data[i].t] = {
|
|
"c": json.data[i].c,
|
|
"s": json.data[i].s
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
hideLoaderScreen()
|
|
|
|
// console.log(json.data.sum)
|
|
// // showpie2(json.data.stat)
|
|
// footercount2 = json.data.sum
|
|
return objectsendtown;
|
|
},
|
|
},
|
|
columns: [{
|
|
data: "name_fa"
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t1 != null) {
|
|
return data.t1.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t2 != null) {
|
|
return data.t2.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t3 != null) {
|
|
return data.t3.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t4 != null) {
|
|
return data.t4.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t5 != null) {
|
|
return data.t5.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t6 != null) {
|
|
return data.t6.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t7 != null) {
|
|
return data.t7.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t8 != null) {
|
|
return data.t8.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.c
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
if (data.t9 != null) {
|
|
return data.t9.s
|
|
} else {
|
|
return ""
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
data: null,
|
|
render: function (data, type, row) {
|
|
return "<button class='btn btn-outline-info btn-sm show_table' title='مشاهده'><i class='fa fa-eye'></i></button>"
|
|
|
|
|
|
}
|
|
},
|
|
// copy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|