Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public override void AddNewRow()
 {
     this.SelectedRowItemForEdit = NomenclaturesFactory.GetEmptyJobDto();
     base.AddNewRow();
 }