void client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Result != null) { txtDriverName.Text = ((T_HR_EMPLOYEE)e.Result).EMPLOYEECNAME; } }
void personClient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Result != null) { this.tbladduser.Text = e.Result.EMPLOYEECNAME; //StrAddUserID = e.Result.EMPLOYEEID; } }
void pClient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); RefreshUI(RefreshedTypes.HideProgressBar); } else { lkEmployeeName.DataContext = e.Result; } }
void client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { lkEmployeeName.DataContext = e.Result; } }
/// <summary> /// 根据ID获取员工信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { Employee = e.Result; Employee.EMPLOYEESTATE = "4";//还未入职 Employee.WORKINGAGE = 0; BindData(); client.GetResumeByNumberAsync(Employee.IDNUMBER); } }
void client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result == null) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } createUserName = e.Result.EMPLOYEECNAME; RefreshUI(RefreshedTypes.AuditInfo); SetToolBar(); } }
void client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Result != null) txtDriverName.Text = ((T_HR_EMPLOYEE)e.Result).EMPLOYEECNAME; }
void psClient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error == null) { T_HR_EMPLOYEE ownerInfo = e.Result; if (ownerInfo != null) { if (!string.IsNullOrEmpty(ownerInfo.OFFICEPHONE)) { txtTel.Text = ownerInfo.OFFICEPHONE; } else { if (ownerInfo.MOBILE != null) { txtTel.Text = ownerInfo.MOBILE; } } } } else { Logger.Current.Log(e.Error.ToString(), Category.Debug, Priority.Low); } }
/// <summary> /// 根据员工ID获取员工信息,速度慢可以加一个新的接口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void personclient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { try { if (e.Error == null) { var emp = e.Result; if (emp != null) { this.txtPayInfo.Text = emp.BANKID + ":" + emp.BANKCARDNUMBER; } } } catch { ///暂无 } }
void perClient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error == null) { T_HR_EMPLOYEE employee = e.Result; tbEmpBirthday.Text = ""; if (employee.BIRTHDAY != null) { tbEmpBirthday.Text = employee.BIRTHDAY.ToString(); } } }
/// <summary> /// 查询员工基本信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Client_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (e.Error != null && e.Error.Message != string.Empty) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result == null) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } Employee = e.Result; if (Employee.HASCHILDREN == "1") { chkHas.IsChecked = true; } else { chkHas.IsChecked = false; } //experience.btnAdd.Visibility = Visibility.Collapsed; //educateHistory.btnAdd.Visibility = Visibility.Collapsed; //if (Employee.T_HR_RESUME != null) //{ // experience.LoadData(FormTypes.Browse, Employee.T_HR_RESUME.RESUMEID, Employee.T_HR_RESUME); // educateHistory.LoadData(FormTypes.Browse, Employee.T_HR_RESUME.RESUMEID, Employee.T_HR_RESUME); //} client.GetPensionMasterByEmployeeIDAsync(Employee.EMPLOYEEID); //员工社保档案 if (!string.IsNullOrEmpty(Employee.FATHEREMPLOYEEID)) { client.GetEmployeeByIDsAsync(new ObservableCollection<string> { Employee.FATHEREMPLOYEEID }); } } loadbar.Stop(); }
void personclient_GetEmployeeByIDCompleted(object sender, GetEmployeeByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { //如果办公电话为空 则取手机号码 if (!string.IsNullOrEmpty(e.Result.OFFICEPHONE)) { this.txtTel.Text = e.Result.OFFICEPHONE + " "; this.txtMessageTel.Text = e.Result.OFFICEPHONE+ " "; } if(!string.IsNullOrEmpty(e.Result.MOBILE)) { this.txtTel.Text += e.Result.MOBILE; this.txtMessageTel.Text += e.Result.MOBILE; } } } }