/// <summary>
        /// 調度出貨:確認出貨
        /// </summary>
        /// <returns></returns>
        public HttpResponseBase DispatchConfirmShipment()
        {
            string jsonStr = String.Empty;
            BLL.gigade.Model.Vendor vendor = Session["vendor"] as BLL.gigade.Model.Vendor;
            BLL.gigade.Model.OrderSlaveMaster master = new OrderSlaveMaster();
            string rowIDs = "";//出貨單號
            string sendProTime = "";//出貨時間
            string delivery_note = "";//出貨單備註
            string DeliverStores = "";//物流單號
            string delivery_Code = "";//物流業者
            string IP = "";
            string Description = "";
            #region 條件
            if (!string.IsNullOrEmpty(Request.Params["rowIDs"]))
            {
                rowIDs = Request.Params["rowIDs"];
            }
            if (!string.IsNullOrEmpty(Request.Params["sendProTime"]))
            {
                sendProTime = Request.Params["sendProTime"];
                master.deliver_time = uint.Parse(CommonFunction.GetPHPTime(sendProTime).ToString());
            }
            if (!string.IsNullOrEmpty(Request.Params["delivery_note"]))
            {
                delivery_note = Request.Params["delivery_note"];
            }
            if (!string.IsNullOrEmpty(Request.Params["DeliverStores"]))
            {
                DeliverStores = Request.Params["DeliverStores"];
            }
            if (!string.IsNullOrEmpty(Request.Params["delivery_Code"]))
            {
                delivery_Code = Request.Params["delivery_Code"];
            }
            if (!string.IsNullOrEmpty(Request.Params["normal_Subtotal"]))
            {
                master.normal_subtotal = uint.Parse(Request.Params["normal_Subtotal"]);
            }
            if (!string.IsNullOrEmpty(Request.Params["hypothermia_Subtotal"]))
            {
                master.hypothermia_subtotal = uint.Parse(Request.Params["hypothermia_Subtotal"]);
            }
            master.creator = vendor.vendor_id;
            //if (!string.IsNullOrEmpty(Request.Params["freight_Normal"]))
            //{
            //    master.fre = Request.Params["freight_Normal"];
            //}
            //if (!string.IsNullOrEmpty(Request.Params["hypothermia_Subtotal"]))
            //{
            //    hypothermia_Subtotal = Request.Params["hypothermia_Subtotal"];
            //}
            //if (!string.IsNullOrEmpty(Request.Params["freight_Low"]))
            //{
            //    freight_Low = Request.Params["freight_Low"];
            //}
            if (!string.IsNullOrEmpty(Request.Params["order_Freight_Normal"]))
            {
                master.order_freight_normal = uint.Parse(Request.Params["order_Freight_Normal"]);
            }
            if (!string.IsNullOrEmpty(Request.Params["Order_Freight_Low"]))
            {
                master.order_freight_low = uint.Parse(Request.Params["Order_Freight_Low"]);
            }
            if (!string.IsNullOrEmpty(Request.Params["code"]))
            {
                master.code_num = Request.Params["code"];
            }

            System.Net.IPAddress[] addlist = Dns.GetHostByName(Dns.GetHostName()).AddressList;
            if (addlist.Length > 0)
            {
                IP = addlist[0].ToString();
            }
            rowIDs = rowIDs.TrimEnd(',');//去掉最後一個分割符號
            string[] Sid_Row = rowIDs.Split(',');//拆分
            #endregion
            OrderDeliver order = new OrderDeliver();
            order.deliver_code = delivery_Code;
            order.deliver_store = uint.Parse(DeliverStores);
            order.deliver_note = delivery_note;
            order.deliver_ipfrom = IP;
            try
            {
                order.deliver_time = uint.Parse(CommonFunction.GetPHPTime(sendProTime).ToString());
                Description = "Writer : vendor(" + vendor.vendor_id + ") " + vendor.vendor_name_simple + "批次出貨";
                _OrderMgr = new OrderMgr(mySqlConnectionString);
                IsoDateTimeConverter timeConverter = new IsoDateTimeConverter();
                //这里使用自定义日期格式,如果不使用的话,默认是ISO8601格式
                timeConverter.DateTimeFormat = "yyyy-MM-dd";
                _OrderMgr.ThingsMethod(Sid_Row, order, master, Description);//出貨成功!
                // jsonStr = "{success:true}";//返回json數據
                jsonStr = "{success:true,msg:\"" + 1 + "\"}";
            }
            catch (Exception ex)
            {
                Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
                logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
                logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                log.Error(logMessage);
                jsonStr = "{success:false,msg:0}";
            }
            this.Response.Clear();
            this.Response.Write(jsonStr.ToString());
            this.Response.End();
            return this.Response;
        }