Project

General

Profile

Bug #349 » fnGetLeaveQuota.txt

Tri Rizqiaty, 05/28/2021 04:31 PM

 
1
ry
2
{
3
	var gen = id.substr(12);
4
	var empid = hidEmpId.getValue();
5
	var abstype = Ext.getCmp("absence_type"+gen).getValue();
6
	var start_date = Ext.getCmp("start_date"+gen).getValue();
7
	var end_date = Ext.getCmp("end_date"+gen).getValue();
8

    
9
	$.ajax({
10
		async : false,
11
		url : "HR_TM/GetLeaveQuota",
12
		data : {empid:empid,abstype:abstype},
13
		success : function(result){
14
		Ext.getCmp("leave_quota"+gen).setValue(result);
15
		}
16
	})
17
	
18
	$.ajax({
19
		async : false,
20
		url : "HR_TM/GetRemainingQuota",
21
		data : {empid:empid,abstype:abstype},
22
		success : function(result){
23
		Ext.getCmp("remaining_quota"+gen).setValue(result);
24
		}
25
	})
26
	
27
	$.ajax({
28
		async : false,
29
		url : "Mega_TM/GetDurationLeave",
30
		data : {empid:empid,start_date:start_date,end_date:end_date,abstype:abstype},
31
		success : function(result){
32
		Ext.getCmp("duration"+gen).setValue(result);
33
		}
34
	})
35
}
36
catch(e)
37
{
38
}
39

    
40

    
(4-4/5)