Medikal BeforeClone Script

Medikal BeforeClone Script

this.recordService.formGroup.controls['RESSTATEID'].setValue(2);
this.recordService.formGroup.controls['SALEDATE'].setValue(
  moment(ANG.PROGDATE).format('YYYY-MM-DD')
);

	let blackCount = 0;
  this.recordService.grids.medical-resname.api.forEachNode((node)=>{
    if(node.data.BLACKLIST === true){
      blackCount++;
    }
  }); 

if( blackCount > 0)
{
  let msgb = `Guest in Black List.`;
  msgb = angus.languageService.staticTranslator.translate(msgb);
  //throw msgb;
  this.recordService.component.angusDialog.warn(msgb);
}

Last updated