本文整理汇总了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;未经允许,请勿转载。 |
请发表评论