void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> employee = e.Result.ToList(); BindData(); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void personalClient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error != null) { ShowMessage(true, "ERROR", "ERROR", ""); return; } if (e.Result == null) { ShowMessage(true, "ERROR", "GETDATAFAILED", ""); return; } try { int _index = 0; foreach (T_OA_DISTRIBUTEUSER convert in distributeuserList) { if (string.IsNullOrEmpty(convert.VIEWER)) { convert.VIEWER = e.Result[_index].EMPLOYEECNAME; _index++; } } } catch (IndexOutOfRangeException) { ShowMessage(true, "ERROR", "DATAOUTOFRANGEEXCEPTION", ""); } }
void client_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { vemployeeObj = e.Result.ToList(); if (vemployeeObj == null) { return; } var objc = from a in vemployeeObj where a.EMPLOYEEID == AgentSetInfo.USERID select a.EMPLOYEECNAME; if (objc.Count() > 0)//如果数据存在 { UserId = AgentSetInfo.USERID; this.txtEMPLOYEENAME.Text = objc.FirstOrDefault(); } } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { MeetingStaffs = e.Result.ToList(); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e)//获取员工姓名(将ID转换为中文名) { try { if (e.Error == null) { if (e.Result != null) { vemployeeObj = e.Result.ToList(); if (vemployeeObj == null) { return; } var objc = from a in vemployeeObj where a.EMPLOYEEID == CtappObj.PARTYA select a.EMPLOYEECNAME; var objcs = from a in vemployeeObj where a.EMPLOYEEID == CtappObj.PARTYB select a.EMPLOYEECNAME; if (objc.Count() > 0) //如果数据存在 { PartyaId = CtappObj.PARTYA; //将保存的甲方ID赋给变量PartyaId this.txtPartya.Text = objc.FirstOrDefault(); //将取回的数据赋给甲方文本框 } else //如果有另外一方数据未从组织架构中获取时执行 { this.txtPartya.Text = CtappObj.PARTYA; //甲方 } if (objcs.Count() > 0) //如果数据存在 { PartybId = CtappObj.PARTYB; //将保存的乙方ID赋给变量PartybId this.txtPartyb.Text = objcs.FirstOrDefault(); //将取回的数据赋给乙方文本框 } else { this.txtPartyb.Text = CtappObj.PARTYB;//乙方 } } else //如果全部未从组织架构中获取数据时执行 { this.txtPartyb.Text = CtappObj.PARTYB;//乙方 this.txtPartya.Text = CtappObj.PARTYA;//甲方 } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { List <SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> employee = e.Result.ToList(); cbxMeetingMembers.ItemsSource = employee; cbxMeetingMembers.DisplayMemberPath = "EMPLOYEECNAME"; cbxMeetingMembers.SelectedIndex = 0; } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { MeetingStaffs = e.Result.ToList(); MeetingClient.GetMeetingContentInfosByMeetngInfoIDAsync(tmpMeetingInfoT.MEETINGINFOID); StringBuilder sbInfos = new StringBuilder(); if (e.Result != null) { foreach (T_OA_MEETINGSTAFF SingleInfo in tmpMeetingStaff) { sbInfos.Append("与会人:"); if (MeetingStaffs.Count > 0) { foreach (SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE employee in MeetingStaffs) { if (SingleInfo.MEETINGUSERID == employee.EMPLOYEEID) { sbInfos.Append(employee.EMPLOYEECNAME); sbInfos.Append("\n"); } } } if (!string.IsNullOrEmpty(SingleInfo.FILENAME)) { sbInfos.Append(SingleInfo.FILENAME); } else { sbInfos.Append("没有附件上传"); } sbInfos.Append("\n\n"); } } else { sbInfos.Append("暂无信息"); } tblUploadAccessory.Text = sbInfos.ToString(); //MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDAsync(tmpMeetingInfoT.MEETINGINFOID); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> employee = e.Result.ToList(); //distributeList = e.Result.ToList(); //foreach (var h in employee) //{ // object obj = new object(); // SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj extOrgObj = new SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj(); // SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE tmp = new SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); // tmp.EMPLOYEEID = h.EMPLOYEEID; // tmp.EMPLOYEECNAME = h.EMPLOYEECNAME; // //tmp. // obj = tmp; // extOrgObj.ObjectInstance = obj; // issuanceExtOrgObj.Add(extOrgObj); //} BindData(); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void client_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { vemployeeObj = e.Result.ToList(); if (vemployeeObj == null) return; var objc = from a in vemployeeObj where a.EMPLOYEEID == AgentSetInfo.USERID select a.EMPLOYEECNAME; if (objc.Count() > 0)//如果数据存在 { UserId = AgentSetInfo.USERID; this.txtEMPLOYEENAME.Text = objc.FirstOrDefault(); } } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e)//获取员工姓名(将ID转换为中文名) { try { if (e.Error == null) { if (e.Result != null) { vemployeeObj = e.Result.ToList(); if (vemployeeObj == null) return; var objc = from a in vemployeeObj where a.EMPLOYEEID == CtappObj.PARTYA select a.EMPLOYEECNAME; var objcs = from a in vemployeeObj where a.EMPLOYEEID == CtappObj.PARTYB select a.EMPLOYEECNAME; if (objc.Count() > 0)//如果数据存在 { PartyaId = CtappObj.PARTYA;//将保存的甲方ID赋给变量PartyaId this.txtPartya.Text = objc.FirstOrDefault();//将取回的数据赋给甲方文本框 } else //如果有另外一方数据未从组织架构中获取时执行 { this.txtPartya.Text = CtappObj.PARTYA;//甲方 } if (objcs.Count() > 0)//如果数据存在 { PartybId = CtappObj.PARTYB;//将保存的乙方ID赋给变量PartybId this.txtPartyb.Text = objcs.FirstOrDefault();//将取回的数据赋给乙方文本框 } else { this.txtPartyb.Text = CtappObj.PARTYB;//乙方 } } else //如果全部未从组织架构中获取数据时执行 { this.txtPartyb.Text = CtappObj.PARTYB;//乙方 this.txtPartya.Text = CtappObj.PARTYA;//甲方 } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> employee = e.Result.ToList(); BindData(); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message.ToString())); } }
/// <summary> /// 获取人员后触发事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>(); 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) { lblSumPerson.Text = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)e.Result[0]).EMPLOYEECNAME; //判断是否有审批人 if (e.Result.Count > 1) lblReviewPerson.Text = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)e.Result[1]).EMPLOYEECNAME; } } }
void client_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs 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; } T_HR_EMPLOYEE selEmployee = e.Result.FirstOrDefault(); lkEmployeeName.DataContext = selEmployee; } }
void personclient_GetEmployeeByIDsCompleted(object sender, GetEmployeeByIDsCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> employee = e.Result.ToList(); cbxMeetingMembers.ItemsSource = employee; cbxMeetingMembers.DisplayMemberPath = "EMPLOYEECNAME"; cbxMeetingMembers.SelectedIndex = 0; } }