openRemedyTickets/Done
parent
6e2731f887
commit
1f30a4759b
|
|
@ -1055,40 +1055,46 @@ private oldFilters:{};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
public actionBegin(args: any) {
|
public actionBegin(args: any) {
|
||||||
//console.log(args); //custom Action
|
console.log(args); //custom Action
|
||||||
if(args.requestType=='sorting'){
|
if(args.dialogModel){
|
||||||
let colName = "";
|
|
||||||
let mode = "asc";
|
|
||||||
args.cancel = true;
|
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) {
|
switch (args.columnName) {
|
||||||
case 'TaskName':
|
case 'TaskName':
|
||||||
colName = 'ResourceName';
|
colName = 'ResourceName';
|
||||||
break;
|
break;
|
||||||
case 'stateName':
|
case 'stateName':
|
||||||
colName = 'State';
|
colName = 'State';
|
||||||
break;
|
break;
|
||||||
case 'supportGroup':
|
case 'supportGroup':
|
||||||
colName = 'SupportGroup';
|
colName = 'SupportGroup';
|
||||||
break;
|
break;
|
||||||
case 'approvalStatus':
|
case 'approvalStatus':
|
||||||
colName = 'ApprovalStatus';
|
colName = 'ApprovalStatus';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
if(colName != ''){
|
|
||||||
this.sortEnabled = true;
|
|
||||||
if(this.oldSort != null && this.oldSort.column == this.sort.column){
|
|
||||||
mode = 'dsc'
|
|
||||||
}
|
}
|
||||||
this.oldSort = this.sort;
|
if(colName != ''){
|
||||||
this.sort = {
|
this.sortEnabled = true;
|
||||||
'column': colName,
|
if(this.oldSort != null && this.oldSort.column == this.sort.column){
|
||||||
'mode': mode
|
mode = 'dsc'
|
||||||
|
}
|
||||||
|
this.oldSort = this.sort;
|
||||||
|
this.sort = {
|
||||||
|
'column': colName,
|
||||||
|
'mode': mode
|
||||||
|
}
|
||||||
|
this.refreshData();
|
||||||
}
|
}
|
||||||
this.refreshData();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue