|
|
@@ -671,13 +671,13 @@ class ocean_order {
|
|
|
|
|
|
//detail information
|
|
|
$detail_information_column = array();
|
|
|
- $detail_information_column[] = array("title" =>"SN","field" =>"sn","formatter" =>"","edit_type" =>"normal",);
|
|
|
- $detail_information_column[] = array("title" =>"Carrier Booking No.","field" =>"carrier_booking_no","formatter" =>"","edit_type" =>"normal");
|
|
|
- $detail_information_column[] = array("title" =>"Container No","field" =>"container_no","formatter" =>"","edit_type" =>"normal");
|
|
|
- $detail_information_column[] = array("title" =>"VGM Weight","field" =>"vgm_weight","formatter" =>"","edit_type" =>"number");
|
|
|
- $detail_information_column[] = array("title" =>"VGM Unit","field" =>"vgm_kg_lg","formatter" =>"","edit_type" =>"select");
|
|
|
- $detail_information_column[] = array("title" =>"VGM Time","field" =>"vgm_date","formatter" =>"","edit_type" =>"dateTime");
|
|
|
- $detail_information_column[] = array("title" =>"VGM Method","field" =>"vgm_method","formatter" =>"","edit_type" =>"input");
|
|
|
+ $detail_information_column[] = array("title" =>"SN","cleaned_field_name"=>"tracking.sn","field" =>"sn","formatter" =>"","edit_type" =>"normal",);
|
|
|
+ $detail_information_column[] = array("title" =>"Carrier Booking No.","cleaned_field_name"=>"tracking.carrier_booking_no","field" =>"carrier_booking_no","formatter" =>"","edit_type" =>"normal");
|
|
|
+ $detail_information_column[] = array("title" =>"Container No","cleaned_field_name"=>"tracking.container_no","field" =>"container_no","formatter" =>"","edit_type" =>"normal");
|
|
|
+ $detail_information_column[] = array("title" =>"VGM Weight","cleaned_field_name"=>"tracking.vgm_weight","field" =>"vgm_weight","formatter" =>"","edit_type" =>"number");
|
|
|
+ $detail_information_column[] = array("title" =>"VGM Unit","cleaned_field_name"=>"tracking.vgm_unit","field" =>"vgm_kg_lg","formatter" =>"","edit_type" =>"select");
|
|
|
+ $detail_information_column[] = array("title" =>"VGM Time","cleaned_field_name"=>"tracking.vgm_time","field" =>"vgm_date","formatter" =>"","edit_type" =>"dateTime");
|
|
|
+ $detail_information_column[] = array("title" =>"VGM Method","cleaned_field_name"=>"tracking.vgm_method","field" =>"vgm_method","formatter" =>"","edit_type" =>"input");
|
|
|
|
|
|
foreach($rs as $rk => $rv){
|
|
|
$rs[$rk]['sn'] = $rk +1;
|
|
|
@@ -1342,15 +1342,19 @@ class ocean_order {
|
|
|
"Gross Weight" => array("formatter"=>"number","digits"=>3),
|
|
|
"CBM" => array("formatter"=>"number","digits"=>3),
|
|
|
"CFT" => array("formatter"=>"number","digits"=>3));
|
|
|
+ $page = common::getPageMapping("Ocean_Container");
|
|
|
foreach($container_column as $cc){
|
|
|
$cc['name'] = $cc['database_column_name'] == "grs_kgs" ? "Gross Weight(KGS)" : ($cc['database_column_name'] == "grs_lbs" ? "Gross Weight(LBS)" : $cc['name']);
|
|
|
if(!empty($container_column_config[$cc['name']])){
|
|
|
$ocean_container_column[] =array("field" =>$cc['database_column_name'],"title" =>$cc['name'],
|
|
|
+ "cleaned_field_name" =>$page .'.'.$cc['cleaned_field_name'],
|
|
|
"formatter" =>$container_column_config[$cc['name']]["formatter"],
|
|
|
"digits" =>$container_column_config[$cc['name']]["digits"],
|
|
|
"type" =>"normal");
|
|
|
}else{
|
|
|
- $ocean_container_column[] =array("field" =>$cc['database_column_name'],"title" =>$cc['name'],"formatter" =>"","type" =>"normal");
|
|
|
+ $ocean_container_column[] =array("field" =>$cc['database_column_name'],"title" =>$cc['name'],
|
|
|
+ "cleaned_field_name" =>$page .'.'.$cc['cleaned_field_name'],
|
|
|
+ "formatter" =>"","type" =>"normal");
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -1412,12 +1416,12 @@ class ocean_order {
|
|
|
$packing = array("Quantity/Unit"=>$quantity_tolal,"G. Weight" => $g_weight_tolal." KGS","Ch. Weight" => $g_weight_tolal." LBS","Volume" => $cbm_tolal." CBM");
|
|
|
|
|
|
//Milestones info 列名固定
|
|
|
- $Milestones = common::getMilestonesInfo($ocean,"sea",$_schemas,$vueData['EDI315TimeAndLocation']);
|
|
|
+ $Milestones = common::getMilestonesInfo($page,$ocean,"sea",$_schemas,$vueData['EDI315TimeAndLocation']);
|
|
|
|
|
|
//页面固定写死的信息
|
|
|
$document_column = array();
|
|
|
- $document_column[] = array("title" =>"File Type","field" =>"file_type","formatter" =>"","type" =>"normal");
|
|
|
- $document_column[] = array("title" =>"File","field" =>"file","formatter" =>"","type" =>"normal");
|
|
|
+ $document_column[] = array("title" =>"File Type","cleaned_field_name"=>$page .'.file_type',"field" =>"file_type","formatter" =>"","type" =>"normal");
|
|
|
+ $document_column[] = array("title" =>"File","cleaned_field_name"=>$page .'.file',"field" =>"file","formatter" =>"","type" =>"normal");
|
|
|
|
|
|
$document_data = array();
|
|
|
$document = _getViewDocType($_REQUEST["_schemas"]);
|
|
|
@@ -1609,7 +1613,7 @@ class ocean_order {
|
|
|
$packing = array("Quantity/Unit"=>$quantity_tolal,"G. Weight" => $g_weight_tolal,"Ch. Weight" => $ch_weight_tolal,"Volume" => $cbm_tolal);
|
|
|
|
|
|
//Milestones info 列名固定
|
|
|
- $Milestones = common::getMilestonesInfo($air,"air",$_schemas);
|
|
|
+ $Milestones = common::getMilestonesInfo('tracking',$air,"air",$_schemas);
|
|
|
|
|
|
//页面固定写死的信息
|
|
|
$document_column = array();
|
|
|
@@ -1847,10 +1851,10 @@ class ocean_order {
|
|
|
$amsLog = array();
|
|
|
//页面固定写死的信息
|
|
|
$amsLog_column = array();
|
|
|
- $amsLog_column[] = array("title" =>"Date Time","field" =>"atime","formatter" =>"","type" =>"dateTime");
|
|
|
- $amsLog_column[] = array("title" =>"Code","field" =>"cbperrorcode","formatter" =>"","type" =>"normal");
|
|
|
- $amsLog_column[] = array("title" =>"Name","field" =>"isams_submit","formatter" =>"","type" =>"normal");
|
|
|
- $amsLog_column[] = array("title" =>"Description","field" =>"amslog","formatter" =>"","type" =>"normal");
|
|
|
+ $amsLog_column[] = array("title" =>"Date Time","cleaned_field_name"=>"tracking.date_time","field" =>"atime","formatter" =>"","type" =>"dateTime");
|
|
|
+ $amsLog_column[] = array("title" =>"Code","cleaned_field_name"=>"tracking.code","field" =>"cbperrorcode","formatter" =>"","type" =>"normal");
|
|
|
+ $amsLog_column[] = array("title" =>"Name","cleaned_field_name"=>"tracking.name","field" =>"isams_submit","formatter" =>"","type" =>"normal");
|
|
|
+ $amsLog_column[] = array("title" =>"Description","cleaned_field_name"=>"tracking.description","field" =>"amslog","formatter" =>"","type" =>"normal");
|
|
|
$amsLog["amsLog_column"] = $amsLog_column;
|
|
|
$amsLog["msg"] = "Origin have not filed ACE-M1, no data found";
|
|
|
$amsLog["data"] = array();
|
|
|
@@ -1887,10 +1891,10 @@ class ocean_order {
|
|
|
$isfLog = array();
|
|
|
//页面固定写死的信息
|
|
|
$isfLog_column = array();
|
|
|
- $isfLog_column[] = array("title" =>"Date Time","field" =>"atime","formatter" =>"","type" =>"dateTime");
|
|
|
- $isfLog_column[] = array("title" =>"Code","field" =>"cbperrorcode","formatter" =>"","type" =>"normal");
|
|
|
- $isfLog_column[] = array("title" =>"Name","field" =>"isfsubmit","formatter" =>"","type" =>"normal");
|
|
|
- $isfLog_column[] = array("title" =>"Description","field" =>"isflog","formatter" =>"","type" =>"normal");
|
|
|
+ $isfLog_column[] = array("title" =>"Date Time","cleaned_field_name"=>"tracking.date_time","field" =>"atime","formatter" =>"","type" =>"dateTime");
|
|
|
+ $isfLog_column[] = array("title" =>"Code","cleaned_field_name"=>"tracking.code","field" =>"cbperrorcode","formatter" =>"","type" =>"normal");
|
|
|
+ $isfLog_column[] = array("title" =>"Name","cleaned_field_name"=>"tracking.name","field" =>"isfsubmit","formatter" =>"","type" =>"normal");
|
|
|
+ $isfLog_column[] = array("title" =>"Description","cleaned_field_name"=>"tracking.description","field" =>"isflog","formatter" =>"","type" =>"normal");
|
|
|
$isfLog["isfLog_column"] = $isfLog_column;
|
|
|
$isfLog["msg"] = "Origin have not filed ISF, no data found";
|
|
|
$isfLog["data"] = array();
|