|
|
@@ -6,6 +6,7 @@ use common\helpers\http\BackendToFrontendApi;
|
|
|
use common\libs\dataList\DataListInterface;
|
|
|
use common\models\Countries;
|
|
|
use common\models\DecRole;
|
|
|
+use common\models\EliteLevel;
|
|
|
use common\models\EmployLevel;
|
|
|
use common\models\Language;
|
|
|
use common\models\OpenBank;
|
|
|
@@ -87,6 +88,7 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
public function getColumn(){
|
|
|
$decLevelConfig = Cache::getDecLevelConfig();
|
|
|
$empLevelConfig = Cache::getEmpLevelConfig();
|
|
|
+ $eliteLevelConfig = Cache::getEliteLevelConfig();
|
|
|
$decRoleConfig = DecRole::getAllData();
|
|
|
$openBankConfig = OpenBank::getAllOpenBank();
|
|
|
$regionConfig = Cache::getRegionConfig();
|
|
|
@@ -197,6 +199,30 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'tag'=>['type'=>'warning', 'size' => 'small', 'class'=>'no-border']
|
|
|
],
|
|
|
],
|
|
|
+ 'ELITE_LV_NAME' => [
|
|
|
+ 'header' => Yii::t('ctx', 'highestElite'),
|
|
|
+ 'headerOther' => [
|
|
|
+ 'width' => '190',
|
|
|
+ ],
|
|
|
+ 'value' => function($row) use($eliteLevelConfig) {
|
|
|
+ return $eliteLevelConfig[$row['EMP_LV']]['LEVEL_NAME'] ?? $eliteLevelConfig[EliteLevel::getDefaultLevelId()]['LEVEL_NAME'];
|
|
|
+ },
|
|
|
+ 'valueOther' => [
|
|
|
+ 'tag'=>['type'=>'warning', 'size' => 'small', 'class'=>'no-border']
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+ 'LAST_ELite_LV_NAME' => [
|
|
|
+ 'header' => Yii::t('ctx', 'latestElite'),
|
|
|
+ 'headerOther' => [
|
|
|
+ 'width' => '190',
|
|
|
+ ],
|
|
|
+ 'value' => function($row) use($eliteLevelConfig) {
|
|
|
+ return $eliteLevelConfig[$row['LAST_EMP_LV']]['LEVEL_NAME'] ?? $eliteLevelConfig[EliteLevel::getDefaultLevelId()]['LEVEL_NAME'];
|
|
|
+ },
|
|
|
+ 'valueOther' => [
|
|
|
+ 'tag'=>['type'=>'warning', 'size' => 'small', 'class'=>'no-border']
|
|
|
+ ],
|
|
|
+ ],
|
|
|
'REC_USER_NAME_ACTUAL' => [
|
|
|
'header' => Yii::t('ctx', 'recommendationNo'),
|
|
|
'headerOther' => ['width' => '140'],
|
|
|
@@ -351,6 +377,10 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'DEC_LV_NAME'=> ['name'=> Yii::t('ctx', 'currentMemberLevel'), 'other'=> 'decLevel'],
|
|
|
'EMP_LV_NAME'=> ['name'=> Yii::t('ctx', 'highestDirector'), 'other'=> 'empLevel'],
|
|
|
'LAST_EMP_LV_NAME'=> ['name'=> Yii::t('ctx', 'latestDirector'), 'other'=> 'empLevel'],
|
|
|
+
|
|
|
+ 'ELITE_LV_NAME'=> ['name'=> Yii::t('ctx', 'highestElite'), 'other'=> 'eliteLevel'],
|
|
|
+ 'LAST_ELITE_LV_NAME'=> ['name'=> Yii::t('ctx', 'latestElite'), 'other'=> 'eliteLevel'],
|
|
|
+
|
|
|
'MOBILE'=> ['name'=> Yii::t('ctx', 'phoneNumber')],
|
|
|
'DEC_USER_NAME'=> ['name'=> Yii::t('ctx', 'stockistCode')],
|
|
|
'IS_DEC'=> ['name'=> Yii::t('ctx', 'stockistOrNot'), 'other'=> 'yesOrNo'],
|