@magic-xpa/angular 4.900.0-dev490.46 → 4.900.0-dev490.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1888,8 +1888,6 @@ class TaskMagicService {
|
|
1888
1888
|
this.Records.list[guiRowId].values[controlId] = command.value;
|
1889
1889
|
let c = this.getFormControl(guiRowId.toString(), controlId);
|
1890
1890
|
if (!isNullOrUndefined(c)) {
|
1891
|
-
if (command.Bool1)
|
1892
|
-
c.reset();
|
1893
1891
|
c.setValue(this.ConvertValFromNative(controlId, command.line, command.value));
|
1894
1892
|
}
|
1895
1893
|
break;
|
@@ -1923,7 +1921,6 @@ class TaskMagicService {
|
|
1923
1921
|
ConvertValToNative(controlId, rowId, val) {
|
1924
1922
|
let properties;
|
1925
1923
|
properties = this.Records.list[0].getControlMetadata(controlId);
|
1926
|
-
let control = this.getFormControl(rowId.toString(), controlId);
|
1927
1924
|
switch (properties.dataType) {
|
1928
1925
|
case StorageAttribute.BOOLEAN: {
|
1929
1926
|
if (typeof val === 'string') {
|
@@ -1963,12 +1960,8 @@ class TaskMagicService {
|
|
1963
1960
|
else
|
1964
1961
|
return val;
|
1965
1962
|
}
|
1966
|
-
case StorageAttribute.NUMERIC:
|
1967
|
-
|
1968
|
-
return 0;
|
1969
|
-
else
|
1970
|
-
return val;
|
1971
|
-
}
|
1963
|
+
case StorageAttribute.NUMERIC:
|
1964
|
+
return val;
|
1972
1965
|
default:
|
1973
1966
|
return val;
|
1974
1967
|
}
|