public function actionIndex()
 {
     $model = new PaperApprovalBus();
     $model->unsetAttributes();
     if (isset($_GET['PaperApprovalBus'])) {
         $model->attributes = $_GET['PaperApprovalBus'];
     }
     $this->render('index', array('model' => $model, 'dataProvider' => $model->getPaperDoneBus()));
 }
示例#2
0
 public function actionIndex()
 {
     $model = new PaperApproval('search');
     $model->unsetAttributes();
     if (isset($_GET['PaperApproval'])) {
         $model->attributes = $_GET['PaperApproval'];
     }
     $modelBus = new PaperApprovalBus('search');
     $modelBus->unsetAttributes();
     if (isset($_GET['PaperApprovalBus'])) {
         $modelBus->attributes = $_GET['PaperApprovalBus'];
     }
     $this->render('index', array('model' => $model, 'dataProvider' => $model->getDoing1(), 'modelBus' => $modelBus, 'dataProviderBus' => $modelBus->getDoing1()));
 }
 public function actionAdmin()
 {
     $model = new PaperApprovalBus('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['PaperApprovalBus'])) {
         $model->attributes = $_GET['PaperApprovalBus'];
     }
     $this->render('admin', array('model' => $model));
 }