private static LocalizableString L(string name) { return(LocalizableString.Create <CacheManagementDemoResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <BookStoreResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <Selling_WebsiteResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <ProductsResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <GameLendingResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <ASPCoreMVCResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <ServicesResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <PrivateMessagingResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <BusinessResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <ClientSimulationDemoResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <OwnedEntitiesResource>(name)); }
public override void ConfigureServices(ServiceConfigurationContext context) { Configure <AbpNavigationOptions>(options => { options.MenuContributors.Add(new MasterDataMenuContributor()); }); Configure <AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded <MasterDataWebModule>(); }); context.Services.AddAutoMapperObjectMapper <MasterDataWebModule>(); Configure <AbpAutoMapperOptions>(options => { options.AddMaps <MasterDataWebModule>(validate: true); }); Configure <RazorPagesOptions>(options => { //Configure authorization. options.Conventions.AuthorizePage("/MasterData/Companies/Index", MasterDataPermissions.Companies.Default); options.Conventions.AuthorizePage("/MasterData/Companies/CreateModal", MasterDataPermissions.Companies.Create); options.Conventions.AuthorizePage("/MasterData/Companies/EditModal", MasterDataPermissions.Companies.Update); options.Conventions.AuthorizePage("/MasterData/Departments/Index", MasterDataPermissions.Departments.Default); options.Conventions.AuthorizePage("/MasterData/Departments/CreateModal", MasterDataPermissions.Departments.Create); options.Conventions.AuthorizePage("/MasterData/Departments/EditModal", MasterDataPermissions.Departments.Update); options.Conventions.AuthorizePage("/MasterData/DocumentTypes/Index", MasterDataPermissions.DocumentTypes.Default); options.Conventions.AuthorizePage("/MasterData/DocumentTypes/CreateModal", MasterDataPermissions.DocumentTypes.Create); options.Conventions.AuthorizePage("/MasterData/DocumentTypes/EditModal", MasterDataPermissions.DocumentTypes.Update); }); Configure <AbpPageToolbarOptions>(options => { options.Configure <Pages.MasterData.Companies.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <MasterDataResource>("NewCompany"), icon: "plus", name: "CreateCompany", requiredPolicyName: MasterDataPermissions.Companies.Create ); } ); options.Configure <Pages.MasterData.Departments.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <MasterDataResource>("NewDepartment"), icon: "plus", name: "CreateDepartment", requiredPolicyName: MasterDataPermissions.Departments.Create ); } ); options.Configure <Pages.MasterData.DocumentTypes.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <MasterDataResource>("NewDocumentType"), icon: "plus", name: "CreateDocumentType", requiredPolicyName: MasterDataPermissions.DocumentTypes.Create ); } ); options.Configure <Pages.MasterData.Modules.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <MasterDataResource>("NewModule"), icon: "plus", name: "CreateModule", requiredPolicyName: MasterDataPermissions.Modules.Create ); } ); }); }
public static ILocalizableString GetErrorMessage(string code, string message) { // TODO: 把前缀写入本地化文档里面? Check.NotNullOrWhiteSpace(code, nameof(code)); switch (code) { case "isv.SMS_SIGNATURE_SCENE_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SMS_SIGNATURE_SCENE_ILLEGAL")); case "isv.DENY_IP_RANGE": return(LocalizableString.Create <AliyunResource>("DENY_IP_RANGE")); case "isv.MOBILE_COUNT_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("MOBILE_COUNT_OVER_LIMIT")); case "isv.BUSINESS_LIMIT_CONTROL": return(LocalizableString.Create <AliyunResource>("BUSINESS_LIMIT_CONTROL")); case "SignatureDoesNotMatch": return(LocalizableString.Create <AliyunResource>("SignatureDoesNotMatch")); case "InvalidTimeStamp.Expired": return(LocalizableString.Create <AliyunResource>("InvalidTimeStampExpired")); case "SignatureNonceUsed": return(LocalizableString.Create <AliyunResource>("SignatureNonceUsed")); case "InvalidVersion": return(LocalizableString.Create <AliyunResource>("InvalidVersion")); case "InvalidAction.NotFound": return(LocalizableString.Create <AliyunResource>("InvalidActionNotFound")); case "isv.SIGN_COUNT_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("SIGN_COUNT_OVER_LIMIT")); case "isv.TEMPLATE_COUNT_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("TEMPLATE_COUNT_OVER_LIMIT")); case "isv.SIGN_NAME_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SIGN_NAME_ILLEGAL")); case "isv.SIGN_FILE_LIMIT": return(LocalizableString.Create <AliyunResource>("SIGN_FILE_LIMIT")); case "isv.SIGN_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("SIGN_OVER_LIMIT")); case "isv.TEMPLATE_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("TEMPLATE_OVER_LIMIT")); case "SIGNATURE_BLACKLIST": return(LocalizableString.Create <AliyunResource>("SIGNATURE_BLACKLIST")); case "isv.SHORTURL_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("SHORTURL_OVER_LIMIT")); case "isv.NO_AVAILABLE_SHORT_URL": return(LocalizableString.Create <AliyunResource>("NO_AVAILABLE_SHORT_URL")); case "isv.SHORTURL_NAME_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SHORTURL_NAME_ILLEGAL")); case "isv.SOURCEURL_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("SOURCEURL_OVER_LIMIT")); case "isv.SHORTURL_TIME_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SHORTURL_TIME_ILLEGAL")); case "isv.PHONENUMBERS_OVER_LIMIT": return(LocalizableString.Create <AliyunResource>("PHONENUMBERS_OVER_LIMIT")); case "isv.SHORTURL_STILL_AVAILABLE": return(LocalizableString.Create <AliyunResource>("SHORTURL_STILL_AVAILABLE")); case "isv.SHORTURL_NOT_FOUND": return(LocalizableString.Create <AliyunResource>("SHORTURL_NOT_FOUND")); case "isv.SMS_TEMPLATE_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SMS_TEMPLATE_ILLEGAL")); case "isv.SMS_SIGNATURE_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SMS_SIGNATURE_ILLEGAL")); case "isv.MOBILE_NUMBER_ILLEGAL": return(LocalizableString.Create <AliyunResource>("MOBILE_NUMBER_ILLEGAL")); case "isv.TEMPLATE_MISSING_PARAMETERS": return(LocalizableString.Create <AliyunResource>("TEMPLATE_MISSING_PARAMETERS")); case "isv.EXTEND_CODE_ERROR": return(LocalizableString.Create <AliyunResource>("EXTEND_CODE_ERROR")); case "isv.DOMESTIC_NUMBER_NOT_SUPPORTED": return(LocalizableString.Create <AliyunResource>("DOMESTIC_NUMBER_NOT_SUPPORTED")); case "isv.DAY_LIMIT_CONTROL": return(LocalizableString.Create <AliyunResource>("DAY_LIMIT_CONTROL")); case "isv.SMS_CONTENT_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SMS_CONTENT_ILLEGAL")); case "isv.SMS_SIGN_ILLEGAL": return(LocalizableString.Create <AliyunResource>("SMS_SIGN_ILLEGAL")); case "isp.RAM_PERMISSION_DENY": return(LocalizableString.Create <AliyunResource>("RAM_PERMISSION_DENY")); case "isp.OUT_OF_SERVICE": return(LocalizableString.Create <AliyunResource>("OUT_OF_SERVICE")); case "isv.PRODUCT_UN_SUBSCRIPT": return(LocalizableString.Create <AliyunResource>("PRODUCT_UN_SUBSCRIPT")); case "isv.PRODUCT_UNSUBSCRIBE": return(LocalizableString.Create <AliyunResource>("PRODUCT_UNSUBSCRIBE")); case "isv.ACCOUNT_NOT_EXISTS": return(LocalizableString.Create <AliyunResource>("ACCOUNT_NOT_EXISTS")); case "isv.ACCOUNT_ABNORMAL": return(LocalizableString.Create <AliyunResource>("ACCOUNT_ABNORMAL")); case "isv.INVALID_PARAMETERS": return(LocalizableString.Create <AliyunResource>("INVALID_PARAMETERS")); case "isv.SYSTEM_ERROR": return(LocalizableString.Create <AliyunResource>("SYSTEM_ERROR")); case "isv.INVALID_JSON_PARAM": return(LocalizableString.Create <AliyunResource>("INVALID_JSON_PARAM")); case "isv.BLACK_KEY_CONTROL_LIMIT": return(LocalizableString.Create <AliyunResource>("BLACK_KEY_CONTROL_LIMIT")); case "isv.PARAM_LENGTH_LIMIT": return(LocalizableString.Create <AliyunResource>("PARAM_LENGTH_LIMIT")); case "isv.PARAM_NOT_SUPPORT_URL": return(LocalizableString.Create <AliyunResource>("PARAM_NOT_SUPPORT_URL")); case "isv.AMOUNT_NOT_ENOUGH": return(LocalizableString.Create <AliyunResource>("AMOUNT_NOT_ENOUGH")); case "isv.TEMPLATE_PARAMS_ILLEGAL": return(LocalizableString.Create <AliyunResource>("TEMPLATE_PARAMS_ILLEGAL")); default: throw new AbpException($"no error code: {code} define, message: {message}"); } }
private static LocalizableString L(string name) { return(LocalizableString.Create <TelegramBotManagerResource>(name)); }
protected virtual LocalizableString L(string name) { return(LocalizableString.Create <AbpIdentityServerResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <AbpPermissionCacheTestResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <CmsKitResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <HelloAbpResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <ProjectCompareResource>(name)); }
public override void ConfigureServices(ServiceConfigurationContext context) { Configure <AbpNavigationOptions>(options => { options.MenuContributors.Add(new CmsKitAdminMenuContributor()); }); Configure <AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded <CmsKitAdminWebModule>("Volo.CmsKit.Admin.Web"); }); context.Services.AddAutoMapperObjectMapper <CmsKitAdminWebModule>(); Configure <AbpAutoMapperOptions>(options => { options.AddMaps <CmsKitAdminWebModule>(validate: true); }); Configure <RazorPagesOptions>(options => { options.Conventions.AuthorizeFolder("/CmsKit/Tags/", CmsKitAdminPermissions.Tags.Default); options.Conventions.AuthorizeFolder("/CmsKit/Tags/CreateModal", CmsKitAdminPermissions.Tags.Create); options.Conventions.AuthorizeFolder("/CmsKit/Tags/UpdateModal", CmsKitAdminPermissions.Tags.Update); options.Conventions.AuthorizeFolder("/CmsKit/Pages", CmsKitAdminPermissions.Pages.Default); options.Conventions.AuthorizeFolder("/CmsKit/Pages/Create", CmsKitAdminPermissions.Pages.Create); options.Conventions.AuthorizeFolder("/CmsKit/Pages/Update", CmsKitAdminPermissions.Pages.Update); options.Conventions.AuthorizeFolder("/CmsKit/Blogs", CmsKitAdminPermissions.Blogs.Default); options.Conventions.AuthorizeFolder("/CmsKit/Blogs/Create", CmsKitAdminPermissions.Blogs.Create); options.Conventions.AuthorizeFolder("/CmsKit/Blogs/Update", CmsKitAdminPermissions.Blogs.Update); options.Conventions.AuthorizeFolder("/CmsKit/BlogPosts", CmsKitAdminPermissions.BlogPosts.Default); options.Conventions.AuthorizeFolder("/CmsKit/BlogPosts/Create", CmsKitAdminPermissions.BlogPosts.Create); options.Conventions.AuthorizeFolder("/CmsKit/BlogPosts/Update", CmsKitAdminPermissions.BlogPosts.Update); options.Conventions.AuthorizeFolder("/CmsKit/Comments/", CmsKitAdminPermissions.Comments.Default); options.Conventions.AuthorizeFolder("/CmsKit/Comments/Details", CmsKitAdminPermissions.Comments.Default); }); Configure <RazorPagesOptions>(options => { options.Conventions.AddPageRoute("/CmsKit/Tags/Index", "/Cms/Tags"); options.Conventions.AddPageRoute("/CmsKit/Pages/Index", "/Cms/Pages"); options.Conventions.AddPageRoute("/CmsKit/Pages/Create", "/Cms/Pages/Create"); options.Conventions.AddPageRoute("/CmsKit/Pages/Update", "/Cms/Pages/Update/{Id}"); options.Conventions.AddPageRoute("/CmsKit/Blogs/Index", "/Cms/Blogs"); options.Conventions.AddPageRoute("/CmsKit/BlogPosts/Index", "/Cms/BlogPosts"); options.Conventions.AddPageRoute("/CmsKit/BlogPosts/Create", "/Cms/BlogPosts/Create"); options.Conventions.AddPageRoute("/CmsKit/BlogPosts/Update", "/Cms/BlogPosts/Update/{Id}"); options.Conventions.AddPageRoute("/CmsKit/Comments/Index", "/Cms/Comments"); options.Conventions.AddPageRoute("/CmsKit/Comments/Details", "/Cms/Comments/{Id}"); }); Configure <AbpPageToolbarOptions>(options => { options.Configure <Volo.CmsKit.Admin.Web.Pages.CmsKit.Tags.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <CmsKitResource>("New"), icon: "plus", name: "NewButton", requiredPolicyName: CmsKitAdminPermissions.Tags.Create ); } ); options.Configure <Volo.CmsKit.Admin.Web.Pages.CmsKit.Pages.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <CmsKitResource>("New"), icon: "plus", name: "CreatePage", requiredPolicyName: CmsKitAdminPermissions.Pages.Create ); }); options.Configure <Volo.CmsKit.Admin.Web.Pages.CmsKit.Blogs.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <CmsKitResource>("New"), icon: "plus", name: "CreateBlog", id: "CreateBlog", requiredPolicyName: CmsKitAdminPermissions.Blogs.Create ); }); options.Configure <Volo.CmsKit.Admin.Web.Pages.CmsKit.BlogPosts.IndexModel>( toolbar => { toolbar.AddButton( LocalizableString.Create <CmsKitResource>("New"), icon: "plus", name: "CreateBlogPost", id: "CreateBlogPost", requiredPolicyName: CmsKitAdminPermissions.BlogPosts.Create ); }); }); }
private static LocalizableString L(string name) { return(LocalizableString.Create <AbpStudyResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <MiniProgramsResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <MasterDataResource>(name)); }
protected ILocalizableString L(string name) { return(LocalizableString.Create <AbpFileManagementResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <LYearUiSampleResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <EmployeeResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <LocalizationManagementResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <MemoryLeakTestResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <IdentityResource>(name)); }
private static LocalizableString L(string name) { return(LocalizableString.Create <DashboardDemoResource>(name)); }