@page "/CustomCreate/Create"
@using wtmProject.Model
@using wtmProject.ViewModel._Admin.WTM_CUSTOMVMs;
@inherits BasePage
@* *@
@* *@
@**@
@code {
private WTM_CUSTOMVM Model = new WTM_CUSTOMVM();
private ValidateForm vform { get; set; }
private List AllWTM_AREAs = new List();
private IEnumerable CustomPersonList { get; set; } = new List();
private List AllWTM_CUSTOMs = new List();
protected override async Task OnInitializedAsync()
{
AllWTM_CUSTOMs = await WtmBlazor.Api.CallItemsApi("/api/WTM_VISIT_PLAN/GetWTM_CUSTOMs", placeholder: WtmBlazor.Localizer["Sys.PleaseSelect"]);
AllWTM_AREAs = await WtmBlazor.Api.CallItemsApi("/api/WTM_CUSTOM/GetWTM_AREAs", placeholder: WtmBlazor.Localizer["Sys.PleaseSelect"]);
await base.OnInitializedAsync();
}
private async Task Submit(EditContext context)
{
Model.Entity.CustomPerson = CustomPersonList.ToList();
await PostsForm(vform, "/api/WTM_CUSTOM/add", (s) => "Sys.OprationSuccess");
}
public void OnClose()
{
CloseDialog();
}
}