示例#1
0
 public function actionLoad()
 {
     Payments::model()->deleteAll();
     Trucks::model()->deleteAll();
     ZReport::model()->deleteAll();
     $this->render("load");
 }
示例#2
0
 public function actionCheckzreport()
 {
     $date = $_GET["date"];
     $zreport = ZReport::model()->findAll("date=:date", array(":date" => $date));
     if ($zreport) {
         CJSON::encode($zreport);
     } else {
         echo "false";
     }
 }
 public function actionIndex()
 {
     $zreports = ZReport::model()->findAll(array("order" => "date"));
     $this->render('index', array("zreports" => $zreports));
 }