import {IdlService, IdlObject} from '@eg/core/idl.service';
import {PcrudService} from '@eg/core/pcrud.service';
import {AcqProviderSummaryPaneComponent} from './summary-pane.component';
+import {ProviderRecordService} from './provider-record.service';
@Component({
templateUrl: './acq-provider.component.html'
private route: ActivatedRoute,
private pcrud: PcrudService,
private idl: IdlService,
+ private providerRecord: ProviderRecordService,
) {
}
if (idParam) {
this.showSearchForm = false;
this.id = idParam;
+ this.providerRecord.fetch(this.id);
if (!tabTypeParam) {
this.activeTab = this.defaultTabType;
this.router.navigate(['/staff', 'acq', 'provider', this.id, this.activeTab]);
// $event is a provider ID
this.providerSummaryPane.update($event);
this.id = $event;
+ this.providerRecord.fetch(this.id);
};
}