当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript infodata.IDataService类代码示例

本文整理汇总了TypeScript中infodata.IDataService的典型用法代码示例。如果您正苦于以下问题:TypeScript IDataService类的具体用法?TypeScript IDataService怎么用?TypeScript IDataService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了IDataService类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: remove

 public remove(service: IDataService): Promise<any> {
     if ((this.id === null) || (this.rev === null)) {
         Promise.reject(new Error('Item not removeable error'));
     }
     let self = this;
     let id: string = this.id;
     let docs: IBaseItem[] = [];
     return service.get_children_ids(ETUDAFFECTATION_BY_GROUPE, id).then((aa_ids) => {
         return service.find_items_array(aa_ids);
     }).then((aa: IEtudAffectation[]) => {
         for (let x of aa) {
             docs.push(x);
         }
         return service.get_children_ids(PROFAFFECTATION_BY_GROUPE, id);
     }).then((uu_ids) => {
         return service.find_items_array(uu_ids);
     }).then((uu: IProfAffectation[]) => {
         for (let x of uu) {
             docs.push(x);
         }
         let pp: Promise<any>[] = [];
         for (let y of docs) {
             pp.push(y.remove(service));
         }
         if (pp.length > 0) {
             return Promise.all(pp);
         } else {
             return [];
         }
     }).then((xx)=>{
         return service.remove_item(self);
     });
 }
开发者ID:boubad,项目名称:vscinfoapp,代码行数:33,代码来源:groupe.ts

示例2: remove

 public remove(service: IDataService): Promise<any> {
     if ((this.id === null) || (this.rev === null)) {
         Promise.reject(new Error('Item not removeable error'));
     }
     let self = this;
     let id: string = this.id;
     let docs: IBaseItem[] = [];
     return service.get_children_ids(ANNEE_BY_DEPARTEMENT, id).then((aa_ids) => {
         return service.find_items_array(aa_ids);
     }).then((aa: IAnnee[]) => {
         for (let x of aa) {
             docs.push(x);
         }
         return service.get_children_ids(UNITE_BY_DEPARTEMENT, id);
     }).then((uu_ids) => {
         return service.find_items_array(uu_ids);
     }).then((uu: IUnite[]) => {
         for (let x of uu) {
             docs.push(x);
         }
         return service.get_children_ids(GROUPE_BY_DEPARTEMENT, id);
     }).then((gg_ids) => {
         return service.find_items_array(gg_ids);
     }).then((gg: IUnite[]) => {
         for (let x of gg) {
             docs.push(x);
         }
         let pp: Promise<any>[] = [];
         for (let y of docs) {
             pp.push(y.remove(service));
         }
         if (pp.length > 0) {
             return Promise.all(pp);
         } else {
             return [];
         }
     }).then((xx)=>{
         return service.remove_item(self);
     });
 }// remove
开发者ID:boubad,项目名称:vscinfoapp,代码行数:40,代码来源:departement.ts

示例3: remove

 }// update_person
 public remove(service: IDataService): Promise<any> {
     if ((this.id === null) || (this.rev === null)) {
         Promise.reject(new Error('Item not removeable error'));
     }
     let self = this;
     let id: string = this.id;
     return service.get_children_ids(ETUDAFFECTATION_BY_ETUDIANT, id).then((aa_ids) => {
         return service.find_items_array(aa_ids);
     }).then((aa: IEtudAffectation[]) => {
         let pp: Promise<any>[] = [];
         for (let y of aa) {
             pp.push(y.remove(service));
         }
         if (pp.length > 0) {
             return Promise.all(pp);
         } else {
             return [];
         }
     }).then((xx)=>{
         return service.remove_item(self);
     });
 }// remove
开发者ID:boubad,项目名称:vscinfoapp,代码行数:23,代码来源:etudiant.ts

示例4:

 }).then((xx)=>{
     return service.remove_item(self);
 });
开发者ID:boubad,项目名称:vscinfoapp,代码行数:3,代码来源:groupe.ts

示例5:

 return service.get_children_ids(PROFAFFECTATION_BY_ENSEIGNANT, id).then((aa_ids) => {
     return service.find_items_array(aa_ids);
 }).then((aa: IProfAffectation[]) => {
开发者ID:boubad,项目名称:vscinfoapp,代码行数:3,代码来源:enseignant.ts

示例6:

 return service.get_children_ids(MATIERE_BY_UNITE, id).then((aa_ids) => {
     return service.find_items_array(aa_ids);
 }).then((aa: IMatiere[]) => {
开发者ID:boubad,项目名称:vscinfoapp,代码行数:3,代码来源:unite.ts

示例7:

 }).then((gg_ids) => {
     return service.find_items_array(gg_ids);
 }).then((gg: IUnite[]) => {
开发者ID:boubad,项目名称:vscinfoapp,代码行数:3,代码来源:departement.ts


注:本文中的infodata.IDataService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。