|
@@ -202,7 +202,7 @@ switch ($action) {
|
|
|
//如果页面查询的是ALL 这个20 40 45都查询出来。否则值查询都对应的size,其他的不查询
|
|
//如果页面查询的是ALL 这个20 40 45都查询出来。否则值查询都对应的size,其他的不查询
|
|
|
if(strtolower($container_type_param) == "all"){
|
|
if(strtolower($container_type_param) == "all"){
|
|
|
$list = common::excuteListSql("select * from public.online_order_status_date('$type'::text, 'eta'::text, 'etd'::text, $bdate, $edate, '$sqlWhere'::text, '$container_type'::text) "
|
|
$list = common::excuteListSql("select * from public.online_order_status_date('$type'::text, 'eta'::text, 'etd'::text, $bdate, $edate, '$sqlWhere'::text, '$container_type'::text) "
|
|
|
- . "r (c bigint, e integer, b integer, d text)");
|
|
|
|
|
|
|
+ . "r (c bigint, e integer, b integer, d text)");
|
|
|
}else{
|
|
}else{
|
|
|
if($container_type_param == $_container_type){
|
|
if($container_type_param == $_container_type){
|
|
|
$list = common::excuteListSql("select * from public.online_order_status_date('$type'::text, 'eta'::text, 'etd'::text, $bdate, $edate, '$sqlWhere'::text, '$container_type'::text) "
|
|
$list = common::excuteListSql("select * from public.online_order_status_date('$type'::text, 'eta'::text, 'etd'::text, $bdate, $edate, '$sqlWhere'::text, '$container_type'::text) "
|
|
@@ -276,6 +276,9 @@ switch ($action) {
|
|
|
}
|
|
}
|
|
|
$returnData = array("ContainerCount_Title"=>"Total: $total","ContainerCountList" =>$ContainerCount_Title,"ContainerCounSeries" =>$ContainerCounSeries_return,
|
|
$returnData = array("ContainerCount_Title"=>"Total: $total","ContainerCountList" =>$ContainerCount_Title,"ContainerCounSeries" =>$ContainerCounSeries_return,
|
|
|
"min" => 0,"Max" =>$interval*5,"interval" =>$interval);
|
|
"min" => 0,"Max" =>$interval*5,"interval" =>$interval);
|
|
|
|
|
+ //demo
|
|
|
|
|
+ // $json = '{"code":200,"data":{"ContainerCount_Title":"Total: 463518","ContainerCountList":["OCT,23","NOV,23","DEC,23","JAN,24","FEB,24","MAR,24","APR,24","MAY,24","JUN,24","JUL,24","AUG,24","SEP,24","OCT,24"],"ContainerCounSeries":[{"name":20,"type":"bar","emphasis":{"focus":"none"},"stack":"\u603b\u8ba1","data":[4400,8600,8804,9271,8961,8793,8534,9476,9530,10277,10081,8997,5784],"itemStyle":{"color":"#FF7500"}},{"name":40,"type":"bar","emphasis":{"focus":"none"},"stack":"\u603b\u8ba1","data":[13652,28021,30422,30136,26320,27035,23979,26494,28406,33318,32318,30962,16369],"itemStyle":{"color":"#FFAC66"}},{"name":45,"type":"bar","emphasis":{"focus":"none"},"stack":"\u603b\u8ba1","data":[189,337,415,437,439,321,250,320,324,603,328,415,200],"itemStyle":{"color":"#FFE3CC"}}],"min":0,"Max":45000,"interval":9000}}';
|
|
|
|
|
+ // $returnData = json_decode($json,true);
|
|
|
common::echo_json_encode(200, $returnData);
|
|
common::echo_json_encode(200, $returnData);
|
|
|
exit();
|
|
exit();
|
|
|
break;
|
|
break;
|
|
@@ -421,6 +424,8 @@ switch ($action) {
|
|
|
$ps = 10;
|
|
$ps = 10;
|
|
|
|
|
|
|
|
$sqlWhere = ' where ' . common::searchExtendHandNew("ocean", $_SESSION["ONLINE_USER"]);
|
|
$sqlWhere = ' where ' . common::searchExtendHandNew("ocean", $_SESSION["ONLINE_USER"]);
|
|
|
|
|
+ // test dome
|
|
|
|
|
+ // $_POST['is_default'] = "no";
|
|
|
//默认初始条件:ALL& ETD& Current Month 当前月的1号到最后一天
|
|
//默认初始条件:ALL& ETD& Current Month 当前月的1号到最后一天
|
|
|
if (isset($_POST['is_default']) && strtolower($_POST['is_default']) == "yes"){
|
|
if (isset($_POST['is_default']) && strtolower($_POST['is_default']) == "yes"){
|
|
|
$sqlWhere .= "and etd>='" . date("Y-m") . "-01' and etd<='" . date("Y-m") . "-01'::date + interval '1 month'";
|
|
$sqlWhere .= "and etd>='" . date("Y-m") . "-01' and etd<='" . date("Y-m") . "-01'::date + interval '1 month'";
|
|
@@ -445,7 +450,7 @@ switch ($action) {
|
|
|
}
|
|
}
|
|
|
$tp = ceil($rc / $ps);
|
|
$tp = ceil($rc / $ps);
|
|
|
if ($rc > 0) {
|
|
if ($rc > 0) {
|
|
|
- $sql = "SELECT serial_no,last_status_city, consignee, shipper, h_bol,
|
|
|
|
|
|
|
+ $sql = "SELECT order_from as _schemas,serial_no,last_status_city, consignee, shipper, h_bol,
|
|
|
to_char(etd, 'MM/DD/YYYY'::text) as etd, to_char(eta, 'MM/DD/YYYY'::text) AS eta,
|
|
to_char(etd, 'MM/DD/YYYY'::text) as etd, to_char(eta, 'MM/DD/YYYY'::text) AS eta,
|
|
|
fport_of_loading_un, mport_of_discharge_un, place_of_receipt_un, place_of_delivery_un, ctnrs, count_cntr, last_status_ctnr,booking_no,
|
|
fport_of_loading_un, mport_of_discharge_un, place_of_receipt_un, place_of_delivery_un, ctnrs, count_cntr, last_status_ctnr,booking_no,
|
|
|
to_char(last_status_315_date, 'MM/DD/YYYY'::text) as last_status_315_date,last_status_315_code, last_status_loc, last_status_city, order_from,
|
|
to_char(last_status_315_date, 'MM/DD/YYYY'::text) as last_status_315_date,last_status_315_code, last_status_loc, last_status_city, order_from,
|
|
@@ -472,8 +477,6 @@ switch ($action) {
|
|
|
//RecentStatusList
|
|
//RecentStatusList
|
|
|
$RecentStatusList = array();
|
|
$RecentStatusList = array();
|
|
|
foreach ($rss as $key => $value) {
|
|
foreach ($rss as $key => $value) {
|
|
|
- //这个换成ocean_milestone,但是保留以前逻辑
|
|
|
|
|
- //$Arrived = utils::outDisplayForMerge(common::getStatusDesc($value["last_status_315_code"]),common::_toString($value["last_status_loc"]),";");
|
|
|
|
|
$Arrived = $value['description'];
|
|
$Arrived = $value['description'];
|
|
|
$RecentStatusList[] = array("Title"=>$value['h_bol'],
|
|
$RecentStatusList[] = array("Title"=>$value['h_bol'],
|
|
|
"name"=>$value['f_vessel']." / ".$value['f_voyage'],
|
|
"name"=>$value['f_vessel']." / ".$value['f_voyage'],
|
|
@@ -488,6 +491,7 @@ switch ($action) {
|
|
|
"type"=>$value['status'],
|
|
"type"=>$value['status'],
|
|
|
"Arrived"=>$Arrived,
|
|
"Arrived"=>$Arrived,
|
|
|
"Time"=>$value["act_date"],
|
|
"Time"=>$value["act_date"],
|
|
|
|
|
+ "_schemas"=>$value["_schemas"],
|
|
|
"a" =>common::deCode($value['serial_no'], 'E'));
|
|
"a" =>common::deCode($value['serial_no'], 'E'));
|
|
|
}
|
|
}
|
|
|
$arrTmp = array('searchData' => $RecentStatusList,
|
|
$arrTmp = array('searchData' => $RecentStatusList,
|