當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript service.PcrudService.autoApply方法代碼示例

本文整理匯總了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()
     );
 };
開發者ID:StephenGWills,項目名稱:Evergreen,代碼行數:8,代碼來源:parts.component.ts

示例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()
     );
 };
開發者ID:StephenGWills,項目名稱:Evergreen,代碼行數:8,代碼來源:match-set-list.component.ts

示例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();
     }
 }
開發者ID:StephenGWills,項目名稱:Evergreen,代碼行數:10,代碼來源:part-merge-dialog.component.ts

示例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));
 }
開發者ID:StephenGWills,項目名稱:Evergreen,代碼行數:5,代碼來源:part-merge-dialog.component.ts


注:本文中的@eg/core/pcrud.service.PcrudService.autoApply方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。