openRemedyTickets/Done

main
manueltauber 2023-06-02 13:51:27 +02:00
parent 6e2731f887
commit 1f30a4759b
1 changed files with 36 additions and 30 deletions

View File

@ -1055,40 +1055,46 @@ private oldFilters:{};
};
}
public actionBegin(args: any) {
//console.log(args); //custom Action
if(args.requestType=='sorting'){
let colName = "";
let mode = "asc";
console.log(args); //custom Action
if(args.dialogModel){
args.cancel = true;
window.open("https://itsm-dev.asfinag.at/arsys/forms/itsm-app-dev/SHR%3ALandingConsole/Default+Administrator+View/?mode=search&F304255500=CHG:Infrastructure Change&F1000000076=FormOpenNoAppList&F303647600=SearchTicketWithQual&F304255610='1000000182' =\""+args.rowData.taskData.resources[0].changeNr+"\"", "_blank");
}else{
if(args.requestType=='sorting'){
let colName = "";
let mode = "asc";
args.cancel = true;
switch (args.columnName) {
case 'TaskName':
colName = 'ResourceName';
break;
case 'stateName':
colName = 'State';
break;
case 'supportGroup':
colName = 'SupportGroup';
break;
case 'approvalStatus':
colName = 'ApprovalStatus';
break;
default:
break;
}
if(colName != ''){
this.sortEnabled = true;
if(this.oldSort != null && this.oldSort.column == this.sort.column){
mode = 'dsc'
switch (args.columnName) {
case 'TaskName':
colName = 'ResourceName';
break;
case 'stateName':
colName = 'State';
break;
case 'supportGroup':
colName = 'SupportGroup';
break;
case 'approvalStatus':
colName = 'ApprovalStatus';
break;
default:
break;
}
this.oldSort = this.sort;
this.sort = {
'column': colName,
'mode': mode
if(colName != ''){
this.sortEnabled = true;
if(this.oldSort != null && this.oldSort.column == this.sort.column){
mode = 'dsc'
}
this.oldSort = this.sort;
this.sort = {
'column': colName,
'mode': mode
}
this.refreshData();
}
this.refreshData();
}
}
}
}
}