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


TypeScript global-evaluation.service.GlobalEvaluationService類代碼示例

本文整理匯總了TypeScript中app/services/global-evaluation.service.GlobalEvaluationService的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.GlobalEvaluationService類的具體用法?TypeScript service.GlobalEvaluationService怎麽用?TypeScript service.GlobalEvaluationService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了service.GlobalEvaluationService類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: prepareForEvaluation

 /**
  * Prepare entry for evaluation.
  * @memberof EntryContentComponent
  */
 prepareForEvaluation() {
   this._globalEvaluationService.prepareForEvaluation().then(() => {
     let isPiaFullyEdited = true;
     for (const el in this._sidStatusService.itemStatus) {
       if (this._sidStatusService.itemStatus.hasOwnProperty(el) && this._sidStatusService.itemStatus[el] < 4 && el !== '4.3') {
         isPiaFullyEdited = false;
       }
     }
     if (isPiaFullyEdited) {
       this.goToNextSectionItem(4, 5);
       this._modalsService.openModal('completed-edition');
     } else {
       this.goToNextSectionItem(0, 4);
       this._modalsService.openModal('ask-for-evaluation');
     }
   });
 }
開發者ID:Rachoor,項目名稱:pia,代碼行數:21,代碼來源:entry-content.component.ts

示例2: validateEvaluation

 /**
  * Allow an user to validate evaluation for a section.
  * @memberof EntryContentComponent
  */
 validateEvaluation() {
   this._globalEvaluationService.validateAllEvaluation().then((toFix: boolean) => {
     this.goToNextSectionItem(5, 7);
     let isPiaFullyEvaluated = true;
     for (const el in this._sidStatusService.itemStatus) {
       if (this._sidStatusService.itemStatus.hasOwnProperty(el) && this._sidStatusService.itemStatus[el] !== 7 && el !== '4.3') {
         isPiaFullyEvaluated = false;
       }
     }
     if (isPiaFullyEvaluated) {
       this._modalsService.openModal('completed-evaluation');
     } else if (toFix) {
       this._modalsService.openModal('validate-evaluation-to-correct');
     } else {
       this._modalsService.openModal('validate-evaluation');
     }
   });
 }
開發者ID:Rachoor,項目名稱:pia,代碼行數:22,代碼來源:entry-content.component.ts

示例3: cancelValidateEvaluation

 /**
  * Allow an user to cancel the validation.
  * @memberof EntryContentComponent
  */
 cancelValidateEvaluation() {
   this._globalEvaluationService.cancelValidation();
   this._modalsService.openModal('back-to-evaluation');
 }
開發者ID:Rachoor,項目名稱:pia,代碼行數:8,代碼來源:entry-content.component.ts

示例4: cancelAskForEvaluation

 /**
  * Allow an user to return in edit mode.
  * @memberof EntryContentComponent
  */
 cancelAskForEvaluation() {
   this._globalEvaluationService.cancelForEvaluation();
   this._modalsService.openModal('back-to-edition');
 }
開發者ID:Rachoor,項目名稱:pia,代碼行數:8,代碼來源:entry-content.component.ts


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