BI large-screen visual development source code, Java+Netcore large-screen source code, large-screen development

Large-screen design supports free layout of pages, dragging and dropping controls to the page, setting content and data binding for different controls, and realizing large-screen visual page development with what you see is what you get.

Operate in the large screen design under the online development directory, and enter the [Large Screen Design] page, which has functions such as large screen management, map management, classification management, and data source management. On the big screen management page, the classification category is displayed on the left, and the created big screen data is displayed on the right.

using System.Text.Json;

namespace SerializeToFile
{
    public class WeatherForecast
    {
        public DateTimeOffset Date { get; set; }
        public int TemperatureCelsius { get; set; }
        public string? Summary { get; set; }
    }

    public class Program
    {
        public static void Main()
        {
            var weatherForecast = new WeatherForecast
            {
                Date = DateTime.Parse("2019-08-01"),
                TemperatureCelsius = 25,
                Summary = "Hot"
            };

            string fileName = "WeatherForecast.json"; 
            string jsonString = JsonSerializer.Serialize(weatherForecast);
            File.WriteAllText(fileName, jsonString);

            Console.WriteLine(File.ReadAllText(fileName));
        }
    }
}
// output:
//{"Date":"2019-08-01T00:00:00-07:00","TemperatureCelsius":25,"Summary":"Hot"} 

Click to create a new large screen, set the group and large screen size on the new large screen page, fill in the name and password of the large screen, and the ones marked with * are required, click submit to complete the new large screen, and click clear to clear the configuration content. Click submit to jump to the large screen configuration page, design large screen functions according to user needs, support operations such as configuring various types of layers, exporting large screen images, previewing large screen effects, etc. Click the save button to save the configuration of the large screen.

private char[] _array = new char[128];
private char _c = 'c';

[Benchmark]
public void SpanFill() => _array.AsSpan().Fill(_c);

[Benchmark]
public void ArrayFill() => Array.Fill(_array, _c);

The newly added large screen is displayed in the corresponding category of the large screen management page, and supports operations such as creating, editing, deleting, viewing, and copying data on the large screen. It is used when the type of the newly created menu in [System Menu] is large screen, pull down the associated large screen, and select the associated large screen design.

private DayOfWeek _value = DayOfWeek.Friday;

[Benchmark]
public bool IsDefined() => Enum.IsDefined(_value);

[Benchmark]
public string GetName() => Enum.GetName(_value);

[Benchmark]
public string[] GetNames() => Enum.GetNames<DayOfWeek>();

underlying architecture

  • Based on Spring Boot 2, Maven has multi-project dependencies, modules are divided into projects, and loosely coupled, which is convenient for module upgrades, addition and removal of modules.

  • The database is automatically created. When the program is run for the first time, the application will automatically initialize the table and execute the initialization data.

  • The permission authorization module is flexible, supports OAuth2.0 single sign-on, simple yml configuration is enough, no need to write a lot of xml configuration files.

  • Supports multiple data sources, which can be realized with simple xml configuration. For security, no interface is provided to maintain data sources.

  • Support distributed transactions (TCC, message eventual consistency, both mixed use and single use), provide monitoring interface, and manual compensation operations.

  • Cache monitoring, J2Cache secondary cache, supports fast switching to Redis cache.

  • Server monitoring, view CPU, memory, JVM, disk information, etc. It is convenient for operation and maintenance personnel to analyze the system load.

  • Supports Spring Cloud architecture, distributed, microservices, minimized kernel, unified configuration center, and unified authorization and authentication center.

  • Rich built-in functions: user permissions, data permissions, system management, file system.

private string _str;

[GlobalSetup]
public async Task Setup()
{
    using var hc = new HttpClient();
    _str = await hc.GetStringAsync("https://www.gutenberg.org/cache/epub/3200/pg3200.txt"); // The Entire Project Gutenberg Works of Mark Twain
}

[Benchmark]
public string Yell() => _str.Replace(".", "!");

[Benchmark]
public string ConcatLines() => _str.Replace("\n", "");

[Benchmark]
public string NormalizeEndings() => _str.Replace("\r\n", "\n");

Functions and components

  • Tool class Utils package optimization, everything you expect, package classification hierarchy, independent tool class project.

  • Online task scheduling, interface management, operations such as adding, editing, deleting, pausing, resuming, running once, etc., support independent data sources, distributed job scheduling, scheduling log monitoring, analysis and query.

  • The operation of the code generation tool is simplified and optimized, and supports multiple data sources.

  • Query online personnel online and forcefully kick online accounts.

private string _text;

[Params("HTML", "URL", "JSON")]
public string Encoder { get; set; }

private TextEncoder _encoder;

[GlobalSetup]
public async Task Setup()
{
    using (var hc = new HttpClient())
        _text = await hc.GetStringAsync("https://www.gutenberg.org/cache/epub/3200/pg3200.txt");

    _encoder = Encoder switch
    {
        "HTML" => HtmlEncoder.Default,
        "URL" => UrlEncoder.Default,
        _ => JavaScriptEncoder.Default,
    };
}

[Benchmark]
public string Encode() => _encoder.Encode(_text);

Tags: Java Front-end programming language

Posted by hasanpor on Tue, 13 Dec 2022 09:51:03 +0530