public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:已付款\n" +
                "紀錄本關卡的處理過程‧‧‧。\n";
            //current_state = ORDER_STATE.FINISHED;       // 設定下一關的狀態
            context.setState(new FINISHEDOrderState());
            procResult = procResult + "轉移至下一關卡狀態為:已完成\n\n";

            return procResult;
        }
        public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:新訂單\n" +
                "紀錄本關卡的處理過程‧‧‧。\n";
            //current_state = ORDER_STATE.SHIPPED;       // 設定下一關的狀態
            context.setState(new ShippedOrderState());
            procResult = procResult + "轉移至下一關卡狀態為:已出貨\n\n";

            return procResult;
        }
        public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:新訂單成立中‧‧‧\n" +
                "紀錄本關卡的處理過程‧‧‧。\n";
            //current_state = ORDER_STATE.PAID;       // 設定下一關的狀態
            context.setState(new PaidOrderState());
            
            procResult = procResult + "轉移至下一關卡狀態為:已付款";

            return procResult;            
        }
Esempio n. 4
0
        public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:已付款\n" +
                                "紀錄本關卡的處理過程‧‧‧。\n";

            //current_state = ORDER_STATE.FINISHED;       // 設定下一關的狀態
            context.setState(new FINISHEDOrderState());
            procResult = procResult + "轉移至下一關卡狀態為:已完成\n\n";

            return(procResult);
        }
Esempio n. 5
0
        public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:新訂單\n" +
                                "紀錄本關卡的處理過程‧‧‧。\n";

            //current_state = ORDER_STATE.SHIPPED;       // 設定下一關的狀態
            context.setState(new ShippedOrderState());
            procResult = procResult + "轉移至下一關卡狀態為:已出貨\n\n";

            return(procResult);
        }
Esempio n. 6
0
        public string processSomething(OrderStateContext context)
        {
            // 回傳處理過程資訊
            string procResult = "目前狀態:新訂單成立中‧‧‧\n" +
                                "紀錄本關卡的處理過程‧‧‧。\n";

            //current_state = ORDER_STATE.PAID;       // 設定下一關的狀態
            context.setState(new PaidOrderState());

            procResult = procResult + "轉移至下一關卡狀態為:已付款";

            return(procResult);
        }