[성현모] cpmeta operation shardid 추가
This commit is contained in:
@ -13,7 +13,10 @@
|
||||
<RadzenFieldset Style="margin-bottom: 10px;" Text="Server Info">
|
||||
<div style="margin-bottom: 10px;">
|
||||
<RadzenLabel Style="width: 130px;" Text="Server Address"></RadzenLabel>
|
||||
<RadzenTextBox Style="margin-right: 10px;" @bind-Value="@ServerAddress"></RadzenTextBox>
|
||||
<RadzenTextBox Style="margin-right: 50px;" @bind-Value="@ServerAddress"></RadzenTextBox>
|
||||
|
||||
<RadzenLabel Style="width: 70px;" Text="ShardID"></RadzenLabel>
|
||||
<RadzenTextBox Style="margin-right: 10px;" @bind-Value="@ShardID"></RadzenTextBox>
|
||||
</div>
|
||||
</RadzenFieldset>
|
||||
|
||||
@ -47,9 +50,10 @@
|
||||
|
||||
@code {
|
||||
private string ServerAddress = "192.168.0.126:9000";
|
||||
private string ShardID = "1";
|
||||
private string SearchProductID = string.Empty;
|
||||
private string SearchProductMacAddress = string.Empty;
|
||||
|
||||
|
||||
Response_GetWbmsMeta response = new Response_GetWbmsMeta();
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
@ -60,8 +64,12 @@
|
||||
private async Task SearchByProductID()
|
||||
{
|
||||
PopupService.OpenIndicator("");
|
||||
if (string.IsNullOrEmpty(SearchProductID) == false)
|
||||
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress);
|
||||
|
||||
if(Int32.TryParse(ShardID, out var outValue))
|
||||
{
|
||||
if (string.IsNullOrEmpty(SearchProductID) == false)
|
||||
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress, outValue);
|
||||
}
|
||||
|
||||
await Task.Delay(300);
|
||||
PopupService.CloseIndicator();
|
||||
@ -70,8 +78,12 @@
|
||||
private async Task SearchByMacAddress()
|
||||
{
|
||||
PopupService.OpenIndicator("");
|
||||
if (string.IsNullOrEmpty(SearchProductMacAddress) == false)
|
||||
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress);
|
||||
|
||||
if (Int32.TryParse(ShardID, out var outValue))
|
||||
{
|
||||
if (string.IsNullOrEmpty(SearchProductMacAddress) == false)
|
||||
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress, outValue);
|
||||
}
|
||||
|
||||
await Task.Delay(300);
|
||||
PopupService.CloseIndicator();
|
||||
|
||||
Reference in New Issue
Block a user