void client_GetEmployeeleaverecordByMultSearchIdCompleted(object sender, GetEmployeeleaverecordByMultSearchIdCompletedEventArgs e) { if (e.Error == null) { List <SMT.Saas.Tools.AttendanceWS.T_HR_EMPLOYEELEAVERECORD> list = new List <SMT.Saas.Tools.AttendanceWS.T_HR_EMPLOYEELEAVERECORD>(); if (e.Result != null) { list = e.Result.ToList(); } this.dgEmpLeaveDays1.ItemsSource = list; dataPager1.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } loadbar.Stop(); }
void client_GetEmployeeleaverecordByMultSearchIdCompleted(object sender, GetEmployeeleaverecordByMultSearchIdCompletedEventArgs e) { if (e.Error==null) { List<SMT.Saas.Tools.AttendanceWS.T_HR_EMPLOYEELEAVERECORD> list = new List<SMT.Saas.Tools.AttendanceWS.T_HR_EMPLOYEELEAVERECORD>(); if (e.Result!=null) { list = e.Result.ToList(); } this.dgEmpLeaveDays1.ItemsSource = list; dataPager1.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } loadbar.Stop(); }