//2019.08.14 add
notificationAttributes = {
"title": "Customer",
- "imgPath": "../../../../assets/images/execute-inproess.png",
+ "imgPath": "assets/images/execute-inproess.png",
"action": "Create",
"status": "InProgress",
"name": ""
};
notificationModelShow(template: TemplateRef<{}>): void {
- console.log(this.notificationAttributes, "notificationModelShow show");
this.notification.template(template);
}
notificationSuccess(notificationModel) {
- this.notificationAttributes.imgPath = "../../../../assets/images/execute-success.png";
+ this.notificationAttributes.imgPath = "assets/images/execute-success.png";
this.notificationAttributes.status = "Success";
this.notificationModelShow(notificationModel);
}
notificationFailed(notificationModel) {
- this.notificationAttributes.imgPath = "../../../../assets/images/execute-faild.png";
+ this.notificationAttributes.imgPath = "assets/images/execute-faild.png";
this.notificationAttributes.status = "Failed";
this.notificationModelShow(notificationModel);
}
data: data.customerServiceList
}]
}
- console.log(this.CUChartData)
}, (err) => {
console.log(err);
});
data: this.value_s
}]
}
- console.log(this.serviceData)
})
}
};
this.notificationAttributes = {
"title": "Customer",
- "imgPath": "../../../../assets/images/execute-inproess.png",
+ "imgPath": "assets/images/execute-inproess.png",
"action": "Create",
"status": "InProgress",
"name": this.addNewCustomer
if (data["status"] == 'SUCCESS') {
this.notificationSuccess(notificationModel);
this.getAllCustomers();
- console.log(data, "Interface returned success")
} else {
this.notificationFailed(notificationModel);
console.log(data, "Interface returned error")
this.getCustomerVersion(this.thisdeleteCustomer, notificationModel);
this.notificationAttributes = {
"title": "Customer",
- "imgPath": "../../../../assets/images/execute-inproess.png",
+ "imgPath": "assets/images/execute-inproess.png",
"action": "delete",
"status": "InProgress",
"name": this.thisdeleteCustomer.name
version: data["result"]["resource-version"]
};
this.deleteCustomer(params, notificationModel);
- console.log(data, "Interface returned success")
} else {
console.log(data, "Interface returned error")
}
if (data["status"] == 'SUCCESS') {
this.notificationSuccess(notificationModel);
this.getAllCustomers();
- console.log(data, "Interface returned success")
} else {
this.notificationFailed(notificationModel);
console.log(data, "Interface returned error")
};
this.notificationAttributes = {
"title": "ServiceType",
- "imgPath": "../../../../assets/images/execute-inproess.png",
+ "imgPath": "assets/images/execute-inproess.png",
"action": "Create",
"status": "InProgress",
"name": this.addNewServiceType
this.notificationSuccess(notificationModel);
this.getCustomersColumn(this.selectCustomer);
this.getAllCustomers();
- console.log(data, "Interface returned success")
} else {
this.notificationFailed(notificationModel);
console.log(data, "Interface returned error")
};
this.notificationAttributes = {
"title": "ServiceType",
- "imgPath": "../../../../assets/images/execute-inproess.png",
+ "imgPath": "assets/images/execute-inproess.png",
"action": "delete",
"status": "InProgress",
"name": this.thisdeleteServiceType["type"]
};
this.notificationModelShow(notificationModel);
this.managemencs.getdeleteServiceTypeVersion(paramss).subscribe((data) => {
- console.log(data)
if (data["status"] == 'SUCCESS') {
let params = {
customerId: this.selectCustomer,
version: data["result"]["resource-version"]
};
this.deleteServiceType(params, notificationModel);
- console.log(data, "Interface returned success")
} else {
console.log(data, "Interface returned error")
}
this.getServiceTypes(params.customerId);
this.getCustomersColumn(params.customerId);
this.getAllCustomers();
- console.log(data, "Interface returned success")
} else {
this.notificationFailed(notificationModel);
console.log(data, "Interface returned error")