Exemple #1
0
        public ActionResult CanEditApply(Guid id)
        {
            string   message = string.Empty;
            PosApply pos     = _posApplyService.GetById(id);

            if (!CanEditApply(pos, ref message))
            {
                return(JsonMessage(false, message));
            }

            return(JsonMessage(true, ""));
        }
Exemple #2
0
        public ActionResult PosApplyView(Guid id)
        {
            if (!base.HasPermission("PosApply", PermissionOperate.view))
            {
                return(base.ShowNotPermissionTip(""));
            }
            PosApply apply   = _posApplyService.GetById(id);
            PosAuth  posAuth = _posAuthService.GetUnique(p => p.MpUserId == apply.MpUserId);

            ViewBag.PosAuth = posAuth;
            return(View(apply));
        }