Esempio n. 1
0
  private void loadData() throws IllegalArgumentException, Exception {
    bcClientType.removeAllItems();
    bcClientType.addAll(clientTypeService.getAll(context.getUser().getActiveOrganization()));

    clientTypeField.setContainerDataSource(bcClientType);

    bcClientGroup.removeAllItems();
    bcClientGroup.addAll(clientGroupService.getAll(context.getUser().getActiveOrganization()));

    clientGroupField.setContainerDataSource(bcClientGroup);
  }
Esempio n. 2
0
  public Excel2Entity(
      IWorkbenchContext context,
      SequenceService sequenceService,
      AddressService addressService,
      ClientGroupService clientGroupService,
      ClientTypeService clientTypeService,
      HSSFRow row) {
    this.sequenceService = sequenceService;
    this.addressService = addressService;
    this.clientTypeService = clientTypeService;
    this.clientGroupService = clientGroupService;

    this.row = row;

    client = new Client();
    List<Organization> organizations = new ArrayList<Organization>();
    organizations.add(context.getOrganization());

    client.setOrganizations(organizations);
  }