public ActionResult ViewDetail()
        {
            //当前登录用户

            ViewBag.Title = "行驶证详情";;
            MpUserID      = new Guid("E8325C13-9C76-4B70-911E-57395A2F4D69");
            MpUser mpUser = _mpUserService.GetById(MpUserID);

            if (mpUser == null || mpUser.IsAuth != 1)
            {
                return(Json(new { message = "您没有权限,请先申请成为业务员!" }));
            }
            VehicleLicense vehicleLicense = new VehicleLicense();

            if (!string.IsNullOrWhiteSpace(RQuery["Id"]))
            {
                vehicleLicense = _vehicleLicenseService.GetById(new Guid(RQuery["Id"]));
            }
            //VehicleLicense vehicleLicense = _vehicleLicenseService.GetUnique("from VehicleLicense where Id = '" +id +  "'");

            if (vehicleLicense != null && vehicleLicense.MpUserId != Guid.Empty && vehicleLicense.MpUserId != MpUserID)
            {
                return(Json(new { message = "您没有权限,请先申请成为业务员!" }));
            }
            return(View(vehicleLicense));
        }
        public ActionResult VehicleLicenseEdit()
        {
            if (!base.HasPermission("VehicleLicense", PermissionOperate.add) && !base.HasPermission("VehicleLicense", PermissionOperate.edit))
            {
                return(base.ShowNotPermissionTip(""));
            }

            string         id             = RQuery["Id"];
            VehicleLicense vehicleLicense = string.IsNullOrWhiteSpace(id) ? null : _vehicleLicenseService.GetById(new Guid(id));

            return(AdminView(vehicleLicense));
        }