|
|
@@ -307,9 +307,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (1).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (2).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -379,9 +379,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (3).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (4).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -437,9 +437,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (5).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (6).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -482,9 +482,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (7).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (8).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -513,9 +513,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (9).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (10).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -559,9 +559,9 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
}
|
|
|
}catch(error: any){
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (11).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (12).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|
|
|
@@ -583,7 +583,6 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
if(!this.hasError){
|
|
|
let symptomsArr: ActiveSymptomsListItem[] = [];
|
|
|
for(const symptom of symptoms.response){
|
|
|
-
|
|
|
let idDec = await this._encService.decrypt(symptom.ID_SINTOMA);
|
|
|
if(this.maintenancePlan != null){
|
|
|
let symptomDec = await this._encService.decrypt(this.maintenancePlan.SINTOMA);
|
|
|
@@ -602,10 +601,12 @@ export class PlanRegisterComponent implements OnInit {
|
|
|
this.isLoading = false;
|
|
|
this.initTables();
|
|
|
}catch(error: any){
|
|
|
+ console.log(error);
|
|
|
+
|
|
|
if(error.error == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (13).';
|
|
|
}else if(error.error.msg == undefined){
|
|
|
- this.errorStr = 'Ocurrió un error inesperado.';
|
|
|
+ this.errorStr = 'Ocurrió un error inesperado (14).';
|
|
|
}else{
|
|
|
this.errorStr = error.error.msg;
|
|
|
}
|