fixed moe issues

MOE_MAIN-COLOR_CHANGES
umasoodch 3 years ago
parent 3c9bd8c3c6
commit 28846867df

@ -4,8 +4,6 @@
<description>An app created by cloud Solutions</description>
<author email="eservicescs@cloudsolution-sa.com" href="http://cloudsolution-sa.com">Cloud Solutions</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">hmg.com</domain>
<domain includeSubdomains="true">hrmsys.moenergy.gov.sa</domain>
</domain-config>
</network-security-config>

@ -556,6 +556,24 @@ export class AddEitComponent implements OnInit {
});
}
scrollTopMOE(e: any) {
let total = 0;
let container = null;
const _rec = (obj) => {
total += obj.offsetTop;
const par = obj.offsetParent;
if (par && par.localName !== 'ion-content') {
_rec(par);
} else {
container = par;
}
}
_rec(event.target);
container.scrollToPoint(0, total - 50, 400);
}
bindHtmlElemEvents(id, obj) {
const elem = document.getElementById(id);
console.log(elem);
@ -575,6 +593,9 @@ export class AddEitComponent implements OnInit {
// isEmpty=true;
//emptyChildElement
if (obj.FORMAT_TYPE == "N" || obj.FORMAT_TYPE == "C") {
this.scrollTopMOE(e);
}
if (obj.FORMAT_TYPE == "N") {
const maxSize = obj.MAXIMUM_SIZE;

@ -1616,9 +1616,14 @@ export class CommonService {
}
public setFilterValues(data) {
for (const notification of data) {
this.filterKeys[notification.ITEM_TYPE] = notification.OPEN_NTF_NUMBER
if (data.length > 0) {
for (const notification of data) {
this.filterKeys[notification.ITEM_TYPE] = notification.OPEN_NTF_NUMBER
}
} else {
this.filterKeys['HRSSA'] = 0;
}
}

@ -207,7 +207,9 @@ export class HomeComponent implements OnInit {
this.data = values.data;
this.filters = values.filters;
const loadWorkList = this.common.sharedService.getSharedData('loadWorkList', false);
// const loadWorkList = this.common.sharedService.getSharedData('loadWorkList', false);
const loadWorkList = true;
if (loadWorkList) {
this.receivedITGCount = false;
this.showChart = false;
@ -227,7 +229,9 @@ export class HomeComponent implements OnInit {
this.direction = TranslatorService.getCurrentLanguageName();
this.worklistNotifications = this.common.sharedService.getSharedData('worklistNotifications', false);
var isWorklistChanged = this.common.sharedService.getSharedData(HomeComponent.COUNT_CHANGED);
// var isWorklistChanged = this.common.sharedService.getSharedData(HomeComponent.COUNT_CHANGED);
var isWorklistChanged = true;
if (isWorklistChanged) {
this.openNotificationsDashboard()
}

Loading…
Cancel
Save