/**
  * @Author: ANH DUNG Mar 13, 2015
  * @Todo: get list option by type
  * @Param: $type 
  */
 public static function getListOption($type)
 {
     $criteria = new CDbCriteria();
     $criteria->order = 't.value';
     $aId = array();
     if ($type == ProMasterFurnished::TYPE_NORMAL) {
         $aId = ProMasterFurnished::getFurnishedNormal();
     } elseif ($type == ProMasterFurnished::TYPE_INDUSTRIAL) {
         $aId = ProMasterFurnished::getFurnishedIndustrial();
     }
     $criteria->addInCondition('t.id', $aId);
     $models = self::model()->findAll($criteria);
     return Chtml::listData($models, 'id', 'name');
 }