|
|
@@ -24,12 +24,28 @@ class column {
|
|
|
// where lower(login_name)='" . strtolower(_getLoginName()) . "' and lower(model_name) = '" . strtolower($model_name) . "'");
|
|
|
}
|
|
|
if (empty($type)) {
|
|
|
+ if($model_name <> 'destination_delivery_shipment_search'){
|
|
|
+ //预先初始化,空的也要保留
|
|
|
+ $children['All'] = array();
|
|
|
+ $children['Reference No.'] = array();
|
|
|
+ $children['General'] = array();
|
|
|
+ $children['Parties'] = array();
|
|
|
+ $children['Packing'] = array();
|
|
|
+ $children['Time'] = array();
|
|
|
+ $children['Places'] = array();
|
|
|
+ $children['Transportation'] = array();
|
|
|
+ $children['Others'] = array();
|
|
|
+ }else{
|
|
|
+ //预先初始化,空的也要保留.只需要ALL
|
|
|
+ $children['All'] = array();
|
|
|
+ }
|
|
|
+
|
|
|
$allData = $this->getDisplayColumnAllReomveDefault($model_name);
|
|
|
- $groupColumns_all = $this->allGroupColumns($allData);
|
|
|
+ $groupColumns_all = $this->allGroupColumns($allData,$children);
|
|
|
|
|
|
//总分组的检索要去掉右边的已经选中的部分
|
|
|
$dataLeft = $this->getDisplayColumn($model_name,false);
|
|
|
- $groupColumns_left = $this->allGroupColumns($dataLeft);
|
|
|
+ $groupColumns_left = $this->allGroupColumns($dataLeft,$children);
|
|
|
|
|
|
$setting = $this->getDisplayColumn($model_name);
|
|
|
$groupSetting = $this->groupColumnsSetting($setting);
|
|
|
@@ -327,18 +343,7 @@ class column {
|
|
|
/**
|
|
|
* 通用返回setting 分组数据
|
|
|
*/
|
|
|
- public function allGroupColumns($allData){
|
|
|
- $children = array();
|
|
|
- //预先初始化,空的也要保留
|
|
|
- $children['All'] = array();
|
|
|
- $children['Reference No.'] = array();
|
|
|
- $children['General'] = array();
|
|
|
- $children['Parties'] = array();
|
|
|
- $children['Packing'] = array();
|
|
|
- $children['Time'] = array();
|
|
|
- $children['Places'] = array();
|
|
|
- $children['Transportation'] = array();
|
|
|
- $children['Others'] = array();
|
|
|
+ public function allGroupColumns($allData,$children){
|
|
|
foreach ($allData as $key => $data) {
|
|
|
//固定ALl的分组
|
|
|
if (array_key_exists("All", $children)) {
|