void client_GetEmployeeDetailByIDCompleted(object sender, GetEmployeeDetailByIDCompletedEventArgs e) { if (e.Result != null) { employeepost = e.Result; GetAllPost(e.Result); } }
private void GetAllPost(SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST ent)//获取当前员工、所属公司、所属部门 { if (ent != null && ent.EMPLOYEEPOSTS != null) { txtEMPLOYEENAME.Text = ent.EMPLOYEEPOSTS[0].T_HR_EMPLOYEE.EMPLOYEECNAME; //员工姓名 txtCompanyId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_COMPANY.CNAME; //公司 txtDepartmentId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME; //部门 } }
private void dgmember_LoadingRow(object sender, DataGridRowEventArgs e) { SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST StaffV = (SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST)e.Row.DataContext; int index = e.Row.GetIndex(); var cell = dgmember.Columns[0].GetCellContent(e.Row) as TextBlock; cell.Text = (index + 1).ToString(); }
private void GetAllPost(SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST ent) { if (ent != null && ent.EMPLOYEEPOSTS[0] != null) { //MembersObject.TxtLookUp.Text = ent.EMPLOYEEPOSTS[0].T_HR_EMPLOYEE.EMPLOYEECNAME; //员工姓名 //txtPostsId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_POSTDICTIONARY.POSTNAME;//岗位 //txtCompanyId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_COMPANY.CNAME;//公司 //txtDepartmentId.Text = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME;//部门 } }
private void GetAllPost(SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOST ent)//获取当前员工、所属公司、所属部门 { if (ent != null && ent.EMPLOYEEPOSTS != null) { string PostName = ""; string DepartmentName = ""; string CompanyName = ""; string StrName = ""; PostName = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_POSTDICTIONARY.POSTNAME; DepartmentName = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME; CompanyName = ent.EMPLOYEEPOSTS[0].T_HR_POST.T_HR_DEPARTMENT.T_HR_COMPANY.CNAME; StrName = ent.T_HR_EMPLOYEE.EMPLOYEECNAME + "[" + PostName + "-" + DepartmentName + "-" + CompanyName + "]"; txtEMPLOYEENAME.Text = StrName; ToolTipService.SetToolTip(txtEMPLOYEENAME, StrName); } }
void client_GetEmployeeDetailByIDCompleted(object sender, GetEmployeeDetailByIDCompletedEventArgs e) { if (e.Result != null) { employeepost = e.Result; GetAllPost(e.Result); } }