Beispiel #1
0
        public ActionResult CleanBin(CleanBinViewModel model)
        {
            MethodReturnResult result = new MethodReturnResult();

            using (PackageQueryServiceClient client = new PackageQueryServiceClient())
            {
                result = client.CleanBin(model.LineCode, model.BinNo);
                if (result.Code == 0)
                {
                    if (model.BinNo == null)
                    {
                        result.Message = string.Format("清{0}线Bin成功!", model.LineCode);
                    }
                    else
                    {
                        result.Message = string.Format("清{0}线{1}号Bin成功!", model.LineCode, model.BinNo);
                    }
                }
                ;
            }
            return(Json(result));
        }