Doluluk Grafikleri
Doluluk Grafikleri Script
console.log(this);
this.recordService.__loading = false;
this.recordService.children.chartsPanel.component.activeTabIndex.subscribe(index => {
this.recordService.children.listsPanel.component.tabGroup.selectedIndex = index;
if (this.__data && Array.isArray(this.__data)) {
Object.values(this.recordService.children.chartsPanel.children[index].charts)[0].onDraw(this.__data);
}
});
let defaultforecastCurrencyCode = this.recordService.component.api.tenant.FORECAST_DEFULTMAINCURRENCYCODE;
this.recordService.formGroup.controls.CURRENCY.setValue(defaultforecastCurrencyCode);
setTimeout(()=>{
document.querySelector('#raporla-button').click();
document.querySelector('.ang-tab-grouplistsPanel mat-tab-header').style.display = 'none';
}, 500);
this.recordService.formGroup.controls.SHOWCHART.valueChanges.subscribe(show => {
console.log("show",show);
if(show){
Object.values(this.recordService.charts)[0].chartjsConfig.data.datasets[0].hidden=true;
Object.values(this.recordService.charts)[0].chartjsConfig.data.datasets[1].hidden=false;
//Object.values(this.recordService.children.chartsPanel.children[0].charts)[0].onDraw(this.__data);
Object.values(this.recordService.charts)[0].onDraw(this.__data);
} else {
Object.values(this.recordService.charts)[0].chartjsConfig.data.datasets[0].hidden=false;
Object.values(this.recordService.charts)[0].chartjsConfig.data.datasets[1].hidden=true;
//Object.values(this.recordService.children.chartsPanel.children[0].charts)[0].onDraw(this.__data);
Object.values(this.recordService.charts)[0].onDraw(this.__data);
}
});
rxjs
.combineLatest(
this.recordService.formGroup.controls.BOARDINCLUDED.valueChanges.pipe(
rxjs.startWith(this.recordService.formGroup.controls.BOARDINCLUDED.value)
),
this.recordService.formGroup.controls.BLOCKINCLUDED.valueChanges.pipe(
rxjs.startWith(this.recordService.formGroup.controls.BLOCKINCLUDED.value)
),
this.recordService.formGroup.controls.WAITINGINCLUDED.valueChanges.pipe(
rxjs.startWith(this.recordService.formGroup.controls.WAITINGINCLUDED.value)
),
this.recordService.formGroup.controls.FOLIOREVENUES.valueChanges.pipe(
rxjs.startWith(this.recordService.formGroup.controls.FOLIOREVENUES.value)
)
)
.pipe(
rxjs.distinctUntilChanged(),
rxjs.takeUntil(this.isDestroy$)
)
.subscribe(async ([BOARDINCLUDED, BLOCKINCLUDED, WAITINGINCLUDED, FOLIOREVENUES]) => {
if (BOARDINCLUDED || BLOCKINCLUDED || WAITINGINCLUDED || FOLIOREVENUES) {
document.querySelector('#raporla-button').click();
}
});
Last updated