An open-source, high-performance multi-dimensional crosstabular analysis tool

An open-source, high-performance multi-dimensional crosstabular analysis tool

2022-09-14 0 1,089
Resource Number 38494 Last Updated 2025-02-24
¥ 0HKD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

The Bootstrap-style Blazor UI component library recommended in this issue is adapted to mobile and supports various mainstream browsers.

Project Introduction

Blazor is a framework for building interactive client-side web UIs using .NET:

  • Use C# instead of JavaScript to create rich, interactive UIs.
  • Share server-side and client-side application logic written in .NET.
  • Render the UI as HTML and CSS to support a wide range of browsers, including mobile browsers.

Client-side web development with .NET provides the following benefits:

  • Use C# instead of JavaScript to write code.
  • Leverage the existing .NET library ecosystem.
  • Share application logic between the server and the client.
  • Benefit from the performance, reliability, and security of .NET.
  • Always efficiently support Visual Studio on Windows, Linux, and macOS.
    Net5 is supported
  • Build on a stable, feature-rich, and easy-to-use set of common languages, frameworks, and tools.

subassembly

Blazor apps are component-based. Components in Blazor are UI elements, such as pages, dialog boxes, or data entry forms.

Components are .NET C# classes built into .NET assemblies that are used to:

  • Define flexible UI rendering logic.
  • Handle user events.
  • Can be nested and reused.
  • Can be shared and distributed as a Razor class library or NuGet package.

Component classes are typically written in the form of Razor markup pages with a .razor file extension. Components in Blazor are sometimes referred to as Razor components. Razor is a syntax for combining HTML markup with C# code designed to make developers more productive. With Razor, you can use IntelliSense programming in Visual Studio to support switching between HTML markup and C# in the same file. Razor is also used by Razor Pages and MVC. Unlike Razor Pages and MVC, which are built on a request/response model, components are designed to handle client UI logic and composition.

Blazor uses natural HTML markup that is formed by the UI. The following Razor markup illustrates a component (Dialog.razor) that displays a dialog box and handles events that occur when the user selects a button:

<div class="card" style="width:22rem">
    <div class="card-body">
        <h3 class="card-title">@Title</h3>
        <p class="card-text">@ChildContent</p>
        <button @onclick="OnYes">Yes!</button>
    </div>
</div>

@code {
    [Parameter]
    public RenderFragment ChildContent { get; set; }

    [Parameter]
    public string Title { get; set; }

    private void OnYes()
    {
        Console.WriteLine("Write to the console in C#! 'Yes' button selected.");
    }
}

In the example above, OnYes is a C# method that is triggered by the button’s onclick event. The text (ChildContent) and title (Title) of the dialog are provided by the following components that use this component in their UI.

Use HTML markup to embed a dialog component into another component. In the following example, the Index component (Pages/Index.razor) uses the previous Dialog component. The tag’s Title property passes the value of the title to the Title property of the Dialog component. The text of the Dialog component (ChildContent) is set by the content of the <Dialog> element. When you add a Dialog component to the Index component, IntelliSense in Visual Studio speeds up development with syntax and parameter completion.

@page "/"

<h1>Hello, world!</h1>

<p>
    Welcome to your new app.
</p>

<Dialog Title="Learn More">
    Do you want to <i>learn more</i> about Blazor?
</Dialog>

The dialog box is rendered when the parent Index component is accessed in the browser. When the user selects this button, the browser’s Developer Tools console displays a message written by the OnYes method:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图

Globalization and localization

Internationalization involves both globalization and localization. Globalization is the process of designing applications that support different cultures. Globalization adds input, display, and output support for a defined set of language scripts for a specific geographic region.

App localization involves the following:

  • Make your app content localizable
  • Provide localized resources for supported languages and cultures
  • Implement a policy to select the language/culture for each request

Make your app content localizable

IStringLocalizer Use ResourceManager and ResourceReader to provide culture-specific resources at runtime. The interface has an indexer and an IEnumerable that returns localized strings. IStringLocalizer does not require the default language string to be stored in the resource file. You can develop apps for localization without having to create resource files early in development. The following code shows how to wrap the string "About Title" against localization.
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Localization;

namespace Localization.Controllers
{
    [Route("api/[controller]")]
    public class AboutController : Controller
    {
        private readonly IStringLocalizer<AboutController> _localizer;

        public AboutController(IStringLocalizer<AboutController> localizer)
        {
            _localizer = localizer;
        }

        [HttpGet]
        public string Get()
        {
            return _localizer["About Title"];
        }
    }
}

In the previous code, the IStringLocalizer<T> implementation is derived from dependency injection. If you can’t find the localized value for “About Title”, the indexer key, which is the string “About Title”, is returned. You can keep default language text strings in your app and wrap them in a localization tool so you can focus on developing your app. You develop your app in the default language and prepare for the localization step without first creating a default resource file. Alternatively, you can use the traditional method and provide a key to retrieve the default language string. For many developers, a new workflow that doesn’t have a default language, .resx file, and simply wraps string literals can reduce the overhead of localizing an app. Other developers will prefer the traditional workflow because it makes it easier to update localized strings with longer string literals.

Use the IHtmlLocalizer implementation for resources that contain HTML<T>. IHtmlLocalizer HTML-encodes the formatted parameters in the resource string, but not the resource string itself. In the example highlighted below, only the value of the name parameter is HTML-encoded.

using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Localization;

namespace Localization.Controllers
{
    public class BookController : Controller
    {
        private readonly IHtmlLocalizer<BookController> _localizer;

        public BookController(IHtmlLocalizer<BookController> localizer)
        {
            _localizer = localizer;
        }

        public IActionResult Hello(string name)
        {
            ViewData["Message"] = _localizer["<b>Hello</b><i> {0}</i>", name];

            return View();
        }

View localization

The IViewLocalizer service provides localized strings for views. The ViewLocalizer class implements this interface and finds the resource location from the view file path. The following code shows how to use the default implementation of IViewLocalizer:

@using Microsoft.AspNetCore.Mvc.Localization

@inject IViewLocalizer Localizer

@{
    ViewData["Title"] = Localizer["About"];
}
<h2>@ViewData["Title"].</h2>
<h3>@ViewData["Message"]</h3>

<p>@Localizer["Use this area to provide additional information."]</p>

The default implementation of IViewLocalizer looks for resource files based on the filename of the view. There is no option to use a global share resource file. ViewLocalizer implements localization tools using IHtmlLocalizer, so Razor does not HTML encode localized strings. You can parameterize the resource string, and IViewLocalizer will HTML-encode the parameter, but not the resource string. Consider the following Razor tags:

@Localizer["<i>Hello</i> <b>{0}!</b>", UserManager.GetUserName(User)]

Web Apps – Getting Started with MVC

Create a web app

  • Start Visual Studio and select Create a new project.
  • In the Create New Project dialog box, select ASP.NET Core Web App (Model-View-Controller) > Next.
  • In the Configure New Project dialog box, enter MvcMovie for Project Name. Be sure to name your project “MvcMovie”. When copying code, the case needs to match each namespace.
    Select Next.
  • In the Additional Information dialog box, select .NET 6.0 (Preview).
  • Select Create.

An open-source, high-performance multi-dimensional crosstabular analysis tool插图1

Visual Studio uses the default project template for the MVC projects you create. Projects created:

  • is an effective application.
  • is a basic introductory project.

Run the app

Select Ctrl+F5 to run the app without using the debugger.

If you haven’t configured your project to use SSL, Visual Studio displays the following dialog:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图2

If you trust an IIS Express SSL certificate, select Yes.

The following dialog box is displayed:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图3

Visual Studio runs the app and opens the default browser.

The address bar shows localhost:port# instead of example.com. The standard hostname for the local computer is localhost. When Visual Studio creates a web project, it uses a random port for the web server.

By launching the app without debugging, you can choose Ctrl+F5 to:

  • Change the code.
  • Save the file.
  • Quickly refresh your browser and see the code changes.

You can launch your app in debug or non-debug mode from the Debug menu:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图4

You can debug your app by selecting the “MvcMovie” button in the toolbar:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图5

The following image shows the app:

An open-source, high-performance multi-dimensional crosstabular analysis tool插图6
资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free Source Code An open-source, high-performance multi-dimensional crosstabular analysis tool https://ictcoder.com/an-open-source-high-performance-multi-dimensional-crosstabular-analysis-tool/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services