void client_GetPerformaceRewardByIDCompleted(object sender, GetPerformaceRewardByIDCompletedEventArgs e) { if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message)) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } else { if (e.Result == null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND")); return; } performanceRewardRecord = e.Result; this.DataContext = performanceRewardRecord; T_HR_EMPLOYEE employee = new T_HR_EMPLOYEE(); employee.EMPLOYEECNAME = performanceRewardRecord.EMPLOYEENAME; lkEmployeeName.DataContext = employee; RefreshUI(RefreshedTypes.AuditInfo); SetToolBar(); } }
void client_GetPerformaceRewardByIDCompleted(object sender, GetPerformaceRewardByIDCompletedEventArgs e) { if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message)) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } else { if (e.Result == null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND")); return; } performanceRewardRecord = e.Result; this.DataContext = performanceRewardRecord; T_HR_EMPLOYEE employee = new T_HR_EMPLOYEE(); employee.EMPLOYEECNAME = performanceRewardRecord.EMPLOYEENAME; lkEmployeeName.DataContext = employee; RefreshUI(RefreshedTypes.AuditInfo); SetToolBar(); } }