case 'add_get':
     require_once './order_view_add_form.php';
     break;
 case 'add_post':
     require_once './class/order_service.class.php';
     require_once 'class/order.class.php';
     require_once 'class/code_names.class.php';
     $order_number = "dd" . time();
     $supplier_id = $_POST['supplier_id'];
     $status = CodeNames::$order_status_pending_audit;
     $note = $_POST['note'];
     $goods_id = $_POST['goods_id'];
     $goods_number = $_POST['goods_number'];
     $order_service = new OrderService();
     $order = new Order(null, $order_number, $supplier_id, $status, $note);
     $order_id = $order_service->addOrder($order);
     $log_service->addLog("insert", "订单", $id);
     foreach ($goods_id as $id => $goods_id) {
         $order_goods_id = $order_service->addGoodsInOrder($goods_id, $goods_number[$id], 0, $order_id);
         $log_service->addLog("insert", "订单产品", $order_goods_id);
     }
     $_SESSION['operation'] = true;
     $_SESSION['operation_msg'] = "添加订单:" . $order_number . "成功";
     header("Location: ./index.php?mod=order&action=ls");
     break;
 case 'edit_get':
     if (isset($_GET['eid'])) {
         $id = $_GET['eid'];
         if (is_numeric($id)) {
             require_once './class/order_service.class.php';
             require_once './class/order.class.php';