let gridCount = 0;
this.recordService.grids['stock-despatch-line'].grid.agGrid.api.forEachNode((node)=>{
gridCount++;
});
this.recordService.component.allFormControls.LineCountNumeric.setValue(gridCount);
let uidControl = this.recordService.formGroup.controls.UUID.value;
if(uidControl===null){
let newUID = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);return v.toString(16);
}).toUpperCase();
this.recordService.formGroup.controls.UUID.setValue(newUID);
}
this.recordService.formGroup.controls.ProfileID.setValue('TEMELIRSALIYE');