本文整理汇总了TypeScript中@eg/core/pcrud.service.PcrudService.autoApply方法的典型用法代码示例。如果您正苦于以下问题:TypeScript service.PcrudService.autoApply方法的具体用法?TypeScript service.PcrudService.autoApply怎么用?TypeScript service.PcrudService.autoApply使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@eg/core/pcrud.service.PcrudService
的用法示例。
在下文中一共展示了service.PcrudService.autoApply方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
this.deleteSelected = (parts: IdlObject[]) => {
parts.forEach(part => part.isdeleted(true));
this.pcrud.autoApply(parts).subscribe(
val => console.debug('deleted: ' + val),
err => {},
() => this.partsGrid.reload()
);
};
示例2:
this.deleteSelected = (matchSets: IdlObject[]) => {
matchSets.forEach(matchSet => matchSet.isdeleted(true));
this.pcrud.autoApply(matchSets).subscribe(
val => console.debug('deleted: ' + val),
err => {},
() => this.grid.reload()
);
};
示例3:
() => {
// 2. Delete the now-empty subordinate parts. Note the
// delete must come after the part map changes are committed.
if (maps.length > 0) {
this.pcrud.autoApply(maps)
.toPromise().then(() => this.deleteParts());
} else {
this.deleteParts();
}
}
示例4: deleteParts
deleteParts() {
const parts = this.parts.filter(p => Number(p.id()) !== this.leadPart);
parts.forEach(p => p.isdeleted(true));
this.pcrud.autoApply(parts).toPromise().then(res => this.close(res));
}