private CustomList <HRM_Emp> getEmpByCode(string empCode) { HRM_Emp searchEmp = HRM_Emp.GetEmployeeServiceInformation(empCode); CustomList <HRM_Emp> _list = new CustomList <HRM_Emp>(); _list.Add(searchEmp); return(_list); }
private void LoadEmployeeInfo(string strEmployeeCode) { try { HRM_Emp Emp = new HRM_Emp();; Emp = HRM_Emp.GetEmployeeServiceInformation(strEmployeeCode); //hfEmpKey.Value = Emp.EmpKey.ToString(); //lblName.Text = Emp.EmpName; //lblDesig.Text = Emp.DesigName; //lblDept.Text = Emp.Department; //lblNatureOfEmp.Text = Emp.EmpTypeName; //lblAcademicQualification.Text = Emp.ExamName; //lblLengthofWings.Text = Emp.EmpPresentExpre.ToString(); //lblDOJ.Text = Emp.DOJ.ToString(ST.STATIC.StaticInfo.GridDateFormat); //LblCinfirmation.Text = Emp.PermanentDate.ToString(ST.STATIC.StaticInfo.GridDateFormat); //lblPresentGrade.Text = Emp.Grade; //lblWorkStat.Text = Emp.SepRemark; //lblLengthofWings.Text = Emp.EmpPresentExpre.ToString(); //lblTotalServiceLength.Text = (Emp.ActualExperiance + Emp.EmpPresentExpre).ToString(); //CustomList<HRM_EmpEdu> edus = HRM_EmpEdu.GetAllEmpEduByEmpKey(Emp.EmpKey, 2); //CustomList<HRM_EmpEduDip> dips = HRM_EmpEduDip.GetAllDipEduByEmpKey(Emp.EmpKey.ToString(), "Training"); //edus.Reverse(); //string top2Edus = string.Empty; //string alldips = string.Empty; //foreach (var item in edus) //{ // top2Edus += item.AchievementComm + ","; //} //foreach (var item in dips) //{ // alldips += item.DipName + ","; //} //if (top2Edus.EndsWith(",")) // top2Edus = top2Edus.Substring(0, top2Edus.Length - 1); //if (alldips.EndsWith(",")) // alldips = alldips.Substring(0, alldips.Length - 1); //lblAcademicQualification.Text = top2Edus; //lblProfQual.Text = alldips; } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }