本文整理汇总了TypeScript中@geonature_common/form/data-form.service.DataFormService.getAcquisitionFrameworks方法的典型用法代码示例。如果您正苦于以下问题:TypeScript service.DataFormService.getAcquisitionFrameworks方法的具体用法?TypeScript service.DataFormService.getAcquisitionFrameworks怎么用?TypeScript service.DataFormService.getAcquisitionFrameworks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@geonature_common/form/data-form.service.DataFormService
的用法示例。
在下文中一共展示了service.DataFormService.getAcquisitionFrameworks方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ngOnInit
ngOnInit() {
// get the id from the route
this._route.params.subscribe(params => {
this.id_dataset = params['id'];
if (this.id_dataset) {
this.getDataset(this.id_dataset);
}
});
this.datasetForm = this._fb.group({
id_acquisition_framework: [null, Validators.required],
id_dataset: null,
dataset_name: [null, Validators.compose([Validators.required, Validators.maxLength(150)])],
dataset_shortname: [
null,
Validators.compose([Validators.required, Validators.maxLength(30)])
],
dataset_desc: [null, Validators.required],
id_nomenclature_data_type: [null, Validators.required],
keywords: null,
marine_domain: true,
terrestrial_domain: false,
id_nomenclature_dataset_objectif: [null, Validators.required],
//TODO bouding-box
id_nomenclature_collecting_method: [null, Validators.required],
id_nomenclature_data_origin: [null, Validators.required],
id_nomenclature_source_status: [null, Validators.required],
id_nomenclature_resource_type: [null, Validators.required],
default_validity: true,
active: [true, Validators.required]
});
this.cor_dataset_actor_array = this._fb.array([]);
this._dfs.getAcquisitionFrameworks().subscribe(data => {
this.acquisitionFrameworks = data;
});
this.cor_dataset_actor_array.push(this._formService.generateCorDatasetActorForm());
}
示例2: ngOnInit
ngOnInit() {
this._dfs.getAcquisitionFrameworks().subscribe(data => {
this.values = data;
this.savedValues = data;
});
}