mode_goodsAction.php 413 B

1234567891011121314151617181920212223
  1. <?php
  2. class mode_goodsClassAction extends inputAction{
  3. public function getgoodstype()
  4. {
  5. $rows = m('goods')->getgoodstype();
  6. return $rows;
  7. }
  8. protected function savebefore($table, $arr, $id, $addbo){
  9. $bo = m('goods')->existsgoods($arr, $id);
  10. if($bo)return '改物品已存在了';
  11. }
  12. public function reloadstockAjax()
  13. {
  14. m('goods')->setstock();
  15. return 'ok';
  16. }
  17. }
粤ICP备19079148号