|
@@ -1590,6 +1590,7 @@ class common {
|
|
|
$index = 0;
|
|
$index = 0;
|
|
|
$max = 0;
|
|
$max = 0;
|
|
|
foreach($groupedItems as $currency => $series){
|
|
foreach($groupedItems as $currency => $series){
|
|
|
|
|
+ $series_max = 0;
|
|
|
$num = $index % 3;
|
|
$num = $index % 3;
|
|
|
$index = $index +1;
|
|
$index = $index +1;
|
|
|
$tem_series = array();
|
|
$tem_series = array();
|
|
@@ -1606,7 +1607,17 @@ class common {
|
|
|
$data[]=$invoice_amount;
|
|
$data[]=$invoice_amount;
|
|
|
$total = $total + $invoice_amount;
|
|
$total = $total + $invoice_amount;
|
|
|
$max = $max<$_series['invoice_amount'] ? $_series['invoice_amount'] : $max;
|
|
$max = $max<$_series['invoice_amount'] ? $_series['invoice_amount'] : $max;
|
|
|
|
|
+ $series_max = $series_max<$_series['invoice_amount'] ? $_series['invoice_amount'] : $series_max;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //计算Y坐标的间隔 每种货币的
|
|
|
|
|
+ $interval = utils::calculateTicks(0,$series_max,5);
|
|
|
|
|
+ if($interval == 0){
|
|
|
|
|
+ //处理返回默认值
|
|
|
|
|
+ $interval = 2;
|
|
|
|
|
+ }
|
|
|
|
|
+ $tem_series["Max"] = $interval*5;
|
|
|
|
|
+ $tem_series["interval"] = $interval;
|
|
|
$tem_series["data"] = $data;
|
|
$tem_series["data"] = $data;
|
|
|
$tem_series["total"] = floatval(number_format($total, 4, '.', ''));
|
|
$tem_series["total"] = floatval(number_format($total, 4, '.', ''));
|
|
|
$barSeries[] = $tem_series;
|
|
$barSeries[] = $tem_series;
|
|
@@ -1652,12 +1663,12 @@ class common {
|
|
|
"title"=>"Container Count",
|
|
"title"=>"Container Count",
|
|
|
"switchValue"=>true,
|
|
"switchValue"=>true,
|
|
|
"text"=>"Pie chart showing figures of shipments which are soon to depart/arrive (Calculated from ETD/ETA).");
|
|
"text"=>"Pie chart showing figures of shipments which are soon to depart/arrive (Calculated from ETD/ETA).");
|
|
|
- if(_isRevenueDisplay()){
|
|
|
|
|
- $Management[] = array("id"=>5 ,
|
|
|
|
|
- "title"=>"Revenue Spent",
|
|
|
|
|
- "switchValue"=>true,
|
|
|
|
|
- "text"=>"Revenue data for the past 12 months.");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(_isRevenueDisplay()){
|
|
|
|
|
+ // $Management[] = array("id"=>5 ,
|
|
|
|
|
+ // "title"=>"Revenue Spent",
|
|
|
|
|
+ // "switchValue"=>true,
|
|
|
|
|
+ // "text"=>"Revenue data for the past 12 months.");
|
|
|
|
|
+ // }
|
|
|
$Management[] = array("id"=>6 ,
|
|
$Management[] = array("id"=>6 ,
|
|
|
"title"=>"Top 10 Origin/Destination",
|
|
"title"=>"Top 10 Origin/Destination",
|
|
|
"switchValue"=>true,
|
|
"switchValue"=>true,
|
|
@@ -1951,24 +1962,24 @@ class common {
|
|
|
$containerStatusDataTemp = array();
|
|
$containerStatusDataTemp = array();
|
|
|
$content = array();
|
|
$content = array();
|
|
|
//按顺序处理 新版只显示几个状态
|
|
//按顺序处理 新版只显示几个状态
|
|
|
- foreach($container_status_column as $status){
|
|
|
|
|
|
|
+ //foreach($container_status_column as $status){
|
|
|
foreach($ctnr_status as $event){
|
|
foreach($ctnr_status as $event){
|
|
|
- if(strtolower($event['event']) == strtolower($status)){
|
|
|
|
|
|
|
+ //if(strtolower($event['event']) == strtolower($status)){
|
|
|
$eventdate = $event["eventdate"];
|
|
$eventdate = $event["eventdate"];
|
|
|
if (empty($event["source_id"]) || $event["source_id"]==0) {
|
|
if (empty($event["source_id"]) || $event["source_id"]==0) {
|
|
|
$eventdate.= " " . $event["eventtime"];
|
|
$eventdate.= " " . $event["eventtime"];
|
|
|
}
|
|
}
|
|
|
$location_code = $event["eventcode"];
|
|
$location_code = $event["eventcode"];
|
|
|
- $content[] = array("code" =>$status,"title" =>$event['description'],"date"=>$eventdate,"country"=>$location_code,"timezone"=>$event['timezone']);
|
|
|
|
|
|
|
+ $content[] = array("code" =>$event['event'],"title" =>$event['description'],"date"=>$eventdate,"country"=>$location_code,"timezone"=>$event['timezone']);
|
|
|
if(strtolower($event['event']) == "vd" && !empty($eventdate)){
|
|
if(strtolower($event['event']) == "vd" && !empty($eventdate)){
|
|
|
$VD = $eventdate;
|
|
$VD = $eventdate;
|
|
|
}
|
|
}
|
|
|
if(strtolower($event['event']) == "va" && !empty($eventdate)){
|
|
if(strtolower($event['event']) == "va" && !empty($eventdate)){
|
|
|
$VA = $eventdate;
|
|
$VA = $eventdate;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ //}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ //}
|
|
|
//记录所有的信息
|
|
//记录所有的信息
|
|
|
$EDI315TimeAndLocation = array();
|
|
$EDI315TimeAndLocation = array();
|
|
|
foreach($ctnr_status as $event){
|
|
foreach($ctnr_status as $event){
|