48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using EgwCoreLib.Razor.Data;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.WebUtilities;
|
|
using MP.Data.Services;
|
|
using System;
|
|
|
|
namespace MP.Land.Pages
|
|
{
|
|
public partial class ConfDetail
|
|
{
|
|
#region Protected Properties
|
|
|
|
protected string IdxMacc { get; set; } = "";
|
|
|
|
[Inject]
|
|
protected NavigationManager NavMan { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected TabDataService TabSrv { get; set; } = null!;
|
|
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
IdxMacc = NavMan.ExtractQueryStringByKey<string>("IdxMacc");
|
|
var rawData = TabSrv.MachIobYamlConf(IdxMacc);
|
|
fullConf = getMarkup(rawData);
|
|
}
|
|
|
|
private MarkupString fullConf;
|
|
/// <summary>
|
|
/// Converte la stringa in formato markup valido
|
|
/// </summary>
|
|
/// <param name="rawData"></param>
|
|
/// <returns></returns>
|
|
protected MarkupString getMarkup(string rawData)
|
|
{
|
|
return new MarkupString(rawData.Replace("\n", "<br/>").Replace(" ", " "));
|
|
}
|
|
|
|
private int numRow = 40;
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |