initial commit

This commit is contained in:
2026-07-21 14:22:06 +07:00
commit 2d7959f202
572 changed files with 45295 additions and 0 deletions
@@ -0,0 +1,23 @@
@page "/organization/department"
@using Indotalent.Features.Organization.Department
@using Indotalent.Features.Organization.Department.Cqrs
@using MudBlazor
@if (_view == View.Create)
{
<_DepartmentCreateForm OnCancel="() => _view = View.Table" OnSuccess="() => _view = View.Table" />
}
else if (_view == View.Update || _view == View.Detail)
{
<_DepartmentUpdateForm Data="_data!" ReadOnly="@(_view == View.Detail)" OnCancel="() => _view = View.Table" OnSuccess="() => _view = View.Table" />
}
else
{
<_DepartmentDataTable OnAdd="() => _view = View.Create" OnEdit="d => { _data = d; _view = View.Update; }" OnView="d => { _data = d; _view = View.Detail; }" />
}
@code {
private enum View { Table, Create, Update, Detail }
private View _view = View.Table;
private UpdateDepartmentRequest? _data;
}