/// <summary> /// 获取签卡记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientAtt_GetEmployeeSigninRecordByIDCompleted(object sender, GetEmployeeSigninRecordByIDCompletedEventArgs e) { try { if (e.Error == null) { SignInRecord = e.Result; if (FormType == FormTypes.Resubmit || FormType == FormTypes.Edit) { SignInRecord.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } this.DataContext = SignInRecord; string strEmployeeId = string.Empty; if (SignInRecord != null) { strEmployeeId = SignInRecord.EMPLOYEEID; } RefreshUI(RefreshedTypes.ShowProgressBar); perClient.GetEmpOrgInfoByIDAsync(SignInRecord.EMPLOYEEID, SignInRecord.OWNERPOSTID, SignInRecord.OWNERDEPARTMENTID, SignInRecord.OWNERCOMPANYID); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { RefreshUI(RefreshedTypes.HideProgressBar); } }
/// <summary> /// 获取签卡记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientAtt_GetEmployeeSigninRecordByIDCompleted(object sender, GetEmployeeSigninRecordByIDCompletedEventArgs e) { try { if (e.Error == null) { SignInRecord = e.Result; if (FormType == FormTypes.Resubmit || FormType == FormTypes.Edit) { SignInRecord.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } this.DataContext = SignInRecord; string strEmployeeId = string.Empty; if (SignInRecord != null) { strEmployeeId = SignInRecord.EMPLOYEEID; } RefreshUI(RefreshedTypes.ShowProgressBar); perClient.GetEmpOrgInfoByIDAsync(SignInRecord.EMPLOYEEID, SignInRecord.OWNERPOSTID, SignInRecord.OWNERDEPARTMENTID, SignInRecord.OWNERCOMPANYID); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { RefreshUI(RefreshedTypes.HideProgressBar); } }