/**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $grdetail = new Grdetail('search');
     $grdetail->unsetAttributes();
     // clear any default values
     if (isset($_GET['Grdetail'])) {
         $grdetail->attributes = $_GET['Grdetail'];
     }
     $poheader = new Poheader('search');
     $poheader->unsetAttributes();
     // clear any default values
     if (isset($_GET['Poheader'])) {
         $poheader->attributes = $_GET['Poheader'];
     }
     $model = new Grheader('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Grheader'])) {
         $model->attributes = $_GET['Grheader'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model, 'poheader' => $poheader, 'grdetail' => $grdetail));
 }