Exemplo n.º 1
0
        public ActionResult ComboBatchAction()
        {
            BatchActionVM batchInfo = SerializationUtility.JsonDeserialize <BatchActionVM>(Request.Form["data"]);
            var           loginUser = UserAuthHelper.GetCurrentUser();
            string        msg       = LanguageHelper.GetText("操作成功。");

            switch (batchInfo.Action)
            {
            case "Submit":
                _comboService.Submit(loginUser.SellerSysNo, loginUser.UserDisplayName, batchInfo.Ids);
                msg = LanguageHelper.GetText("提交审核成功。");
                break;

            case "Void":
                _comboService.Void(loginUser.SellerSysNo, loginUser.UserDisplayName, batchInfo.Ids);
                msg = LanguageHelper.GetText("作废成功。");
                break;

            default:
                break;
            }
            return(Json(msg));
        }