[성현모] webclient timeout 예외처리
This commit is contained in:
@ -71,6 +71,11 @@
|
||||
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress, outValue);
|
||||
}
|
||||
|
||||
if(response == null)
|
||||
{
|
||||
response = new Response_GetWbmsMeta();
|
||||
}
|
||||
|
||||
await Task.Delay(300);
|
||||
PopupService.CloseIndicator();
|
||||
}
|
||||
@ -85,6 +90,11 @@
|
||||
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress, outValue);
|
||||
}
|
||||
|
||||
if (response == null)
|
||||
{
|
||||
response = new Response_GetWbmsMeta();
|
||||
}
|
||||
|
||||
await Task.Delay(300);
|
||||
PopupService.CloseIndicator();
|
||||
}
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
<RadzenDataGrid class="rz-shadow-1" TItem="TDataModel" Data="@DataList" GridLines="DataGridGridLines.Both"
|
||||
AllowFiltering FilterMode="FilterMode.Simple" AllowColumnResize
|
||||
SelectionMode="DataGridSelectionMode.Single" Density="@Density.Default">
|
||||
<Columns>
|
||||
<Columns>
|
||||
@foreach (var col in typeof(TDataModel).GetProperties())
|
||||
{
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
<Template>
|
||||
<span>
|
||||
@ -16,11 +16,11 @@
|
||||
</span>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
}
|
||||
</Columns>
|
||||
</RadzenDataGrid>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public IEnumerable<TDataModel> DataList { get; set; }
|
||||
public IEnumerable<TDataModel> DataList { get; set; }
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
public class Response_GetWbmsMeta
|
||||
{
|
||||
public List<tWbms> Wbms { get; set; }
|
||||
public List<tWbms> Wbms { get; set; } = new List<tWbms>();
|
||||
public string Result { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user