public RequestResult ScanCode(string barcode)
        {
            RequestResult result = new RequestResult();

            try
            {
                List <BarCode> CodeList = ScaleOutStoke.GetCanRtnCode(MobileUser.UserName, barcode);

                if (CodeList != null && CodeList.Count > 0)
                {
                    result.data    = CodeList;
                    result.message = "正确";
                    result.success = true;
                }
                else
                {
                    result.message = "未找到条码,或者此条码你无权退货";
                    result.success = false;
                }
            }
            catch (Exception ex)
            {
                result.message = "失败,error:" + ex.Message;
                result.success = false;
            }

            return(result);
        }
        public ActionResult GetBoolRtnScale(string ID)
        {
            RequestResult result = new RequestResult();

            List <BarCode> CodeList = ScaleOutStoke.GetCanRtnCode(CurrentUser.UserName, ID);

            if (CodeList != null && CodeList.Count > 0)
            {
                result.data    = CodeList;
                result.message = "正确";
                result.success = true;
            }
            else
            {
                result.message = "未找到条码,或者此条码你无权退货";
                result.success = false;
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }