|
@@ -585,7 +585,6 @@ class common {
|
|
|
|
|
|
|
|
public static function timeoutPrintInfor($httpAccept, $ajax, $login) {
|
|
public static function timeoutPrintInfor($httpAccept, $ajax, $login) {
|
|
|
//记录系统因session过期 退出登录
|
|
//记录系统因session过期 退出登录
|
|
|
- utils::single_operation_log_save("logout","logout","System logout");
|
|
|
|
|
$data = array("msg"=>"session_time_out");
|
|
$data = array("msg"=>"session_time_out");
|
|
|
self::echo_json_encode(403,$data);
|
|
self::echo_json_encode(403,$data);
|
|
|
exit();
|
|
exit();
|
|
@@ -1161,6 +1160,10 @@ class common {
|
|
|
$dashboard_filter['ContainerefaultData'] = array("transportation" =>array('Sea'),"date_type"=>"ETA","date_start"=>$ctnr_date_start_two,"date_start_two"=>$ctnr_date_start,
|
|
$dashboard_filter['ContainerefaultData'] = array("transportation" =>array('Sea'),"date_type"=>"ETA","date_start"=>$ctnr_date_start_two,"date_start_two"=>$ctnr_date_start,
|
|
|
"date_end"=>$ctnr_date_end_two,"date_end_two"=>$ctnr_date_end);
|
|
"date_end"=>$ctnr_date_end_two,"date_end_two"=>$ctnr_date_end);
|
|
|
|
|
|
|
|
|
|
+ //RevenueDefaultData
|
|
|
|
|
+ //$dashboard_filter['RevenueDefaultData'] = array("transportation" =>array('All'),"date_type"=>"Invoice Issue Date","date_start"=>$ctnr_date_start_two,"date_start_two"=>$ctnr_date_start,
|
|
|
|
|
+ // "date_end"=>$ctnr_date_end_two,"date_end_two"=>$ctnr_date_end);
|
|
|
|
|
+
|
|
|
//Top10faultData
|
|
//Top10faultData
|
|
|
$dashboard_filter['Top10faultData'] = array("transportation" =>array('All'),"date_type"=>"ETA","date_start"=>$top_date_start_two,"date_start_two"=>$top_date_start,
|
|
$dashboard_filter['Top10faultData'] = array("transportation" =>array('All'),"date_type"=>"ETA","date_start"=>$top_date_start_two,"date_start_two"=>$top_date_start,
|
|
|
"date_end"=>$top_date_end_two,"date_end_two"=>$top_date_end);
|
|
"date_end"=>$top_date_end_two,"date_end_two"=>$top_date_end);
|
|
@@ -1541,6 +1544,11 @@ class common {
|
|
|
return $returnData;
|
|
return $returnData;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static function getRevenue(){
|
|
|
|
|
+ $data = '{"bar_title":"Total: 0","barList":["DEC,23","JAN,24","FEB,24","MAR,24","APR,24","MAY,24","JUN,24","JUL,24","AUG,24","SEP,24","OCT,24","NOV,24"],"barSeries":[{"name":"USD","type":"bar","data":[1,1,1,1,1,1,1,1,1,1,1,1],"emphasis":{"disabled":true,"focus":"none"},"itemStyle":{"color":"#FF7500","borderRadius":6},"label":{"show":false,"color":"#646A73","position":"top","fontFamily":"Lato-Light","hideWhenMouseLeave":false}},{"name":"THB","type":"bar","data":[2,2,2,2,2,2,2,2,2,2,2,2],"emphasis":{"disabled":true,"focus":"none"},"itemStyle":{"color":"#FFAC66","borderRadius":6},"label":{"show":false,"color":"#646A73","position":"top","fontFamily":"Lato-Light","hideWhenMouseLeave":false}},{"name":"SGD","type":"bar","data":[3,3,3,3,3,3,3,3,3,3,3,3],"emphasis":{"disabled":true,"focus":"none"},"itemStyle":{"color":"#FFE3CC","borderRadius":6},"label":{"show":false,"color":"#646A73","position":"top","fontFamily":"Lato-Light","hideWhenMouseLeave":false}}],"Max":5,"interval":1,"download_name":"Rvenue","isShowTooltips":true}';
|
|
|
|
|
+ return json_decode($data,true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public static function getdefaultManagement(){
|
|
public static function getdefaultManagement(){
|
|
|
$Management = array();
|
|
$Management = array();
|
|
|
$Management[] = array("id"=>1 ,
|
|
$Management[] = array("id"=>1 ,
|
|
@@ -1551,14 +1559,18 @@ class common {
|
|
|
"title"=>"Pending",
|
|
"title"=>"Pending",
|
|
|
"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).");
|
|
|
- $Management[] = array("id"=>4 ,
|
|
|
|
|
|
|
+ $Management[] = array("id"=>3 ,
|
|
|
"title"=>"ETD to ETA (Days)",
|
|
"title"=>"ETD to ETA (Days)",
|
|
|
"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).");
|
|
|
- $Management[] = array("id"=>5 ,
|
|
|
|
|
|
|
+ $Management[] = array("id"=>4 ,
|
|
|
"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).");
|
|
|
|
|
+ // $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,
|
|
@@ -1576,11 +1588,7 @@ class common {
|
|
|
$Management[] = array("id"=>9 ,
|
|
$Management[] = array("id"=>9 ,
|
|
|
"title"=>"Recent Status",
|
|
"title"=>"Recent Status",
|
|
|
"switchValue"=>true,
|
|
"switchValue"=>true,
|
|
|
- "text"=>"A shipment list with latest status update on top.");
|
|
|
|
|
- // $Management[] = array("id"=>9 ,
|
|
|
|
|
- // "title"=>"Revenue Spent",
|
|
|
|
|
- // "switchValue"=>true,
|
|
|
|
|
- // "text"=>"Revenue Spent.");
|
|
|
|
|
|
|
+ "text"=>"A shipment list with latest status update on top.");
|
|
|
return $Management;
|
|
return $Management;
|
|
|
}
|
|
}
|
|
|
|
|
|