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


TypeScript IDataService.get_children_ids方法代碼示例

本文整理匯總了TypeScript中infodata.IDataService.get_children_ids方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript IDataService.get_children_ids方法的具體用法?TypeScript IDataService.get_children_ids怎麽用?TypeScript IDataService.get_children_ids使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在infodata.IDataService的用法示例。


在下文中一共展示了IDataService.get_children_ids方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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((aa: IEtudAffectation[]) => {
     for (let x of aa) {
         docs.push(x);
     }
     return service.get_children_ids(PROFAFFECTATION_BY_GROUPE, id);
 }).then((uu_ids) => {
開發者ID:boubad,項目名稱:vscinfoapp,代碼行數:6,代碼來源:groupe.ts

示例5:

 }).then((uu: IUnite[]) => {
     for (let x of uu) {
         docs.push(x);
     }
     return service.get_children_ids(GROUPE_BY_DEPARTEMENT, id);
 }).then((gg_ids) => {
開發者ID:boubad,項目名稱:vscinfoapp,代碼行數:6,代碼來源:departement.ts


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