You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
48
hyhproject/home2/controller/Invoices.php
Executable file
48
hyhproject/home2/controller/Invoices.php
Executable file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
namespace wstmart\home\controller;
|
||||
use wstmart\common\model\Invoices as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 发票信息控制器
|
||||
*/
|
||||
class Invoices extends Base{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function index(){
|
||||
$m = new M();
|
||||
$data = $m->pageQuery();
|
||||
$this->assign('invoiceId',(int)input('invoiceId'));
|
||||
$this->assign('isInvoice',(int)input('isInvoice'));
|
||||
$this->assign('data',$data);
|
||||
return $this->fetch('invoices');
|
||||
}
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$m = new M();
|
||||
return $m->pageQuery();
|
||||
}
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
public function add(){
|
||||
$m = new M();
|
||||
return $m->add();
|
||||
}
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
public function edit(){
|
||||
$m = new M();
|
||||
return $m->edit();
|
||||
}
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
public function del(){
|
||||
$m = new M();
|
||||
return $m->del();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user