|
@@ -966,7 +966,7 @@ class ocean_order {
|
|
|
$_sqlwhere .= " or ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null)";
|
|
$_sqlwhere .= " or ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null)";
|
|
|
$filterTag_param .= " or ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null)";
|
|
$filterTag_param .= " or ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null)";
|
|
|
}
|
|
}
|
|
|
- if (stripos($filterTag, "Departure") !== FALSE) {
|
|
|
|
|
|
|
+ if (stripos($filterTag, "Departed") !== FALSE) {
|
|
|
$_sqlwhere .= " or (m_iffdep is not null and m_iffarr is null and m_iffdel is null)";
|
|
$_sqlwhere .= " or (m_iffdep is not null and m_iffarr is null and m_iffdel is null)";
|
|
|
$filterTag_param .= " or (m_iffdep is not null and m_iffarr is null and m_iffdel is null)";
|
|
$filterTag_param .= " or (m_iffdep is not null and m_iffarr is null and m_iffdel is null)";
|
|
|
}
|
|
}
|
|
@@ -1044,7 +1044,7 @@ class ocean_order {
|
|
|
$tagsList = array(array("name"=>"All","number"=>intval($search_rc),"type"=>"all","checked"=>utils::in_array('All', $_POST["filterTag"])? true : false),
|
|
$tagsList = array(array("name"=>"All","number"=>intval($search_rc),"type"=>"all","checked"=>utils::in_array('All', $_POST["filterTag"])? true : false),
|
|
|
array("name"=>"Created","number"=>intval($Created),"type"=>"created","checked"=>utils::in_array('Created', $_POST["filterTag"])? true : false),
|
|
array("name"=>"Created","number"=>intval($Created),"type"=>"created","checked"=>utils::in_array('Created', $_POST["filterTag"])? true : false),
|
|
|
array("name"=>"Cargo Received","number"=>intval($Cargo_Received),"type"=>"cargo_received","checked"=>utils::in_array('Cargo Received', $_POST["filterTag"])? true : false),
|
|
array("name"=>"Cargo Received","number"=>intval($Cargo_Received),"type"=>"cargo_received","checked"=>utils::in_array('Cargo Received', $_POST["filterTag"])? true : false),
|
|
|
- array("name"=>"Departure","number"=>intval($Departed),"type"=>"departure","checked"=>utils::in_array('Departure', $_POST["filterTag"])? true : false),
|
|
|
|
|
|
|
+ array("name"=>"Departed","number"=>intval($Departed),"type"=>"departed","checked"=>utils::in_array('departed', $_POST["filterTag"])? true : false),
|
|
|
array("name"=>"Arrived","number"=>intval($Arrived),"type"=>"arrived","checked"=>utils::in_array('Arrived', $_POST["filterTag"])? true : false),
|
|
array("name"=>"Arrived","number"=>intval($Arrived),"type"=>"arrived","checked"=>utils::in_array('Arrived', $_POST["filterTag"])? true : false),
|
|
|
array("name"=>"Completed","number"=>intval($Completed),"type"=>"completed","checked"=>utils::in_array('Completed', $_POST["filterTag"])? true : false));
|
|
array("name"=>"Completed","number"=>intval($Completed),"type"=>"completed","checked"=>utils::in_array('Completed', $_POST["filterTag"])? true : false));
|
|
|
}else{
|
|
}else{
|
|
@@ -1052,7 +1052,7 @@ class ocean_order {
|
|
|
$tagsList = array(array("name"=>"All","number"=>intval($search_rc),"type"=>"all","checked"=> true ),
|
|
$tagsList = array(array("name"=>"All","number"=>intval($search_rc),"type"=>"all","checked"=> true ),
|
|
|
array("name"=>"Created","number"=>intval($Created),"type"=>"created","checked"=> false),
|
|
array("name"=>"Created","number"=>intval($Created),"type"=>"created","checked"=> false),
|
|
|
array("name"=>"Cargo Received","number"=>intval($Cargo_Received),"type"=>"cargo_received","checked"=> false),
|
|
array("name"=>"Cargo Received","number"=>intval($Cargo_Received),"type"=>"cargo_received","checked"=> false),
|
|
|
- array("name"=>"Departure","number"=>intval($Departed),"type"=>"departure","checked"=> false),
|
|
|
|
|
|
|
+ array("name"=>"Departed","number"=>intval($Departed),"type"=>"departed","checked"=> false),
|
|
|
array("name"=>"Arrived","number"=>intval($Arrived),"type"=>"arrived","checked"=> false),
|
|
array("name"=>"Arrived","number"=>intval($Arrived),"type"=>"arrived","checked"=> false),
|
|
|
array("name"=>"Completed","number"=>intval($Completed),"type"=>"completed","checked"=>false));
|
|
array("name"=>"Completed","number"=>intval($Completed),"type"=>"completed","checked"=>false));
|
|
|
}
|
|
}
|
|
@@ -1092,7 +1092,7 @@ class ocean_order {
|
|
|
CASE
|
|
CASE
|
|
|
WHEN (m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
WHEN (m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
|
- WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departure'::text
|
|
|
|
|
|
|
+ WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departed'::text
|
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
|
ELSE 'Created'
|
|
ELSE 'Created'
|
|
@@ -1135,7 +1135,7 @@ class ocean_order {
|
|
|
CASE
|
|
CASE
|
|
|
WHEN (m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
WHEN (m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
|
- WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departure'::text
|
|
|
|
|
|
|
+ WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departed'::text
|
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
|
ELSE 'Created'
|
|
ELSE 'Created'
|
|
@@ -2249,7 +2249,7 @@ class ocean_order {
|
|
|
CASE
|
|
CASE
|
|
|
WHEN ((m_iffbcf is not null or m_iffbcf is null) and m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
WHEN ((m_iffbcf is not null or m_iffbcf is null) and m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
|
- WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departure'::text
|
|
|
|
|
|
|
+ WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departed'::text
|
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
|
ELSE 'Created'::text
|
|
ELSE 'Created'::text
|
|
@@ -2320,7 +2320,7 @@ class ocean_order {
|
|
|
CASE
|
|
CASE
|
|
|
WHEN ((m_iffbcf is not null or m_iffbcf is null) and m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
WHEN ((m_iffbcf is not null or m_iffbcf is null) and m_iffcpu is null and m_iffrec is null and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Created'::text
|
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
WHEN ((m_iffcpu is not null or m_iffrec is not null) and m_iffdep is null and m_iffarr is null and m_iffdel is null) THEN 'Cargo Received'::text
|
|
|
- WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departure'::text
|
|
|
|
|
|
|
+ WHEN (m_iffdep is not null and m_iffarr is null and m_iffdel is null) THEN 'Departed'::text
|
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
WHEN (m_iffarr is not null and m_iffdel is null) THEN 'Arrived'::text
|
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
WHEN (m_iffdel is not null) THEN 'Completed'::text
|
|
|
ELSE 'Created'::text
|
|
ELSE 'Created'::text
|
|
@@ -2487,10 +2487,10 @@ class ocean_order {
|
|
|
}
|
|
}
|
|
|
//先处理一下 ATD 和 ATA,在进行后面的取值
|
|
//先处理一下 ATD 和 ATA,在进行后面的取值
|
|
|
if(empty($ocean['atd']) && !empty($VD)){
|
|
if(empty($ocean['atd']) && !empty($VD)){
|
|
|
- $ocean['atd'] = $VD;
|
|
|
|
|
|
|
+ //$ocean['atd'] = $VD;
|
|
|
}
|
|
}
|
|
|
if(empty($ocean['ata']) && !empty($VA)){
|
|
if(empty($ocean['ata']) && !empty($VA)){
|
|
|
- $ocean['ata'] = $VA;
|
|
|
|
|
|
|
+ //$ocean['ata'] = $VA;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$simplexData = array();
|
|
$simplexData = array();
|