<?php
/**
 * Descriptions
 * @author yzxh24
 * @email yzxh24@gmail.com
 * @created 2011-06-15 16:41:37
 */
class OreportController extends BackendController
{
    /**
     * action路径前缀
     */
	protected $actionPrefix = 'admin.controllers.Oreport.';

    /**
     * action对应表
     */
    protected $actionMap = array(
        'list' => 'ListAction',
        'cancel' => 'CancelAction',
        'complete' => 'CompleteAction',
    );

	/**
	 * Performs the AJAX validation.
	 * @param CModel the model to be validated
	 */
	protected function performAjaxValidation($model)
	{
		if(isset($_POST['ajax']) && $_POST['ajax'] === 'Oreport-form')
		{
			echo CActiveForm::validate($model);
			Yii::app()->end();
		}
	}
}