protected override async Task OnInitializedAsync() { this.SelectedRowItemForEdit = this.editPlaceHolder = NomenclaturesFactory.GetEmptyJobDto(); this.Customers = (IReadOnlyList <CustomerDto>) await this.CustomerService.GetAllAsync(); this.Cars = (IReadOnlyList <CarDto>) await this.CarService.GetAllAsync(); this.Workers = (IReadOnlyList <UserDto>) await this.UserService.GetAllAsync(); this.Statuses = (IReadOnlyList <JOB_STATUS>)EnumHelper.GetEnumValues <JOB_STATUS>(); this.TableItems = await this.JobService.GetAllAsync(); }
public override void AddNewRow() { this.SelectedRowItemForEdit = NomenclaturesFactory.GetEmptyJobDto(); base.AddNewRow(); }