getMakeStation(code
:
string
|
null) {
if (
code) {
this.
poService.
getMakeWorkStation(
code).
subscribe((r)
=> {
this.
model
=
r.data;
this.
model.
isPersistent
=
this.
convertIsPersistentToBool(
this.
model.
isPersistent);
this.
isEdit
=
true;
});
}
}
convertIsPersistentToBool(isPersistent
:
string|
boolean) {
const
value
=
isPersistent;
const
flag
=
value
===
'False'
?
false
:
true;
return
flag;
}