|
@@ -21,7 +21,7 @@ class column {
|
|
|
//判断是否重置
|
|
//判断是否重置
|
|
|
$level = common::check_input($_REQUEST['level']);
|
|
$level = common::check_input($_REQUEST['level']);
|
|
|
$serial_no = common::check_input($_REQUEST['serial_no']);
|
|
$serial_no = common::check_input($_REQUEST['serial_no']);
|
|
|
- $defualt = common::check_input($_REQUEST['defualt']);
|
|
|
|
|
|
|
+ $defualt = common::check_input($_REQUEST['default']);
|
|
|
|
|
|
|
|
if(strtolower($level) == strtolower("Shipment Level")){
|
|
if(strtolower($level) == strtolower("Shipment Level")){
|
|
|
//这个是kln_report_field level :"Shipment level" 不变
|
|
//这个是kln_report_field level :"Shipment level" 不变
|
|
@@ -58,16 +58,16 @@ class column {
|
|
|
field_group_name as \"groupName\" ";
|
|
field_group_name as \"groupName\" ";
|
|
|
|
|
|
|
|
$allData = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." order by id");
|
|
$allData = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." order by id");
|
|
|
- if(empty($serial_no) || $defualt == 'true'){
|
|
|
|
|
|
|
+ if ($defualt == 'true'){
|
|
|
//代表第一次添加或者用户恢复默认顺序
|
|
//代表第一次添加或者用户恢复默认顺序
|
|
|
$groupSetting = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." ".$rightSqlwhere);
|
|
$groupSetting = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." ".$rightSqlwhere);
|
|
|
$dataLeft = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." ".$leftSqlwhere." order by id");
|
|
$dataLeft = common::excuteListSql("select ".$kln_report_field_str." from public.kln_report_field where ".$levelSQlWhere." ".$leftSqlwhere." order by id");
|
|
|
}else{
|
|
}else{
|
|
|
- $groupSetting = common::excuteListSql("select ".$kln_report_field_config." from public.kln_report_field_config
|
|
|
|
|
- where template_serial_no = '$serial_no' and field_type = 'System' order by id");
|
|
|
|
|
- $dataLeft = common::excuteListSql("select ".$kln_report_field_str."from public.kln_report_field
|
|
|
|
|
- where lower(level) = '".strtolower($level)."' and id != ALL(select field_ids from public.kln_report_template where serial_no = '$serial_no' and field_type = 'System')
|
|
|
|
|
- order by id");
|
|
|
|
|
|
|
+ // $groupSetting = common::excuteListSql("select ".$kln_report_field_config." from public.kln_report_field_config
|
|
|
|
|
+ // where template_serial_no = '$serial_no' and field_type = 'System' order by id");
|
|
|
|
|
+ // $dataLeft = common::excuteListSql("select ".$kln_report_field_str."from public.kln_report_field
|
|
|
|
|
+ // where lower(level) = '".strtolower($level)."' and id != ALL(select field_ids from public.kln_report_template where serial_no = '$serial_no' and field_type = 'System')
|
|
|
|
|
+ // order by id");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$children['All'] = array();
|
|
$children['All'] = array();
|
|
@@ -87,11 +87,18 @@ class column {
|
|
|
$groupColumns_all = $this->allGroupVipReprotColumns($allData,$children);
|
|
$groupColumns_all = $this->allGroupVipReprotColumns($allData,$children);
|
|
|
//总分组的检索要去掉右边的已经选中的部分
|
|
//总分组的检索要去掉右边的已经选中的部分
|
|
|
$groupColumns_left = $this->allGroupVipReprotColumns($dataLeft,$children);
|
|
$groupColumns_left = $this->allGroupVipReprotColumns($dataLeft,$children);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$data['GroupColumnsAll'] = $groupColumns_all;
|
|
$data['GroupColumnsAll'] = $groupColumns_all;
|
|
|
$data['GroupColumnsLeft'] = $groupColumns_left;
|
|
$data['GroupColumnsLeft'] = $groupColumns_left;
|
|
|
$data['GroupColumnsRight'] = $groupSetting;
|
|
$data['GroupColumnsRight'] = $groupSetting;
|
|
|
|
|
|
|
|
|
|
+ //false特殊逻辑
|
|
|
|
|
+ if ($defualt == 'false'){
|
|
|
|
|
+ $data['GroupColumnsAll'] = $groupColumns_all;
|
|
|
|
|
+ $data['GroupColumnsLeft'] = $groupColumns_all;
|
|
|
|
|
+ $data['GroupColumnsRight'] = array();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
common::echo_json_encode(200,$data);
|
|
common::echo_json_encode(200,$data);
|
|
|
exit;
|
|
exit;
|
|
|
}
|
|
}
|