@page "/CpMeta" @rendermode InteractiveServer @using Web.Operation.Module; @using Web.Operation.Services @using Packet @inject CPMetaService _cpMetaService @inject PopupService PopupService

CPMeta

Search Search

@*
*@ @code { private string ServerAddress = "192.168.0.126:9000"; private string SearchProductID = string.Empty; private string SearchProductMacAddress = string.Empty; Response_GetWbmsMeta response = new Response_GetWbmsMeta(); protected override async Task OnInitializedAsync() { } private async Task SearchByProductID() { PopupService.OpenIndicator(""); if (string.IsNullOrEmpty(SearchProductID) == false) response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress); await Task.Delay(300); PopupService.CloseIndicator(); } private async Task SearchByMacAddress() { PopupService.OpenIndicator(""); if (string.IsNullOrEmpty(SearchProductMacAddress) == false) response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress); await Task.Delay(300); PopupService.CloseIndicator(); } }