57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
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 EgwCoreLib.Razor;
|
|
using EgwCoreLib.Utils;
|
|
using WebDoorCreator.Data;
|
|
using WebDoorCreator.Data.DbModels;
|
|
using WebDoorCreator.UI;
|
|
using WebDoorCreator.UI.Components;
|
|
using WebDoorCreator.UI.Components.Buttons;
|
|
using WebDoorCreator.UI.Components.CompMan;
|
|
using WebDoorCreator.UI.Components.DoorMan;
|
|
using WebDoorCreator.UI.Components.DoorDef;
|
|
using WebDoorCreator.UI.Components.Gen;
|
|
using WebDoorCreator.UI.Components.Order;
|
|
using WebDoorCreator.UI.Components.Users;
|
|
using WebDoorCreator.UI.Components.Hardware;
|
|
using WebDoorCreator.UI.Components.SvgComp;
|
|
using WebDoorCreator.UI.Components.Filters;
|
|
using WebDoorCreator.UI.Components.Report;
|
|
using WebDoorCreator.UI.Components.FilesMan;
|
|
using WebDoorCreator.UI.Components.TemplateMan;
|
|
using WebDoorCreator.UI.Shared;
|
|
using WebDoorCreator.Data.Services;
|
|
|
|
namespace WebDoorCreator.UI.Components.FilesMan
|
|
{
|
|
public partial class CompoCompare
|
|
{
|
|
[Inject]
|
|
protected WebDoorCreatorService WDCService { get; set; } = null!;
|
|
|
|
protected List<DoorOpTypeModel> tempDOT = new List<DoorOpTypeModel>();
|
|
protected async Task scanB()
|
|
{
|
|
tempDOT.Clear();
|
|
await WDCService.populateHws();
|
|
tempDOT = await WDCService.scanAndCompare();
|
|
}
|
|
|
|
protected async Task save()
|
|
{
|
|
await WDCService.DoorOpTypeAddRange(tempDOT);
|
|
}
|
|
|
|
}
|
|
} |