protected override async Task OnInitializedAsync()
 {
     this.editPlaceHolder        = NomenclaturesFactory.GetEmptyRoleDto();
     this.SelectedRowItemForEdit = this.editPlaceHolder;
     this.InitializePermissionCheckBoxList();
     this.TableItems = await this.RoleService.GetAllAsync();
 }
        protected override async Task OnInitializedAsync()
        {
            this.SelectedRowItemForEdit = this.editPlaceHolder = NomenclaturesFactory.GetEmptyCarDto();
            this.Engines = (IReadOnlyList <EngineDto>) await this.CarService.GetAllEnginesAsync();

            this.TableItems = await this.CarService.GetAllAsync();
        }
        protected override async Task OnInitializedAsync()
        {
            this.SelectedRowItemForEdit = this.editPlaceHolder = NomenclaturesFactory.GetEmptyUserDto();
            this.RolesSelection         = await this.RoleService.GetAllAsync() as IReadOnlyList <RoleDto>;

            this.TableItems = await this.UserService.GetAllAsync();
        }
        protected override async Task OnInitializedAsync()
        {
            this.SelectedRowItemForEdit = this.editPlaceHolder = NomenclaturesFactory.GetEmptyJobItemDto();
            this.Job = await this.JobService.GetAsync(this.Id);

            this.TableItems = await this.JobService.GetAllItemsAsync(this.Id);

            this.Products = (IReadOnlyList <ProductDto>) await this.ProductService.GetAllAsync();
        }
Esempio n. 5
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();
        }
 public override void AddNewRow()
 {
     this.SelectedRowItemForEdit = NomenclaturesFactory.GetEmptyCustomerDto();
     base.AddNewRow();
 }
 protected override async Task OnInitializedAsync()
 {
     this.SelectedRowItemForEdit = this.editPlaceHolder = NomenclaturesFactory.GetEmptyCustomerDto();
     this.TableItems             = await this.CustomerService.GetAllAsync();
 }
Esempio n. 8
0
 public override void AddNewRow()
 {
     this.SelectedRowItemForEdit = NomenclaturesFactory.GetEmptyProductDto(this.ProductType);
     base.AddNewRow();
 }
Esempio n. 9
0
 protected override async Task OnInitializedAsync()
 {
     this.editPlaceHolder        = NomenclaturesFactory.GetEmptyProductDto(this.ProductType);
     this.SelectedRowItemForEdit = this.editPlaceHolder;
     this.TableItems             = await this.ProductService.GetAllAsync(this.ProductType);
 }