/// <summary>
        /// 模擬廠商通知AllPay出貨狀態
        /// </summary>
        /// <returns></returns>
        public ActionResult SendDeliveryNotify() {
            
            long merchantId = 1000070;   //測試機目前給企劃測試的特店id是1000070

            int tradeQuantity = 2;
            string ShippingState = "5";  // 5:出貨 / 6:無貨可出 / 7:延遲出貨

            Trade trade = new Trade();
            
            //測試用資料
            //TradeNo
            trade.TradeNo.AllPayTradeNo = "";

            //TradeDetail
            trade.TradeDetail.MerchantID = merchantId;
            trade.TradeDetail.MerchantTradeNo = "";
            trade.TradeDetail.CharSet = "utf-8";
            trade.TradeDetail.Remark = "出貨通知測試-" + merchantId;

            for (int i = 1; i <= tradeQuantity; i++)
            {
                //TradeItemsDetail
                TradeItemsDetail tradeItemsDetailA = new TradeItemsDetail();
                tradeItemsDetailA.ItemNo = "A00" + i;
                tradeItemsDetailA.ShippingState = ShippingState;
                tradeItemsDetailA.ShippingDate = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");

                trade.TradeItemsDetailList.Add(tradeItemsDetailA);
            }

            return View(trade);

        }
        /// <summary>
        /// 模擬廠商通知AllPay訂單的退換貨狀態
        /// </summary>
        /// <returns></returns>
        public ActionResult SendOrderChangeNotify()
        {
            string realIP = new AllPay.ShareLib.Network().GetRemoteRealIP();

            long merchantId = 1000070;   //測試機目前給企劃測試的特店id是1000070

            int tradeQuantity = 2;
            string ShippingState = "1";  // 1:退貨通知 / 2:換貨通知 / 3:取消訂單

            Trade trade = new Trade();

            //測試用資料
            //TradeNo
            trade.TradeNo.AllPayTradeNo = "";

            //TradeDetail
            trade.TradeDetail.MerchantID = merchantId;
            trade.TradeDetail.MerchantTradeNo = "";
            trade.TradeDetail.CharSet = "utf-8"; 

            for (int i = 1; i <= tradeQuantity; i++)
            {
                //TradeItemsDetail
                TradeItemsDetail tradeItemsDetailA = new TradeItemsDetail();
                tradeItemsDetailA.ItemNo = "A00" + i;
                tradeItemsDetailA.SubTotalAMT = 5;
                tradeItemsDetailA.ShippingState = ShippingState;
                tradeItemsDetailA.VendorReplyStatus = "1";
                
                trade.TradeItemsDetailList.Add(tradeItemsDetailA);
            }

            return View(trade);

        }