cleanup + reorg codice
This commit is contained in:
@@ -7,19 +7,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
{
|
||||
public partial class GlassMan
|
||||
{
|
||||
#region Public Properties
|
||||
#region Protected Properties
|
||||
|
||||
#if false
|
||||
[Parameter]
|
||||
public string SearchVal { get; set; } = string.Empty;
|
||||
#endif
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected string SearchVal
|
||||
{
|
||||
@@ -33,22 +27,6 @@ namespace Lux.UI.Components.Compo.Config
|
||||
}
|
||||
}
|
||||
}
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
@@ -104,6 +82,11 @@ namespace Lux.UI.Components.Compo.Config
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
|
||||
protected void SaveNumRec(int newNum)
|
||||
{
|
||||
numRecord = newNum;
|
||||
@@ -131,6 +114,12 @@ namespace Lux.UI.Components.Compo.Config
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private async Task DoAdd()
|
||||
@@ -155,6 +144,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
SelRecord = null;
|
||||
}
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
private async Task ReloadData()
|
||||
{
|
||||
isLoading = true;
|
||||
|
||||
@@ -15,6 +15,20 @@ namespace Lux.UI.Components.Compo.Config
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected string SearchVal
|
||||
{
|
||||
get => searchVal;
|
||||
set
|
||||
{
|
||||
if (searchVal != value)
|
||||
{
|
||||
searchVal = value;
|
||||
ReloadData();
|
||||
UpdateTable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
@@ -77,19 +91,6 @@ namespace Lux.UI.Components.Compo.Config
|
||||
|
||||
#region Private Properties
|
||||
|
||||
protected string SearchVal
|
||||
{
|
||||
get => searchVal;
|
||||
set
|
||||
{
|
||||
if (searchVal != value)
|
||||
{
|
||||
searchVal = value;
|
||||
ReloadData();
|
||||
UpdateTable();
|
||||
}
|
||||
}
|
||||
}
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
@@ -7,17 +7,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
{
|
||||
public partial class ProfileMan
|
||||
{
|
||||
#region Public Properties
|
||||
#region Protected Properties
|
||||
|
||||
#if false
|
||||
[Parameter]
|
||||
public string SearchVal { get; set; } = string.Empty;
|
||||
#endif
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected string SearchVal
|
||||
{
|
||||
@@ -31,24 +27,6 @@ namespace Lux.UI.Components.Compo.Config
|
||||
}
|
||||
}
|
||||
}
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
@@ -104,6 +82,11 @@ namespace Lux.UI.Components.Compo.Config
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
|
||||
protected void SaveNumRec(int newNum)
|
||||
{
|
||||
numRecord = newNum;
|
||||
@@ -131,6 +114,12 @@ namespace Lux.UI.Components.Compo.Config
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private async Task DoAdd()
|
||||
@@ -155,6 +144,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
SelRecord = null;
|
||||
}
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
private async Task ReloadData()
|
||||
{
|
||||
isLoading = true;
|
||||
|
||||
@@ -7,17 +7,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
{
|
||||
public partial class WoodMan
|
||||
{
|
||||
#region Public Properties
|
||||
#region Protected Properties
|
||||
|
||||
#if false
|
||||
[Parameter]
|
||||
public string SearchVal { get; set; } = string.Empty;
|
||||
#endif
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected string SearchVal
|
||||
{
|
||||
@@ -31,24 +27,6 @@ namespace Lux.UI.Components.Compo.Config
|
||||
}
|
||||
}
|
||||
}
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected DataLayerServices DLService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
@@ -104,6 +82,11 @@ namespace Lux.UI.Components.Compo.Config
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
protected void ResetSearch()
|
||||
{
|
||||
SearchVal = "";
|
||||
}
|
||||
|
||||
protected void SaveNumRec(int newNum)
|
||||
{
|
||||
numRecord = newNum;
|
||||
@@ -131,6 +114,12 @@ namespace Lux.UI.Components.Compo.Config
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
private string searchVal { get; set; } = string.Empty;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private async Task DoAdd()
|
||||
@@ -155,6 +144,13 @@ namespace Lux.UI.Components.Compo.Config
|
||||
SelRecord = null;
|
||||
}
|
||||
|
||||
private async Task FullUpdate()
|
||||
{
|
||||
await ReloadData();
|
||||
UpdateTable();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
private async Task ReloadData()
|
||||
{
|
||||
isLoading = true;
|
||||
|
||||
Reference in New Issue
Block a user