37 lines
967 B
Plaintext
37 lines
967 B
Plaintext
@page "/_Admin/WTM_AREA/Details/{id}"
|
|
@using wtmProject.ViewModel._Admin.WTM_AREAVMs;
|
|
@inherits BasePage
|
|
|
|
<ValidateForm @ref="vform" Model="@Model" >
|
|
<Row ItemsPerRow="ItemsPerRow.Two" RowType="RowType.Normal">
|
|
|
|
<Display @bind-Value="@Model.Entity.AreaCode" ShowLabel="true"/>
|
|
<Display @bind-Value="@Model.Entity.AreaName" ShowLabel="true"/>
|
|
</Row>
|
|
<div class="modal-footer table-modal-footer">
|
|
<Button Color="Color.Primary" Icon="fa fa-save" Text="@WtmBlazor.Localizer["Sys.Close"]" OnClick="OnClose" />
|
|
</div>
|
|
</ValidateForm>
|
|
|
|
@code {
|
|
|
|
private WTM_AREAVM Model = null;
|
|
private ValidateForm vform { get; set; }
|
|
[Parameter]
|
|
public string id { get; set; }
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
|
|
var rv = await WtmBlazor.Api.CallAPI<WTM_AREAVM>($"/api/WTM_AREA/{id}");
|
|
Model = rv.Data;
|
|
}
|
|
|
|
public void OnClose()
|
|
{
|
|
CloseDialog();
|
|
}
|
|
|
|
}
|