Esempio n. 1
0
        internal static string DeletOrder(int QID, int OID, string OrderID, string userId)
        {
            int       result = 0;
            OrderInfo orderInfo;

            switch (QID)
            {
            case 52:
                orderInfo         = new OrderInfo();
                orderInfo.OrderID = OrderID;
                result            = orderInfo.DeleteMyOrderByOrderID();
                break;

            case 152:
                orderInfo         = new OrderInfo();
                orderInfo.OrderID = OrderID;
                result            = orderInfo.DeleteClubOrderByOrderID();
                break;

            default:
                break;
            }

            if (result > 0)
            {
                return("已經刪除訂單");
            }
            else
            {
                return("刪除訂單失敗");
            }
        }