Test Stefan
This commit is contained in:
parent
4befc5d945
commit
9eb3e6aa6b
25
Test Stefan/DxBlazorApplication1/DxBlazorApplication1.sln
Normal file
25
Test Stefan/DxBlazorApplication1/DxBlazorApplication1.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.14.36408.4
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DxBlazorApplication1", "DxBlazorApplication1\DxBlazorApplication1.csproj", "{BD019368-677D-4AC7-AB8B-F535A62DB154}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{BD019368-677D-4AC7-AB8B-F535A62DB154}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{BD019368-677D-4AC7-AB8B-F535A62DB154}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{BD019368-677D-4AC7-AB8B-F535A62DB154}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{BD019368-677D-4AC7-AB8B-F535A62DB154}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {68A8D485-6884-406A-8A76-A9555C165453}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
<Router AppAssembly="@typeof(Program).Assembly">
|
||||||
|
<Found Context="routeData">
|
||||||
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||||
|
</Found>
|
||||||
|
<NotFound>
|
||||||
|
<LayoutView Layout="@typeof(MainLayout)">
|
||||||
|
<p>Sorry, there's nothing at this address.</p>
|
||||||
|
</LayoutView>
|
||||||
|
</NotFound>
|
||||||
|
</Router>
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class DateInPastAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
public int YearsAgo { get; set; } = 0;
|
||||||
|
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return (DateTime)value <= DateTime.Now.AddYears(-YearsAgo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = true)]
|
||||||
|
public class DateIsEarlierThanAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
readonly string datePropertyToCompare;
|
||||||
|
public DateIsEarlierThanAttribute(string datePropertyToCompare)
|
||||||
|
{
|
||||||
|
this.datePropertyToCompare = datePropertyToCompare;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
var property = validationContext.ObjectType.GetProperty(datePropertyToCompare);
|
||||||
|
if (property == null)
|
||||||
|
{
|
||||||
|
return new ValidationResult(
|
||||||
|
$"Unknown property: {datePropertyToCompare}",
|
||||||
|
new[] { validationContext.MemberName });
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((DateTime)value > (DateTime)property.GetValue(validationContext.ObjectInstance))
|
||||||
|
{
|
||||||
|
return new ValidationResult(
|
||||||
|
ErrorMessage ?? $"The {validationContext.MemberName} value cannot be greater than the {datePropertyToCompare} value",
|
||||||
|
new[] { validationContext.MemberName, datePropertyToCompare });
|
||||||
|
}
|
||||||
|
return ValidationResult.Success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class EmailAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return Regex.IsMatch((string)value, @"^[\w!#$%&'*+\-/=?\^_`{|}~]+(\.[\w!#$%&'*+\-/=?\^_`{|}~]+)*"
|
||||||
|
+ "@"
|
||||||
|
+ @"((([\-\w]+\.)+[a-zA-Z]{2,4})|(([0-9]{1,3}\.){3}[0-9]{1,3}))$");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class MinPasswordLengthAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
int MinLength { get; }
|
||||||
|
public MinPasswordLengthAttribute(int minLength, string errorMsg) : base(errorMsg)
|
||||||
|
{
|
||||||
|
MinLength = minLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return ((string)value).Length >= MinLength;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
namespace DxBlazorApplication1
|
||||||
|
{
|
||||||
|
public class TodoItem
|
||||||
|
{
|
||||||
|
public TodoItem(string text)
|
||||||
|
{
|
||||||
|
Text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Text { get; set; }
|
||||||
|
|
||||||
|
public bool Completed { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using DxBlazorApplication1.Data.Annotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1
|
||||||
|
{
|
||||||
|
public class UserDataBase
|
||||||
|
{
|
||||||
|
[Required(ErrorMessage = "The Username value should be specified.")]
|
||||||
|
public string Username { get; set; }
|
||||||
|
[Required(ErrorMessage = "The Password value should be specified.")]
|
||||||
|
[MinPasswordLength(6, "The Password must be at least 6 characters long.")]
|
||||||
|
public string Password { get; set; }
|
||||||
|
}
|
||||||
|
public class UserData : UserDataBase
|
||||||
|
{
|
||||||
|
public static DateTime BirthDateNullValue { get; set; } = new DateTime(1970, 1, 1);
|
||||||
|
[Required(ErrorMessage = "The Email value should be specified.")]
|
||||||
|
[Email(ErrorMessage = "The Email value is invalid.")]
|
||||||
|
public string Email { get; set; }
|
||||||
|
[Required(ErrorMessage = "The Phone value should be specified.")]
|
||||||
|
public string Phone { get; set; }
|
||||||
|
[DateInPast(YearsAgo = 18, ErrorMessage = "Users should be at least 18 years old to register.")]
|
||||||
|
public DateTime BirthDate { get; set; } = BirthDateNullValue;
|
||||||
|
public string Occupation { get; set; }
|
||||||
|
public string Notes { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
namespace DxBlazorApplication1.Data
|
||||||
|
{
|
||||||
|
public class WeatherForecast
|
||||||
|
{
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
|
||||||
|
public int TemperatureC { get; set; }
|
||||||
|
|
||||||
|
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||||
|
|
||||||
|
public string? Summary { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
namespace DxBlazorApplication1.Data
|
||||||
|
{
|
||||||
|
public class WeatherForecastService
|
||||||
|
{
|
||||||
|
private static readonly string[] Summaries = new[]
|
||||||
|
{
|
||||||
|
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
|
||||||
|
};
|
||||||
|
|
||||||
|
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
|
||||||
|
{
|
||||||
|
var rng = new Random();
|
||||||
|
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
|
||||||
|
{
|
||||||
|
Date = startDate.AddDays(index),
|
||||||
|
TemperatureC = rng.Next(-20, 55),
|
||||||
|
Summary = Summaries[rng.Next(Summaries.Length)]
|
||||||
|
}).ToArray());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="DevExpress.Blazor" Version="25.1.4" />
|
||||||
|
<PackageReference Include="DevExpress.Blazor.PdfViewer" Version="25.1.4" />
|
||||||
|
<PackageReference Include="DevExpress.Pdf.SkiaRenderer" Version="25.1.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="wwwroot\images\" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
The following open source libraries are used and included within thеse sample/demonstration projects:
|
||||||
|
|
||||||
|
Bootstrap (Open Source – MIT License)
|
||||||
|
Copyright (c) 2011-2021 Twitter, Inc. / Copyright (c) 2011-2021 The Bootstrap Authors
|
||||||
|
https://github.com/twbs/bootstrap/blob/main/LICENSE
|
||||||
|
|
||||||
|
open-iconic (Open Source – MIT License and SIL Open Font License)
|
||||||
|
Copyright (c) 2014 Waybury
|
||||||
|
https://github.com/iconic/open-iconic/blob/master/ICON-LICENSE
|
||||||
|
https://github.com/iconic/open-iconic/blob/master/FONT-LICENSE
|
||||||
|
|
||||||
|
The open source libraries included in these sample/demonstration projects are done so pursuant to each individual open source library license and subject to the disclaimers and limitations on liability set forth in each open source library license.
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
@page
|
||||||
|
@model DxBlazorApplication1.Pages.ErrorModel
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
|
<title>Error</title>
|
||||||
|
<link href="_content/DevExpress.Blazor.Themes/blazing-berry.bs5.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<link href="~/css/site.css" rel="stylesheet" asp-append-version="true"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="px-4">
|
||||||
|
<h1 class="text-danger">Error.</h1>
|
||||||
|
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||||
|
|
||||||
|
@if (Model.ShowRequestId)
|
||||||
|
{
|
||||||
|
<p>
|
||||||
|
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||||
|
</p>
|
||||||
|
}
|
||||||
|
|
||||||
|
<h3>Development Mode</h3>
|
||||||
|
<p>
|
||||||
|
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||||
|
It can result in displaying sensitive information from exceptions to end users.
|
||||||
|
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||||
|
and restarting the app.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication1.Pages {
|
||||||
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||||
|
[IgnoreAntiforgeryToken]
|
||||||
|
public class ErrorModel : PageModel {
|
||||||
|
public string? RequestId { get; set; }
|
||||||
|
|
||||||
|
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||||
|
|
||||||
|
private readonly ILogger<ErrorModel> _logger;
|
||||||
|
|
||||||
|
public ErrorModel(ILogger<ErrorModel> logger) {
|
||||||
|
_logger = logger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGet() {
|
||||||
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
@page "/grid"
|
||||||
|
|
||||||
|
@using DxBlazorApplication1.Data
|
||||||
|
@inject WeatherForecastService ForecastService
|
||||||
|
|
||||||
|
<h2>DevExpress Grid</h2>
|
||||||
|
|
||||||
|
<p class="pb-2 pt-2 mw-1100">The DevExpress Grid for Blazor allows you to display and manage data via a tabular (rows/columns) UI metaphor.
|
||||||
|
This page uses our Blazor Grid component to display weather forecast values.</p>
|
||||||
|
|
||||||
|
@if (forecasts == null)
|
||||||
|
{
|
||||||
|
<p><em>Loading...</em></p>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<DxGrid Data="@forecasts"
|
||||||
|
CssClass="mw-1100">
|
||||||
|
<Columns>
|
||||||
|
<DxGridDataColumn Caption="Date" FieldName="Date" />
|
||||||
|
<DxGridDataColumn Caption="Temperature" FieldName="TemperatureF" />
|
||||||
|
</Columns>
|
||||||
|
</DxGrid>
|
||||||
|
}
|
||||||
|
|
||||||
|
@code {
|
||||||
|
private WeatherForecast[]? forecasts;
|
||||||
|
|
||||||
|
protected override async Task OnInitializedAsync()
|
||||||
|
{
|
||||||
|
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
@page "/"
|
||||||
|
|
||||||
|
<h2 class="pb-2">Blazor Components</h2>
|
||||||
|
<p class="pb-2 mw-1100">
|
||||||
|
Our Blazor UI components will help you create intuitive and highly-refined user experiences for both Blazor Server (ASP.NET Core) and Blazor WebAssembly hosting models.
|
||||||
|
</p>
|
||||||
|
<div class="pb-2 mw-1100">
|
||||||
|
<img class="fit-width" src="images/banner.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="mb-4 mt-4">Helpful Resources</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a class="helplink" href="https://demos.devexpress.com/blazor/" target="_blank">Online Demos</a></li>
|
||||||
|
<li><a class="helplink" href="https://github.com/DevExpress/Blazor/blob/master/examples.md" target="_blank">Examples</a></li>
|
||||||
|
<li><a class="helplink" href="https://docs.devexpress.com/Blazor/400725/blazor-components" target="_blank">Documentation</a></li>
|
||||||
|
<li><a class="helplink" href="https://www.devexpress.com/support/training/blazor/" target="_blank">Free Blazor Training Course</a></li>
|
||||||
|
</ul>
|
||||||
@ -0,0 +1,98 @@
|
|||||||
|
@page "/layout"
|
||||||
|
@using System.IO
|
||||||
|
@inject IJSRuntime JS
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.downloadFileFromStream = async (fileName, contentStreamReference) => {
|
||||||
|
const arrayBuffer = await contentStreamReference.arrayBuffer();
|
||||||
|
const blob = new Blob([arrayBuffer]);
|
||||||
|
const url = URL.createObjectURL(blob);
|
||||||
|
const anchorElement = document.createElement('a');
|
||||||
|
anchorElement.href = url;
|
||||||
|
anchorElement.download = fileName ?? '';
|
||||||
|
anchorElement.click();
|
||||||
|
anchorElement.remove();
|
||||||
|
URL.revokeObjectURL(url);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
|
||||||
|
<DxFormLayout CssClass="w-100 demo-form-layout">
|
||||||
|
<DxFormLayoutItem Caption="Contact Name:">
|
||||||
|
<DxTextBox @bind-Text="@Name" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="eMail:">
|
||||||
|
<DxTextBox @bind-Text="@Email" InputId="contactEmail" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="Birth Date:">
|
||||||
|
<DxDateEdit @bind-Date="@BirthDate" Mask="@DateTimeMask.ShortDate" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="Years Worked:">
|
||||||
|
<DxSpinEdit @bind-Value="@YearsWorked" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="On Vacation:">
|
||||||
|
<DxCheckBox @bind-Checked="@OnVacation" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
|
||||||
|
<div class="w-100 mx-0 mt-3">
|
||||||
|
<p class="demo-text col-12 mt-2">
|
||||||
|
@nameof(Name)=<b>@Name</b>,
|
||||||
|
@nameof(Email)=<b>@Email</b>,
|
||||||
|
@nameof(BirthDate)=<b>@BirthDate</b>,
|
||||||
|
@nameof(YearsWorked)=<b>@YearsWorked</b>,
|
||||||
|
@nameof(OnVacation)=<b>@OnVacation</b>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
|
||||||
|
<DxFormLayout>
|
||||||
|
@* If the viewport width is less then 768px (medium), the item occupies 12 columns *@
|
||||||
|
@* If the viewport width is from 768px (medium) to 1200px (extra large), the item occupies 6 columns *@
|
||||||
|
@* If the viewport width exceeds 1200px (extra large), the item occupies 4 columns *@
|
||||||
|
<DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
|
||||||
|
<DxTextBox />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
<div>
|
||||||
|
<button @onclick="DownloadFileFromStream">
|
||||||
|
Download File From Stream
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string Name { get; set; } = "Nancy Davolio";
|
||||||
|
string Email { get; set; } = "NancyDavolio@sample.com";
|
||||||
|
DateTime BirthDate { get; set; } = DateTime.Now.AddYears(-20);
|
||||||
|
int YearsWorked { get; set; } = 3;
|
||||||
|
bool OnVacation { get; set; } = true;
|
||||||
|
bool IsInfoOpen { get; set; } = false;
|
||||||
|
|
||||||
|
/* private Stream GetFileStream()
|
||||||
|
{
|
||||||
|
var randomBinaryData = new byte[50 * 1024];
|
||||||
|
var fileStream = new MemoryStream(randomBinaryData);
|
||||||
|
|
||||||
|
return fileStream;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
private Stream GetFileStream() => File.OpenRead(@"D:\Mappe1.xlsx");
|
||||||
|
|
||||||
|
private async Task DownloadFileFromStream()
|
||||||
|
{
|
||||||
|
var fileStream = GetFileStream();
|
||||||
|
var fileName = "Mappe2.xlsx";
|
||||||
|
|
||||||
|
using var streamRef = new DotNetStreamReference(stream: fileStream);
|
||||||
|
|
||||||
|
await JS.InvokeVoidAsync("downloadFileFromStream", fileName, streamRef);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,79 @@
|
|||||||
|
@page "/login"
|
||||||
|
@inject NavigationManager Navigation
|
||||||
|
|
||||||
|
<div class="card cw-480" style="width: 400px">
|
||||||
|
<EditForm Model="@Data"
|
||||||
|
OnValidSubmit="@HandleValidSubmit"
|
||||||
|
OnInvalidSubmit="@HandleInvalidSubmit"
|
||||||
|
Context="EditFormContext">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
<div class="card-header text-center py-3">
|
||||||
|
<h4>Welcome to DevExpress</h4>
|
||||||
|
<p class="tm-8 mb-0 fw-normal fs-825">
|
||||||
|
Log in to see it in action
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<DxFormLayout>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbUsername" class="d-none">Username</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Username"
|
||||||
|
NullText="Username"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbUsername" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Username)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbPassword" class="d-none">Password</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Password"
|
||||||
|
NullText="Password"
|
||||||
|
Password="true"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbPassword" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Password)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<DxButton CssClass="w-100"
|
||||||
|
Text="Login"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
SubmitFormOnClick="true" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<div class="text-center pt-2">
|
||||||
|
<div class="tm-8 fs-825">
|
||||||
|
Do not have an account?
|
||||||
|
</div>
|
||||||
|
<DxButton Text="Create an account"
|
||||||
|
RenderStyle="ButtonRenderStyle.Link"
|
||||||
|
Click="GotoRegistrationForm" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
</div>
|
||||||
|
<p class="tm-8 cw-480 mt-2">
|
||||||
|
@FormSubmitResult
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string FormSubmitResult = "";
|
||||||
|
UserDataBase Data { get; set; } = new UserDataBase();
|
||||||
|
void GotoRegistrationForm()
|
||||||
|
{
|
||||||
|
Navigation.NavigateTo("/Register");
|
||||||
|
|
||||||
|
}
|
||||||
|
void HandleValidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "You have been logged in successully.";
|
||||||
|
}
|
||||||
|
void HandleInvalidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
@page "/pdfviewer"
|
||||||
|
@using DevExpress.Blazor.PdfViewer
|
||||||
|
@using System.Reflection
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href=@AppendVersion("_content/DevExpress.Blazor.Viewer/css/dx-blazor-viewer-components.bs5.css")>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div style="display: flex">
|
||||||
|
|
||||||
|
<div id="overviewDemoDropZone" class="card custom-drop-zone rounded-3 w-100 m-0">
|
||||||
|
<span class="drop-file-icon mb-3"></span>
|
||||||
|
<span class="drop-file-label">Drag and Drop File Here</span><span class="m-1">or</span>
|
||||||
|
<DxButton Id="overviewDemoSelectButton"
|
||||||
|
CssClass="m-1"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
Text="Select File" />
|
||||||
|
</div>
|
||||||
|
<DxFileInput @ref="fileInput"
|
||||||
|
AcceptedFileTypes="@ALLOWED_FILE_TYPES"
|
||||||
|
AllowedFileExtensions="@ALLOWED_FILE_TYPES"
|
||||||
|
CssClass="w-100"
|
||||||
|
ExternalDropZoneCssSelector="#overviewDemoDropZone"
|
||||||
|
ExternalDropZoneDragOverCssClass="custom-drop-zone-hover"
|
||||||
|
ExternalSelectButtonCssSelector="#overviewDemoSelectButton"
|
||||||
|
FilesUploading="OnFilesUploading"
|
||||||
|
MaxFileSize="2000000">
|
||||||
|
</DxFileInput>
|
||||||
|
<div style="width: 4000px">
|
||||||
|
<DxPdfViewer CssClass="w-100 pdf-viewer" DocumentContent="DocumentContent" ZoomLevel=1/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
readonly List<string> ALLOWED_FILE_TYPES = new List<string> { ".pdf" };
|
||||||
|
DxFileInput fileInput;
|
||||||
|
byte[] DocumentContent { get; set; }
|
||||||
|
|
||||||
|
private Stream GetFileStream() => File.OpenRead(@"D:\E-RechnungA3.pdf");
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
Assembly assembly = Assembly.GetExecutingAssembly();
|
||||||
|
using (Stream stream = GetFileStream())
|
||||||
|
using (var binaryReader = new BinaryReader(stream))
|
||||||
|
DocumentContent = binaryReader.ReadBytes((int)stream.Length);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async Task OnFilesUploading(FilesUploadingEventArgs args)
|
||||||
|
{
|
||||||
|
using (MemoryStream stream = new MemoryStream())
|
||||||
|
{
|
||||||
|
IFileInputSelectedFile file = args.Files[0];
|
||||||
|
await file.OpenReadStream(file.Size).CopyToAsync(stream);
|
||||||
|
DocumentContent = stream.ToArray();
|
||||||
|
await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string AppendVersion(string path) => $"{path}?v={typeof(DevExpress.Blazor.ResourcesConfigurator).Assembly.GetName().Version}";
|
||||||
|
}
|
||||||
@ -0,0 +1,158 @@
|
|||||||
|
@page "/register"
|
||||||
|
@using DxBlazorApplication1.Data.Annotations
|
||||||
|
@inject NavigationManager Navigation
|
||||||
|
|
||||||
|
<div class="card cw-480" style="width: 400px">
|
||||||
|
<EditForm Model="@Data"
|
||||||
|
OnValidSubmit="@HandleValidSubmit"
|
||||||
|
OnInvalidSubmit="@HandleInvalidSubmit"
|
||||||
|
Context="EditFormContext">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
<div class="card-header text-center py-3">
|
||||||
|
<h4>Register to DevExpress</h4>
|
||||||
|
<p class="tm-8 mb-0 fw-normal fs-825">
|
||||||
|
Create a new account to see it in action
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<DxFormLayout>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbUsername" class="d-none">Username</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Username"
|
||||||
|
NullText="Username"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbUsername" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Username)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbPassword" class="d-none">Password</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Password"
|
||||||
|
NullText="Password"
|
||||||
|
Password="true"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbPassword" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Password)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbEmail" class="d-none">E-mail</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Email"
|
||||||
|
NullText="E-mail"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbEmail" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Email)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="miPhone" class="d-none">Phone Number</label>
|
||||||
|
<DxMaskedInput @bind-Value="@Data.Phone"
|
||||||
|
NullText="Phone Number"
|
||||||
|
Mask="@PhoneMask"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="miPhone" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Phone)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="deBirthDate" class="d-none">Birthday</label>
|
||||||
|
<DxDateEdit @bind-Date="@Data.BirthDate"
|
||||||
|
NullText="Birthday"
|
||||||
|
NullValue="@BirthDateNullValue"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
Mask="@DateTimeMask.ShortDate"
|
||||||
|
InputId="deBirthDate" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.BirthDate)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="cbOccupation" class="d-none">Occupation</label>
|
||||||
|
<DxComboBox Data="@Occupations"
|
||||||
|
@bind-Value="@Data.Occupation"
|
||||||
|
AllowUserInput="false"
|
||||||
|
NullText="Occupation"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="cbOccupation" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="mNotes" class="d-none">Notes</label>
|
||||||
|
<DxMemo @bind-Text="@Data.Notes"
|
||||||
|
NullText="Notes"
|
||||||
|
Rows="4"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="mNotes" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<DxButton CssClass="w-100"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
SubmitFormOnClick="true"
|
||||||
|
Text="Register" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<div class="text-center pt-2">
|
||||||
|
<div class="tm-8">
|
||||||
|
Already have an account?
|
||||||
|
</div>
|
||||||
|
<DxButton RenderStyle="ButtonRenderStyle.Link"
|
||||||
|
Text="Login"
|
||||||
|
Click="GotoLoginForm" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
</div>
|
||||||
|
<p class="tm-8 cw-480 mt-2">
|
||||||
|
@FormSubmitResult
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string FormSubmitResult = "";
|
||||||
|
UserData Data { get; set; } = new UserData();
|
||||||
|
IEnumerable<string> Occupations { get; set; } = new List<string>() {
|
||||||
|
"Academic",
|
||||||
|
"Administrative",
|
||||||
|
"Art/Entertainment",
|
||||||
|
"College Student",
|
||||||
|
"Community & Social",
|
||||||
|
"Computers",
|
||||||
|
"Education",
|
||||||
|
"Engineering",
|
||||||
|
"Financial Services",
|
||||||
|
"Government",
|
||||||
|
"High School Student",
|
||||||
|
"Law",
|
||||||
|
"Managerial",
|
||||||
|
"Manufacturing",
|
||||||
|
"Medical/Health",
|
||||||
|
"Military",
|
||||||
|
"Non-government Organization",
|
||||||
|
"Other Services",
|
||||||
|
"Professional",
|
||||||
|
"Retail",
|
||||||
|
"Science & Research",
|
||||||
|
"Sports",
|
||||||
|
"Technical",
|
||||||
|
"University Student",
|
||||||
|
"Web Building",
|
||||||
|
};
|
||||||
|
string PhoneMask { get; set; } = "(999)000-0000";
|
||||||
|
DateTime BirthDateNullValue { get; set; } = UserData.BirthDateNullValue;
|
||||||
|
void GotoLoginForm()
|
||||||
|
{
|
||||||
|
Navigation.NavigateTo("/Login");
|
||||||
|
}
|
||||||
|
void HandleValidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "You have been registred successully.";
|
||||||
|
}
|
||||||
|
void HandleInvalidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,143 @@
|
|||||||
|
@page "/todoliste"
|
||||||
|
@using DxBlazorApplication1.Services;
|
||||||
|
@inject ITodoService _todoService;
|
||||||
|
@inject IJSRuntime JSRuntime
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.registerKeyDown = (dotnetHelper) => {
|
||||||
|
document.addEventListener('keydown', (event) => {
|
||||||
|
if (event.key === 'F1' || event.key === 'F2' || event.key === 'F3' || event.key === 'F4' || event.key === 'F5' || event.key === 'F6' ||
|
||||||
|
event.key === 'F7' || event.key === 'F8' || event.key === 'F9' || event.key === 'F10' || event.key === 'F11' || event.key === 'F12' ||
|
||||||
|
event.key === 'Escape' || event.key === 'PageDown' || event.key === 'PageUp')
|
||||||
|
{
|
||||||
|
if(!event.ctrlKey && !event.altKey && !event.metaKey)
|
||||||
|
{
|
||||||
|
dotnetHelper.invokeMethodAsync('KeyDownHandler', event.key, event.shiftKey);
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//dotnetHelper.invokeMethodAsync('KeyDownHandler', event.key + "(nicht abgefangen)", event.shiftKey, event.ctrlKey);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<PageTitle>ToDo-Liste</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<h4>Neues ToDo</h4>
|
||||||
|
<TodoItemForm OnItemAdded="@ItemChanged" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
<div style="display: flex; flex-direction: column">
|
||||||
|
@foreach (var todo in Todos)
|
||||||
|
{
|
||||||
|
<div style="display: flex; margin-bottom: 10px;">
|
||||||
|
<div style="display: flex align-items: center; margin-bottom: 10px">
|
||||||
|
<div class="@ItemClass(todo)" style="width: 280px;">@todo.Text</div>
|
||||||
|
</div>
|
||||||
|
@if (todo.Completed)
|
||||||
|
{
|
||||||
|
<div style="width: 120px">
|
||||||
|
<button class="btn btn-primary" onclick="@(() => UncompleteItem(todo))">Offen</button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
@if (!todo.Completed)
|
||||||
|
{
|
||||||
|
<div style="width: 120px">
|
||||||
|
<button class="btn btn-primary" onclick="@(() => CompleteItem(todo))">Erledigt</button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
<div>
|
||||||
|
<buttin class="btn btn-danger" onclick="@(() => RemoveItem(todo))">Löschen</buttin>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Die tabindex="0"-Eigenschaft ist wichtig, damit der DIV-Container den Fokus erhält und Tastatureingaben empfangen kann.-->
|
||||||
|
<!-- <div @onkeydown="HandleKeyDown" tabindex="0"> -->
|
||||||
|
<div>
|
||||||
|
<p>Gedrückte Taste: @LastKeyPressed</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
private IList<TodoItem> Todos { get; set; } = new List<TodoItem>();
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
Todos = _todoService.GetItems().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ItemClass(TodoItem item)
|
||||||
|
{
|
||||||
|
return item.Completed ? "item-completed" : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ItemChanged()
|
||||||
|
{
|
||||||
|
Todos = _todoService.GetItems().ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemoveItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.RemoveItem(item);
|
||||||
|
ItemChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CompleteItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.Complete(item);
|
||||||
|
ItemChanged();
|
||||||
|
}
|
||||||
|
public void UncompleteItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.Uncomplete(item);
|
||||||
|
ItemChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private string LastKeyPressed { get; set; } = "N/A";
|
||||||
|
private DotNetObjectReference<ToDoListe>? objRef;
|
||||||
|
|
||||||
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
|
{
|
||||||
|
if (firstRender)
|
||||||
|
{
|
||||||
|
objRef = DotNetObjectReference.Create(this);
|
||||||
|
await JSRuntime.InvokeVoidAsync("registerKeyDown", objRef);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[JSInvokable]
|
||||||
|
public void KeyDownHandler(string key, bool shiftKey)
|
||||||
|
{
|
||||||
|
if (shiftKey)
|
||||||
|
LastKeyPressed = "[Shift]" + key;
|
||||||
|
else
|
||||||
|
LastKeyPressed = key;
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleKeyDown(KeyboardEventArgs e)
|
||||||
|
{
|
||||||
|
// Optional: Hier kannst du auch direkt im C#-Code reagieren,
|
||||||
|
// ohne den Umweg über JavaScript. Allerdings ist die
|
||||||
|
// Reaktion über JavaScript oft performanter, besonders bei
|
||||||
|
// komplexen Tastenkombinationen.
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
@page "/"
|
||||||
|
@namespace DxBlazorApplication1.Pages
|
||||||
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
@{
|
||||||
|
Layout = "_Layout";
|
||||||
|
}
|
||||||
|
|
||||||
|
<component type="typeof(App)" render-mode="ServerPrerendered" />
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@namespace DxBlazorApplication1.Pages
|
||||||
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<base href="~/" />
|
||||||
|
<link href="_content/DevExpress.Blazor.Themes/blazing-berry.bs5.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<link href="~/css/site.css" rel="stylesheet" />
|
||||||
|
<link href="DxBlazorApplication1.styles.css" rel="stylesheet" />
|
||||||
|
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
@{
|
||||||
|
var isIEOrEdgeLegacy = Context.Request.Headers["User-Agent"]
|
||||||
|
.Any(userAgent => userAgent.Contains("MSIE") || userAgent.Contains("Trident") || userAgent.Contains("Edge/"));
|
||||||
|
}
|
||||||
|
@if(isIEOrEdgeLegacy)
|
||||||
|
{
|
||||||
|
<component type="typeof(DxBlazorApplication1.Shared.BrowserNotSupported)" render-mode="Static" />
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@RenderBody()
|
||||||
|
|
||||||
|
<div id="blazor-error-ui">
|
||||||
|
<environment include="Staging,Production">
|
||||||
|
An error has occurred. This application may no longer respond until reloaded.
|
||||||
|
</environment>
|
||||||
|
<environment include="Development">
|
||||||
|
An unhandled exception has occurred. See browser dev tools for details.
|
||||||
|
</environment>
|
||||||
|
<a href="" class="reload">Reload</a>
|
||||||
|
<a class="dismiss">🗙</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="_framework/blazor.server.js"></script>
|
||||||
|
}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
using DxBlazorApplication1.Data;
|
||||||
|
using DxBlazorApplication1.Services;
|
||||||
|
using Microsoft.AspNetCore.Components;
|
||||||
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
|
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
// Add services to the container.
|
||||||
|
builder.Services.AddRazorPages();
|
||||||
|
builder.Services.AddServerSideBlazor();
|
||||||
|
builder.Services.AddSingleton<ITodoService, TodoService>();
|
||||||
|
builder.Services.AddDevExpressServerSideBlazorPdfViewer();
|
||||||
|
builder.Services.AddDevExpressBlazor(options => {
|
||||||
|
options.BootstrapVersion = DevExpress.Blazor.BootstrapVersion.v5;
|
||||||
|
options.SizeMode = DevExpress.Blazor.SizeMode.Medium;
|
||||||
|
});
|
||||||
|
builder.Services.AddSingleton<WeatherForecastService>();
|
||||||
|
builder.WebHost.UseWebRoot("wwwroot");
|
||||||
|
builder.WebHost.UseStaticWebAssets();
|
||||||
|
|
||||||
|
var app = builder.Build();
|
||||||
|
|
||||||
|
// Configure the HTTP request pipeline.
|
||||||
|
if (!app.Environment.IsDevelopment())
|
||||||
|
{
|
||||||
|
app.UseExceptionHandler("/Error");
|
||||||
|
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||||
|
app.UseHsts();
|
||||||
|
}
|
||||||
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
|
app.UseStaticFiles();
|
||||||
|
|
||||||
|
app.UseRouting();
|
||||||
|
|
||||||
|
|
||||||
|
app.MapBlazorHub();
|
||||||
|
app.MapFallbackToPage("/_Host");
|
||||||
|
|
||||||
|
app.Run();
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:14099",
|
||||||
|
"sslPort": 44320
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"profiles": {
|
||||||
|
"DxBlazorApplication1": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "https://localhost:7060;http://localhost:5060",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
namespace DxBlazorApplication1.Services
|
||||||
|
{
|
||||||
|
public interface ITodoService
|
||||||
|
{
|
||||||
|
public void AddItem(TodoItem item);
|
||||||
|
public void RemoveItem(TodoItem item);
|
||||||
|
public IEnumerable<TodoItem> GetItems();
|
||||||
|
public void Complete(TodoItem item);
|
||||||
|
public void Uncomplete(TodoItem item);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
namespace DxBlazorApplication1.Services
|
||||||
|
{
|
||||||
|
public class TodoService : ITodoService
|
||||||
|
{
|
||||||
|
private readonly IList<TodoItem> _todoItems;
|
||||||
|
|
||||||
|
public TodoService()
|
||||||
|
{
|
||||||
|
_todoItems = new List<TodoItem>()
|
||||||
|
{
|
||||||
|
new TodoItem("Wäsche waschen"),
|
||||||
|
new TodoItem("Wäsche trocknen")
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoItems.Add(item);
|
||||||
|
}
|
||||||
|
public void RemoveItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoItems.Remove(item);
|
||||||
|
}
|
||||||
|
public IEnumerable<TodoItem> GetItems()
|
||||||
|
{
|
||||||
|
return _todoItems;
|
||||||
|
}
|
||||||
|
public void Complete(TodoItem item)
|
||||||
|
{
|
||||||
|
item.Completed = true;
|
||||||
|
}
|
||||||
|
public void Uncomplete(TodoItem item)
|
||||||
|
{
|
||||||
|
item.Completed = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
<div class="d-flex flex-column justify-content-center align-items-center vh-100">
|
||||||
|
<div class="d-flex">
|
||||||
|
<img class="mt-2 mr-4" src="images/sad.svg" width="60" height="60" />
|
||||||
|
<div>
|
||||||
|
<div class="h1">Your browser is not supported.</div>
|
||||||
|
<p style="font-size: 1rem; opacity: 0.75;" class="m-0">In .NET 5.0, Blazor does not support Microsoft Internet Explorer and Microsoft Edge Legacy (refer to <a target="_blank" href="https://docs.devexpress.com/Blazor/401588/common-concepts/supported-browsers">Supported Browsers</a>).<br />Please use a different browser to run DxBlazorApplication1.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
<nav class="navbar header-navbar p-0">
|
||||||
|
<button class="navbar-toggler bg-primary d-block" @onclick="OnToggleClick">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="ms-3 fw-bold title pe-4">DxBlazorApplication1</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[Parameter] public bool ToggleOn { get; set; }
|
||||||
|
[Parameter] public EventCallback<bool> ToggleOnChanged { get; set; }
|
||||||
|
|
||||||
|
async Task OnToggleClick() => await Toggle();
|
||||||
|
|
||||||
|
async Task Toggle(bool? value = null) {
|
||||||
|
var newValue = value ?? !ToggleOn;
|
||||||
|
if(ToggleOn != newValue) {
|
||||||
|
ToggleOn = newValue;
|
||||||
|
await ToggleOnChanged.InvokeAsync(ToggleOn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
.navbar.header-navbar {
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
border: none;
|
||||||
|
background-color: inherit;
|
||||||
|
border-radius: 0;
|
||||||
|
height: 3.5rem;
|
||||||
|
min-height: 3.5rem;
|
||||||
|
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-navbar .navbar-toggler {
|
||||||
|
outline: none;
|
||||||
|
border-radius: 0;
|
||||||
|
padding-left: .75rem;
|
||||||
|
padding-right: .75rem;
|
||||||
|
box-shadow: none;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-navbar .navbar-toggler .navbar-toggler-icon {
|
||||||
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
|
||||||
|
background-color: transparent !important;
|
||||||
|
height: 2rem;
|
||||||
|
width: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 350px) {
|
||||||
|
.title {
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,81 @@
|
|||||||
|
@inherits LayoutComponentBase
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
|
|
||||||
|
<DxLayoutBreakpoint MaxWidth="1200"
|
||||||
|
@bind-IsActive="@IsMobileLayout" />
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
<DxGridLayout CssClass="page-layout">
|
||||||
|
<Rows>
|
||||||
|
@if(IsMobileLayout) {
|
||||||
|
<DxGridLayoutRow Areas="header" Height="auto"></DxGridLayoutRow>
|
||||||
|
<DxGridLayoutRow Areas="sidebar" Height="auto"></DxGridLayoutRow>
|
||||||
|
<DxGridLayoutRow Areas="content" />
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
<DxGridLayoutRow Areas="header header" Height="auto" />
|
||||||
|
<DxGridLayoutRow Areas="@(IsSidebarExpanded ? "sidebar content" : "content content")" />
|
||||||
|
}
|
||||||
|
</Rows>
|
||||||
|
<Columns>
|
||||||
|
@if(!IsMobileLayout) {
|
||||||
|
<DxGridLayoutColumn Width="auto" />
|
||||||
|
<DxGridLayoutColumn />
|
||||||
|
}
|
||||||
|
</Columns>
|
||||||
|
<Items>
|
||||||
|
<DxGridLayoutItem Area="header" CssClass="layout-item">
|
||||||
|
<Template>
|
||||||
|
<Header @bind-ToggleOn="@IsSidebarExpanded" />
|
||||||
|
</Template>
|
||||||
|
</DxGridLayoutItem>
|
||||||
|
<DxGridLayoutItem Area="sidebar" CssClass="layout-item">
|
||||||
|
<Template>
|
||||||
|
<NavMenu StateCssClass="@NavMenuCssClass" />
|
||||||
|
</Template>
|
||||||
|
</DxGridLayoutItem>
|
||||||
|
<DxGridLayoutItem Area="content" CssClass="content px-4 layout-item">
|
||||||
|
<Template>
|
||||||
|
@Body
|
||||||
|
</Template>
|
||||||
|
</DxGridLayoutItem>
|
||||||
|
</Items>
|
||||||
|
</DxGridLayout>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code{
|
||||||
|
string? NavMenuCssClass { get; set; }
|
||||||
|
bool _isMobileLayout;
|
||||||
|
bool IsMobileLayout {
|
||||||
|
get => _isMobileLayout;
|
||||||
|
set {
|
||||||
|
_isMobileLayout = value;
|
||||||
|
IsSidebarExpanded = !_isMobileLayout;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool _isSidebarExpanded = true;
|
||||||
|
bool IsSidebarExpanded {
|
||||||
|
get => _isSidebarExpanded;
|
||||||
|
set {
|
||||||
|
if(_isSidebarExpanded != value) {
|
||||||
|
NavMenuCssClass = value ? "expand" : "collapse";
|
||||||
|
_isSidebarExpanded = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnInitialized() {
|
||||||
|
NavigationManager.LocationChanged += OnLocationChanged;
|
||||||
|
}
|
||||||
|
async void OnLocationChanged(object? sender, LocationChangedEventArgs args) {
|
||||||
|
if(IsMobileLayout) {
|
||||||
|
IsSidebarExpanded = false;
|
||||||
|
await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose() {
|
||||||
|
NavigationManager.LocationChanged -= OnLocationChanged;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
.page {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
::deep .page-layout,
|
||||||
|
::deep .page-layout > .dx-gridlayout-root,
|
||||||
|
::deep .layout-item {
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .content {
|
||||||
|
padding: 1.1rem 2rem 0 2rem;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1199.98px) {
|
||||||
|
::deep .page-layout > .dx-gridlayout-root {
|
||||||
|
grid-template-columns: minmax(0, 1fr) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .fit-width {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .mw-1100 {
|
||||||
|
max-width: 1100px;
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
<div class="sidebar @StateCssClass">
|
||||||
|
<DxTreeView AllowSelectNodes="true" CssClass="app-sidebar">
|
||||||
|
<Nodes>
|
||||||
|
<DxTreeViewNode NavigateUrl="./" Text="Overview"></DxTreeViewNode>
|
||||||
|
<DxTreeViewNode NavigateUrl="grid" Text="Grid"></DxTreeViewNode>
|
||||||
|
<DxTreeViewNode NavigateUrl="todoliste" Text="ToDo-Liste"></DxTreeViewNode>
|
||||||
|
<DxTreeViewNode NavigateUrl="layout" Text="Layout"></DxTreeViewNode>
|
||||||
|
<DxTreeViewNode NavigateUrl="pdfviewer" Text="PDF-Viewer"></DxTreeViewNode>
|
||||||
|
<DxTreeViewNode NavigateUrl="login" Text="Login"></DxTreeViewNode>
|
||||||
|
</Nodes>
|
||||||
|
</DxTreeView>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[Parameter] public string? StateCssClass { get; set; }
|
||||||
|
}
|
||||||
@ -0,0 +1,65 @@
|
|||||||
|
.sidebar {
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 300px;
|
||||||
|
box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.16);
|
||||||
|
transition: transform 0.1s ease-out;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar.collapse {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar.expand {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1199.98px) {
|
||||||
|
.sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar.expand {
|
||||||
|
position: fixed;
|
||||||
|
top: 3.5rem;
|
||||||
|
left: 0;
|
||||||
|
height: auto;
|
||||||
|
min-width: 100%;
|
||||||
|
z-index: 1050;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item:first-of-type {
|
||||||
|
padding-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item:last-of-type {
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .app-sidebar .nav-pills > .nav-item a {
|
||||||
|
border-radius: 0px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item > a {
|
||||||
|
font-size: 1rem !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
padding: .25rem 1rem .25rem .125rem;
|
||||||
|
}
|
||||||
|
::deep .app-sidebar,
|
||||||
|
::deep .app-sidebar > .nav-pills,
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item,
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item > a:not(.active) {
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1199.98px) {
|
||||||
|
::deep .app-sidebar > .nav-pills > .nav-item:last-of-type {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
@using DxBlazorApplication1.Services;
|
||||||
|
@inject ITodoService _todoService;
|
||||||
|
|
||||||
|
<EditForm Model="@NewItem" OnSubmit="@ItemAdded">
|
||||||
|
<div style="display: flex; align-items: center; width: 400px;">
|
||||||
|
<div style="margin-right: 10px">Text:</div>
|
||||||
|
<InputText @bind-Value="NewItem.Text" class="form-control" style="margin-right: 10px" id="Item" />
|
||||||
|
<input type="submit" class="btn btn-primary" style="margin-right: 10px" value="Hinzufügen" />
|
||||||
|
<input type="reset" class="btn btn-secondary" value="Leeren" />
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
[Parameter]
|
||||||
|
public required Action OnItemAdded { get; set; }
|
||||||
|
|
||||||
|
private TodoItem NewItem = new TodoItem("");
|
||||||
|
|
||||||
|
public void ItemAdded()
|
||||||
|
{
|
||||||
|
var newItem = new TodoItem(NewItem.Text);
|
||||||
|
NewItem.Text = "";
|
||||||
|
_todoService.AddItem(newItem);
|
||||||
|
|
||||||
|
if (OnItemAdded != null)
|
||||||
|
OnItemAdded();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
@using System.Net.Http
|
||||||
|
@using Microsoft.AspNetCore.Authorization
|
||||||
|
@using Microsoft.AspNetCore.Components.Authorization
|
||||||
|
@using Microsoft.AspNetCore.Components.Forms
|
||||||
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
|
@using Microsoft.JSInterop
|
||||||
|
@using DxBlazorApplication1
|
||||||
|
@using DxBlazorApplication1.Shared
|
||||||
|
|
||||||
|
@using DevExpress.Blazor
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"DetailedErrors": true,
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
|
}
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="wwwroot/css/blazing_berry/bootstrap.min.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container" style="padding-top: 24px;">
|
||||||
|
<h2>Before you start this application</h2>
|
||||||
|
<p>Refer to the <a href="https://docs.devexpress.com/Blazor/401588/common-concepts/supported-browsers" target="_blank">supported browsers</a> list.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11266
Test Stefan/DxBlazorApplication1/DxBlazorApplication1/wwwroot/css/bootstrap/bootstrap.css
vendored
Normal file
11266
Test Stefan/DxBlazorApplication1/DxBlazorApplication1/wwwroot/css/bootstrap/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,86 @@
|
|||||||
|
SIL OPEN FONT LICENSE Version 1.1
|
||||||
|
|
||||||
|
Copyright (c) 2014 Waybury
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Waybury
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
@ -0,0 +1,114 @@
|
|||||||
|
[Open Iconic v1.1.1](http://useiconic.com/open)
|
||||||
|
===========
|
||||||
|
|
||||||
|
### Open Iconic is the open source sibling of [Iconic](http://useiconic.com). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](http://useiconic.com/open#icons)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## What's in Open Iconic?
|
||||||
|
|
||||||
|
* 223 icons designed to be legible down to 8 pixels
|
||||||
|
* Super-light SVG files - 61.8 for the entire set
|
||||||
|
* SVG sprite—the modern replacement for icon fonts
|
||||||
|
* Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats
|
||||||
|
* Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats
|
||||||
|
* PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px.
|
||||||
|
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
#### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](http://useiconic.com/open#icons) and [Reference](http://useiconic.com/open#reference) sections.
|
||||||
|
|
||||||
|
### General Usage
|
||||||
|
|
||||||
|
#### Using Open Iconic's SVGs
|
||||||
|
|
||||||
|
We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute).
|
||||||
|
|
||||||
|
```
|
||||||
|
<img src="/open-iconic/svg/icon-name.svg" alt="icon name">
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Using Open Iconic's SVG Sprite
|
||||||
|
|
||||||
|
Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack.
|
||||||
|
|
||||||
|
Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `<svg>` *tag and a unique class name for each different icon in the* `<use>` *tag.*
|
||||||
|
|
||||||
|
```
|
||||||
|
<svg class="icon">
|
||||||
|
<use xlink:href="open-iconic.svg#account-login" class="icon-account-login"></use>
|
||||||
|
</svg>
|
||||||
|
```
|
||||||
|
|
||||||
|
Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `<svg>` tag with equal width and height dimensions.
|
||||||
|
|
||||||
|
```
|
||||||
|
.icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Coloring icons is even easier. All you need to do is set the `fill` rule on the `<use>` tag.
|
||||||
|
|
||||||
|
```
|
||||||
|
.icon-account-login {
|
||||||
|
fill: #f00;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/).
|
||||||
|
|
||||||
|
#### Using Open Iconic's Icon Font...
|
||||||
|
|
||||||
|
|
||||||
|
##### …with Bootstrap
|
||||||
|
|
||||||
|
You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}`
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
<link href="/open-iconic/font/css/open-iconic-bootstrap.css" rel="stylesheet">
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
<span class="oi oi-icon-name" title="icon name" aria-hidden="true"></span>
|
||||||
|
```
|
||||||
|
|
||||||
|
##### …with Foundation
|
||||||
|
|
||||||
|
You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}`
|
||||||
|
|
||||||
|
```
|
||||||
|
<link href="/open-iconic/font/css/open-iconic-foundation.css" rel="stylesheet">
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
<span class="fi-icon-name" title="icon name" aria-hidden="true"></span>
|
||||||
|
```
|
||||||
|
|
||||||
|
##### …on its own
|
||||||
|
|
||||||
|
You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}`
|
||||||
|
|
||||||
|
```
|
||||||
|
<link href="/open-iconic/font/css/open-iconic.css" rel="stylesheet">
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
<span class="oi" data-glyph="icon-name" title="icon name" aria-hidden="true"></span>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
### Icons
|
||||||
|
|
||||||
|
All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT).
|
||||||
|
|
||||||
|
### Fonts
|
||||||
|
|
||||||
|
All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -0,0 +1,543 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<!--
|
||||||
|
2014-7-1: Created.
|
||||||
|
-->
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014
|
||||||
|
By P.J. Onori
|
||||||
|
Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net)
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="open-iconic" horiz-adv-x="800" >
|
||||||
|
<font-face
|
||||||
|
font-family="Icons"
|
||||||
|
font-weight="400"
|
||||||
|
font-stretch="normal"
|
||||||
|
units-per-em="800"
|
||||||
|
panose-1="2 0 5 3 0 0 0 0 0 0"
|
||||||
|
ascent="800"
|
||||||
|
descent="0"
|
||||||
|
bbox="-0.5 -101 802 800.126"
|
||||||
|
underline-thickness="50"
|
||||||
|
underline-position="-100"
|
||||||
|
unicode-range="U+E000-E0DE"
|
||||||
|
/>
|
||||||
|
<missing-glyph />
|
||||||
|
<glyph glyph-name="" unicode=""
|
||||||
|
d="M300 700h500v-700h-500v100h400v500h-400v100zM400 500l200 -150l-200 -150v100h-400v100h400v100z" />
|
||||||
|
<glyph glyph-name="1" unicode=""
|
||||||
|
d="M300 700h500v-700h-500v100h400v500h-400v100zM200 500v-100h400v-100h-400v-100l-200 150z" />
|
||||||
|
<glyph glyph-name="2" unicode=""
|
||||||
|
d="M350 700c193 0 350 -157 350 -350v-50h100l-200 -200l-200 200h100v50c0 138 -112 250 -250 250s-250 -112 -250 -250c0 193 157 350 350 350z" />
|
||||||
|
<glyph glyph-name="3" unicode=""
|
||||||
|
d="M450 700c193 0 350 -157 350 -350c0 138 -112 250 -250 250s-250 -112 -250 -250v-50h100l-200 -200l-200 200h100v50c0 193 157 350 350 350z" />
|
||||||
|
<glyph glyph-name="4" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM100 500h600v-100h-600v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="5" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM0 500h600v-100h-600v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="6" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM200 500h600v-100h-600v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="7" unicode=""
|
||||||
|
d="M400 700c75 0 146 -23 206 -59l-75 -225l-322 234c57 31 122 50 191 50zM125 588l191 -138l-310 -222c-4 24 -6 47 -6 72c0 114 49 215 125 288zM688 575c69 -72 112 -168 112 -275c0 -35 -8 -68 -16 -100h-218zM216 253l112 -347c-128 23 -232 109 -287 222zM372 100
|
||||||
|
h372c-64 -109 -177 -185 -310 -197z" />
|
||||||
|
<glyph glyph-name="8" unicode="" horiz-adv-x="600"
|
||||||
|
d="M200 800h100v-500h200l-247 -300l-253 300h200v500z" />
|
||||||
|
<glyph glyph-name="9" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 700v-300h-200l300 -300l300 300h-200v300h-200z" />
|
||||||
|
<glyph glyph-name="a" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300l300 -300v200h300v200h-300v200z" />
|
||||||
|
<glyph glyph-name="b" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700v-200h-300v-200h300v-200l300 300z" />
|
||||||
|
<glyph glyph-name="c" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300h200v-300h200v300h200z" />
|
||||||
|
<glyph glyph-name="d" unicode=""
|
||||||
|
d="M300 600v-200h500v-100h-500v-200l-300 247z" />
|
||||||
|
<glyph glyph-name="e" unicode=""
|
||||||
|
d="M500 600l300 -247l-300 -253v200h-500v100h500v200z" />
|
||||||
|
<glyph glyph-name="f" unicode="" horiz-adv-x="600"
|
||||||
|
d="M200 800h200v-500h200l-297 -300l-303 300h200v500z" />
|
||||||
|
<glyph glyph-name="10" unicode=""
|
||||||
|
d="M300 700v-200h500v-200h-500v-200l-300 297z" />
|
||||||
|
<glyph glyph-name="11" unicode=""
|
||||||
|
d="M500 700l300 -297l-300 -303v200h-500v200h500v200z" />
|
||||||
|
<glyph glyph-name="12" unicode="" horiz-adv-x="600"
|
||||||
|
d="M297 800l303 -300h-200v-500h-200v500h-200z" />
|
||||||
|
<glyph glyph-name="13" unicode="" horiz-adv-x="600"
|
||||||
|
d="M247 800l253 -300h-200v-500h-100v500h-200z" />
|
||||||
|
<glyph glyph-name="14" unicode=""
|
||||||
|
d="M400 800h100v-800h-100v800zM200 700h100v-600h-100v600zM600 600h100v-400h-100v400zM0 500h100v-200h-100v200z" />
|
||||||
|
<glyph glyph-name="15" unicode=""
|
||||||
|
d="M116 600l72 -72c-54 -54 -88 -126 -88 -209s34 -159 88 -213l-72 -72c-72 72 -116 175 -116 285s44 209 116 281zM684 600c72 -72 116 -171 116 -281s-44 -213 -116 -285l-72 72c54 54 88 130 88 213s-34 155 -88 209zM259 460l69 -72c-18 -18 -28 -41 -28 -69
|
||||||
|
s10 -54 28 -72l-69 -72c-36 36 -59 89 -59 144s23 105 59 141zM541 459c36 -36 59 -85 59 -140s-23 -108 -59 -144l-69 72c18 18 28 44 28 72s-10 51 -28 69z" />
|
||||||
|
<glyph glyph-name="16" unicode="" horiz-adv-x="400"
|
||||||
|
d="M200 800c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM100 319c31 -11 65 -19 100 -19s68 8 100 19v-319l-100 100l-100 -100v319z" />
|
||||||
|
<glyph glyph-name="17" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300c0 -66 21 -126 56 -175l419 419c-49 35 -109 56 -175 56zM644 575l-419 -419c49 -35 109 -56 175 -56c166 0 300 134 300 300
|
||||||
|
c0 66 -21 126 -56 175z" />
|
||||||
|
<glyph glyph-name="18" unicode=""
|
||||||
|
d="M0 700h100v-600h700v-100h-800v700zM500 700h200v-500h-200v500zM200 500h200v-300h-200v300z" />
|
||||||
|
<glyph glyph-name="19" unicode=""
|
||||||
|
d="M397 800c13 1 23 -4 34 -13c2 -2 214 -254 241 -287h128v-100h-100v-366c0 -18 -16 -34 -34 -34h-532c-18 0 -34 16 -34 34v366h-100v100h128l234 281c9 11 22 18 35 19zM400 672l-144 -172h288zM250 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50
|
||||||
|
v100c0 28 -22 50 -50 50zM550 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50v100c0 28 -22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="1a" unicode=""
|
||||||
|
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9zM100 600v-400h500v400h-500z" />
|
||||||
|
<glyph glyph-name="1b" unicode=""
|
||||||
|
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9z" />
|
||||||
|
<glyph glyph-name="1c" unicode=""
|
||||||
|
d="M92 650c0 23 19 50 45 50h3h5h5h500c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-141c9 -17 120 -231 166 -309c16 -26 34 -61 34 -106c0 -39 -15 -77 -41 -103h-3c-26 -25 -62 -41 -100 -41h-512c-39 0 -77 15 -103 41s-41 64 -41 103c0 46 18 80 34 106
|
||||||
|
c46 78 157 292 166 309v141h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51zM500 600h-200v-162l-6 -10s-63 -123 -119 -228h450c-56 105 -119 228 -119 228l-6 10v162z" />
|
||||||
|
<glyph glyph-name="1d" unicode=""
|
||||||
|
d="M400 800c110 0 200 -90 200 -200c0 -104 52 -198 134 -266c41 -34 66 -82 66 -134h-800c0 52 25 100 66 134c82 68 134 162 134 266c0 110 90 200 200 200zM300 100h200c0 -55 -45 -100 -100 -100s-100 45 -100 100z" />
|
||||||
|
<glyph glyph-name="1e" unicode="" horiz-adv-x="600"
|
||||||
|
d="M150 800h50l350 -250l-225 -147l225 -153l-350 -250h-50v250l-75 -75l-75 75l150 150l-150 150l75 75l75 -75v250zM250 650v-200l150 100zM250 350v-200l150 100z" />
|
||||||
|
<glyph glyph-name="1f" unicode=""
|
||||||
|
d="M0 800h500c110 0 200 -90 200 -200c0 -47 -17 -91 -44 -125c85 -40 144 -125 144 -225c0 -138 -112 -250 -250 -250h-550v100c55 0 100 45 100 100v400c0 55 -45 100 -100 100v100zM300 700v-200h100c55 0 100 45 100 100s-45 100 -100 100h-100zM300 400v-300h150
|
||||||
|
c83 0 150 67 150 150s-67 150 -150 150h-150z" />
|
||||||
|
<glyph glyph-name="20" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800v-300h200l-300 -500v300h-200z" />
|
||||||
|
<glyph glyph-name="21" unicode=""
|
||||||
|
d="M100 800h300v-300l100 100l100 -100v300h50c28 0 50 -22 50 -50v-550h-550c-28 0 -50 -22 -50 -50s22 -50 50 -50h550v-100h-550c-83 0 -150 67 -150 150v550l3 19c8 39 39 70 78 78z" />
|
||||||
|
<glyph glyph-name="22" unicode="" horiz-adv-x="400"
|
||||||
|
d="M0 800h400v-800l-200 200l-200 -200v800z" />
|
||||||
|
<glyph glyph-name="23" unicode=""
|
||||||
|
d="M0 800h800v-100h-800v100zM0 600h300v-103h203v103h297v-591c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v591z" />
|
||||||
|
<glyph glyph-name="24" unicode=""
|
||||||
|
d="M300 800h200c55 0 100 -45 100 -100v-100h191c6 0 9 -3 9 -9v-241c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v241c0 6 3 9 9 9h191v100c0 55 45 100 100 100zM300 700v-100h200v100h-200zM0 209c16 -6 32 -9 50 -9h700c18 0 34 3 50 9v-200c0 -6 -3 -9 -9 -9h-782
|
||||||
|
c-6 0 -9 3 -9 9v200z" />
|
||||||
|
<glyph glyph-name="25" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800c58 0 110 -16 147 -53s53 -89 53 -147h-100c0 39 -11 61 -25 75s-36 25 -75 25c-35 0 -55 -10 -72 -31s-28 -55 -28 -94c0 -51 20 -107 28 -175h172v-100h-178c-14 -60 -49 -127 -113 -200h491v-100h-600v122l16 12c69 69 95 121 106 166h-122v100h125
|
||||||
|
c-8 50 -25 106 -25 175c0 58 16 114 50 156c34 43 88 69 150 69z" />
|
||||||
|
<glyph glyph-name="26" unicode=""
|
||||||
|
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-700c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v700v2c0 20 15 42 34 48zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50zM350 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h300c28 0 50 22 50 50
|
||||||
|
s-22 50 -50 50h-300zM100 400v-400h600v400h-600z" />
|
||||||
|
<glyph glyph-name="27" unicode=""
|
||||||
|
d="M744 797l6 -3l44 -44c4 -4 3 -8 0 -12l-266 -375l-15 -13l-25 -12c-23 72 -78 127 -150 150l12 25l13 15l375 266zM266 400c74 0 134 -60 134 -134c0 -147 -119 -266 -266 -266c-48 0 -95 12 -134 34c80 46 134 133 134 232c0 74 58 134 132 134z" />
|
||||||
|
<glyph glyph-name="28" unicode=""
|
||||||
|
d="M9 451c0 23 19 50 46 50c8 0 19 -3 26 -7l131 -66l29 22c-79 81 -1 250 118 250s197 -167 119 -250l28 -22l131 66c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-115 -56c9 -16 19 -33 25 -50h68c28 0 50 -22 50 -50s-22 -50 -50 -50h-50
|
||||||
|
c0 -23 -2 -45 -6 -66l78 -40c21 -5 37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11l-65 35c-24 -46 -62 -86 -103 -110c-35 19 -60 45 -60 72v135v4v5v6v5v5v87c0 28 -22 50 -50 50c-24 0 -45 -17 -50 -40c1 -3 1 -8 1 -11s0 -8 -1 -11v-82v-4v-5v-144
|
||||||
|
c0 -28 -24 -53 -59 -72c-41 25 -79 64 -103 110l-66 -35c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49l78 40c-4 21 -6 43 -6 66h-50h-5c-28 0 -50 22 -50 50c0 26 22 50 50 50h5h69c6 17 16 34 25 50l-116 56c-16 7 -28 27 -28 45z" />
|
||||||
|
<glyph glyph-name="29" unicode=""
|
||||||
|
d="M600 700h91c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-91v600zM210 503l290 147v-500l-250 125v-3c-15 0 -25 -8 -28 -22l75 -178c11 -25 0 -58 -25 -69s-58 0 -69 25l-103 272h-91c-6 0 -9 3 -9 9v182c0 6 3 9 9 9h182z" />
|
||||||
|
<glyph glyph-name="2a" unicode=""
|
||||||
|
d="M9 800h682c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM100 700v-200h500v200h-500zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-300h100v300h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||||
|
<glyph glyph-name="2b" unicode=""
|
||||||
|
d="M0 800h700v-200h-700v200zM0 500h700v-491c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v491zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||||
|
<glyph glyph-name="2c" unicode=""
|
||||||
|
d="M409 800h182c6 0 10 -4 12 -9l94 -182c2 -5 6 -9 12 -9h82c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v441c0 83 67 150 150 150h141c6 0 10 4 12 9l94 182c2 5 6 9 12 9zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z
|
||||||
|
M500 500c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM500 400c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||||
|
<glyph glyph-name="2d" unicode=""
|
||||||
|
d="M0 600h800l-400 -400z" />
|
||||||
|
<glyph glyph-name="2e" unicode="" horiz-adv-x="400"
|
||||||
|
d="M400 800v-800l-400 400z" />
|
||||||
|
<glyph glyph-name="2f" unicode="" horiz-adv-x="400"
|
||||||
|
d="M0 800l400 -400l-400 -400v800z" />
|
||||||
|
<glyph glyph-name="30" unicode=""
|
||||||
|
d="M400 600l400 -400h-800z" />
|
||||||
|
<glyph glyph-name="31" unicode=""
|
||||||
|
d="M0 550c0 23 20 50 46 50h3h5h4h200c17 0 37 -13 44 -28l38 -72h444c14 0 19 -12 15 -25l-81 -250c-4 -13 -21 -25 -35 -25h-350c-14 0 -30 12 -34 25c-27 83 -54 167 -81 250l-10 25h-150c-2 0 -5 -1 -7 -1c-28 0 -51 23 -51 51zM358 100c28 0 50 -22 50 -50
|
||||||
|
s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM658 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||||
|
<glyph glyph-name="32" unicode=""
|
||||||
|
d="M0 700h500v-100h-300v-300h-100l-100 -100v500zM300 500h500v-500l-100 100h-400v400z" />
|
||||||
|
<glyph glyph-name="33" unicode=""
|
||||||
|
d="M641 700l143 -141l-493 -493c-71 76 -146 148 -219 222l-72 71l141 141c50 -51 101 -101 153 -150c116 117 234 231 347 350z" />
|
||||||
|
<glyph glyph-name="34" unicode=""
|
||||||
|
d="M150 600l250 -250l250 250l150 -150l-400 -400l-400 400z" />
|
||||||
|
<glyph glyph-name="35" unicode="" horiz-adv-x="600"
|
||||||
|
d="M400 800l150 -150l-250 -250l250 -250l-150 -150l-400 400z" />
|
||||||
|
<glyph glyph-name="36" unicode="" horiz-adv-x="600"
|
||||||
|
d="M150 800l400 -400l-400 -400l-150 150l250 250l-250 250z" />
|
||||||
|
<glyph glyph-name="37" unicode=""
|
||||||
|
d="M400 600l400 -400l-150 -150l-250 250l-250 -250l-150 150z" />
|
||||||
|
<glyph glyph-name="38" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM600 622l-250 -250l-100 100l-72 -72l172 -172l322 322z" />
|
||||||
|
<glyph glyph-name="39" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM250 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||||
|
<glyph glyph-name="3a" unicode=""
|
||||||
|
d="M350 800c28 0 50 -22 50 -50v-50h75c14 0 25 -11 25 -25v-75h-300v75c0 14 11 25 25 25h75v50c0 28 22 50 50 50zM25 700h75v-200h500v200h75c14 0 25 -11 25 -25v-650c0 -14 -11 -25 -25 -25h-650c-14 0 -25 11 -25 25v650c0 14 11 25 25 25z" />
|
||||||
|
<glyph glyph-name="3b" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM350 600h100v-181c23 -24 47 -47 72 -69l-72 -72c-27 30 -55 59 -84 88l-16 12
|
||||||
|
v222z" />
|
||||||
|
<glyph glyph-name="3c" unicode=""
|
||||||
|
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-191v50c0 83 -67 150 -150 150s-150 -67 -150 -150v-50h-272c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM434 400h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1
|
||||||
|
v-150h150l-200 -200l-200 200h150v150v2c0 20 15 42 34 48z" />
|
||||||
|
<glyph glyph-name="3d" unicode=""
|
||||||
|
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-141l-200 200l-200 -200h-222c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM450 350l250 -250h-200v-50c0 -28 -22 -50 -50 -50s-50 22 -50 50v50h-200z" />
|
||||||
|
<glyph glyph-name="3e" unicode=""
|
||||||
|
d="M450 700c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200s90 200 200 200c23 114 129 200 250 200z" />
|
||||||
|
<glyph glyph-name="3f" unicode=""
|
||||||
|
d="M250 800c82 0 154 -40 200 -100c-143 0 -270 -85 -325 -209c-36 -10 -70 -25 -100 -47c-16 33 -25 67 -25 106c0 138 112 250 250 250zM450 600c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200
|
||||||
|
s90 200 200 200c23 114 129 200 250 200z" />
|
||||||
|
<glyph glyph-name="40" unicode=""
|
||||||
|
d="M500 700h100l-300 -600h-100zM100 600h100l-100 -200l100 -200h-100l-100 200zM600 600h100l100 -200l-100 -200h-100l100 200z" />
|
||||||
|
<glyph glyph-name="41" unicode=""
|
||||||
|
d="M350 800h100l50 -119l28 -12l119 50l72 -72l-50 -119l12 -28l119 -50v-100l-119 -50l-12 -28l50 -119l-72 -72l-119 50l-28 -12l-50 -119h-100l-50 119l-28 12l-119 -50l-72 72l50 119l-12 28l-119 50v100l119 50l12 28l-50 119l72 72l119 -50l28 12zM400 550
|
||||||
|
c-83 0 -150 -67 -150 -150s67 -150 150 -150s150 67 150 150s-67 150 -150 150z" />
|
||||||
|
<glyph glyph-name="42" unicode=""
|
||||||
|
d="M0 800h800v-200h-800v200zM200 500h400l-200 -200zM0 100h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="43" unicode=""
|
||||||
|
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM500 600v-400l-200 200z" />
|
||||||
|
<glyph glyph-name="44" unicode=""
|
||||||
|
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM300 600l200 -200l-200 -200v400z" />
|
||||||
|
<glyph glyph-name="45" unicode=""
|
||||||
|
d="M0 800h800v-100h-800v100zM400 500l200 -200h-400zM0 200h800v-200h-800v200z" />
|
||||||
|
<glyph glyph-name="46" unicode=""
|
||||||
|
d="M150 700c83 0 150 -67 150 -150v-50h100v50c0 83 67 150 150 150s150 -67 150 -150s-67 -150 -150 -150h-50v-100h50c83 0 150 -67 150 -150s-67 -150 -150 -150s-150 67 -150 150v50h-100v-50c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150h50v100h-50
|
||||||
|
c-83 0 -150 67 -150 150s67 150 150 150zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h50v50c0 28 -22 50 -50 50zM550 600c-28 0 -50 -22 -50 -50v-50h50c28 0 50 22 50 50s-22 50 -50 50zM300 400v-100h100v100h-100zM150 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||||
|
s50 22 50 50v50h-50zM500 200v-50c0 -28 22 -50 50 -50s50 22 50 50s-22 50 -50 50h-50z" />
|
||||||
|
<glyph glyph-name="47" unicode=""
|
||||||
|
d="M0 791c0 5 4 9 9 9h782c6 0 9 -4 9 -10v-790l-200 200h-591c-6 0 -9 3 -9 9v582z" />
|
||||||
|
<glyph glyph-name="48" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM600 600l-100 -300l-300 -100l100 300zM400 450c-28 0 -50 -22 -50 -50
|
||||||
|
s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="49" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700v-600c166 0 300 134 300 300s-134 300 -300 300z" />
|
||||||
|
<glyph glyph-name="4a" unicode=""
|
||||||
|
d="M0 800h800v-100h-800v100zM0 600h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100zM750 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||||
|
<glyph glyph-name="4b" unicode=""
|
||||||
|
d="M25 700h750c14 0 25 -11 25 -25v-75h-800v75c0 14 11 25 25 25zM0 500h800v-375c0 -14 -11 -25 -25 -25h-750c-14 0 -25 11 -25 25v375zM100 300v-100h100v100h-100zM300 300v-100h100v100h-100z" />
|
||||||
|
<glyph glyph-name="4c" unicode=""
|
||||||
|
d="M100 800h100v-100h450l100 100l50 -50l-100 -100v-450h100v-100h-100v-100h-100v100h-500v500h-100v100h100v100zM200 600v-350l350 350h-350zM600 550l-350 -350h350v350z" />
|
||||||
|
<glyph glyph-name="4d" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z
|
||||||
|
M200 452c0 20 15 42 34 48h3h3h8c12 0 28 -7 36 -16l91 -90l25 6c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100l6 25l-90 91c-9 8 -16 24 -16 36zM550 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||||
|
<glyph glyph-name="4e" unicode=""
|
||||||
|
d="M300 800h200v-300h200l-300 -300l-300 300h200v300zM0 100h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="4f" unicode=""
|
||||||
|
d="M0 800h800v-100h-800v100zM400 600l300 -300h-200v-300h-200v300h-200z" />
|
||||||
|
<glyph glyph-name="50" unicode=""
|
||||||
|
d="M200 700h600v-600h-600l-200 300zM350 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||||
|
<glyph glyph-name="51" unicode=""
|
||||||
|
d="M400 700c220 0 400 -180 400 -400h-100c0 166 -134 300 -300 300s-300 -134 -300 -300h-100c0 220 180 400 400 400zM341 491l59 -88l59 88c81 -25 141 -101 141 -191c0 -110 -90 -200 -200 -200s-200 90 -200 200c0 90 60 166 141 191z" />
|
||||||
|
<glyph glyph-name="52" unicode=""
|
||||||
|
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300zM100 600v-100h100v100h-100zM100 400v-100h100v100h-100zM100 200v-100h400v100h-400z" />
|
||||||
|
<glyph glyph-name="53" unicode="" horiz-adv-x="600"
|
||||||
|
d="M200 700h100v-100h75c30 0 58 -6 81 -22s44 -44 44 -78v-100h-100v94c-4 3 -13 6 -25 6h-250c-14 0 -25 -11 -25 -25v-50c0 -15 20 -40 34 -44l257 -65c66 -16 109 -73 109 -141v-50c0 -68 -57 -125 -125 -125h-75v-100h-100v100h-75c-30 0 -58 6 -81 22s-44 44 -44 78
|
||||||
|
v100h100v-94c4 -3 13 -6 25 -6h250c14 0 25 11 25 25v50c0 15 -20 40 -34 44l-257 65c-66 16 -109 73 -109 141v50c0 68 57 125 125 125h75v100z" />
|
||||||
|
<glyph glyph-name="54" unicode=""
|
||||||
|
d="M0 700h300v-300l-300 -300v600zM500 700h300v-300l-300 -300v600z" />
|
||||||
|
<glyph glyph-name="55" unicode=""
|
||||||
|
d="M300 700v-600h-300v300zM800 700v-600h-300v300z" />
|
||||||
|
<glyph glyph-name="56" unicode=""
|
||||||
|
d="M300 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300zM800 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300z" />
|
||||||
|
<glyph glyph-name="57" unicode=""
|
||||||
|
d="M0 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300zM500 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300z" />
|
||||||
|
<glyph glyph-name="58" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800l34 -34c11 -11 266 -270 266 -488c0 -165 -135 -300 -300 -300s-300 135 -300 300c0 218 255 477 266 488zM150 328c-28 0 -50 -22 -50 -50c0 -110 90 -200 200 -200c28 0 50 22 50 50s-22 50 -50 50c-55 0 -100 45 -100 100c0 28 -22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="59" unicode=""
|
||||||
|
d="M400 800l400 -500h-800zM0 200h800v-200h-800v200z" />
|
||||||
|
<glyph glyph-name="5a" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800l300 -300h-600zM0 300h600l-300 -300z" />
|
||||||
|
<glyph glyph-name="5b" unicode=""
|
||||||
|
d="M0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200z" />
|
||||||
|
<glyph glyph-name="5c" unicode=""
|
||||||
|
d="M0 700h800v-100l-400 -200l-400 200v100zM0 500l400 -200l400 200v-400h-800v400z" />
|
||||||
|
<glyph glyph-name="5d" unicode=""
|
||||||
|
d="M400 800l400 -200v-600h-800v600zM400 688l-300 -150v-188l300 -150l300 150v188zM200 500h400v-100l-200 -100l-200 100v100z" />
|
||||||
|
<glyph glyph-name="5e" unicode=""
|
||||||
|
d="M600 700c69 0 134 -19 191 -50l-16 -106c-49 35 -109 56 -175 56c-131 0 -240 -84 -281 -200h331l-16 -100h-334c0 -36 8 -68 19 -100h297l-16 -100h-222c55 -61 133 -100 222 -100c78 0 147 30 200 78v-122c-59 -35 -127 -56 -200 -56c-147 0 -274 82 -344 200h-256
|
||||||
|
l19 100h197c-8 32 -16 66 -16 100h-200l25 100h191c45 172 198 300 384 300z" />
|
||||||
|
<glyph glyph-name="5f" unicode=""
|
||||||
|
d="M0 700h700v-100h-700v100zM0 500h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100z" />
|
||||||
|
<glyph glyph-name="60" unicode=""
|
||||||
|
d="M0 800h800v-100h-800v100zM200 600h400l-200 -200zM0 200h800v-200h-800v200z" />
|
||||||
|
<glyph glyph-name="61" unicode=""
|
||||||
|
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM200 600l200 -200l-200 -200v400z" />
|
||||||
|
<glyph glyph-name="62" unicode=""
|
||||||
|
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM600 600v-400l-200 200z" />
|
||||||
|
<glyph glyph-name="63" unicode=""
|
||||||
|
d="M0 800h800v-200h-800v200zM400 400l200 -200h-400zM0 100h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="64" unicode=""
|
||||||
|
d="M0 800h200v-100h-100v-600h600v100h100v-200h-800v800zM400 800h400v-400l-150 150l-250 -250l-100 100l250 250z" />
|
||||||
|
<glyph glyph-name="65" unicode=""
|
||||||
|
d="M403 700c247 0 397 -300 397 -300s-150 -300 -397 -300c-253 0 -403 300 -403 300s150 300 403 300zM400 600c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM400 500c10 0 19 -3 28 -6c-16 -8 -28 -24 -28 -44c0 -28 22 -50 50 -50
|
||||||
|
c20 0 36 12 44 28c3 -9 6 -18 6 -28c0 -55 -45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||||
|
<glyph glyph-name="66" unicode="" horiz-adv-x="900"
|
||||||
|
d="M331 700h3h3c3 1 7 1 10 1c12 0 29 -8 37 -17l94 -93l66 65c57 57 155 57 212 0c58 -58 58 -154 0 -212l-65 -66l93 -94c10 -8 18 -25 18 -38c0 -28 -22 -50 -50 -50c-13 0 -32 9 -40 20l-62 65l-381 -381h-269v272l375 381l-63 63c-9 8 -16 24 -16 36c0 20 16 42 35 48z
|
||||||
|
M447 481l-313 -315l128 -132l316 316z" />
|
||||||
|
<glyph glyph-name="67" unicode=""
|
||||||
|
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300z" />
|
||||||
|
<glyph glyph-name="68" unicode=""
|
||||||
|
d="M200 800c0 0 200 -100 200 -300s-298 -302 -200 -500c0 0 -200 100 -200 300s300 300 200 500zM500 500c0 0 200 -100 200 -300c0 -150 -60 -200 -100 -200h-300c0 200 300 300 200 500z" />
|
||||||
|
<glyph glyph-name="69" unicode=""
|
||||||
|
d="M0 800h100v-800h-100v800zM200 800h300v-100h300l-200 -203l200 -197h-400v100h-200v400z" />
|
||||||
|
<glyph glyph-name="6a" unicode="" horiz-adv-x="400"
|
||||||
|
d="M150 800h150l-100 -200h200l-150 -300h150l-300 -300l-100 300h134l66 200h-200z" />
|
||||||
|
<glyph glyph-name="6b" unicode=""
|
||||||
|
d="M0 800h300v-100h500v-100h-800v200zM0 500h800v-450c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v450z" />
|
||||||
|
<glyph glyph-name="6c" unicode=""
|
||||||
|
d="M150 800c83 0 150 -67 150 -150c0 -66 -41 -121 -100 -141v-118c15 5 33 9 50 9h200c28 0 50 22 50 50v59c-59 20 -100 75 -100 141c0 83 67 150 150 150s150 -67 150 -150c0 -66 -41 -121 -100 -141v-59c0 -82 -68 -150 -150 -150h-200c-14 0 -25 -7 -34 -16
|
||||||
|
c50 -24 84 -74 84 -134c0 -83 -67 -150 -150 -150s-150 67 -150 150c0 66 41 121 100 141v218c-59 20 -100 75 -100 141c0 83 67 150 150 150z" />
|
||||||
|
<glyph glyph-name="6d" unicode=""
|
||||||
|
d="M0 800h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400zM500 400l150 -150l150 150v-400h-400l150 150l-150 150z" />
|
||||||
|
<glyph glyph-name="6e" unicode=""
|
||||||
|
d="M100 800l150 -150l150 150v-400h-400l150 150l-150 150zM400 400h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400z" />
|
||||||
|
<glyph glyph-name="6f" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700c-56 0 -108 -17 -153 -44l22 -19c33 -18 13 -48 -13 -59c-30 -13 -77 10 -65 -41c13 -55 -27 -3 -47 -15c-42 -26 49 -152 31 -156l-59 34c-8 0 -13 -5 -16 -10
|
||||||
|
c1 -30 10 -57 19 -84c28 -11 77 -2 100 -25c47 -28 97 -115 75 -159c34 -13 68 -22 106 -22c101 0 193 48 247 125c3 24 -8 44 -50 44c-69 0 -156 13 -153 97c2 46 101 108 66 143c-30 30 12 39 12 66c0 37 -65 32 -69 50s20 36 41 56c-30 10 -60 19 -94 19zM631 591
|
||||||
|
c-38 -11 -94 -35 -87 -53c6 -15 52 -1 65 -13c11 -10 16 -59 44 -31l22 22v3c-11 26 -26 50 -44 72z" />
|
||||||
|
<glyph glyph-name="70" unicode=""
|
||||||
|
d="M703 800l97 -100l-400 -400l-100 100l-200 -203l-100 100l300 303l100 -100zM0 100h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="71" unicode=""
|
||||||
|
d="M0 700h100v-100h-100v100zM200 700h100v-100h-100v100zM400 700h100v-100h-100v100zM600 700h100v-100h-100v100zM0 500h100v-100h-100v100zM200 500h100v-100h-100v100zM400 500h100v-100h-100v100zM600 500h100v-100h-100v100zM0 300h100v-100h-100v100zM200 300h100
|
||||||
|
v-100h-100v100zM400 300h100v-100h-100v100zM600 300h100v-100h-100v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100zM600 100h100v-100h-100v100z" />
|
||||||
|
<glyph glyph-name="72" unicode=""
|
||||||
|
d="M0 800h200v-200h-200v200zM300 800h200v-200h-200v200zM600 800h200v-200h-200v200zM0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200zM0 200h200v-200h-200v200zM300 200h200v-200h-200v200zM600 200h200v-200h-200v200z" />
|
||||||
|
<glyph glyph-name="73" unicode=""
|
||||||
|
d="M0 800h300v-300h-300v300zM500 800h300v-300h-300v300zM0 300h300v-300h-300v300zM500 300h300v-300h-300v300z" />
|
||||||
|
<glyph glyph-name="74" unicode=""
|
||||||
|
d="M19 800h662c11 0 19 -8 19 -19v-331c0 -28 -22 -50 -50 -50h-600c-28 0 -50 22 -50 50v331c0 11 8 19 19 19zM0 309c16 -6 32 -9 50 -9h600c18 0 34 3 50 9v-290c0 -11 -8 -19 -19 -19h-662c-11 0 -19 8 -19 19v290zM550 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||||
|
s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="75" unicode=""
|
||||||
|
d="M0 700h300v-100h-50c-28 0 -50 -22 -50 -50v-150h300v150c0 28 -22 50 -50 50h-50v100h300v-100h-50c-28 0 -50 -22 -50 -50v-400c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50v150h-300v-150c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50
|
||||||
|
v400c0 28 -22 50 -50 50h-50v100z" />
|
||||||
|
<glyph glyph-name="76" unicode=""
|
||||||
|
d="M400 700c165 0 300 -135 300 -300v-100h50c28 0 50 -22 50 -50v-200c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v350c0 111 -89 200 -200 200s-200 -89 -200 -200v-350c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v200c0 28 22 50 50 50h50v100
|
||||||
|
c0 165 135 300 300 300z" />
|
||||||
|
<glyph glyph-name="77" unicode=""
|
||||||
|
d="M0 500c0 109 91 200 200 200s200 -91 200 -200c0 109 91 200 200 200s200 -91 200 -200c0 -55 -23 -105 -59 -141l-341 -340l-341 340c-36 36 -59 86 -59 141z" />
|
||||||
|
<glyph glyph-name="78" unicode=""
|
||||||
|
d="M400 700l400 -300l-100 3v-403h-200v200h-200v-200h-200v400h-100z" />
|
||||||
|
<glyph glyph-name="79" unicode=""
|
||||||
|
d="M0 800h800v-800h-800v800zM100 700v-300l100 100l400 -400h100v100l-200 200l100 100l100 -100v300h-600z" />
|
||||||
|
<glyph glyph-name="7a" unicode=""
|
||||||
|
d="M19 800h762c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-762c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 600v-300h100l100 -100h200l100 100h100v300h-600z" />
|
||||||
|
<glyph glyph-name="7b" unicode=""
|
||||||
|
d="M200 600c80 0 142 -56 200 -122c58 66 119 122 200 122c131 0 200 -101 200 -200s-69 -200 -200 -200c-81 0 -142 56 -200 122c-58 -66 -121 -122 -200 -122c-131 0 -200 101 -200 200s69 200 200 200zM200 500c-74 0 -100 -54 -100 -100s26 -100 100 -100
|
||||||
|
c42 0 88 47 134 100c-46 53 -92 100 -134 100zM600 500c-43 0 -88 -47 -134 -100c46 -53 91 -100 134 -100c74 0 100 54 100 100s-26 100 -100 100z" />
|
||||||
|
<glyph glyph-name="7c" unicode="" horiz-adv-x="400"
|
||||||
|
d="M300 800c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100zM150 550c83 0 150 -69 150 -150c0 -66 -100 -214 -100 -250c0 -28 22 -50 50 -50s50 22 50 50h100c0 -83 -67 -150 -150 -150s-150 64 -150 150s100 222 100 250s-22 50 -50 50
|
||||||
|
s-50 -22 -50 -50h-100c0 83 67 150 150 150z" />
|
||||||
|
<glyph glyph-name="7d" unicode=""
|
||||||
|
d="M200 800h500v-100h-122c-77 -197 -156 -392 -234 -588l-6 -12h162v-100h-500v100h122c77 197 156 392 234 588l7 12h-163v100z" />
|
||||||
|
<glyph glyph-name="7e" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="7f" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="80" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="81" unicode=""
|
||||||
|
d="M550 800c138 0 250 -112 250 -250s-112 -250 -250 -250c-16 0 -32 0 -47 3l-3 -3v-100h-200v-200h-300v200l303 303c-3 15 -3 31 -3 47c0 138 112 250 250 250zM600 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||||
|
<glyph glyph-name="82" unicode=""
|
||||||
|
d="M134 600h3h4h4h5h500c28 0 50 -22 50 -50v-350h100v-150c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v150h100v350v2c0 20 15 42 34 48zM200 500v-300h100v-100h200v100h100v300h-400z" />
|
||||||
|
<glyph glyph-name="83" unicode=""
|
||||||
|
d="M0 800h400v-400h-400v400zM500 600h100v-400h-400v100h300v300zM700 400h100v-400h-400v100h300v300z" />
|
||||||
|
<glyph glyph-name="84" unicode="" horiz-adv-x="600"
|
||||||
|
d="M337 694c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-300 -150c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49zM437 544c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-400 -200c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50
|
||||||
|
c0 21 16 44 37 49zM437 344c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-106 -56c24 -4 43 -26 43 -50c0 -28 -23 -51 -51 -51c-2 0 -6 1 -8 1h-200c-26 1 -48 24 -48 50c0 16 12 36 26 44zM151 -50c0 23 20 50 46 50h3h4h5h100c28 0 50 -22 50 -50
|
||||||
|
s-22 -50 -50 -50h-100c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||||
|
<glyph glyph-name="85" unicode=""
|
||||||
|
d="M199 800h100v-200h-200v100h100v100zM586 797h1c18 1 38 1 56 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0l-44 -44
|
||||||
|
c-8 -13 -27 -24 -42 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l43 44c32 33 72 53 128 56zM208 490c4 5 14 16 22 16h3c2 0 6 1 8 1c28 0 50 -22 50 -50c0 -11 -6 -27 -14 -35l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0l44 44c8 13 27 24 42 24
|
||||||
|
c28 0 50 -22 50 -50c0 -15 -11 -35 -24 -43l-43 -44c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281zM499 200h200v-100h-100v-100h-100v200z" />
|
||||||
|
<glyph glyph-name="86" unicode=""
|
||||||
|
d="M586 797c18 1 39 1 57 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-62 -62 -132 -81 -182 -78s-69 17 -84 25s-26 27 -26 44c0 28 22 51 50 51c8 0 19 -3 26 -7c0 0 15 -11 41 -13s62 3 106 47l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0
|
||||||
|
c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43c32 33 72 53 128 56zM386 566c50 -2 64 -17 85 -22s37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11c0 0 -19 9 -47 10s-63 -4 -103 -44l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0
|
||||||
|
c8 13 27 24 42 24c28 0 50 -22 50 -50c0 -15 -10 -35 -23 -43c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281l150 150c60 60 128 78 178 76z" />
|
||||||
|
<glyph glyph-name="87" unicode=""
|
||||||
|
d="M0 700h300v-300h-300v300zM400 700h400v-100h-400v100zM400 500h300v-100h-300v100zM0 300h300v-300h-300v300zM400 300h400v-100h-400v100zM400 100h300v-100h-300v100z" />
|
||||||
|
<glyph glyph-name="88" unicode=""
|
||||||
|
d="M50 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 700h600v-100h-600v100zM50 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 500h600v-100h-600v100zM50 300c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||||
|
s22 50 50 50zM200 300h600v-100h-600v100zM50 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 100h600v-100h-600v100z" />
|
||||||
|
<glyph glyph-name="89" unicode=""
|
||||||
|
d="M800 800l-400 -800l-100 300l-300 100z" />
|
||||||
|
<glyph glyph-name="8a" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 700c110 0 200 -90 200 -200v-100h100v-400h-600v400h100v100c0 110 90 200 200 200zM300 600c-56 0 -100 -44 -100 -100v-100h200v100c0 56 -44 100 -100 100z" />
|
||||||
|
<glyph glyph-name="8b" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800c110 0 200 -90 200 -200v-200h100v-400h-600v400h400v200c0 56 -44 100 -100 100s-100 -44 -100 -100h-100c0 110 90 200 200 200z" />
|
||||||
|
<glyph glyph-name="8c" unicode=""
|
||||||
|
d="M400 700v-100c-111 0 -200 -89 -200 -200h100l-150 -200l-150 200h100c0 165 135 300 300 300zM650 600l150 -200h-100c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-100z" />
|
||||||
|
<glyph glyph-name="8d" unicode=""
|
||||||
|
d="M100 800h600v-300h100l-150 -250l-150 250h100v200h-400v-100h-100v200zM150 550l150 -250h-100v-200h400v100h100v-200h-600v300h-100z" />
|
||||||
|
<glyph glyph-name="8e" unicode=""
|
||||||
|
d="M600 700l200 -150l-200 -150v100h-500v-100h-100v100c0 55 45 100 100 100h500v100zM200 300v-100h500v100h100v-100c0 -55 -45 -100 -100 -100h-500v-100l-200 150z" />
|
||||||
|
<glyph glyph-name="8f" unicode="" horiz-adv-x="900"
|
||||||
|
d="M350 800c193 0 350 -157 350 -350c0 -60 -17 -117 -44 -166c5 -3 12 -8 16 -12l100 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 100c-4 3 -9 9 -12 13c-49 -26 -107 -41 -166 -41c-193 0 -350 157 -350 350s157 350 350 350zM350 200
|
||||||
|
c142 0 250 108 250 250c0 139 -111 250 -250 250s-250 -111 -250 -250s111 -250 250 -250z" />
|
||||||
|
<glyph glyph-name="90" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 800c166 0 300 -134 300 -300c0 -200 -300 -500 -300 -500s-300 300 -300 500c0 166 134 300 300 300zM300 700c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200z" />
|
||||||
|
<glyph glyph-name="91" unicode="" horiz-adv-x="900"
|
||||||
|
d="M0 800h800v-541c1 -3 1 -8 1 -11s0 -7 -1 -10v-238h-800v800zM495 250c0 26 22 50 50 50h5h150v400h-600v-600h600v100h-150h-5c-28 0 -50 22 -50 50zM350 600c83 0 150 -67 150 -150c0 -100 -150 -250 -150 -250s-150 150 -150 250c0 83 67 150 150 150zM350 500
|
||||||
|
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="92" unicode="" horiz-adv-x="600"
|
||||||
|
d="M0 700h200v-600h-200v600zM400 700h200v-600h-200v600z" />
|
||||||
|
<glyph glyph-name="93" unicode="" horiz-adv-x="600"
|
||||||
|
d="M0 700l600 -300l-600 -300v600z" />
|
||||||
|
<glyph glyph-name="94" unicode="" horiz-adv-x="600"
|
||||||
|
d="M300 700c166 0 300 -134 300 -300s-134 -300 -300 -300s-300 134 -300 300s134 300 300 300z" />
|
||||||
|
<glyph glyph-name="95" unicode=""
|
||||||
|
d="M400 700v-600l-400 300zM400 400l400 300v-600z" />
|
||||||
|
<glyph glyph-name="96" unicode=""
|
||||||
|
d="M0 700l400 -300l-400 -300v600zM400 100v600l400 -300z" />
|
||||||
|
<glyph glyph-name="97" unicode=""
|
||||||
|
d="M0 700h200v-600h-200v600zM200 400l500 300v-600z" />
|
||||||
|
<glyph glyph-name="98" unicode=""
|
||||||
|
d="M0 700l500 -300l-500 -300v600zM500 100v600h200v-600h-200z" />
|
||||||
|
<glyph glyph-name="99" unicode="" horiz-adv-x="600"
|
||||||
|
d="M0 700h600v-600h-600v600z" />
|
||||||
|
<glyph glyph-name="9a" unicode=""
|
||||||
|
d="M200 800h400v-200h200v-400h-200v-200h-400v200h-200v400h200v200z" />
|
||||||
|
<glyph glyph-name="9b" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM0 403h800v-100h-800v100zM0 103h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="9c" unicode="" horiz-adv-x="600"
|
||||||
|
d="M278 700c7 2 13 4 22 4c55 0 100 -45 100 -100v-4v-200c0 -55 -45 -100 -100 -100s-100 45 -100 100v200v2c0 44 35 88 78 98zM34 500h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-50c0 -111 89 -200 200 -200s200 89 200 200v50c0 28 22 50 50 50s50 -22 50 -50v-50
|
||||||
|
c0 -148 -109 -270 -250 -294v-106h50c55 0 100 -45 100 -100h-400c0 55 45 100 100 100h50v106c-141 24 -250 146 -250 294v50v2c0 20 15 42 34 48z" />
|
||||||
|
<glyph glyph-name="9d" unicode=""
|
||||||
|
d="M0 500h800v-200h-800v200z" />
|
||||||
|
<glyph glyph-name="9e" unicode=""
|
||||||
|
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-500c0 -28 -22 -50 -50 -50h-250v-100h100c55 0 100 -45 100 -100h-600c0 55 45 100 100 100h100v100h-250c-28 0 -50 22 -50 50v500v2c0 20 15 42 34 48zM100 600v-400h600v400h-600z" />
|
||||||
|
<glyph glyph-name="9f" unicode=""
|
||||||
|
d="M272 700c-14 -40 -22 -83 -22 -128c0 -221 179 -400 400 -400c45 0 88 8 128 22c-53 -158 -202 -272 -378 -272c-221 0 -400 179 -400 400c0 176 114 325 272 378z" />
|
||||||
|
<glyph glyph-name="a0" unicode=""
|
||||||
|
d="M350 700l150 -150h-100v-150h150v100l150 -150l-150 -150v100h-150v-150h100l-150 -150l-150 150h100v150h-150v-100l-150 150l150 150v-100h150v150h-100z" />
|
||||||
|
<glyph glyph-name="a1" unicode=""
|
||||||
|
d="M800 800v-550c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v206c-201 -6 -327 -27 -400 -50v-397c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v409s100 100 600 100z" />
|
||||||
|
<glyph glyph-name="a2" unicode="" horiz-adv-x="700"
|
||||||
|
d="M499 700c51 0 102 -20 141 -59c78 -78 78 -203 0 -281l-250 -244c-48 -48 -127 -48 -175 0s-48 127 0 175l96 97l69 -69l-90 -94l-7 -3c-10 -10 -10 -28 0 -38s28 -10 38 0l250 247c37 40 39 102 0 141s-104 40 -144 0l-278 -275c-66 -69 -68 -179 0 -247
|
||||||
|
c69 -69 181 -69 250 0l9 12l116 113l69 -69l-125 -125c-107 -107 -281 -107 -388 0s-107 281 0 388l278 272c39 39 90 59 141 59z" />
|
||||||
|
<glyph glyph-name="a3" unicode=""
|
||||||
|
d="M600 800l200 -200l-100 -100l-200 200zM400 600l200 -200l-400 -400h-200v200z" />
|
||||||
|
<glyph glyph-name="a4" unicode=""
|
||||||
|
d="M550 800c83 0 150 -90 150 -200s-67 -200 -150 -200c-22 0 -40 8 -59 19c6 26 9 52 9 81c0 84 -27 158 -72 212c27 52 71 88 122 88zM250 700c83 0 150 -90 150 -200s-67 -200 -150 -200s-150 90 -150 200s67 200 150 200zM725 384c44 -22 75 -66 75 -118v-166h-200v66
|
||||||
|
c0 50 -17 96 -44 134c66 2 126 33 169 84zM75 284c45 -53 106 -84 175 -84s130 31 175 84c44 -22 75 -66 75 -118v-166h-500v166c0 52 31 96 75 118z" />
|
||||||
|
<glyph glyph-name="a5" unicode=""
|
||||||
|
d="M400 800c110 0 200 -112 200 -250s-90 -250 -200 -250s-200 112 -200 250s90 250 200 250zM191 300c54 -61 128 -100 209 -100s155 39 209 100c106 -5 191 -92 191 -200v-100h-800v100c0 108 85 195 191 200z" />
|
||||||
|
<glyph glyph-name="a6" unicode="" horiz-adv-x="600"
|
||||||
|
d="M19 800h462c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-462c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 700v-500h300v500h-300zM250 150c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="a7" unicode=""
|
||||||
|
d="M350 800c17 0 34 -1 50 -3v-397l-297 297c63 64 150 103 247 103zM500 694c169 -25 300 -168 300 -344c0 -193 -157 -350 -350 -350c-85 0 -161 31 -222 81l272 272v341zM91 562l237 -234l-212 -212c-70 55 -116 138 -116 234c0 84 35 158 91 212z" />
|
||||||
|
<glyph glyph-name="a8" unicode=""
|
||||||
|
d="M92 650c0 23 20 50 46 50h3h4h5h400c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-200h100c55 0 100 -45 100 -100h-300v-300l-56 -100l-44 100v300h-300c0 55 45 100 100 100h100v200h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||||
|
<glyph glyph-name="a9" unicode=""
|
||||||
|
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 600v-400l300 200z" />
|
||||||
|
<glyph glyph-name="aa" unicode=""
|
||||||
|
d="M300 800h200v-300h300v-200h-300v-300h-200v300h-300v200h300v300z" />
|
||||||
|
<glyph glyph-name="ab" unicode=""
|
||||||
|
d="M300 800h100v-400h-100v400zM172 656l62 -78l-40 -31c-58 -46 -94 -117 -94 -197c0 -139 111 -250 250 -250s250 111 250 250c0 80 -39 151 -97 197l-37 31l62 78l38 -31c82 -64 134 -164 134 -275c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 111 53 211 134 275z
|
||||||
|
" />
|
||||||
|
<glyph glyph-name="ac" unicode=""
|
||||||
|
d="M200 800h400v-200h-400v200zM9 500h782c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-91v200h-600v-200h-91c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM200 300h400v-300h-400v300z" />
|
||||||
|
<glyph glyph-name="ad" unicode=""
|
||||||
|
d="M0 700h100v-700h-100v700zM700 700h100v-700h-100v700zM200 600h200v-100h-200v100zM300 400h200v-100h-200v100zM400 200h200v-100h-200v100z" />
|
||||||
|
<glyph glyph-name="ae" unicode=""
|
||||||
|
d="M325 700c42 -141 87 -280 131 -419c29 74 59 148 88 222c30 -57 58 -114 87 -172h169v-100h-231l-13 28c-37 -92 -74 -184 -112 -275c-38 129 -79 257 -119 385c-42 -133 -83 -267 -125 -400c-28 88 -56 175 -84 262h-116v100h188l9 -34l3 -6c42 137 83 273 125 409z" />
|
||||||
|
<glyph glyph-name="af" unicode=""
|
||||||
|
d="M200 600c0 57 43 100 100 100s100 -43 100 -100c0 -28 -18 -48 -28 -72c-3 -6 -3 -16 -3 -28h231v-231c12 0 22 0 28 3c24 10 44 28 72 28c57 0 100 -43 100 -100s-43 -100 -100 -100c-28 0 -48 18 -72 28c-6 3 -16 3 -28 3v-231h-231c0 12 0 22 3 28c10 24 28 44 28 72
|
||||||
|
c0 57 -43 100 -100 100s-100 -43 -100 -100c0 -28 18 -48 28 -72c3 -6 3 -16 3 -28h-231v600h231c0 12 0 22 -3 28c-10 24 -28 44 -28 72z" />
|
||||||
|
<glyph glyph-name="b0" unicode="" horiz-adv-x="500"
|
||||||
|
d="M247 700c84 0 148 -20 191 -59s59 -93 59 -141c0 -117 -69 -181 -119 -225s-81 -67 -81 -150v-25h-100v25c0 117 65 181 115 225s85 67 85 150c0 25 -8 48 -28 66s-56 34 -122 34s-97 -18 -116 -37s-27 -43 -31 -69l-100 12c5 38 19 88 59 128s103 66 188 66zM197 0h100
|
||||||
|
v-100h-100v100z" />
|
||||||
|
<glyph glyph-name="b1" unicode=""
|
||||||
|
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -69 -48 -127 -112 -144c-22 55 -75 94 -138 94c-20 0 -39 -5 -56 -12c-17 64 -75 112 -144 112s-127 -48 -144 -112c-17 7 -36 12 -56 12c-37 0 -71 -12 -97 -34c-33 36 -53 82 -53 134
|
||||||
|
c0 110 90 200 200 200c23 114 129 200 250 200zM334 300h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-200c0 -28 -22 -50 -50 -50s-50 22 -50 50v200v2c0 20 15 42 34 48zM134 200h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2
|
||||||
|
c0 20 15 42 34 48zM534 200h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2c0 20 15 42 34 48z" />
|
||||||
|
<glyph glyph-name="b2" unicode=""
|
||||||
|
d="M600 800l200 -150l-200 -150v100h-50l-153 -191l175 -206l6 -3h22v100l200 -150l-200 -150v100h-25c-35 0 -56 12 -78 38l-166 190l-153 -190c-22 -27 -43 -38 -78 -38h-100v100h100l166 206l-163 191l-3 3h-100v100h100c34 0 56 -12 78 -38l153 -178l141 178
|
||||||
|
c22 27 43 38 78 38h50v100z" />
|
||||||
|
<glyph glyph-name="b3" unicode=""
|
||||||
|
d="M400 800c110 0 209 -47 281 -119l119 119v-300h-300l109 109c-54 55 -126 91 -209 91c-166 0 -300 -134 -300 -300s134 -300 300 -300c83 0 158 34 212 88l72 -72c-72 -72 -174 -116 -284 -116c-220 0 -400 180 -400 400s180 400 400 400z" />
|
||||||
|
<glyph glyph-name="b4" unicode=""
|
||||||
|
d="M400 800h400v-400l-166 166l-400 -400l166 -166h-400v400l166 -166l400 400z" />
|
||||||
|
<glyph glyph-name="b5" unicode="" horiz-adv-x="600"
|
||||||
|
d="M250 800l250 -300h-200v-200h200l-250 -300l-250 300h200v200h-200z" />
|
||||||
|
<glyph glyph-name="b6" unicode=""
|
||||||
|
d="M300 600v-200h200v200l300 -250l-300 -250v200h-200v-200l-300 250z" />
|
||||||
|
<glyph glyph-name="b7" unicode=""
|
||||||
|
d="M0 800c441 0 800 -359 800 -800h-200c0 333 -267 600 -600 600v200zM0 500c275 0 500 -225 500 -500h-200c0 167 -133 300 -300 300v200zM0 200c110 0 200 -90 200 -200h-200v200z" />
|
||||||
|
<glyph glyph-name="b8" unicode=""
|
||||||
|
d="M100 800c386 0 700 -314 700 -700h-100c0 332 -268 600 -600 600v100zM100 600c276 0 500 -224 500 -500h-100c0 222 -178 400 -400 400v100zM100 400c165 0 300 -135 300 -300h-100c0 111 -89 200 -200 200v100zM100 200c55 0 100 -45 100 -100s-45 -100 -100 -100
|
||||||
|
s-100 45 -100 100s45 100 100 100z" />
|
||||||
|
<glyph glyph-name="b9" unicode=""
|
||||||
|
d="M300 800h400c55 0 100 -45 100 -100v-200h-400v150c0 28 -22 50 -50 50s-50 -22 -50 -50v-250h400v-300c0 -55 -45 -100 -100 -100h-500c-55 0 -100 45 -100 100v200h100v-150c0 -28 22 -50 50 -50s50 22 50 50v550c0 55 45 100 100 100z" />
|
||||||
|
<glyph glyph-name="ba" unicode=""
|
||||||
|
d="M75 700h225v-100h-200v-500h400v100h100v-125c0 -41 -34 -75 -75 -75h-450c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM600 700l200 -200l-200 -200v100h-200c-94 0 -173 -65 -194 -153c23 199 189 353 394 353v100z" />
|
||||||
|
<glyph glyph-name="bb" unicode=""
|
||||||
|
d="M500 700l300 -284l-300 -316v200h-100c-200 0 -348 -102 -400 -300c0 295 100 500 500 500v200z" />
|
||||||
|
<glyph glyph-name="bc" unicode=""
|
||||||
|
d="M381 791l19 9l19 -9c127 -53 253 -108 381 -160v-31c0 -166 -67 -313 -147 -419c-40 -53 -83 -97 -125 -128s-82 -53 -128 -53s-86 22 -128 53s-85 75 -125 128c-80 107 -147 253 -147 419v31c128 52 254 107 381 160zM400 100v591l-294 -122c8 -126 58 -243 122 -328
|
||||||
|
c35 -46 73 -86 106 -110s62 -31 66 -31z" />
|
||||||
|
<glyph glyph-name="bd" unicode=""
|
||||||
|
d="M600 800h100v-800h-100v800zM400 700h100v-700h-100v700zM200 500h100v-500h-100v500zM0 300h100v-300h-100v300z" />
|
||||||
|
<glyph glyph-name="be" unicode=""
|
||||||
|
d="M300 800h100v-200h200l100 -100l-100 -100h-200v-400h-100v500h-200l-100 100l100 100h200v100z" />
|
||||||
|
<glyph glyph-name="bf" unicode=""
|
||||||
|
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h200v-100h-200v100zM400 600h300v-100h-300v100zM400 400h400v-100h-400v100z" />
|
||||||
|
<glyph glyph-name="c0" unicode=""
|
||||||
|
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h400v-100h-400v100zM400 600h300v-100h-300v100zM400 400h200v-100h-200v100z" />
|
||||||
|
<glyph glyph-name="c1" unicode=""
|
||||||
|
d="M75 700h650c41 0 75 -34 75 -75v-550c0 -41 -34 -75 -75 -75h-650c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM100 600v-100h100v100h-100zM300 600v-100h400v100h-400zM100 400v-100h100v100h-100zM300 400v-100h400v100h-400zM100 200v-100h100v100h-100zM300 200
|
||||||
|
v-100h400v100h-400z" />
|
||||||
|
<glyph glyph-name="c2" unicode=""
|
||||||
|
d="M400 800l100 -300h300l-250 -200l100 -300l-250 200l-250 -200l100 300l-250 200h300z" />
|
||||||
|
<glyph glyph-name="c3" unicode=""
|
||||||
|
d="M400 800c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM650 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 600c110 0 200 -90 200 -200
|
||||||
|
s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM50 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM750 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||||
|
s22 50 50 50zM650 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||||
|
<glyph glyph-name="c4" unicode=""
|
||||||
|
d="M34 800h632c18 0 34 -16 34 -34v-732c0 -18 -16 -34 -34 -34h-632c-18 0 -34 16 -34 34v732c0 18 16 34 34 34zM100 700v-500h500v500h-500zM350 150c-38 0 -63 -42 -44 -75s69 -33 88 0s-6 75 -44 75z" />
|
||||||
|
<glyph glyph-name="c5" unicode=""
|
||||||
|
d="M0 800h300l500 -500l-300 -300l-500 500v300zM200 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||||
|
<glyph glyph-name="c6" unicode=""
|
||||||
|
d="M0 600h200l300 -300l-200 -200l-300 300v200zM340 600h160l300 -300l-200 -200l-78 78l119 122zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="c7" unicode=""
|
||||||
|
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200
|
||||||
|
s90 200 200 200zM400 500c-56 0 -100 -44 -100 -100s44 -100 100 -100s100 44 100 100s-44 100 -100 100z" />
|
||||||
|
<glyph glyph-name="c8" unicode=""
|
||||||
|
d="M0 700h559l-100 -100h-359v-500h500v159l100 100v-359h-700v700zM700 700l100 -100l-400 -400l-200 200l100 100l100 -100z" />
|
||||||
|
<glyph glyph-name="c9" unicode=""
|
||||||
|
d="M9 800h782c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM150 722l-72 -72l100 -100l-100 -100l72 -72l172 172zM400 500v-100h300v100h-300z" />
|
||||||
|
<glyph glyph-name="ca" unicode=""
|
||||||
|
d="M0 800h800v-200h-50c0 55 -45 100 -100 100h-150v-550c0 -28 22 -50 50 -50h50v-100h-400v100h50c28 0 50 22 50 50v550h-150c-55 0 -100 -45 -100 -100h-50v200z" />
|
||||||
|
<glyph glyph-name="cb" unicode=""
|
||||||
|
d="M0 700h100v-400h-100v400zM200 700h350c21 0 39 -13 47 -31c0 0 103 -291 103 -319s-22 -50 -50 -50h-150c-28 0 -50 -25 -50 -50s39 -158 47 -184s-5 -55 -31 -63s-52 5 -66 31s-109 219 -128 238s-44 28 -72 28v400z" />
|
||||||
|
<glyph glyph-name="cc" unicode=""
|
||||||
|
d="M400 666c10 19 28 32 47 34l19 -3c26 -8 39 -37 31 -63s-47 -159 -47 -184s22 -50 50 -50h150c28 0 50 -22 50 -50s-103 -319 -103 -319c-8 -18 -26 -31 -47 -31h-350v400c28 0 53 9 72 28s114 212 128 238zM0 400h100v-400h-100v400z" />
|
||||||
|
<glyph glyph-name="cd" unicode=""
|
||||||
|
d="M200 700h300v-100h-100v-6c25 -4 50 -8 72 -16l-34 -94c-28 11 -58 16 -88 16c-139 0 -250 -111 -250 -250s111 -250 250 -250s250 111 250 250c0 31 -5 60 -16 88l91 37c14 -38 25 -81 25 -125c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 176 130 323 300 347v3
|
||||||
|
h-100v100zM700 584c0 0 -296 -348 -316 -368s-48 -20 -68 0s-20 48 0 68s384 300 384 300z" />
|
||||||
|
<glyph glyph-name="ce" unicode=""
|
||||||
|
d="M600 700l200 -150l-200 -150v100h-600v100h600v100zM200 300v-100h600v-100h-600v-100l-200 150z" />
|
||||||
|
<glyph glyph-name="cf" unicode=""
|
||||||
|
d="M300 800h100c55 0 100 -45 100 -100h100c55 0 100 -45 100 -100h-700c0 55 45 100 100 100h100c0 55 45 100 100 100zM100 500h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-481c0 -11 -8 -19 -19 -19h-462
|
||||||
|
c-11 0 -19 8 -19 19v481z" />
|
||||||
|
<glyph glyph-name="d0" unicode=""
|
||||||
|
d="M100 800h200v-400c0 -55 45 -100 100 -100s100 45 100 100v400h100v-400c0 -110 -90 -200 -200 -200h-50c-138 0 -250 90 -250 200v400zM0 100h700v-100h-700v100z" />
|
||||||
|
<glyph glyph-name="d1" unicode=""
|
||||||
|
d="M9 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM609 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282
|
||||||
|
c0 6 3 9 9 9zM0 100h800v-100h-800v100z" />
|
||||||
|
<glyph glyph-name="d2" unicode=""
|
||||||
|
d="M10 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 4 9 10 9zM610 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 5 9 10 9zM310 600h181c6 0 9 -3 9 -9v-91h-200v91c0 6 4 9 10 9zM0 400h800v-100h-800v100zM0 200h200v-191c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v191zM300 200
|
||||||
|
h200v-91c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v91zM600 200h200v-191c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v191z" />
|
||||||
|
<glyph glyph-name="d3" unicode=""
|
||||||
|
d="M0 700h800v-100h-800v100zM9 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM609 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182
|
||||||
|
c-6 0 -9 3 -9 9v482c0 6 3 9 9 9z" />
|
||||||
|
<glyph glyph-name="d4" unicode=""
|
||||||
|
d="M50 600h500c28 0 50 -22 50 -50v-150l100 100h100v-300h-100l-100 100v-150c0 -28 -22 -50 -50 -50h-500c-28 0 -50 22 -50 50v400c0 28 22 50 50 50z" />
|
||||||
|
<glyph glyph-name="d5" unicode=""
|
||||||
|
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 600v100c26 0 52 -4 75 -10c130 -33 225 -150 225 -290s-95 -258 -225 -291h-3c-23 -6 -47 -9 -72 -9v100c17 0 34 2 50 6c86 22 150 100 150 194s-64 172 -150 194c-16 4 -33 6 -50 6zM500 500l25 -3
|
||||||
|
c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||||
|
<glyph glyph-name="d6" unicode="" horiz-adv-x="600"
|
||||||
|
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 500l25 -3c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||||
|
<glyph glyph-name="d7" unicode="" horiz-adv-x="400"
|
||||||
|
d="M334 800h66v-800h-66l-134 200h-200v400h200z" />
|
||||||
|
<glyph glyph-name="d8" unicode=""
|
||||||
|
d="M309 800h82c6 0 10 -4 12 -9l294 -682l3 -19v-81c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v81l3 19l294 682c2 5 6 9 12 9zM300 500v-200h100v200h-100zM300 200v-100h100v100h-100z" />
|
||||||
|
<glyph glyph-name="d9" unicode=""
|
||||||
|
d="M375 800c138 0 269 -39 378 -109l-53 -82c-93 60 -205 91 -325 91c-119 0 -229 -32 -322 -91l-53 82c109 70 237 109 375 109zM375 500c78 0 154 -23 216 -62l-53 -85c-46 30 -104 47 -163 47c-60 0 -112 -17 -159 -47l-54 85c62 40 134 62 213 62zM375 200
|
||||||
|
c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||||
|
<glyph glyph-name="da" unicode="" horiz-adv-x="900"
|
||||||
|
d="M551 800c16 0 32 0 47 -3l-97 -97v-200h200l97 97c3 -15 3 -31 3 -47c0 -138 -112 -250 -250 -250c-32 0 -62 8 -90 19l-288 -291c-20 -20 -46 -28 -72 -28s-52 8 -72 28c-39 39 -39 105 0 144l291 287c-11 28 -19 59 -19 91c0 138 112 250 250 250zM101 150
|
||||||
|
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||||
|
<glyph glyph-name="db" unicode=""
|
||||||
|
d="M141 700c84 -84 169 -167 253 -250c82 83 167 165 247 250l143 -141l-253 -253c84 -82 167 -166 253 -247l-143 -143c-81 86 -165 169 -247 253l-253 -253l-141 143c85 80 167 164 250 247c-83 84 -166 169 -250 253z" />
|
||||||
|
<glyph glyph-name="dc" unicode=""
|
||||||
|
d="M0 800h100l231 -300h38l231 300h100l-225 -300h225v-100h-300v-100h300v-100h-300v-200h-100v200h-300v100h300v100h-300v100h225z" />
|
||||||
|
<glyph glyph-name="dd" unicode="" horiz-adv-x="900"
|
||||||
|
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||||
|
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM300 600h100v-100h100v-100h-100v-100h-100v100h-100v100h100v100z" />
|
||||||
|
<glyph glyph-name="de" unicode="" horiz-adv-x="900"
|
||||||
|
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||||
|
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM200 500h300v-100h-300v100z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
||||||
|
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,92 @@
|
|||||||
|
@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.valid.modified:not([type=checkbox]) {
|
||||||
|
outline: 1px solid #26b050;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invalid {
|
||||||
|
outline: 1px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.validation-message {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#blazor-error-ui {
|
||||||
|
background: lightyellow;
|
||||||
|
bottom: 0;
|
||||||
|
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
display: none;
|
||||||
|
left: 0;
|
||||||
|
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#blazor-error-ui .dismiss {
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
right: 0.75rem;
|
||||||
|
top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ToDoListe.razor */
|
||||||
|
.item-completed {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout.razor */
|
||||||
|
.email-caption {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-icon-btn {
|
||||||
|
padding-left: .25rem;
|
||||||
|
padding-right: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-icon {
|
||||||
|
display: inline-block;
|
||||||
|
background-color: currentColor;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
-webkit-mask-image: url("images/icons/info-circle.svg");
|
||||||
|
mask-image: url("images/icons/info-circle.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PDFViewer */
|
||||||
|
.custom-drop-zone {
|
||||||
|
padding: 0 !important;
|
||||||
|
border-style: dashed;
|
||||||
|
border-width: 2px !important;
|
||||||
|
height: 230px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: rgba(183, 183, 183, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-drop-zone.custom-drop-zone-hover {
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-drop-zone svg {
|
||||||
|
width: 42px;
|
||||||
|
height: 42px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-drop-zone > *:not(#overviewDemoSelectButton) {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 24.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="_x31_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 62 62" style="enable-background:new 0 0 62 62;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{fill-rule:evenodd;clip-rule:evenodd;}
|
||||||
|
</style>
|
||||||
|
<path id="_x32_" class="st0" d="M31,61C14.4,61,1,47.6,1,31S14.4,1,31,1s30,13.4,30,30S47.6,61,31,61z M31,5C16.6,5,5,16.6,5,31
|
||||||
|
s11.6,26,26,26s26-11.6,26-26S45.4,5,31,5z M52,34.5L49.5,37L46,33.5L42.5,37L40,34.5l3.5-3.5L40,27.5l2.5-2.5l3.5,3.5l3.5-3.5
|
||||||
|
l2.5,2.5L48.5,31L52,34.5z M43,44c0,1.1-0.9,2-2,2H21c-1.1,0-2-0.9-2-2s0.9-2,2-2h20C42.1,42,43,42.9,43,44z M19.5,37L16,33.5
|
||||||
|
L12.5,37L10,34.5l3.5-3.5L10,27.5l2.5-2.5l3.5,3.5l3.5-3.5l2.5,2.5L18.5,31l3.5,3.5L19.5,37z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 893 B |
25
Test Stefan/DxBlazorApplication2/DxBlazorApplication2.sln
Normal file
25
Test Stefan/DxBlazorApplication2/DxBlazorApplication2.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.14.36408.4
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DxBlazorApplication2", "DxBlazorApplication2\DxBlazorApplication2.csproj", "{FFBF5EF3-6652-4564-A764-1728171B37F7}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{FFBF5EF3-6652-4564-A764-1728171B37F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{FFBF5EF3-6652-4564-A764-1728171B37F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{FFBF5EF3-6652-4564-A764-1728171B37F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{FFBF5EF3-6652-4564-A764-1728171B37F7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {72C57CBA-7C7E-401E-A826-B2E0C786A6FB}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@ -0,0 +1,162 @@
|
|||||||
|
using DevExpress.Blazor.Internal.ComponentStructureHelpers;
|
||||||
|
using DevExpress.Data.Helpers;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
public class AS400Connector : IDisposable
|
||||||
|
{
|
||||||
|
private string aktSatzart = null;
|
||||||
|
private string line;
|
||||||
|
private AS400SocketSpecializedHandler handler;
|
||||||
|
private Dictionary<string, AS400Satzart> saHandler;
|
||||||
|
|
||||||
|
public AS400Connector()
|
||||||
|
{
|
||||||
|
handler = null;
|
||||||
|
saHandler = null;
|
||||||
|
}
|
||||||
|
public AS400Connector(string programmNummer)
|
||||||
|
{
|
||||||
|
Open(programmNummer);
|
||||||
|
}
|
||||||
|
public bool Open(string programmNummer)
|
||||||
|
{
|
||||||
|
handler = new AS400SocketSpecializedHandler(programmNummer, null, false, "*TEMP");
|
||||||
|
saHandler = new Dictionary<string, AS400Satzart>();
|
||||||
|
|
||||||
|
// Satzarten erzeugen
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
line = handler.ReadLine();
|
||||||
|
if (line.Substring(0, 2) == "01")
|
||||||
|
{
|
||||||
|
aktSatzart = line.Substring(2, 2);
|
||||||
|
saHandler.Add(aktSatzart, new AS400Satzart(aktSatzart, handler));
|
||||||
|
}
|
||||||
|
else if (line.Substring(0, 2) == "02")
|
||||||
|
{
|
||||||
|
// extractField knallt wenn der Text fehlt...
|
||||||
|
saHandler[aktSatzart].AddFeld(line.PadRight(24));
|
||||||
|
}
|
||||||
|
else break;
|
||||||
|
}
|
||||||
|
return Connected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Close()
|
||||||
|
{
|
||||||
|
if (handler != null)
|
||||||
|
{
|
||||||
|
handler.closeConnection();
|
||||||
|
handler = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Connected
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (handler == null)
|
||||||
|
return false;
|
||||||
|
return handler.Connected;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gibt eine Kopie des aktuellen Satzes zurück
|
||||||
|
public AS400Satzart AktSatz()
|
||||||
|
{
|
||||||
|
if (saHandler.ContainsKey(aktSatzart))
|
||||||
|
return new AS400Satzart(saHandler[aktSatzart]);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
// Gibt eine Kopie der gewünschten Satzart zurück
|
||||||
|
public AS400Satzart Satz(string satzart)
|
||||||
|
{
|
||||||
|
if (saHandler.ContainsKey(satzart))
|
||||||
|
return new AS400Satzart(saHandler[satzart]);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WriteLine(string line)
|
||||||
|
{
|
||||||
|
handler.WriteLine(line);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WriteSatz()
|
||||||
|
{
|
||||||
|
handler.WriteLineA(saHandler[aktSatzart].Container, saHandler[aktSatzart].Felder);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public string ReadLine()
|
||||||
|
{
|
||||||
|
line = handler.ReadLine();
|
||||||
|
aktSatzart = line.Substring(0, 2);
|
||||||
|
if (saHandler.ContainsKey(aktSatzart))
|
||||||
|
saHandler[aktSatzart].ZerlegeSatz(line);
|
||||||
|
return aktSatzart;
|
||||||
|
}
|
||||||
|
public string Line
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Satzart
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return aktSatzart;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
aktSatzart = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public string Prefix
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return saHandler[aktSatzart].Prefix();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public string GetString(string feldName)
|
||||||
|
{
|
||||||
|
return saHandler[aktSatzart].GetString(feldName);
|
||||||
|
}
|
||||||
|
public double GetDouble(string feldName)
|
||||||
|
{
|
||||||
|
return saHandler[aktSatzart].GetDouble(feldName);
|
||||||
|
}
|
||||||
|
public DateTime GetDate(string feldName)
|
||||||
|
{
|
||||||
|
return saHandler[aktSatzart].GetDate(feldName);
|
||||||
|
}
|
||||||
|
public DateTime GetTime(string feldName)
|
||||||
|
{
|
||||||
|
return saHandler[aktSatzart].GetTime(feldName);
|
||||||
|
}
|
||||||
|
public void Clear(string satzart)
|
||||||
|
{
|
||||||
|
aktSatzart = satzart;
|
||||||
|
saHandler[aktSatzart].Clear();
|
||||||
|
}
|
||||||
|
public void SetString(string feldName, string inhalt)
|
||||||
|
{
|
||||||
|
saHandler[aktSatzart].SetString(feldName, inhalt);
|
||||||
|
}
|
||||||
|
public void SetDouble(string feldName, double inhalt)
|
||||||
|
{
|
||||||
|
saHandler[aktSatzart].SetDouble(feldName, inhalt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,134 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Einfache bean zum halten der gelesenen Daten in Stringform
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class AS400PreviewContainer
|
||||||
|
{
|
||||||
|
public List<String> felder = new List<String>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fügt einen Text zur Liste der Felder hinzu...
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="text"></param>
|
||||||
|
public void AddNextField(String text)
|
||||||
|
{
|
||||||
|
felder.Add(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddNextField(object text)
|
||||||
|
{
|
||||||
|
felder.Add(text.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Holt einen Feldinhalt anhand des Indexes aus der Liste
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public String GetField(int index)
|
||||||
|
{
|
||||||
|
return felder[index];
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Holt einen Feldinhalt anhand des Indexes aus der Liste und
|
||||||
|
/// konvertiert den internen String in eine int
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public int GetIntField(int index)
|
||||||
|
{
|
||||||
|
int result = 0;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Int32.TryParse(felder[index], out result);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
result = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Holt einen Feldinhalt anhand des Indexes aus der Liste und
|
||||||
|
/// konvertiert den internen String in eine int
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public DateTime GetDateField(int index)
|
||||||
|
{
|
||||||
|
DateTime result = DateTime.MinValue;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DateTime.TryParse(felder[index], out result);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
result = DateTime.MinValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gibt die Anzahl an Feldern zurück
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public int GetCount()
|
||||||
|
{
|
||||||
|
return felder.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int GetIntFieldFromSubString(int index, int start, int länge)
|
||||||
|
{
|
||||||
|
int result = 0;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
String temp = felder[index].PadRight(start + länge);
|
||||||
|
temp = temp.Substring(start, länge);
|
||||||
|
Int32.TryParse(temp, out result);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
result = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Holt einen Feldinhalt anhand des Indexes aus der Liste und
|
||||||
|
/// konvertiert den internen String in eine double
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public double GetDoubleField(int index)
|
||||||
|
{
|
||||||
|
double result = 0;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Double.TryParse(felder[index], out result);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
result = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,126 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
public class AS400Satzart
|
||||||
|
{
|
||||||
|
|
||||||
|
private string satzart;
|
||||||
|
private Dictionary<string, int> namen;
|
||||||
|
private List<AS400SocketField> felder;
|
||||||
|
private AS400SocketSpecializedHandler handler;
|
||||||
|
private AS400PreviewContainer container;
|
||||||
|
public string Satzart
|
||||||
|
{
|
||||||
|
get { return satzart; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400Satzart(AS400Satzart sa)
|
||||||
|
{
|
||||||
|
satzart = sa.satzart;
|
||||||
|
namen = sa.namen;
|
||||||
|
felder = sa.felder;
|
||||||
|
handler = sa.handler;
|
||||||
|
// Achtung! Der Container (= Inhalt des aktuellen Satzes) müsste eigentlich kopiert werden
|
||||||
|
// Da der aber bei jedem Empfang neu kreiert wird, passiert in der Kopie nichts
|
||||||
|
container = sa.container;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400Satzart(string Satzart, AS400SocketSpecializedHandler Handler)
|
||||||
|
{
|
||||||
|
satzart = Satzart;
|
||||||
|
handler = Handler;
|
||||||
|
container = null;
|
||||||
|
|
||||||
|
namen = new Dictionary<string, int>();
|
||||||
|
felder = new List<AS400SocketField>();
|
||||||
|
|
||||||
|
/* string[] zeilen = System.IO.File.ReadAllLines(@"D:\Test\H8240DS" + satzart + ".TXT", System.Text.Encoding.UTF7);
|
||||||
|
for (i1 = 2; i1 < zeilen.Length; i1++) // Ab Zeile 3 -> Überschrift und XXSART ignorieren
|
||||||
|
{
|
||||||
|
namen.Add(zeilen[i1].Substring(2, 8).Trim(), i1 - 2);
|
||||||
|
felder.Add(new LaPoSocketField(zeilen[i1]));
|
||||||
|
}
|
||||||
|
felder[0].Satzart = Satzart;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Prefix()
|
||||||
|
{
|
||||||
|
if (felder == null) return null;
|
||||||
|
if (felder.Count < 1) return null;
|
||||||
|
return felder[0].Name.Substring(0, 2);
|
||||||
|
}
|
||||||
|
public void AddFeld(string zeile)
|
||||||
|
{
|
||||||
|
namen.Add(zeile.Substring(2, 8).Trim(), felder.Count);
|
||||||
|
felder.Add(new AS400SocketField(zeile));
|
||||||
|
felder[0].Satzart = satzart;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ZerlegeSatz(string line)
|
||||||
|
{
|
||||||
|
container = handler.ToPreviewContainer(line, felder);
|
||||||
|
}
|
||||||
|
public string GetString(string FeldName)
|
||||||
|
{
|
||||||
|
return container.GetField(namen[FeldName]).TrimEnd();
|
||||||
|
}
|
||||||
|
public double GetDouble(string FeldName)
|
||||||
|
{
|
||||||
|
return container.GetDoubleField(namen[FeldName]);
|
||||||
|
}
|
||||||
|
public DateTime GetDate(string FeldName)
|
||||||
|
{
|
||||||
|
return container.GetDateField(namen[FeldName]);
|
||||||
|
}
|
||||||
|
public DateTime GetTime(string FeldName)
|
||||||
|
{
|
||||||
|
return container.GetDateField(namen[FeldName]);
|
||||||
|
}
|
||||||
|
public void SetString(string FeldName, string Inhalt)
|
||||||
|
{
|
||||||
|
container.felder[namen[FeldName]] = Inhalt;
|
||||||
|
}
|
||||||
|
public void SetDouble(string FeldName, double Inhalt)
|
||||||
|
{
|
||||||
|
container.felder[namen[FeldName]] = Inhalt.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Clear()
|
||||||
|
{
|
||||||
|
int i1;
|
||||||
|
container = new AS400PreviewContainer();
|
||||||
|
for (i1 = 0; i1 < felder.Count; i1++)
|
||||||
|
{
|
||||||
|
if (felder[i1].Type == "S" || felder[i1].Type == "P")
|
||||||
|
{
|
||||||
|
container.AddNextField("0");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
container.AddNextField("");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400PreviewContainer Container
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public List<AS400SocketField> Felder
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return felder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,177 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Klasse zur Speicherung von Feldinformationen.
|
||||||
|
/// Anhand dieser Informationen wird später der String der eigentlichen
|
||||||
|
/// Datensätze zerlegt!
|
||||||
|
/// </summary>
|
||||||
|
public class AS400SocketField
|
||||||
|
{
|
||||||
|
private String name = null;
|
||||||
|
private String type = null;
|
||||||
|
private int start = 0;
|
||||||
|
private int length = 0;
|
||||||
|
private int internalDecimalPlaces = 0;
|
||||||
|
private String description = null;
|
||||||
|
private string satzart = "";
|
||||||
|
|
||||||
|
public AS400SocketField(String line)
|
||||||
|
{
|
||||||
|
this.extractField(line);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400SocketField(string satzArt, String name, String typ, int start, int länge, int nk, string beschreibung)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
this.type = typ;
|
||||||
|
this.start = start;
|
||||||
|
this.length = länge;
|
||||||
|
this.internalDecimalPlaces = nk;
|
||||||
|
this.description = beschreibung;
|
||||||
|
this.satzart = satzArt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400SocketField()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Satzart
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return satzart;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
satzart = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String Name
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
name = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String Type
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
type = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Start
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return start;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
start = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Length
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return length;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
length = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int InternalDecimalPlaces
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return internalDecimalPlaces;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
internalDecimalPlaces = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String Description
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
description = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void extractField(string line)
|
||||||
|
{
|
||||||
|
line.PadRight(23);
|
||||||
|
///Zerlegen des Strings in die Felder
|
||||||
|
this.name = line.Substring(2, 8).Trim();
|
||||||
|
this.description = line.Substring(23).Trim();
|
||||||
|
this.start = Convert.ToInt32(line.Substring(13, 5));
|
||||||
|
this.length = Convert.ToInt32(line.Substring(18, 4));
|
||||||
|
this.type = line.Substring(12, 1).Trim();
|
||||||
|
string nachKomma = line.Substring(22, 1);
|
||||||
|
if (!nachKomma.Equals(" "))
|
||||||
|
{
|
||||||
|
this.internalDecimalPlaces = Convert.ToInt32(nachKomma);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.internalDecimalPlaces = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String constructLine()
|
||||||
|
{
|
||||||
|
StringBuilder result = new StringBuilder();
|
||||||
|
///Zusammenbauen des Strings aus den Feldern
|
||||||
|
//Satzart
|
||||||
|
result.Append(satzart.PadRight(2));
|
||||||
|
//Feldname
|
||||||
|
result.Append(name.PadRight(10));
|
||||||
|
//Typ
|
||||||
|
result.Append(type);
|
||||||
|
//5 Stellen Start
|
||||||
|
result.Append(start.ToString("00000"));
|
||||||
|
//4 Stellen Länge
|
||||||
|
result.Append(length.ToString("0000"));
|
||||||
|
//Nachkommastellen wenn vorhanden
|
||||||
|
if (type.Equals("S") || type.Equals("P"))
|
||||||
|
{
|
||||||
|
result.Append(internalDecimalPlaces.ToString("0"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.Append(" ");
|
||||||
|
}
|
||||||
|
//Text
|
||||||
|
result.Append(description);
|
||||||
|
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,349 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Text;
|
||||||
|
using System.Net.Sockets;
|
||||||
|
using System.Net;
|
||||||
|
using System.IO;
|
||||||
|
using DevExpress.Xpo.Exceptions;
|
||||||
|
using DevExpress.CodeParser;
|
||||||
|
//using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
//DB2Umstellung
|
||||||
|
|
||||||
|
public class AS400SocketHandler
|
||||||
|
{
|
||||||
|
private TcpClient tcpClient = null; //Client..was sonst
|
||||||
|
protected NetworkStream inOut = null; //Stream zu lesen ODER schreiben
|
||||||
|
protected String buffer = ""; //Puffer zum Lesen
|
||||||
|
private const String crlf = "\r\n"; //Linefeed
|
||||||
|
private bool ladeJetztDS = false; //Schalter -> Ab jetztr werden DS geladen und keine Felder mehr
|
||||||
|
private Encoding encoding = Encoding.GetEncoding(1252); //ANSI
|
||||||
|
protected String lambertzPortalSessionID = null;
|
||||||
|
private bool activateProtocol = false;
|
||||||
|
private StreamWriter logWriter;
|
||||||
|
public bool Connected { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Der Konstruktor besorgt sich den Stream aus dem übergebenen Client!
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
public AS400SocketHandler(TcpClient client)
|
||||||
|
{
|
||||||
|
Connected = true;
|
||||||
|
this.tcpClient = client;
|
||||||
|
this.inOut = client.GetStream();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Der Konstruktor besorgt sich den Stream aus dem übergebenen Client!
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
public AS400SocketHandler(string sessionID)
|
||||||
|
: this(new TcpClient("172.16.4.1", 5000))
|
||||||
|
{
|
||||||
|
this.lambertzPortalSessionID = sessionID;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Liest eine durch \r\n gekennzeichnete Zeile aus dem Stream und gibt diese zurück.
|
||||||
|
/// Zuviel gelesene zeichen werden gepuffert ..
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public virtual String ReadLine()
|
||||||
|
{
|
||||||
|
String result = "";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Byte[] readBuffer = new Byte[1026];
|
||||||
|
int len = 0;
|
||||||
|
while (buffer.IndexOf(crlf) == -1)
|
||||||
|
{
|
||||||
|
//this.tcpClient.Client.Poll(-1, SelectMode.SelectRead)) //bringt nix
|
||||||
|
len = this.inOut.Read(readBuffer, 0, 1026);
|
||||||
|
if(len == 0)
|
||||||
|
{
|
||||||
|
Connected = false;
|
||||||
|
throw new Exception("Verbindung verloren");
|
||||||
|
}
|
||||||
|
buffer = buffer + encoding.GetString(readBuffer).Substring(0, len);
|
||||||
|
}
|
||||||
|
if (ladeJetztDS && inOut.ReadTimeout == -1)
|
||||||
|
{
|
||||||
|
inOut.ReadTimeout = 10000;
|
||||||
|
}
|
||||||
|
result = buffer.Substring(0, buffer.IndexOf(crlf));
|
||||||
|
buffer = buffer.Substring(result.Length + 2);
|
||||||
|
if (activateProtocol)
|
||||||
|
{
|
||||||
|
logWriter.WriteLine("<-" + result);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
result = "FE" + ex.Message;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Schreibt einen Text an den Server und hängt \r\n an.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="text"></param>
|
||||||
|
public void WriteLine(String text)
|
||||||
|
{
|
||||||
|
text = text.Trim() + crlf;
|
||||||
|
Byte[] bytes = encoding.GetBytes(text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (activateProtocol)
|
||||||
|
{
|
||||||
|
logWriter.Write("->" + text);
|
||||||
|
}
|
||||||
|
this.inOut.Write(bytes, 0, bytes.Length);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
//Do nothing ...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Löscht den Buffer (Warum auch immer)
|
||||||
|
/// </summary>
|
||||||
|
public void ClearBuffer()
|
||||||
|
{
|
||||||
|
this.buffer = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public Encoding Encoding
|
||||||
|
{
|
||||||
|
get { return encoding; }
|
||||||
|
set { encoding = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Zerlegt eine gelesene Zeile anhand der field Informationen in Einzelfelder
|
||||||
|
/// Es sind immer Strings, nur die Formatierung ändert sich.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="line"></param>
|
||||||
|
/// <param name="fields"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public AS400PreviewContainer ToPreviewContainer(String line, List<AS400SocketField> fields)
|
||||||
|
{
|
||||||
|
AS400PreviewContainer result = new AS400PreviewContainer();
|
||||||
|
String stringValue = null;
|
||||||
|
foreach (AS400SocketField field in fields)
|
||||||
|
{
|
||||||
|
if (line.Length <= field.Start)
|
||||||
|
{
|
||||||
|
result.AddNextField("");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (line.Length < (field.Start + field.Length))
|
||||||
|
{
|
||||||
|
stringValue = (line.Substring(field.Start)); //Geändert von trim()
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
stringValue = (line.Substring(field.Start, field.Length)); // Geändert von trim()
|
||||||
|
}
|
||||||
|
|
||||||
|
///Entscheidung über die Formatierung
|
||||||
|
switch (field.Type)
|
||||||
|
{
|
||||||
|
case "S":
|
||||||
|
if (!stringValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
stringValue = negativeCheck(stringValue);
|
||||||
|
if (field.InternalDecimalPlaces != 0)
|
||||||
|
{
|
||||||
|
//Double
|
||||||
|
double d = Convert.ToDouble(stringValue);
|
||||||
|
double devider = Math.Pow(10, field.InternalDecimalPlaces);
|
||||||
|
d = d / devider;
|
||||||
|
StringBuilder format = new StringBuilder("#,###.");
|
||||||
|
for (int i = 0; i < field.InternalDecimalPlaces; i++)
|
||||||
|
{
|
||||||
|
format.Append("0");
|
||||||
|
}
|
||||||
|
result.AddNextField(d.ToString(format.ToString()));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Integer -> geändert zu long wegen sehr großer Zahlen!!!
|
||||||
|
long i = Convert.ToInt64(stringValue);
|
||||||
|
result.AddNextField(i.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Leere Felder
|
||||||
|
result.AddNextField("0");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "T":
|
||||||
|
//Zeit
|
||||||
|
if (!stringValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
int hour = Convert.ToInt32(stringValue.Substring(0, 2));
|
||||||
|
int minute = Convert.ToInt32(stringValue.Substring(3, 2));
|
||||||
|
int second = Convert.ToInt32(stringValue.Substring(6, 2));
|
||||||
|
|
||||||
|
result.AddNextField(hour.ToString("00") + ":" + minute.ToString("00") + ":" + second.ToString("00"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Leere Felder
|
||||||
|
result.AddNextField("");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "L":
|
||||||
|
//Datum
|
||||||
|
String temp = "";
|
||||||
|
if (!stringValue.Trim().Equals(""))
|
||||||
|
{
|
||||||
|
int day = Convert.ToInt32(stringValue.Substring(0, 2));
|
||||||
|
int month = Convert.ToInt32(stringValue.Substring(3, 2));
|
||||||
|
int year = Convert.ToInt32(stringValue.Substring(6, 4));
|
||||||
|
|
||||||
|
temp = day.ToString("00") + "." + month.ToString("00") + "." + year.ToString("0000");
|
||||||
|
//01.01.0001 ist ein default Wert und wird auf "" geändert!!
|
||||||
|
if (temp.Equals("01.01.0001"))
|
||||||
|
{
|
||||||
|
temp = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
result.AddNextField(temp);
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
//result.AddNextField(stringValue.TrimEnd()); //Neu: nur hier wird getrimmt
|
||||||
|
result.AddNextField(stringValue); //Neu: nur hier wird getrimmt
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Macht aus den lustigen negativen Zahlen der AS400 wieder
|
||||||
|
/// Vernünftige. Wenn mit der Falschen Codepage gearbeitet wird
|
||||||
|
/// hat man hier ein Problem weil -0 -> ü ist und dann nur als ?
|
||||||
|
/// geliefert wird.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="zahl"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public String negativeCheck(String zahl)
|
||||||
|
{
|
||||||
|
String result = zahl;
|
||||||
|
String last = null;
|
||||||
|
bool build = false;
|
||||||
|
//Nachsehen nach letzter "Ziffer"
|
||||||
|
|
||||||
|
switch (zahl.Substring(zahl.Length - 1))
|
||||||
|
{
|
||||||
|
case "ü":
|
||||||
|
last = "0";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "J":
|
||||||
|
last = "1";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "K":
|
||||||
|
last = "2";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "L":
|
||||||
|
last = "3";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "M":
|
||||||
|
last = "4";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "N":
|
||||||
|
last = "5";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "O":
|
||||||
|
last = "6";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "P":
|
||||||
|
last = "7";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "Q":
|
||||||
|
last = "8";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
case "R":
|
||||||
|
last = "9";
|
||||||
|
build = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (build)
|
||||||
|
{
|
||||||
|
result = "-" + zahl.Substring(0, zahl.Length - 1) + last;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool LadeJetztDS
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ladeJetztDS;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ladeJetztDS = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TcpClient TcpClient
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return tcpClient;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
tcpClient = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String LambertzPortalSessionID
|
||||||
|
{
|
||||||
|
get { return lambertzPortalSessionID; }
|
||||||
|
set { lambertzPortalSessionID = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool ActivateProtocol
|
||||||
|
{
|
||||||
|
get { return activateProtocol; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (activateProtocol)
|
||||||
|
{
|
||||||
|
this.logWriter.Close();
|
||||||
|
}
|
||||||
|
activateProtocol = value;
|
||||||
|
if (activateProtocol)
|
||||||
|
{
|
||||||
|
String datei = "log.txt";
|
||||||
|
FileStream destFile = new FileStream(datei, FileMode.Create, FileAccess.Write);
|
||||||
|
this.logWriter = new StreamWriter(destFile, System.Text.Encoding.Default);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,276 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Net.Sockets;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.AS400Kommunikation
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// LaPoSocketHandler, der zusätzlich die Liste an Feldern hostet und
|
||||||
|
/// mit nur einem bestimmten Programm auf der AS400 kommuniziert.
|
||||||
|
/// </summary>
|
||||||
|
public class AS400SocketSpecializedHandler : AS400SocketHandler
|
||||||
|
{
|
||||||
|
private List<AS400SocketField> feldListe;
|
||||||
|
private string fehlerText = "";
|
||||||
|
private bool handlerIstOk = false;
|
||||||
|
|
||||||
|
public AS400SocketSpecializedHandler(string programm, List<AS400SocketField> feldListe, bool felderSenden, string sessionID)
|
||||||
|
: base(new TcpClient("172.16.4.1", 5000))
|
||||||
|
{
|
||||||
|
this.feldListe = feldListe;
|
||||||
|
//starten des Programms...
|
||||||
|
String answer = this.ReadLine(); //OKASLAMBERTZ von AS400
|
||||||
|
this.WriteLine(programm);
|
||||||
|
answer = this.ReadLine(); //OK von AS400
|
||||||
|
if (answer.Substring(0, 2).Equals("FE"))
|
||||||
|
{
|
||||||
|
fehlerText = answer.Substring(2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (sessionID != null)
|
||||||
|
{
|
||||||
|
//WICHTIG!!!! SessionID senden
|
||||||
|
this.WriteLine("00" + sessionID);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (felderSenden)
|
||||||
|
{
|
||||||
|
//Senden der Felder
|
||||||
|
foreach (AS400SocketField field in feldListe)
|
||||||
|
{
|
||||||
|
this.WriteLine(field.constructLine());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
handlerIstOk = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public AS400SocketSpecializedHandler(string programm, List<AS400SocketField> feldListe)
|
||||||
|
: this(programm, feldListe, false, null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void ChangeSatzArt(string satzArt)
|
||||||
|
{
|
||||||
|
foreach (AS400SocketField feld in feldListe)
|
||||||
|
{
|
||||||
|
feld.Satzart = satzArt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Zerlegt eine gelesene Zeile anhand der feldListe
|
||||||
|
/// in Einzelfelder
|
||||||
|
/// Es sind immer Strings, nur die Formatierung ändert sich.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="line"></param>
|
||||||
|
/// <param name="fields"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public AS400PreviewContainer ToPreviewContainer(String line)
|
||||||
|
{
|
||||||
|
AS400PreviewContainer result;
|
||||||
|
|
||||||
|
result = base.ToPreviewContainer(line, feldListe);
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WriteLine(AS400PreviewContainer container)
|
||||||
|
{
|
||||||
|
WriteLine(container, this.feldListe);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WriteLine(AS400PreviewContainer container, List<AS400SocketField> feldListe)
|
||||||
|
{
|
||||||
|
if (container.GetCount() != feldListe.Count)
|
||||||
|
{
|
||||||
|
throw new Exception("Falsche Anzahl an Feldern im LaPoSocketSpecializedHandler!");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StringBuilder line = new StringBuilder();
|
||||||
|
|
||||||
|
line.Append(feldListe[0].Satzart.PadRight(2));
|
||||||
|
|
||||||
|
for (int i = 0; i < feldListe.Count; i++)
|
||||||
|
{
|
||||||
|
AS400SocketField feld = feldListe[i];
|
||||||
|
String value = container.GetField(i);
|
||||||
|
|
||||||
|
if (value.Length > feld.Length)
|
||||||
|
{
|
||||||
|
value = value.Substring(0, feld.Length);
|
||||||
|
}
|
||||||
|
|
||||||
|
line.Append(value.PadRight(feld.Length));
|
||||||
|
}
|
||||||
|
|
||||||
|
this.WriteLine(line.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Die Feldinhalte werden anhand der Feldliste aufbereitet
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="container"></param>
|
||||||
|
/// <param name="feldListe"></param>
|
||||||
|
public void WriteLineA(AS400PreviewContainer container, List<AS400SocketField> feldListe)
|
||||||
|
{
|
||||||
|
if (container.GetCount() != feldListe.Count)
|
||||||
|
{
|
||||||
|
throw new Exception("Falsche Anzahl an Feldern im LaPoSocketSpecializedHandler!");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StringBuilder line = new StringBuilder();
|
||||||
|
|
||||||
|
line.Append(feldListe[0].Satzart.PadRight(2));
|
||||||
|
|
||||||
|
for (int i = 0; i < feldListe.Count; i++)
|
||||||
|
{
|
||||||
|
AS400SocketField feld = feldListe[i];
|
||||||
|
String value = container.GetField(i);
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
{
|
||||||
|
value = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (feld.Type == "S" || feld.Type == "P")
|
||||||
|
{
|
||||||
|
decimal wert = Convert.ToDecimal(value) * (decimal)Math.Pow(10, feld.InternalDecimalPlaces);
|
||||||
|
double temp = (double)Math.Round(wert, 0, MidpointRounding.AwayFromZero);
|
||||||
|
|
||||||
|
String token;
|
||||||
|
if (temp < 0)
|
||||||
|
{
|
||||||
|
token = reverseNegativeCheck(temp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
token = temp.ToString();
|
||||||
|
}
|
||||||
|
if (token.Length > feld.Length)
|
||||||
|
{
|
||||||
|
throw (new Exception(String.Format("Feldüberlauf {0} Wert {1}", feld.Name, value)));
|
||||||
|
}
|
||||||
|
line.Append(token.PadLeft(feld.Length, '0'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (value.Length > feld.Length)
|
||||||
|
{
|
||||||
|
value = value.Substring(0, feld.Length);
|
||||||
|
}
|
||||||
|
line.Append(value.PadRight(feld.Length));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
this.WriteLine(line.ToString());
|
||||||
|
|
||||||
|
//Console.WriteLine(line.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String reverseNegativeCheck(double zahl)
|
||||||
|
{
|
||||||
|
String result = Math.Abs(zahl).ToString();
|
||||||
|
|
||||||
|
//Nachsehen nach letzter "Ziffer"
|
||||||
|
String last = null;
|
||||||
|
switch (result.Substring(result.Length - 1))
|
||||||
|
{
|
||||||
|
case "0":
|
||||||
|
last = "ü";
|
||||||
|
break;
|
||||||
|
case "1":
|
||||||
|
last = "J";
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
last = "K";
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
last = "L";
|
||||||
|
break;
|
||||||
|
case "4":
|
||||||
|
last = "M";
|
||||||
|
break;
|
||||||
|
case "5":
|
||||||
|
last = "N";
|
||||||
|
break;
|
||||||
|
case "6":
|
||||||
|
last = "O";
|
||||||
|
break;
|
||||||
|
case "7":
|
||||||
|
last = "P";
|
||||||
|
break;
|
||||||
|
case "8":
|
||||||
|
last = "Q";
|
||||||
|
break;
|
||||||
|
case "9":
|
||||||
|
last = "R";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = result.Substring(0, result.Length - 1) + last;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WriteLineDebug(AS400PreviewContainer container, List<AS400SocketField> feldListe)
|
||||||
|
{
|
||||||
|
if (container.GetCount() != feldListe.Count)
|
||||||
|
{
|
||||||
|
throw new Exception("Falsche Anzahl an Feldern im LaPoSocketSpecializedHandler!");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StringBuilder line = new StringBuilder();
|
||||||
|
|
||||||
|
line.Append(feldListe[0].Satzart);
|
||||||
|
|
||||||
|
for (int i = 0; i < feldListe.Count; i++)
|
||||||
|
{
|
||||||
|
AS400SocketField feld = feldListe[i];
|
||||||
|
String value = container.GetField(i);
|
||||||
|
|
||||||
|
if (value.Length > feld.Length)
|
||||||
|
{
|
||||||
|
value = value.Substring(0, feld.Length);
|
||||||
|
}
|
||||||
|
|
||||||
|
line.Append(value.PadRight(feld.Length));
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine(line.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool HandlerIstOk
|
||||||
|
{
|
||||||
|
get { return handlerIstOk; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Meldet sich von der AS400 ab und schliesst den Socket
|
||||||
|
/// </summary>
|
||||||
|
public void closeConnection()
|
||||||
|
{
|
||||||
|
this.WriteLine("99");
|
||||||
|
this.TcpClient.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string FehlerText
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return fehlerText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
@using Microsoft.AspNetCore.Mvc.ViewFeatures
|
||||||
|
@using DxBlazorApplication2.Services
|
||||||
|
@inject IFileVersionProvider FileVersionProvider
|
||||||
|
@inject DxThemesService ThemesService
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" data-bs-theme="@(ThemesService.IsBootstrapDarkActive ? "dark" : null)" data-fluent-darkmode="@(ThemesService.IsFluentDarkModeActive ? "" : null)">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<base href="/" />
|
||||||
|
@DxResourceManager.RegisterTheme(ThemesService.ActiveTheme)
|
||||||
|
@DxResourceManager.RegisterScripts()
|
||||||
|
<link href=@AppendVersion("css/site.css") rel="stylesheet" />
|
||||||
|
<link href=@AppendVersion("DxBlazorApplication2.styles.css") rel="stylesheet" />
|
||||||
|
<HeadOutlet />
|
||||||
|
</head>
|
||||||
|
<body class="@(ThemesService.IsFluentActive ? "dxbl-theme-fluent" : null)">
|
||||||
|
<Routes />
|
||||||
|
<script src="_framework/blazor.web.js"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
||||||
|
@code{
|
||||||
|
private string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
@using DxBlazorApplication2.Services;
|
||||||
|
@inject TodoService _todoService;
|
||||||
|
|
||||||
|
<EditForm Model="@NewItem" OnSubmit="@ItemAdded">
|
||||||
|
<div style="display: flex; align-items: center; width: 400px;">
|
||||||
|
<div style="margin-right: 10px">Text:</div>
|
||||||
|
<InputText @bind-Value="NewItem.Text" class="form-control" style="margin-right: 10px" id="Item" />
|
||||||
|
<input type="submit" class="btn btn-primary" style="margin-right: 10px" value="Hinzufügen" />
|
||||||
|
<input type="reset" class="btn btn-secondary" value="Leeren" />
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
[Parameter]
|
||||||
|
public required Action OnItemAdded { get; set; }
|
||||||
|
|
||||||
|
private TodoItem NewItem = new TodoItem("");
|
||||||
|
|
||||||
|
public void ItemAdded()
|
||||||
|
{
|
||||||
|
var newItem = new TodoItem(NewItem.Text);
|
||||||
|
NewItem.Text = "";
|
||||||
|
_todoService.AddItem(newItem);
|
||||||
|
|
||||||
|
if (OnItemAdded != null)
|
||||||
|
OnItemAdded();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
@inherits LayoutComponentBase
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<DxDrawer PanelWidth="@Width" CssClass="@(CssClass + " mobile")" Mode="@DrawerMode.Overlap" IsOpen="@ToggledSidebar" HeaderTemplate="@DrawerHeader" FooterTemplate="@DrawerFooter" ApplyBackgroundShading="false" ClosedCssClass="panel-closed">
|
||||||
|
<BodyTemplate>
|
||||||
|
@DrawerBody
|
||||||
|
</BodyTemplate>
|
||||||
|
<TargetContent>
|
||||||
|
<DxDrawer PanelWidth="@Width" CssClass="@CssClass" Mode="@DrawerMode.Shrink" IsOpen="@(!ToggledSidebar)" HeaderTemplate="@DrawerHeader" FooterTemplate="@DrawerFooter" OpenCssClass="panel-open" >
|
||||||
|
<BodyTemplate>
|
||||||
|
@DrawerBody
|
||||||
|
</BodyTemplate>
|
||||||
|
<TargetContent>
|
||||||
|
<div class="shading-copy" />
|
||||||
|
@DrawerTarget
|
||||||
|
</TargetContent>
|
||||||
|
</DxDrawer>
|
||||||
|
</TargetContent>
|
||||||
|
</DxDrawer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string Width => "240px";
|
||||||
|
string CssClass => "navigation-drawer";
|
||||||
|
|
||||||
|
[SupplyParameterFromQuery(Name = UrlGenerator.ToggleSidebarName)]
|
||||||
|
public bool ToggledSidebar { get; set; }
|
||||||
|
[Parameter] public RenderFragment? DrawerTarget { get; set; }
|
||||||
|
[Parameter] public RenderFragment? DrawerBody { get; set; }
|
||||||
|
[Parameter] public RenderFragment? DrawerHeader { get; set; }
|
||||||
|
[Parameter] public RenderFragment? DrawerFooter { get; set; }
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
::deep .navigation-drawer {
|
||||||
|
--dxbl-drawer-panel-footer-justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel {
|
||||||
|
background-image: linear-gradient(180deg, var(--bs-primary, var(--DS-primary-90)) 0%, var(--bs-black, #000) 150%);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-content {
|
||||||
|
height: 100vh;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-header {
|
||||||
|
border-bottom: none;
|
||||||
|
padding: 2rem 1rem;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-header > .navigation-drawer-header {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-body {
|
||||||
|
--dxbl-drawer-panel-body-padding-x: 0;
|
||||||
|
--dxbl-drawer-panel-body-padding-y: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-footer {
|
||||||
|
--dxbl-drawer-panel-footer-justify-content: center;
|
||||||
|
border-top: none;
|
||||||
|
padding-bottom: 1.5rem;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer.mobile > .dxbl-drawer-panel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer.mobile > .dxbl-drawer-shading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
::deep .navigation-drawer > .dxbl-drawer-panel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer.mobile > .dxbl-drawer-panel {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .navigation-drawer.mobile > .dxbl-drawer-shading {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .panel-open:not(.mobile) .menu-button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
::deep .panel-open:not(.mobile) .menu-button {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-drawer-closed .shading-copy {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .shading-copy {
|
||||||
|
background-color: var(--dxbl-drawer-content-shading-bg);
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
transition: opacity ease var(--dxbl-drawer-animation-duration);
|
||||||
|
visibility: visible;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 99;
|
||||||
|
opacity: var(--dxbl-drawer-content-shading-opacity);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .panel-open .shading-copy {
|
||||||
|
opacity: 0;
|
||||||
|
visibility: unset;
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,58 @@
|
|||||||
|
@inherits LayoutComponentBase
|
||||||
|
@using DxBlazorApplication2.Services
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
|
@inject DxThemesService ThemesService
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
<Drawer DrawerHeader="drawerHeader" DrawerFooter="drawerFooter">
|
||||||
|
<DrawerBody>
|
||||||
|
<div class="w-100">
|
||||||
|
<NavMenu></NavMenu>
|
||||||
|
</div>
|
||||||
|
</DrawerBody>
|
||||||
|
<DrawerTarget>
|
||||||
|
<div class="nav-buttons-container">
|
||||||
|
<NavLink href="@UrlGenerator.GetUrl(new Uri(NavigationManager.Uri).LocalPath, !ToggledSidebar)">
|
||||||
|
<DxButton RenderStyle="@(ThemesService.IsActiveThemeDark ? ButtonRenderStyle.Light : ButtonRenderStyle.Dark)" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="menu-button" IconCssClass="icon icon-menu"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
@if (new Uri(NavigationManager.Uri).LocalPath != "/") {
|
||||||
|
<NavLink href="@UrlGenerator.GetUrl("/", ToggledSidebar)" class="button-link hidden">
|
||||||
|
<DxButton RenderStyle="@(ThemesService.IsActiveThemeDark ? ButtonRenderStyle.Light : ButtonRenderStyle.Dark)" Text="Back to Home" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="menu-button-nav" IconCssClass="icon icon-back"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
}
|
||||||
|
@if (new Uri(NavigationManager.Uri).LocalPath.ToLower().StartsWith("/produktion/aufträgeprolinie"))
|
||||||
|
{
|
||||||
|
<NavLink href="@UrlGenerator.GetUrl("/produktion/cockpit", ToggledSidebar)" class="button-link hidden">
|
||||||
|
<DxButton RenderStyle="@(ThemesService.IsActiveThemeDark? ButtonRenderStyle.Light: ButtonRenderStyle.Dark)" Text="Zurück zum Cockpit" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="menu-button-nav" IconCssClass="icon icon-back"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div class="p-4">
|
||||||
|
@Body
|
||||||
|
</div>
|
||||||
|
</DrawerTarget>
|
||||||
|
</Drawer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[SupplyParameterFromQuery(Name = UrlGenerator.ToggleSidebarName)]
|
||||||
|
public bool ToggledSidebar { get; set; }
|
||||||
|
|
||||||
|
private RenderFragment drawerHeader => @<div class="navigation-drawer-header">
|
||||||
|
<img class="logo" src="images/logo.svg" alt="DevExpress logo" />
|
||||||
|
<NavLink href="@UrlGenerator.GetUrl(new Uri(NavigationManager.Uri).LocalPath, !ToggledSidebar)">
|
||||||
|
<DxButton RenderStyle="@(ThemesService.IsBootstrapDarkActive ? ButtonRenderStyle.Dark : ButtonRenderStyle.Light)" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="menu-button-nav" IconCssClass="@(ToggledSidebar ? "icon icon-close" : "icon icon-menu")"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
</div>;
|
||||||
|
|
||||||
|
private RenderFragment drawerFooter => @<div>
|
||||||
|
<NavLink href="https://docs.devexpress.com/Blazor/400725/blazor-components" class="button-link">
|
||||||
|
<DxButton Text="Docs" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="footer-button" RenderStyle="ButtonRenderStyle.Light" IconCssClass="icon docs-icon"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
<NavLink href="https://demos.devexpress.com/blazor/" class="button-link">
|
||||||
|
<DxButton Text="Demos" RenderStyleMode="@ButtonRenderStyleMode.Text" CssClass="footer-button" RenderStyle="ButtonRenderStyle.Light" IconCssClass="icon demos-icon"></DxButton>
|
||||||
|
</NavLink>
|
||||||
|
</div>;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,83 @@
|
|||||||
|
.page {
|
||||||
|
height: 100%;
|
||||||
|
font-family: var(--bs-font-sans-serif, var(--DS-font-family-sans-serif));
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .content {
|
||||||
|
overflow: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-back {
|
||||||
|
--icon-mask-image: var(--icon-back-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-close {
|
||||||
|
--icon-mask-image: var(--icon-close-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-menu {
|
||||||
|
--icon-mask-image: var(--icon-menu-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-log-in {
|
||||||
|
--icon-mask-image: var(--icon-log-in-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-log-out {
|
||||||
|
--icon-mask-image: var(--icon-log-out-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon-user {
|
||||||
|
--icon-mask-image: var(--icon-user-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .docs-icon {
|
||||||
|
--icon-mask-image: var(--icon-docs-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .demos-icon {
|
||||||
|
--icon-mask-image: var(--icon-demos-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .footer-button:hover .demos-icon {
|
||||||
|
background-color: var(--dxbl-btn-hover-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .footer-button:hover .docs-icon {
|
||||||
|
background-color: var(--dxbl-btn-hover-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu-button:hover .icon {
|
||||||
|
background-color: var(--dxbl-btn-hover-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu-button-nav:hover .icon {
|
||||||
|
background-color: var(--dxbl-btn-hover-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-open .menu-button {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button-nav {
|
||||||
|
background-image: url("images/close.svg");
|
||||||
|
width: 1.875rem;
|
||||||
|
height: 1.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-buttons-container {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 2rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-buttons-container ::deep .menubutton-float-end {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-buttons-container ::deep .dxbl-btn-icon-only {
|
||||||
|
--dxbl-btn-padding-x: 0.75rem;
|
||||||
|
--dxbl-btn-padding-y: 0.25rem;
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<div id="sidebar">
|
||||||
|
<DxMenu Orientation="@Orientation.Vertical" CssClass="menu" DropDownActionMode="MenuDropDownActionMode.Click" CollapseItemsToHamburgerMenu="true"
|
||||||
|
CollapseItemToIconMode="MenuCollapseItemToIconMode.All" SubMenuCssClass="menu-dropdown">
|
||||||
|
<Items>
|
||||||
|
<DxMenuItem NavigateUrl="/" Text="Home" CssClass="menu-item" IconCssClass="icon home-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/counter" Text="Counter" CssClass="menu-item" IconCssClass="icon counter-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/weather" Text="Weather" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/layout" Text="Layout-Test" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/pdfviewer" Text="PDF-Viewer" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/msgfile" Text="MSG-Viewer" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/todoliste" Text="ToDo-Liste" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/produktion/cockpit" Text="Cockpit" CssClass="menu-item"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/produktion/aufträge" Text="Aufträge" CssClass="menu-item"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/produktion/störungen" Text="Störungen" CssClass="menu-item"></DxMenuItem>
|
||||||
|
<DxMenuItem NavigateUrl="/login" Text="Login" CssClass="menu-item" IconCssClass="icon weather-icon"></DxMenuItem>
|
||||||
|
</Items>
|
||||||
|
</DxMenu>
|
||||||
|
</div>
|
||||||
@ -0,0 +1,82 @@
|
|||||||
|
#sidebar {
|
||||||
|
min-width: 15rem;
|
||||||
|
max-width: 15rem;
|
||||||
|
transition: transform 0.1s ease-out;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
display: block;
|
||||||
|
background: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu.display-mobile {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu.display-iam {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu {
|
||||||
|
--dxbl-menu-bottom-left-border-radius: 0;
|
||||||
|
--dxbl-menu-bottom-right-border-radius: 0;
|
||||||
|
--dxbl-menu-top-left-border-radius: 0;
|
||||||
|
--dxbl-menu-top-right-border-radius: 0;
|
||||||
|
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu .dxbl-menu-item-list {
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .menu-item {
|
||||||
|
color: var(--bs-white, #fff);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .icon {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .home-icon {
|
||||||
|
--icon-mask-image: var(--icon-home-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .weather-icon {
|
||||||
|
--icon-mask-image: var(--icon-weather-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .counter-icon {
|
||||||
|
--icon-mask-image: var(--icon-counter-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .settings-icon {
|
||||||
|
--icon-mask-image: var(--icon-settings-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .log-in-icon {
|
||||||
|
--icon-mask-image: var(--icon-log-in-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .log-out-icon {
|
||||||
|
--icon-mask-image: var(--icon-log-out-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .user-icon {
|
||||||
|
--icon-mask-image: var(--icon-user-mask-image);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#sidebar {
|
||||||
|
min-width: inherit;
|
||||||
|
max-width: inherit;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
text-align: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
@page "/counter"
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
<PageTitle>Counter</PageTitle>
|
||||||
|
|
||||||
|
<h1>Counter</h1>
|
||||||
|
|
||||||
|
<div class="counter-block">
|
||||||
|
<div class="counter-content">
|
||||||
|
<div class="counter-count">
|
||||||
|
@currentCount
|
||||||
|
</div>
|
||||||
|
<div class="counter-text">
|
||||||
|
current count
|
||||||
|
</div>
|
||||||
|
<div class="counter-block-back"></div>
|
||||||
|
</div>
|
||||||
|
<DxButton Click="IncrementCount">Click me</DxButton>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
private int currentCount = 0;
|
||||||
|
|
||||||
|
private void IncrementCount()
|
||||||
|
{
|
||||||
|
currentCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
.counter-block {
|
||||||
|
display: flex;
|
||||||
|
padding: 2.5rem 1.5rem 1.5rem 1.5rem;
|
||||||
|
flex-direction: column;
|
||||||
|
border-radius: 1rem;
|
||||||
|
gap: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 16.875rem;
|
||||||
|
height: 17rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.counter-block .counter-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.counter-block .counter-count {
|
||||||
|
font-size: 7.5rem;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 7.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.counter-block .counter-block-back {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
|
||||||
|
opacity: 0.05;
|
||||||
|
border-radius: 1rem;
|
||||||
|
z-index: -2;
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
@page "/Error"
|
||||||
|
@using System.Diagnostics
|
||||||
|
|
||||||
|
<PageTitle>Error</PageTitle>
|
||||||
|
|
||||||
|
<h1 class="text-danger">Error.</h1>
|
||||||
|
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||||
|
|
||||||
|
@if (ShowRequestId)
|
||||||
|
{
|
||||||
|
<p>
|
||||||
|
<strong>Request ID:</strong> <code>@RequestId</code>
|
||||||
|
</p>
|
||||||
|
}
|
||||||
|
|
||||||
|
<h3>Development Mode</h3>
|
||||||
|
<p>
|
||||||
|
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||||
|
It can result in displaying sensitive information from exceptions to end users.
|
||||||
|
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||||
|
and restarting the app.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@code{
|
||||||
|
[CascadingParameter]
|
||||||
|
private HttpContext? HttpContext { get; set; }
|
||||||
|
|
||||||
|
private string? RequestId { get; set; }
|
||||||
|
private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||||
|
|
||||||
|
protected override void OnInitialized() =>
|
||||||
|
RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
|
||||||
|
}
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
@page "/"
|
||||||
|
<PageTitle>Welcome</PageTitle>
|
||||||
|
|
||||||
|
<div class="main-content">
|
||||||
|
<DxGridLayout CssClass="welcome-gridlayout" RowSpacing="3rem">
|
||||||
|
<Rows>
|
||||||
|
<DxGridLayoutRow Height="auto" Areas="header"></DxGridLayoutRow>
|
||||||
|
<DxGridLayoutRow Height="auto" Areas="cards"></DxGridLayoutRow>
|
||||||
|
</Rows>
|
||||||
|
<Items>
|
||||||
|
<DxGridLayoutItem Area="header" CssClass="title">
|
||||||
|
<Template>
|
||||||
|
<div class="title-header-text">Hello World!</div>
|
||||||
|
<div class="title-content-text">Welcome to your new DevExpress Blazor Application</div>
|
||||||
|
</Template>
|
||||||
|
</DxGridLayoutItem>
|
||||||
|
<DxGridLayoutItem Area="cards" CssClass="welcome-cards">
|
||||||
|
<Template>
|
||||||
|
<NavLink class="welcome-card" href="@UrlGenerator.GetUrl("/counter", ToggledSidebar)">
|
||||||
|
<svg class="welcome-card-img" alt="counter card">
|
||||||
|
<use href="images/cards.svg#counter"></use>
|
||||||
|
</svg>
|
||||||
|
<div class="welcome-card-text">Counter</div>
|
||||||
|
<div class="welcome-card-back"></div>
|
||||||
|
</NavLink>
|
||||||
|
<NavLink class="welcome-card" href="@UrlGenerator.GetUrl("/weather", ToggledSidebar)">
|
||||||
|
<svg class="welcome-card-img" alt="weather card">
|
||||||
|
<use href="images/cards.svg#weather"></use>
|
||||||
|
</svg>
|
||||||
|
<div class="welcome-card-text">Weather</div>
|
||||||
|
<div class="welcome-card-back"></div>
|
||||||
|
</NavLink>
|
||||||
|
</Template>
|
||||||
|
</DxGridLayoutItem>
|
||||||
|
</Items>
|
||||||
|
</DxGridLayout>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[SupplyParameterFromQuery(Name = UrlGenerator.ToggleSidebarName)]
|
||||||
|
public bool ToggledSidebar { get; set; }
|
||||||
|
}
|
||||||
@ -0,0 +1,66 @@
|
|||||||
|
::deep .welcome-gridlayout {
|
||||||
|
margin: auto;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-gridlayout .dxbl-gridlayout-root {
|
||||||
|
align-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .title {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-cards {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-card {
|
||||||
|
width: 26.25rem;
|
||||||
|
height: 15rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
|
||||||
|
transition: box-shadow 0.2s;
|
||||||
|
border-radius: 1rem;
|
||||||
|
color: var(--bs-link-color, var(--DS-primary-90));
|
||||||
|
gap: 1.5rem;
|
||||||
|
text-decoration: none;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-card:hover {
|
||||||
|
box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-card .welcome-card-img {
|
||||||
|
width: 6.5rem;
|
||||||
|
height: 6.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-card .welcome-card-text {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0em;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .welcome-card .welcome-card-back {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
|
||||||
|
opacity: 0.05;
|
||||||
|
border-radius: 1rem;
|
||||||
|
z-index: -2;
|
||||||
|
}
|
||||||
@ -0,0 +1,99 @@
|
|||||||
|
@page "/layout"
|
||||||
|
@using System.IO
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject IJSRuntime JS
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.downloadFileFromStream = async (fileName, contentStreamReference) => {
|
||||||
|
const arrayBuffer = await contentStreamReference.arrayBuffer();
|
||||||
|
const blob = new Blob([arrayBuffer]);
|
||||||
|
const url = URL.createObjectURL(blob);
|
||||||
|
const anchorElement = document.createElement('a');
|
||||||
|
anchorElement.href = url;
|
||||||
|
anchorElement.download = fileName ?? '';
|
||||||
|
anchorElement.click();
|
||||||
|
anchorElement.remove();
|
||||||
|
URL.revokeObjectURL(url);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
|
||||||
|
<DxFormLayout CssClass="w-100 demo-form-layout">
|
||||||
|
<DxFormLayoutItem Caption="Contact Name:">
|
||||||
|
<DxTextBox @bind-Text="@Name" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="eMail:">
|
||||||
|
<DxTextBox @bind-Text="@Email" InputId="contactEmail" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="Birth Date:">
|
||||||
|
<DxDateEdit @bind-Date="@BirthDate" Mask="@DateTimeMask.ShortDate" PickerDisplayMode="DatePickerDisplayMode.Calendar" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="Years Worked:">
|
||||||
|
<DxSpinEdit @bind-Value="@YearsWorked" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem Caption="On Vacation:">
|
||||||
|
<DxCheckBox @bind-Checked="@OnVacation" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
|
||||||
|
<div class="w-100 mx-0 mt-3">
|
||||||
|
<p class="demo-text col-12 mt-2">
|
||||||
|
@nameof(Name)=<b>@Name</b>,
|
||||||
|
@nameof(Email)=<b>@Email</b>,
|
||||||
|
@nameof(BirthDate)=<b>@BirthDate</b>,
|
||||||
|
@nameof(YearsWorked)=<b>@YearsWorked</b>,
|
||||||
|
@nameof(OnVacation)=<b>@OnVacation</b>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
|
||||||
|
<DxFormLayout>
|
||||||
|
@* If the viewport width is less then 768px (medium), the item occupies 12 columns *@
|
||||||
|
@* If the viewport width is from 768px (medium) to 1200px (extra large), the item occupies 6 columns *@
|
||||||
|
@* If the viewport width exceeds 1200px (extra large), the item occupies 4 columns *@
|
||||||
|
<DxFormLayoutItem Caption="Name" ColSpanXl="4" ColSpanMd="6">
|
||||||
|
<DxTextBox />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
<div>
|
||||||
|
<button @onclick="DownloadFileFromStream">
|
||||||
|
Download File From Stream
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string Name { get; set; } = "Nancy Davolio";
|
||||||
|
string Email { get; set; } = "NancyDavolio@sample.com";
|
||||||
|
DateTime BirthDate { get; set; } = DateTime.Now.AddYears(-20);
|
||||||
|
int YearsWorked { get; set; } = 3;
|
||||||
|
bool OnVacation { get; set; } = true;
|
||||||
|
bool IsInfoOpen { get; set; } = false;
|
||||||
|
|
||||||
|
/* private Stream GetFileStream()
|
||||||
|
{
|
||||||
|
var randomBinaryData = new byte[50 * 1024];
|
||||||
|
var fileStream = new MemoryStream(randomBinaryData);
|
||||||
|
|
||||||
|
return fileStream;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
private Stream GetFileStream() => File.OpenRead(@"D:\Mappe1.xlsx");
|
||||||
|
|
||||||
|
private async Task DownloadFileFromStream()
|
||||||
|
{
|
||||||
|
var fileStream = GetFileStream();
|
||||||
|
var fileName = "Mappe2.xlsx";
|
||||||
|
|
||||||
|
using var streamRef = new DotNetStreamReference(stream: fileStream);
|
||||||
|
|
||||||
|
await JS.InvokeVoidAsync("downloadFileFromStream", fileName, streamRef);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
@page "/login"
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject NavigationManager Navigation
|
||||||
|
|
||||||
|
<div class="card cw-480" style="width: 400px">
|
||||||
|
<EditForm Model="@Data"
|
||||||
|
OnValidSubmit="@HandleValidSubmit"
|
||||||
|
OnInvalidSubmit="@HandleInvalidSubmit"
|
||||||
|
Context="EditFormContext">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
<div class="card-header text-center py-3">
|
||||||
|
<h4>Welcome to DevExpress</h4>
|
||||||
|
<p class="tm-8 mb-0 fw-normal fs-825">
|
||||||
|
Log in to see it in action
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<DxFormLayout>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbUsername" class="d-none">Username</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Username"
|
||||||
|
NullText="Username"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbUsername" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Username)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbPassword" class="d-none">Password</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Password"
|
||||||
|
NullText="Password"
|
||||||
|
Password="true"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbPassword" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Password)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<DxButton CssClass="w-100"
|
||||||
|
Text="Login"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
SubmitFormOnClick="true" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<div class="text-center pt-2">
|
||||||
|
<div class="tm-8 fs-825">
|
||||||
|
Do not have an account?
|
||||||
|
</div>
|
||||||
|
<DxButton Text="Create an account"
|
||||||
|
RenderStyle="ButtonRenderStyle.Link"
|
||||||
|
Click="GotoRegistrationForm" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
</div>
|
||||||
|
<p class="tm-8 cw-480 mt-2">
|
||||||
|
@FormSubmitResult
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string FormSubmitResult = "";
|
||||||
|
UserDataBase Data { get; set; } = new UserDataBase();
|
||||||
|
void GotoRegistrationForm()
|
||||||
|
{
|
||||||
|
Navigation.NavigateTo("/register");
|
||||||
|
|
||||||
|
}
|
||||||
|
void HandleValidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "You have been logged in successully.";
|
||||||
|
}
|
||||||
|
void HandleInvalidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,77 @@
|
|||||||
|
@page "/msgfile"
|
||||||
|
@using DevExpress.Blazor.Office
|
||||||
|
@using System.Text
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
|
||||||
|
|
||||||
|
<div id="overviewDemoDropZone" class="card custom-drop-zone rounded-3 w-100 m-0">
|
||||||
|
<span class="drop-file-icon mb-3"></span>
|
||||||
|
<span class="drop-file-label">Drag and Drop File Here</span><span class="m-1">or</span>
|
||||||
|
<DxButton Id="overviewDemoSelectButton"
|
||||||
|
CssClass="m-1"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
Text="Select File" />
|
||||||
|
</div>
|
||||||
|
<DxFileInput @ref="fileInput"
|
||||||
|
AcceptedFileTypes="@ALLOWED_FILE_TYPES"
|
||||||
|
AllowedFileExtensions="@ALLOWED_FILE_TYPES"
|
||||||
|
ShowFileList=false
|
||||||
|
CssClass="w-100"
|
||||||
|
ExternalDropZoneCssSelector="#overviewDemoDropZone"
|
||||||
|
ExternalDropZoneDragOverCssClass="custom-drop-zone-hover"
|
||||||
|
ExternalSelectButtonCssSelector="#overviewDemoSelectButton"
|
||||||
|
FilesUploading="OnFilesUploading"
|
||||||
|
AllowMultiFileUpload=true
|
||||||
|
Visible=false
|
||||||
|
MaxFileSize="2000000">
|
||||||
|
</DxFileInput>
|
||||||
|
|
||||||
|
<div>@((MarkupString)@markup)</div>
|
||||||
|
<div>
|
||||||
|
<p>@LastError</p>
|
||||||
|
</div>
|
||||||
|
@code {
|
||||||
|
readonly List<string> ALLOWED_FILE_TYPES = new List<string> { ".msg" };
|
||||||
|
DxFileInput fileInput;
|
||||||
|
string markup = "";
|
||||||
|
string LastError = "";
|
||||||
|
|
||||||
|
|
||||||
|
protected async Task OnFilesUploading(FilesUploadingEventArgs args)
|
||||||
|
{
|
||||||
|
LastError = "";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (MemoryStream stream = new MemoryStream())
|
||||||
|
{
|
||||||
|
IFileInputSelectedFile file = args.Files[0];
|
||||||
|
Console.WriteLine($"Uploading {args.Files[0]}");
|
||||||
|
await file.OpenReadStream(file.Size).CopyToAsync(stream);
|
||||||
|
|
||||||
|
using (var msg = new MsgReader.Outlook.Storage.Message(stream))
|
||||||
|
{
|
||||||
|
var from = msg.Sender;
|
||||||
|
var sentOn = msg.SentOn;
|
||||||
|
var recipientsTo = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.To, false, false);
|
||||||
|
var recipientsCc = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.Cc, false, false);
|
||||||
|
var subject = msg.Subject;
|
||||||
|
var htmlBody = msg.BodyHtml;
|
||||||
|
//txtGeadresseerders.Text = recipientsTo;
|
||||||
|
//txtVerzender.Text = from.DisplayName;
|
||||||
|
markup = msg.BodyHtml;
|
||||||
|
//richEditControl1.RtfText = msg.BodyRtf;
|
||||||
|
//MessageBox.Show(msg.BodyRtf);
|
||||||
|
// etc...
|
||||||
|
//await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
markup = "";
|
||||||
|
LastError = $"{e.GetType().ToString()}: thrown with message: {e.Message}";
|
||||||
|
}
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
@page "/pdfviewer"
|
||||||
|
@using DevExpress.Blazor.PdfViewer
|
||||||
|
@using System.Reflection
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href=@AppendVersion("_content/DevExpress.Blazor.Viewer/css/dx-blazor-viewer-components.bs5.css")>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div style="display: flex">
|
||||||
|
|
||||||
|
<div id="overviewDemoDropZone" class="card custom-drop-zone rounded-3 w-100 m-0">
|
||||||
|
<span class="drop-file-icon mb-3"></span>
|
||||||
|
<span class="drop-file-label">Drag and Drop File Here</span><span class="m-1">or</span>
|
||||||
|
<DxButton Id="overviewDemoSelectButton"
|
||||||
|
CssClass="m-1"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
Text="Select File" />
|
||||||
|
</div>
|
||||||
|
<DxFileInput @ref="fileInput"
|
||||||
|
AcceptedFileTypes="@ALLOWED_FILE_TYPES"
|
||||||
|
AllowedFileExtensions="@ALLOWED_FILE_TYPES"
|
||||||
|
CssClass="w-100"
|
||||||
|
ExternalDropZoneCssSelector="#overviewDemoDropZone"
|
||||||
|
ExternalDropZoneDragOverCssClass="custom-drop-zone-hover"
|
||||||
|
ExternalSelectButtonCssSelector="#overviewDemoSelectButton"
|
||||||
|
FilesUploading="OnFilesUploading"
|
||||||
|
MaxFileSize="2000000">
|
||||||
|
</DxFileInput>
|
||||||
|
<div style="width: 4000px">
|
||||||
|
<DxPdfViewer CssClass="w-100 pdf-viewer" DocumentContent="DocumentContent" ZoomLevel=1/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
readonly List<string> ALLOWED_FILE_TYPES = new List<string> { ".pdf" };
|
||||||
|
DxFileInput fileInput;
|
||||||
|
byte[] DocumentContent { get; set; }
|
||||||
|
|
||||||
|
private Stream GetFileStream() => File.OpenRead(@"D:\E-RechnungA3.pdf");
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
Assembly assembly = Assembly.GetExecutingAssembly();
|
||||||
|
using (Stream stream = GetFileStream())
|
||||||
|
using (var binaryReader = new BinaryReader(stream))
|
||||||
|
DocumentContent = binaryReader.ReadBytes((int)stream.Length);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async Task OnFilesUploading(FilesUploadingEventArgs args)
|
||||||
|
{
|
||||||
|
using (MemoryStream stream = new MemoryStream())
|
||||||
|
{
|
||||||
|
IFileInputSelectedFile file = args.Files[0];
|
||||||
|
await file.OpenReadStream(file.Size).CopyToAsync(stream);
|
||||||
|
DocumentContent = stream.ToArray();
|
||||||
|
await InvokeAsync(StateHasChanged);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string AppendVersion(string path) => $"{path}?v={typeof(DevExpress.Blazor.ResourcesConfigurator).Assembly.GetName().Version}";
|
||||||
|
}
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
@page "/produktion/aufträge"
|
||||||
|
@using DxBlazorApplication2.Components.Formen
|
||||||
|
@using DxBlazorApplication2.Services.Produktion
|
||||||
|
@using DxBlazorApplication2.Data.Produktion
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject FSTLService _FSTLService;
|
||||||
|
@inject PSDLService _PSDLService;
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<PageTitle>Produktionsaufträge</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<h4>Firma</h4>
|
||||||
|
<DxComboBox Data="@FSTLItems" TextFieldName="FSNAME" @bind-Value="@Firma" CssClass="cw-480" InputId="cbOverview"
|
||||||
|
SelectedDataItemChanged="(SelectedDataItemChangedEventArgs<FSTLItem> args) => OnSelectedFirmaChanged(args)" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<DxGrid @ref="PSDLGrid" Data="@PSDLItems" ShowGroupPanel="true" TextWrapEnabled="false" AutoExpandAllGroupRows="true"
|
||||||
|
ShowSearchBox="true" AllowSelectRowByClick="true" PageSize="15" HighlightRowOnHover="true">
|
||||||
|
<Columns>
|
||||||
|
<DxGridDataColumn FieldName="PDLINI" Caption="Linie" GroupIndex="0" Width="100px" FilterMenuButtonDisplayMode="GridFilterMenuButtonDisplayMode.Always" />
|
||||||
|
<DxGridDataColumn FieldName="PDPANR" Caption="Auftrag" DisplayFormat="F0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDARNR" Caption="Artikel" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDARBZ" Caption="Bezeichnung" Width="300px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDCHAR" Caption="Charge" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMHD" Caption="MHD" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDPRDT" Caption="Datum" DisplayFormat="dd.MM.yyyy" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDTIMV" Caption="Zeit von" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDTIMB" Caption="Zeit bis" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMGPL" Caption="Plan [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMGIS" Caption="Ist [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDGWPL" Caption="Plan [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDGWIS" Caption="Ist [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<!-- <DxGridDataColumn FieldName="PDFIRM" Caption="Firma" Visible="false" FilterRowValue="@Firma.FSFIRM" /> -->
|
||||||
|
</Columns>
|
||||||
|
</DxGrid>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
private IList<FSTLItem> FSTLItems { get; set; } = new List<FSTLItem>();
|
||||||
|
private IList<PSDLItem> PSDLItems { get; set; } = new List<PSDLItem>();
|
||||||
|
private DotNetObjectReference<Aufträge>? objRef;
|
||||||
|
|
||||||
|
IGrid PSDLGrid { get; set; }
|
||||||
|
private FSTLItem Firma;
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
FSTLItems = _FSTLService.GetItems().ToList();
|
||||||
|
// Firma in der Combobox vorbelegen
|
||||||
|
Firma = FSTLItems[0];
|
||||||
|
this._PSDLService.OnItemChanged += this.OnPSDLItemChanged;
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDFIRM == Firma.FSFIRM).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Austragen, da Seite nicht mehr benutzt wird
|
||||||
|
this._PSDLService.OnItemChanged -= this.OnPSDLItemChanged;
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void OnSelectedFirmaChanged(SelectedDataItemChangedEventArgs<FSTLItem> args)
|
||||||
|
{
|
||||||
|
// Nur aktualisieren, wenn der Benutzer geändert hat
|
||||||
|
if (args.ChangeSource == SelectionChangeSource.UserAction)
|
||||||
|
{
|
||||||
|
Firma = args.DataItem;
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDFIRM == args.DataItem.FSFIRM).ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async void OnPSDLItemChanged(object sender, PSDLServiceEventArgs args)
|
||||||
|
{
|
||||||
|
if (args.DataItem.PDFIRM == Firma.FSFIRM)
|
||||||
|
{
|
||||||
|
await InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDFIRM == Firma.FSFIRM).ToList();
|
||||||
|
PSDLGrid.Reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,95 @@
|
|||||||
|
@page "/produktion/aufträgeprolinie/{LINI}"
|
||||||
|
@using DxBlazorApplication2.Components.Formen
|
||||||
|
@using DxBlazorApplication2.Services.Produktion
|
||||||
|
@using DxBlazorApplication2.Data.Produktion
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject TabellenService _tabellenService;
|
||||||
|
@inject PSDLService _PSDLService;
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<PageTitle>Produktionsaufträge</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<h4>Linie</h4>
|
||||||
|
<DxComboBox Data="@Linien" TextFieldName="TABKEY" @bind-Value="@Linie" CssClass="cw-480" InputId="cbOverview"
|
||||||
|
SelectedDataItemChanged="(SelectedDataItemChangedEventArgs<TabellenItem> args) => OnSelectedLinieChanged(args)"
|
||||||
|
SearchMode="@ListSearchMode.AutoSearch"
|
||||||
|
SearchFilterCondition="@ListSearchFilterCondition.Contains">
|
||||||
|
<Columns>
|
||||||
|
<DxListEditorColumn FieldName="TABKEY" Caption="Linie" />
|
||||||
|
<DxListEditorColumn FieldName="TABTEXT" Caption="Bezeichnung" />
|
||||||
|
</Columns>
|
||||||
|
</DxComboBox>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<DxGrid @ref="PSDLGrid" Data="@PSDLItems" ShowGroupPanel="false" TextWrapEnabled="false" AutoExpandAllGroupRows="true"
|
||||||
|
ShowSearchBox="true" AllowSelectRowByClick="true" PageSize="15" HighlightRowOnHover="true">
|
||||||
|
<Columns>
|
||||||
|
<DxGridDataColumn FieldName="PDPANR" Caption="Auftrag" DisplayFormat="F0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDARNR" Caption="Artikel" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDARBZ" Caption="Bezeichnung" Width="300px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDCHAR" Caption="Charge" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMHD" Caption="MHD" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDPRDT" Caption="Datum" DisplayFormat="dd.MM.yyyy" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDTIMV" Caption="Zeit von" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDTIMB" Caption="Zeit bis" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMGPL" Caption="Plan [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDMGIS" Caption="Ist [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDGWPL" Caption="Plan [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="PDGWIS" Caption="Ist [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
</Columns>
|
||||||
|
</DxGrid>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
[Parameter]
|
||||||
|
public string LINI { get; set; } = "";
|
||||||
|
|
||||||
|
private IList<TabellenItem> Linien { get; set; }
|
||||||
|
private IList<PSDLItem> PSDLItems { get; set; } = new List<PSDLItem>();
|
||||||
|
private DotNetObjectReference<Aufträge>? objRef;
|
||||||
|
|
||||||
|
IGrid PSDLGrid { get; set; }
|
||||||
|
private TabellenItem Linie = new TabellenItem();
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
Linien = _tabellenService.GetTabellenItems("LILINI");
|
||||||
|
// Linie in der Combobox vorbelegen
|
||||||
|
Linie = Linien.FirstOrDefault(item => item.TABKEY == LINI);
|
||||||
|
this._PSDLService.OnItemChanged += this.OnPSDLItemChanged;
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDLINI == Linie.TABKEY).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Austragen, da Seite nicht mehr benutzt wird
|
||||||
|
this._PSDLService.OnItemChanged -= this.OnPSDLItemChanged;
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void OnSelectedLinieChanged(SelectedDataItemChangedEventArgs<TabellenItem> args)
|
||||||
|
{
|
||||||
|
// Nur aktualisieren, wenn der Benutzer geändert hat
|
||||||
|
if (args.ChangeSource == SelectionChangeSource.UserAction)
|
||||||
|
{
|
||||||
|
Linie = args.DataItem;
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDLINI == Linie.TABKEY).ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async void OnPSDLItemChanged(object sender, PSDLServiceEventArgs args)
|
||||||
|
{
|
||||||
|
if (args.DataItem.PDLINI == Linie.TABKEY)
|
||||||
|
{
|
||||||
|
await InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
PSDLItems = _PSDLService.GetItems().Where(item => item.PDLINI == Linie.TABKEY).ToList();
|
||||||
|
PSDLGrid.Reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,131 @@
|
|||||||
|
@page "/produktion/cockpit"
|
||||||
|
@using DxBlazorApplication2.Components.Formen
|
||||||
|
@using DxBlazorApplication2.Services
|
||||||
|
@using DxBlazorApplication2.Services.Produktion
|
||||||
|
@using DxBlazorApplication2.Data.Produktion
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject FSTLService _FSTLService;
|
||||||
|
@inject PSDLService _PSDLService;
|
||||||
|
@inject BDSTService _BDSTService;
|
||||||
|
@inject TabellenService _TabellenService;
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<PageTitle>Cockpit</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<h4>Firma</h4>
|
||||||
|
<DxComboBox Data="@FSTLItems" TextFieldName="FSNAME" @bind-Value="@Firma" CssClass="cw-480" InputId="cbOverview"
|
||||||
|
SelectedDataItemChanged="(SelectedDataItemChangedEventArgs<FSTLItem> args) => OnSelectedFirmaChanged(args)" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<DxGrid @ref="CockpitGrid" Data="@CockpitItems" ShowGroupPanel="false" TextWrapEnabled="false" AutoExpandAllGroupRows="true"
|
||||||
|
ShowSearchBox="true" AllowSelectRowByClick="true" PageSize="100" HighlightRowOnHover="true" CustomizeElement="Grid_CustomizeElement" RowDoubleClick="Grid_OnRowDoubleClick">
|
||||||
|
<Columns>
|
||||||
|
<DxGridDataColumn FieldName="WWLINI" Caption="Linie" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWPANR" Caption="Auftrag" DisplayFormat="F0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWARNR" Caption="Artikel" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWARBZ" Caption="Bezeichnung" Width="300px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWCHAR" Caption="Charge" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWMHD" Caption="MHD" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWPRDT" Caption="Datum" DisplayFormat="dd.MM.yyyy" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWTIMV" Caption="Zeit von" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWTIMB" Caption="Zeit bis" DisplayFormat="HH:mm" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWMGPL" Caption="Plan [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWMGIS" Caption="Ist [VSE]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWGWPL" Caption="Plan [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<DxGridDataColumn FieldName="WWGWIS" Caption="Ist [kg]" DisplayFormat="N0" Width="100px" AllowGroup="false" AllowSort="false" />
|
||||||
|
<!-- <DxGridDataColumn FieldName="PDFIRM" Caption="Firma" Visible="false" FilterRowValue="@Firma.FSFIRM" /> -->
|
||||||
|
</Columns>
|
||||||
|
</DxGrid>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
private CockpitService _CockpitService;
|
||||||
|
private IList<FSTLItem> FSTLItems { get; set; } = new List<FSTLItem>();
|
||||||
|
private IList<CockpitItem> CockpitItems { get; set; } = new List<CockpitItem>();
|
||||||
|
private DotNetObjectReference<Cockpit>? objRef;
|
||||||
|
private readonly Logger _logger = new Logger();
|
||||||
|
|
||||||
|
IGrid CockpitGrid { get; set; }
|
||||||
|
private FSTLItem Firma;
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
_logger.Log("Cockpit.OnInitialized()");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnAfterRender(bool firstRender)
|
||||||
|
{
|
||||||
|
_logger.Log($"Cockpit.OnAfterRender({firstRender})");
|
||||||
|
|
||||||
|
}
|
||||||
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
|
{
|
||||||
|
_logger.Log($"Cockpit.OnAfterRenderAsync({firstRender})");
|
||||||
|
if (firstRender)
|
||||||
|
{
|
||||||
|
_CockpitService = new CockpitService(_TabellenService, _PSDLService, _BDSTService);
|
||||||
|
FSTLItems = _FSTLService.GetItems().ToList();
|
||||||
|
// Firma in der Combobox vorbelegen
|
||||||
|
Firma = FSTLItems[0];
|
||||||
|
_CockpitService.OnItemChanged += this.OnCockpitItemChanged;
|
||||||
|
CockpitItems = _CockpitService.GetItems().Where(item => item.WWWERK == Firma.FSFIRM).ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
_logger.Log("Cockpit.Dispose()");
|
||||||
|
// Austragen, da Seite nicht mehr benutzt wird
|
||||||
|
if (_CockpitService != null)
|
||||||
|
{
|
||||||
|
_CockpitService.OnItemChanged -= this.OnCockpitItemChanged;
|
||||||
|
_CockpitService.Dispose();
|
||||||
|
}
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void OnSelectedFirmaChanged(SelectedDataItemChangedEventArgs<FSTLItem> args)
|
||||||
|
{
|
||||||
|
// Nur aktualisieren, wenn der Benutzer geändert hat
|
||||||
|
if (args.ChangeSource == SelectionChangeSource.UserAction)
|
||||||
|
{
|
||||||
|
Firma = args.DataItem;
|
||||||
|
CockpitItems = _CockpitService.GetItems().Where(item => item.WWWERK == Firma.FSFIRM).ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Grid_CustomizeElement(GridCustomizeElementEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.ElementType == GridElementType.DataCell && e.Column.Caption == "Linie")
|
||||||
|
{
|
||||||
|
if ((bool)e.Grid.GetRowValue(e.VisibleIndex, "StörungAktiv"))
|
||||||
|
e.CssClass = "stoerung_aktiv";
|
||||||
|
else
|
||||||
|
e.CssClass = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Grid_OnRowDoubleClick(GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
NavigationManager.NavigateTo($"/produktion/aufträgeprolinie/{e.Grid.GetRowValue(e.VisibleIndex, "WWLINI")}");
|
||||||
|
}
|
||||||
|
|
||||||
|
public async void OnCockpitItemChanged(object sender, CockpitServiceEventArgs args)
|
||||||
|
{
|
||||||
|
if (args.DataItem.WWWERK == Firma.FSFIRM)
|
||||||
|
{
|
||||||
|
await InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
CockpitItems = _CockpitService.GetItems().Where(item => item.WWWERK == Firma.FSFIRM).ToList();
|
||||||
|
CockpitGrid.Reload();
|
||||||
|
//StateHasChanged();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,282 @@
|
|||||||
|
@page "/produktion/störungen"
|
||||||
|
@using DxBlazorApplication2.Components.Formen
|
||||||
|
@using DxBlazorApplication2.Services.Produktion;
|
||||||
|
@using DxBlazorApplication2.Data.Produktion;
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject BDSTService _BDSTService;
|
||||||
|
@inject TabellenService _TabellenService;
|
||||||
|
@inject IDialogService DialogService;
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<PageTitle>Störungen</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th width="100px">Linie</th>
|
||||||
|
<th width="100px"></th>
|
||||||
|
<th width="100px">Startzeit</th>
|
||||||
|
<th width="150px">Kostenstelle</th>
|
||||||
|
<th width="200px">Art</th>
|
||||||
|
<th width="200px">Code</th>
|
||||||
|
<th width="200px">Stillstand</th>
|
||||||
|
<th width="50px">Schlosser</th>
|
||||||
|
<th width="50px">Elektriker</th>
|
||||||
|
<th width="50px">Sonstige</th>
|
||||||
|
<th width="100px">Endzeit</th>
|
||||||
|
<th width="100px"></th>
|
||||||
|
<th width="100px"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach (var item in Items)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="@ItemClass(item)">@item.BTLINI</div>
|
||||||
|
</td>
|
||||||
|
@if (item.Sichtbar)
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
<DxButton class="btn btn-primary" onclick="@(() => Beenden(item))">Beenden</DxButton>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxTimeEdit @bind-Time="@item.BTTIMV"
|
||||||
|
NullText="Startzeit"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="deBTTIMV" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxComboBox Data="_BTMTYP" ValueFieldName="@nameof(TabellenItem.TABKEY)" TextFieldName="@nameof(TabellenItem.TABTEXT)" @bind-Value="@item.BTMTYP"
|
||||||
|
InputId="deBTMTYP" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxComboBox Data="_BTSTYP" ValueFieldName="@nameof(TabellenItem.TABKEY)" TextFieldName="@nameof(TabellenItem.TABTEXT)" @bind-Value="@item.BTSTYP"
|
||||||
|
InputId="deBTSTYP" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxComboBox Data="_BTSCOD" ValueFieldName="@nameof(TabellenItem.TABKEY)" TextFieldName="@nameof(TabellenItem.TABTEXT)" @bind-Value="@item.BTSCOD"
|
||||||
|
InputId="deBTSCOD" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxComboBox Data="_BTSTIL" ValueFieldName="@nameof(TabellenItem.TABKEY)" TextFieldName="@nameof(TabellenItem.TABTEXT)" @bind-Value="@item.BTSTIL"
|
||||||
|
InputId="deBTSTIL" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxMaskedInput @bind-Value="@item.BTSCHL"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxMaskedInput @bind-Value="@item.BTELEK"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxMaskedInput @bind-Value="@item.BTSONS" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxTimeEdit @bind-Time="@item.BTTIMB"
|
||||||
|
NullText="Endzeit"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="deBTTIMB" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxButton class="btn btn-primary" onclick="@(() => Speichern(item))">Speichern</DxButton>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<DxButton class="btn btn-danger" onclick="@(() => Löschen(item))">Löschen</DxButton>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
|
@if (!item.Sichtbar)
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
<DxButton class="btn btn-primary" onclick="@(() => StarteErfassung(item))">Störung!</DxButton>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
|
</tr>
|
||||||
|
@if(!string.IsNullOrWhiteSpace(item.Fehlertext))
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td colspan="10" class="text-danger">@item.Fehlertext</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<div style="display: flex; align-items: center; width: 400px;">
|
||||||
|
<div style="margin-right: 10px">Linie</div>
|
||||||
|
<label for="NeueLinie" class="d-none">Linie</label>
|
||||||
|
<DxTextBox @bind-Text="NeueLinie.LILINI" style="margin-right: 10px" id="NeueLinie" />
|
||||||
|
<DxButton class="btn btn-primary" onclick="@(() => AddLinie(NeueLinie.LILINI))">Hinzufügen</DxButton>
|
||||||
|
<DxButton class="btn btn-danger" onclick="@(() => RemoveLinie(NeueLinie.LILINI))">Entfernen</DxButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<DxDialogProvider />
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
private LISTItem NeueLinie = new LISTItem();
|
||||||
|
private List<LISTItem> Linien { get; set; } = new List<LISTItem>();
|
||||||
|
private List<BDSTItemStörung> Items { get; set; } = new List<BDSTItemStörung>();
|
||||||
|
private List<TabellenItem> _BTMTYP { get; set; } = new List<TabellenItem>();
|
||||||
|
private List<TabellenItem> _BTSTYP { get; set; } = new List<TabellenItem>();
|
||||||
|
private List<TabellenItem> _BTSCOD { get; set; } = new List<TabellenItem>();
|
||||||
|
private List<TabellenItem> _BTSTIL { get; set; } = new List<TabellenItem>();
|
||||||
|
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
_BTMTYP = _TabellenService.GetTabellenItems("BTMTYP");
|
||||||
|
_BTSTYP = _TabellenService.GetTabellenItems("BTSTYP");
|
||||||
|
_BTSCOD = _TabellenService.GetTabellenItems("BTSCOD");
|
||||||
|
_BTSTIL = _TabellenService.GetTabellenItems("BTSTIL");
|
||||||
|
Linien.Add(new LISTItem("BU01101"));
|
||||||
|
Linien.Add(new LISTItem("BS02101"));
|
||||||
|
Linien.Add(new LISTItem("BS03101"));
|
||||||
|
Linien.Add(new LISTItem("BS04101"));
|
||||||
|
Items = GetItems().ToList();
|
||||||
|
this._BDSTService.OnItemChanged += this.OnItemChanged;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Austragen, da Seite nicht mehr benutzt wird
|
||||||
|
this._BDSTService.OnItemChanged -= this.OnItemChanged;
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ItemClass(TodoItem item)
|
||||||
|
{
|
||||||
|
return item.Completed ? "item-completed" : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddLinie(string linie)
|
||||||
|
{
|
||||||
|
foreach(LISTItem item in Linien)
|
||||||
|
if (item.LILINI == linie)
|
||||||
|
return;
|
||||||
|
Linien.Add(new LISTItem(linie));
|
||||||
|
Items = GetItems().ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
public void RemoveLinie(string linie)
|
||||||
|
{
|
||||||
|
foreach (LISTItem item in Linien)
|
||||||
|
if (item.LILINI == linie)
|
||||||
|
{
|
||||||
|
Linien.Remove(item);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Items = GetItems().ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StarteErfassung(BDSTItemStörung item)
|
||||||
|
{
|
||||||
|
item.Sichtbar = true;
|
||||||
|
item.BTTIMV = DateTime.Now;
|
||||||
|
item.Fehlertext = null;
|
||||||
|
_BDSTService.AddItem(item);
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
public void Speichern(BDSTItemStörung item)
|
||||||
|
{
|
||||||
|
item.Fehlertext = null;
|
||||||
|
_BDSTService.AddItem(item);
|
||||||
|
}
|
||||||
|
public async void Löschen(BDSTItemStörung item)
|
||||||
|
{
|
||||||
|
bool Result = await DialogService.ConfirmAsync(new MessageBoxOptions()
|
||||||
|
{
|
||||||
|
Text = $"Soll die Störung auf Linie {item.BTLINI} wirklich gelöscht werden?",
|
||||||
|
OkButtonText = "Ja",
|
||||||
|
CancelButtonText = "Nein",
|
||||||
|
ShowIcon = false,
|
||||||
|
ShowCloseButton = false,
|
||||||
|
RenderStyle = MessageBoxRenderStyle.Danger,
|
||||||
|
});
|
||||||
|
if (Result == true)
|
||||||
|
{
|
||||||
|
Items.Remove(item);
|
||||||
|
_BDSTService.RemoveItem(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task OpenConfirmDialogAsync()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Beenden(BDSTItemStörung item)
|
||||||
|
{
|
||||||
|
item.Fehlertext = null;
|
||||||
|
if (string.IsNullOrWhiteSpace(item.BTMTYP))
|
||||||
|
item.Fehlertext = "Kostenstelle fehlt";
|
||||||
|
else if (string.IsNullOrWhiteSpace(item.BTSTYP))
|
||||||
|
item.Fehlertext = "Störungsart fehlt";
|
||||||
|
else if (string.IsNullOrWhiteSpace(item.BTSCOD))
|
||||||
|
item.Fehlertext = "Störungscode fehlt";
|
||||||
|
else if (string.IsNullOrWhiteSpace(item.BTSTIL))
|
||||||
|
item.Fehlertext = "Stillstandsangabe fehlt";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (item.BTTIMB == DateTime.MinValue)
|
||||||
|
item.BTTIMB = DateTime.Now;
|
||||||
|
Items.Remove(item);
|
||||||
|
_BDSTService.RemoveItem(item);
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrWhiteSpace(item.Fehlertext))
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public string ItemClass(BDSTItemStörung item)
|
||||||
|
{
|
||||||
|
return item.Sichtbar ? "stoerung_aktiv" : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private string LastKeyPressed { get; set; } = "N/A";
|
||||||
|
private DotNetObjectReference<ToDoListe>? objRef;
|
||||||
|
|
||||||
|
|
||||||
|
public async void OnItemChanged(object sender, BDSTServiceEventArgs args)
|
||||||
|
{
|
||||||
|
await InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
// Falls das geänderte Item in der lokalen Liste ist, rauswerfen!
|
||||||
|
if (Items.Contains((BDSTItemStörung)args.DataItem))
|
||||||
|
Items.Remove((BDSTItemStörung)args.DataItem);
|
||||||
|
// Item-Liste neu aufbauen
|
||||||
|
Items = GetItems().ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<BDSTItemStörung> GetItems()
|
||||||
|
{
|
||||||
|
Dictionary<string, BDSTItemStörung> currentItems = new Dictionary<string, BDSTItemStörung>();
|
||||||
|
foreach (BDSTItemStörung item in Items)
|
||||||
|
currentItems[item.BTLINI] = item;
|
||||||
|
Dictionary<string, BDSTItemStörung> items = new Dictionary<string, BDSTItemStörung>();
|
||||||
|
foreach (LISTItem linie in Linien)
|
||||||
|
{
|
||||||
|
if (_BDSTService.GetDictionary().ContainsKey(linie.LILINI))
|
||||||
|
{
|
||||||
|
items.Add(linie.LILINI, (BDSTItemStörung)_BDSTService.GetDictionary()[linie.LILINI]);
|
||||||
|
items[linie.LILINI].Sichtbar = true;
|
||||||
|
items[linie.LILINI].Fehlertext = null;
|
||||||
|
}
|
||||||
|
else if (currentItems.ContainsKey(linie.LILINI))
|
||||||
|
items.Add(linie.LILINI, currentItems[linie.LILINI]);
|
||||||
|
else
|
||||||
|
items.Add(linie.LILINI, new BDSTItemStörung(linie.LILINI));
|
||||||
|
}
|
||||||
|
return items.Values;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,160 @@
|
|||||||
|
@page "/register"
|
||||||
|
@using DxBlazorApplication2.Data.Annotations
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject NavigationManager Navigation
|
||||||
|
|
||||||
|
<div class="card cw-480" style="width: 400px">
|
||||||
|
<EditForm Model="@Data"
|
||||||
|
OnValidSubmit="@HandleValidSubmit"
|
||||||
|
OnInvalidSubmit="@HandleInvalidSubmit"
|
||||||
|
Context="EditFormContext">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
<div class="card-header text-center py-3">
|
||||||
|
<h4>Register to DevExpress</h4>
|
||||||
|
<p class="tm-8 mb-0 fw-normal fs-825">
|
||||||
|
Create a new account to see it in action
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<DxFormLayout>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbUsername" class="d-none">Username</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Username"
|
||||||
|
NullText="Username"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbUsername" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Username)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbPassword" class="d-none">Password</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Password"
|
||||||
|
NullText="Password"
|
||||||
|
Password="true"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbPassword" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Password)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="tbEmail" class="d-none">E-mail</label>
|
||||||
|
<DxTextBox @bind-Text="@Data.Email"
|
||||||
|
NullText="E-mail"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="tbEmail" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Email)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="miPhone" class="d-none">Phone Number</label>
|
||||||
|
<DxMaskedInput @bind-Value="@Data.Phone"
|
||||||
|
NullText="Phone Number"
|
||||||
|
Mask="@PhoneMask"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="miPhone" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.Phone)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="deBirthDate" class="d-none">Birthday</label>
|
||||||
|
<DxDateEdit @bind-Date="@Data.BirthDate"
|
||||||
|
NullText="Birthday"
|
||||||
|
NullValue="@BirthDateNullValue"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
PickerDisplayMode="DatePickerDisplayMode.Calendar"
|
||||||
|
Mask="@DateTimeMask.ShortDate"
|
||||||
|
InputId="deBirthDate" />
|
||||||
|
<div class="text-danger">
|
||||||
|
<ValidationMessage For="@(() => Data.BirthDate)" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="cbOccupation" class="d-none">Occupation</label>
|
||||||
|
<DxComboBox Data="@Occupations"
|
||||||
|
@bind-Value="@Data.Occupation"
|
||||||
|
AllowUserInput="false"
|
||||||
|
NullText="Occupation"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="cbOccupation" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<label for="mNotes" class="d-none">Notes</label>
|
||||||
|
<DxMemo @bind-Text="@Data.Notes"
|
||||||
|
NullText="Notes"
|
||||||
|
Rows="4"
|
||||||
|
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
|
||||||
|
InputId="mNotes" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<DxButton CssClass="w-100"
|
||||||
|
RenderStyle="ButtonRenderStyle.Primary"
|
||||||
|
SubmitFormOnClick="true"
|
||||||
|
Text="Register" />
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
<DxFormLayoutItem ColSpanMd="12">
|
||||||
|
<div class="text-center pt-2">
|
||||||
|
<div class="tm-8">
|
||||||
|
Already have an account?
|
||||||
|
</div>
|
||||||
|
<DxButton RenderStyle="ButtonRenderStyle.Link"
|
||||||
|
Text="Login"
|
||||||
|
Click="GotoLoginForm" />
|
||||||
|
</div>
|
||||||
|
</DxFormLayoutItem>
|
||||||
|
</DxFormLayout>
|
||||||
|
</div>
|
||||||
|
</EditForm>
|
||||||
|
</div>
|
||||||
|
<p class="tm-8 cw-480 mt-2">
|
||||||
|
@FormSubmitResult
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
string FormSubmitResult = "";
|
||||||
|
UserData Data { get; set; } = new UserData();
|
||||||
|
IEnumerable<string> Occupations { get; set; } = new List<string>() {
|
||||||
|
"Academic",
|
||||||
|
"Administrative",
|
||||||
|
"Art/Entertainment",
|
||||||
|
"College Student",
|
||||||
|
"Community & Social",
|
||||||
|
"Computers",
|
||||||
|
"Education",
|
||||||
|
"Engineering",
|
||||||
|
"Financial Services",
|
||||||
|
"Government",
|
||||||
|
"High School Student",
|
||||||
|
"Law",
|
||||||
|
"Managerial",
|
||||||
|
"Manufacturing",
|
||||||
|
"Medical/Health",
|
||||||
|
"Military",
|
||||||
|
"Non-government Organization",
|
||||||
|
"Other Services",
|
||||||
|
"Professional",
|
||||||
|
"Retail",
|
||||||
|
"Science & Research",
|
||||||
|
"Sports",
|
||||||
|
"Technical",
|
||||||
|
"University Student",
|
||||||
|
"Web Building",
|
||||||
|
};
|
||||||
|
string PhoneMask { get; set; } = "(999)000-0000";
|
||||||
|
DateTime BirthDateNullValue { get; set; } = UserData.BirthDateNullValue;
|
||||||
|
void GotoLoginForm()
|
||||||
|
{
|
||||||
|
Navigation.NavigateTo("/Login");
|
||||||
|
}
|
||||||
|
void HandleValidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "You have been registred successully.";
|
||||||
|
}
|
||||||
|
void HandleInvalidSubmit()
|
||||||
|
{
|
||||||
|
FormSubmitResult = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,139 @@
|
|||||||
|
@page "/todoliste"
|
||||||
|
@using DxBlazorApplication2.Components.Formen
|
||||||
|
@using DxBlazorApplication2.Services;
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject TodoService _todoService;
|
||||||
|
@inject IJSRuntime JSRuntime
|
||||||
|
@implements IDisposable
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.registerKeyDown = (dotnetHelper) => {
|
||||||
|
document.addEventListener('keydown', (event) => {
|
||||||
|
if (event.key === 'F1' || event.key === 'F2' || event.key === 'F3' || event.key === 'F4' || event.key === 'F5' || event.key === 'F6' ||
|
||||||
|
event.key === 'F7' || event.key === 'F8' || event.key === 'F9' || event.key === 'F10' || event.key === 'F11' || event.key === 'F12' ||
|
||||||
|
event.key === 'Escape' || event.key === 'PageDown' || event.key === 'PageUp')
|
||||||
|
{
|
||||||
|
if(!event.ctrlKey && !event.altKey && !event.metaKey)
|
||||||
|
{
|
||||||
|
dotnetHelper.invokeMethodAsync('KeyDownHandler', event.key, event.shiftKey);
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//dotnetHelper.invokeMethodAsync('KeyDownHandler', event.key + "(nicht abgefangen)", event.shiftKey, event.ctrlKey);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<PageTitle>ToDo-Liste</PageTitle>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px">
|
||||||
|
<h4>Neues ToDo</h4>
|
||||||
|
<TodoItemForm/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="border" style="padding: 20px; margin-top: 20px;">
|
||||||
|
<div style="display: flex; flex-direction: column">
|
||||||
|
@foreach (var todo in Todos)
|
||||||
|
{
|
||||||
|
<div style="display: flex; margin-bottom: 10px;">
|
||||||
|
<div style="display: flex align-items: center; margin-bottom: 10px">
|
||||||
|
<div class="@ItemClass(todo)" style="width: 280px;">@todo.Text</div>
|
||||||
|
</div>
|
||||||
|
@if (todo.Completed)
|
||||||
|
{
|
||||||
|
<div style="width: 120px">
|
||||||
|
<button class="btn btn-primary" onclick="@(() => UncompleteItem(todo))">Offen</button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
@if (!todo.Completed)
|
||||||
|
{
|
||||||
|
<div style="width: 120px">
|
||||||
|
<button class="btn btn-primary" onclick="@(() => CompleteItem(todo))">Erledigt</button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
<div>
|
||||||
|
<buttin class="btn btn-danger" onclick="@(() => RemoveItem(todo))">Löschen</buttin>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p>Gedrückte Taste: @LastKeyPressed</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@code
|
||||||
|
{
|
||||||
|
private List<TodoItem> Todos { get; set; } = new List<TodoItem>();
|
||||||
|
|
||||||
|
protected override void OnInitialized()
|
||||||
|
{
|
||||||
|
this._todoService.OnToDoListeChanged += this.OnToDoListeChanged;
|
||||||
|
Todos = _todoService.GetItems().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ItemClass(TodoItem item)
|
||||||
|
{
|
||||||
|
return item.Completed ? "item-completed" : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemoveItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.RemoveItem(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CompleteItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.Complete(item);
|
||||||
|
}
|
||||||
|
public void UncompleteItem(TodoItem item)
|
||||||
|
{
|
||||||
|
_todoService.Uncomplete(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private string LastKeyPressed { get; set; } = "N/A";
|
||||||
|
private DotNetObjectReference<ToDoListe>? objRef;
|
||||||
|
|
||||||
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
|
{
|
||||||
|
if (firstRender)
|
||||||
|
{
|
||||||
|
objRef = DotNetObjectReference.Create(this);
|
||||||
|
await JSRuntime.InvokeVoidAsync("registerKeyDown", objRef);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[JSInvokable]
|
||||||
|
public void KeyDownHandler(string key, bool shiftKey)
|
||||||
|
{
|
||||||
|
if (shiftKey)
|
||||||
|
LastKeyPressed = "[Shift]" + key;
|
||||||
|
else
|
||||||
|
LastKeyPressed = key;
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Spannend, wann das aufgerufen wird
|
||||||
|
// Anscheinend einmal nach dem Aufruf der Seite und auch beim Verlassen der Seite
|
||||||
|
objRef?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async void OnToDoListeChanged(object sender, ToDoListeEventArgs args)
|
||||||
|
{
|
||||||
|
await InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
Todos = _todoService.GetItems().ToList();
|
||||||
|
StateHasChanged();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
@page "/weather"
|
||||||
|
@using DxBlazorApplication2.Services
|
||||||
|
@rendermode InteractiveServer
|
||||||
|
@inject WeatherForecastService ForecastService
|
||||||
|
|
||||||
|
<PageTitle>Weather</PageTitle>
|
||||||
|
<h1>Weather</h1>
|
||||||
|
|
||||||
|
@if (forecasts == null)
|
||||||
|
{
|
||||||
|
<p><em>Loading...</em></p>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<DxGrid Data="@forecasts">
|
||||||
|
<Columns>
|
||||||
|
<DxGridDataColumn Caption="Date" FieldName="Date" />
|
||||||
|
<DxGridDataColumn Caption="Temperature (C)" FieldName="TemperatureC" />
|
||||||
|
<DxGridDataColumn Caption="Temperature (F)" FieldName="TemperatureF" />
|
||||||
|
<DxGridDataColumn Caption="Summary" FieldName="Summary" />
|
||||||
|
</Columns>
|
||||||
|
</DxGrid>
|
||||||
|
}
|
||||||
|
|
||||||
|
@code {
|
||||||
|
private WeatherForecast[]? forecasts;
|
||||||
|
|
||||||
|
protected override async Task OnInitializedAsync()
|
||||||
|
{
|
||||||
|
forecasts = await ForecastService.GetForecastAsync(DateOnly.FromDateTime(DateTime.Now));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<Router AppAssembly="@typeof(Program).Assembly">
|
||||||
|
<Found Context="routeData">
|
||||||
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||||
|
</Found>
|
||||||
|
</Router>
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
@using System.Net.Http
|
||||||
|
@using System.Net.Http.Json
|
||||||
|
@using Microsoft.AspNetCore.Components.Forms
|
||||||
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
|
@using Microsoft.JSInterop
|
||||||
|
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||||
|
@using DxBlazorApplication2
|
||||||
|
@using DxBlazorApplication2.Components
|
||||||
|
@using DxBlazorApplication2.Components.Layout
|
||||||
|
|
||||||
|
@using DevExpress.Blazor
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class DateInPastAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
public int YearsAgo { get; set; } = 0;
|
||||||
|
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return (DateTime)value <= DateTime.Now.AddYears(-YearsAgo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = true)]
|
||||||
|
public class DateIsEarlierThanAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
readonly string datePropertyToCompare;
|
||||||
|
public DateIsEarlierThanAttribute(string datePropertyToCompare)
|
||||||
|
{
|
||||||
|
this.datePropertyToCompare = datePropertyToCompare;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
var property = validationContext.ObjectType.GetProperty(datePropertyToCompare);
|
||||||
|
if (property == null)
|
||||||
|
{
|
||||||
|
return new ValidationResult(
|
||||||
|
$"Unknown property: {datePropertyToCompare}",
|
||||||
|
new[] { validationContext.MemberName });
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((DateTime)value > (DateTime)property.GetValue(validationContext.ObjectInstance))
|
||||||
|
{
|
||||||
|
return new ValidationResult(
|
||||||
|
ErrorMessage ?? $"The {validationContext.MemberName} value cannot be greater than the {datePropertyToCompare} value",
|
||||||
|
new[] { validationContext.MemberName, datePropertyToCompare });
|
||||||
|
}
|
||||||
|
return ValidationResult.Success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class EmailAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return Regex.IsMatch((string)value, @"^[\w!#$%&'*+\-/=?\^_`{|}~]+(\.[\w!#$%&'*+\-/=?\^_`{|}~]+)*"
|
||||||
|
+ "@"
|
||||||
|
+ @"((([\-\w]+\.)+[a-zA-Z]{2,4})|(([0-9]{1,3}\.){3}[0-9]{1,3}))$");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Annotations
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
|
||||||
|
public class MinPasswordLengthAttribute : ValidationAttribute
|
||||||
|
{
|
||||||
|
int MinLength { get; }
|
||||||
|
public MinPasswordLengthAttribute(int minLength, string errorMsg) : base(errorMsg)
|
||||||
|
{
|
||||||
|
MinLength = minLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool IsValid(object value)
|
||||||
|
{
|
||||||
|
return ((string)value).Length >= MinLength;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,65 @@
|
|||||||
|
using DxBlazorApplication2.AS400Kommunikation;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Störung
|
||||||
|
/// </summary>
|
||||||
|
public class BDSTItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Linie
|
||||||
|
/// </summary>
|
||||||
|
public string BTLINI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Datum
|
||||||
|
/// </summary>
|
||||||
|
public DateTime BTDATE { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit von
|
||||||
|
/// </summary>
|
||||||
|
public DateTime BTTIMV { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit bis
|
||||||
|
/// </summary>
|
||||||
|
public DateTime BTTIMB { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Kostenstelle
|
||||||
|
/// </summary>
|
||||||
|
public string? BTMTYP { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Störungsart
|
||||||
|
/// </summary>
|
||||||
|
public string? BTSTYP { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Störungscode
|
||||||
|
/// </summary>
|
||||||
|
public string? BTSCOD { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Stillstand
|
||||||
|
/// </summary>
|
||||||
|
public string? BTSTIL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Schlosser
|
||||||
|
/// </summary>
|
||||||
|
public double BTSCHL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Elektriker
|
||||||
|
/// </summary>
|
||||||
|
public double BTELEK { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Sonstige
|
||||||
|
/// </summary>
|
||||||
|
public double BTSONS { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Item wurde gelöscht
|
||||||
|
/// </summary>
|
||||||
|
public bool Deleted { get; set; }
|
||||||
|
|
||||||
|
public BDSTItem(string linie)
|
||||||
|
{
|
||||||
|
BTLINI = linie;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Störung
|
||||||
|
/// </summary>
|
||||||
|
public class BDSTItemStörung : BDSTItem
|
||||||
|
{
|
||||||
|
public bool Sichtbar { get; set; }
|
||||||
|
public string? Fehlertext { get; set; }
|
||||||
|
|
||||||
|
public BDSTItemStörung(string linie) : base(linie) { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,131 @@
|
|||||||
|
|
||||||
|
using DevExpress.XtraReports.UI;
|
||||||
|
using DxBlazorApplication2.AS400Kommunikation;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Störung
|
||||||
|
/// </summary>
|
||||||
|
public class CockpitItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Firma
|
||||||
|
/// </summary>
|
||||||
|
public double WWFIRM { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Werk
|
||||||
|
/// </summary>
|
||||||
|
public double WWWERK { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Auftragsnummer
|
||||||
|
/// </summary>
|
||||||
|
public double WWPANR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Artikelnummer
|
||||||
|
/// </summary>
|
||||||
|
public string WWARNR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Artikelbezeichnung
|
||||||
|
/// </summary>
|
||||||
|
public string WWARBZ { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Menge Plan
|
||||||
|
/// </summary>
|
||||||
|
public double WWMGPL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Menge Ist
|
||||||
|
/// </summary>
|
||||||
|
public double WWMGIS { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Gewicht Plan
|
||||||
|
/// </summary>
|
||||||
|
public double WWGWPL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Gewicht Ist
|
||||||
|
/// </summary>
|
||||||
|
public double WWGWIS { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Produktionsdatum
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWPRDT { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Kalenderdatum
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWKLDT { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit von
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWTIMV { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit bis
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWTIMB { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Linie
|
||||||
|
/// </summary>
|
||||||
|
public string WWLINI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Schicht (1=Früh, 2=Spät, 3=Nacht)
|
||||||
|
/// </summary>
|
||||||
|
public string WWSCHI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Charge
|
||||||
|
/// </summary>
|
||||||
|
public string WWCHAR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Produktnummer
|
||||||
|
/// </summary>
|
||||||
|
public string WWPDNR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// MHD
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWMHD { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Letzte Buchung
|
||||||
|
/// </summary>
|
||||||
|
public DateTime WWBUDT { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Störung aktiv
|
||||||
|
/// </summary>
|
||||||
|
public bool StörungAktiv { get; set; }
|
||||||
|
|
||||||
|
public CockpitItem(string linie)
|
||||||
|
{
|
||||||
|
WWLINI = linie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Load(PSDLItem item)
|
||||||
|
{
|
||||||
|
if (item.PDBUDT > WWBUDT)
|
||||||
|
{
|
||||||
|
WWPANR = item.PDPANR;
|
||||||
|
WWARNR = item.PDARNR;
|
||||||
|
WWARBZ = item.PDARBZ;
|
||||||
|
WWMGPL = item.PDMGPL;
|
||||||
|
WWMGIS = item.PDMGIS;
|
||||||
|
WWGWPL = item.PDGWPL;
|
||||||
|
WWGWIS = item.PDGWIS;
|
||||||
|
WWPRDT = item.PDPRDT;
|
||||||
|
WWKLDT = item.PDKLDT;
|
||||||
|
WWTIMV = item.PDTIMV;
|
||||||
|
WWTIMB = item.PDTIMB;
|
||||||
|
WWLINI = item.PDLINI;
|
||||||
|
WWSCHI = item.PDSCHI;
|
||||||
|
WWCHAR = item.PDCHAR;
|
||||||
|
WWPDNR = item.PDPDNR;
|
||||||
|
WWMHD = item.PDMHD;
|
||||||
|
WWBUDT = item.PDBUDT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Load(BDSTItem item)
|
||||||
|
{
|
||||||
|
if (item.BTTIMB == DateTime.MinValue && !item.Deleted)
|
||||||
|
StörungAktiv = true;
|
||||||
|
else
|
||||||
|
StörungAktiv = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Firma
|
||||||
|
/// </summary>
|
||||||
|
public class FSTLItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Firma
|
||||||
|
/// </summary>
|
||||||
|
public double FSFIRM { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Name
|
||||||
|
/// </summary>
|
||||||
|
public string FSNAME { get; set; }
|
||||||
|
|
||||||
|
public FSTLItem(double FIRM, string NAME)
|
||||||
|
{
|
||||||
|
FSFIRM = FIRM;
|
||||||
|
FSNAME = NAME;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Linie
|
||||||
|
/// </summary>
|
||||||
|
public class LISTItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Linie
|
||||||
|
/// </summary>
|
||||||
|
public string LILINI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Kurzname
|
||||||
|
/// </summary>
|
||||||
|
public string LIKUNA { get; set; }
|
||||||
|
|
||||||
|
public LISTItem()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public LISTItem(string linie)
|
||||||
|
{
|
||||||
|
LILINI = linie;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,116 @@
|
|||||||
|
using DevExpress.PivotGrid.QueryMode;
|
||||||
|
using DxBlazorApplication2.AS400Kommunikation;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Produktionsauftrag
|
||||||
|
/// </summary>
|
||||||
|
public class PSDLItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Firma
|
||||||
|
/// </summary>
|
||||||
|
public double PDFIRM { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Werk
|
||||||
|
/// </summary>
|
||||||
|
public double PDWERK { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Auftragsnummer
|
||||||
|
/// </summary>
|
||||||
|
public double PDPANR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Artikelnummer
|
||||||
|
/// </summary>
|
||||||
|
public string PDARNR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Artikelbezeichnung
|
||||||
|
/// </summary>
|
||||||
|
public string PDARBZ { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Menge Plan
|
||||||
|
/// </summary>
|
||||||
|
public double PDMGPL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Menge Ist
|
||||||
|
/// </summary>
|
||||||
|
public double PDMGIS { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Gewicht Plan
|
||||||
|
/// </summary>
|
||||||
|
public double PDGWPL { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Gewicht Ist
|
||||||
|
/// </summary>
|
||||||
|
public double PDGWIS { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Produktionsdatum
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDPRDT { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Kalenderdatum
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDKLDT { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit von
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDTIMV { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Zeit bis
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDTIMB { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Linie
|
||||||
|
/// </summary>
|
||||||
|
public string PDLINI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Schicht (1=Früh, 2=Spät, 3=Nacht)
|
||||||
|
/// </summary>
|
||||||
|
public string PDSCHI { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Charge
|
||||||
|
/// </summary>
|
||||||
|
public string PDCHAR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Produktnummer
|
||||||
|
/// </summary>
|
||||||
|
public string PDPDNR { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// MHD
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDMHD { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Letztes Buchungsdatum/Zeit
|
||||||
|
/// </summary>
|
||||||
|
public DateTime PDBUDT { get; set; }
|
||||||
|
|
||||||
|
public PSDLItem(AS400Connector loader)
|
||||||
|
{
|
||||||
|
Load(loader);
|
||||||
|
}
|
||||||
|
public void Load(AS400Connector loader)
|
||||||
|
{
|
||||||
|
PDFIRM = loader.GetDouble("A1FIRM");
|
||||||
|
PDWERK = loader.GetDouble("A1WERK");
|
||||||
|
PDPANR = loader.GetDouble("A1PANR");
|
||||||
|
PDARNR = loader.GetString("A1ARNR");
|
||||||
|
PDARBZ = loader.GetString("A1ARBZ");
|
||||||
|
PDMGPL = loader.GetDouble("A1MGPL");
|
||||||
|
PDMGIS = loader.GetDouble("A1MGIS");
|
||||||
|
PDGWPL = loader.GetDouble("A1GWPL");
|
||||||
|
PDGWIS = loader.GetDouble("A1GWIS");
|
||||||
|
PDPRDT = loader.GetDate("A1PRDT");
|
||||||
|
PDKLDT = loader.GetDate("A1KLDT");
|
||||||
|
PDTIMV = loader.GetTime("A1TIMV");
|
||||||
|
PDTIMB = loader.GetTime("A1TIMB");
|
||||||
|
PDLINI = loader.GetString("A1LINI");
|
||||||
|
PDSCHI = loader.GetString("A1SCHI");
|
||||||
|
PDCHAR = loader.GetString("A1CHAR");
|
||||||
|
PDPDNR = loader.GetString("A1PDNR");
|
||||||
|
PDMHD = loader.GetDate("A1MHD");
|
||||||
|
PDBUDT = DateTime.Parse($"{loader.GetString("A1BUDT")} {loader.GetString("A1BUTM")}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,35 @@
|
|||||||
|
using DxBlazorApplication2.AS400Kommunikation;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2.Data.Produktion
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Firma
|
||||||
|
/// </summary>
|
||||||
|
public class TabellenItem
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Key
|
||||||
|
/// </summary>
|
||||||
|
public string TABKEY { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Text
|
||||||
|
/// </summary>
|
||||||
|
public string TABTEXT { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Daten
|
||||||
|
/// </summary>
|
||||||
|
public string TABDATA { get; set; }
|
||||||
|
|
||||||
|
public TabellenItem()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public TabellenItem(AS400Connector loader)
|
||||||
|
{
|
||||||
|
string prefix = loader.Prefix;
|
||||||
|
TABKEY = loader.GetString(prefix + "KEY");
|
||||||
|
TABTEXT = loader.GetString(prefix + "TEXT");
|
||||||
|
TABDATA = loader.GetString(prefix + "DATA");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using DxBlazorApplication2.Data.Annotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2
|
||||||
|
{
|
||||||
|
public class Störung
|
||||||
|
{
|
||||||
|
public static DateTime BirthDateNullValue { get; set; } = new DateTime(1970, 1, 1);
|
||||||
|
public string Linie { get; set; }
|
||||||
|
public DateTime Startzeit { get; set; } = BirthDateNullValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
namespace DxBlazorApplication2
|
||||||
|
{
|
||||||
|
public class TodoItem
|
||||||
|
{
|
||||||
|
public TodoItem(string text)
|
||||||
|
{
|
||||||
|
Text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Text { get; set; }
|
||||||
|
|
||||||
|
public bool Completed { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using DxBlazorApplication2.Data.Annotations;
|
||||||
|
|
||||||
|
namespace DxBlazorApplication2
|
||||||
|
{
|
||||||
|
public class UserDataBase
|
||||||
|
{
|
||||||
|
[Required(ErrorMessage = "The Username value should be specified.")]
|
||||||
|
public string Username { get; set; }
|
||||||
|
[Required(ErrorMessage = "The Password value should be specified.")]
|
||||||
|
[MinPasswordLength(6, "The Password must be at least 6 characters long.")]
|
||||||
|
public string Password { get; set; }
|
||||||
|
}
|
||||||
|
public class UserData : UserDataBase
|
||||||
|
{
|
||||||
|
public static DateTime BirthDateNullValue { get; set; } = new DateTime(1970, 1, 1);
|
||||||
|
[Required(ErrorMessage = "The Email value should be specified.")]
|
||||||
|
[Email(ErrorMessage = "The Email value is invalid.")]
|
||||||
|
public string Email { get; set; }
|
||||||
|
[Required(ErrorMessage = "The Phone value should be specified.")]
|
||||||
|
public string Phone { get; set; }
|
||||||
|
[DateInPast(YearsAgo = 18, ErrorMessage = "Users should be at least 18 years old to register.")]
|
||||||
|
public DateTime BirthDate { get; set; } = BirthDateNullValue;
|
||||||
|
public string Occupation { get; set; }
|
||||||
|
public string Notes { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user