/// <summary>
        /// 下一次出貨
        /// </summary>
        /// <returns></returns>
        public HttpResponseBase Split()
        {
            string json = string.Empty;
            try
            {
                _DeliverDetailMgr = new DeliverDetailMgr(mySqlConnectionString);
                string deliver_id = Request.Params["deliver_id"];
                string detail_ids = Request.Params["detail_ids"];
                string[] detailids = detail_ids.Split(',');
                string newdeliverid = _DeliverDetailMgr.Split(deliver_id, detailids);
                if (!string.IsNullOrEmpty(newdeliverid))
                {
                    json = "{success:true,msg:" + newdeliverid + "}";
                }
                else
                {
                    json = "{success:false:msg:}";
                }


            }
            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);
                json = "{success:false:msg:}";
            }
            this.Response.Clear();
            this.Response.Write(json);
            this.Response.End();
            return this.Response;

        }