Beispiel #1
0
        public void PopulteControl(HRM_Emp emp)
        {
            Session["EmpKey"] = emp.EmpKey;
            Label1.Visible    = true;
            Label1.Text       = _empManager.GetEmpInfoForShowingLevel(emp.EmpCode)[0].Level;
            EmployeeGeneralInfo empGeneralInfo = ctrlEmployeeGeneralInfo as EmployeeGeneralInfo;

            empGeneralInfo.PopulateControl(emp);
            PopulateOfficialInfo(emp);

            EmployeeAddressInformation empAddrInfo = ctrlEmployeeAddressInfo as EmployeeAddressInformation;

            empAddrInfo.PopulateControl();

            EmployeeEducationInformation empEdu = ctrlEmployeeEducationInfo as EmployeeEducationInformation;

            empEdu.PopulateControl();

            EmpHistory empHist = ctrlEmpHistory as EmpHistory;

            empHist.PopulateControl();

            EmpAttachmentInfo empFile = ctrlEmpAttachmentInfo as EmpAttachmentInfo;

            empFile.PopulateControl();

            PopulateEmpHKInfo(emp);

            ucSalaryInfo empSalary = ctrlSalaryInfo as ucSalaryInfo;

            empSalary.PopulateControl(emp, CurrentUserSession.UserCode);

            ucLanguage empLanguage = ctrlLanguage as ucLanguage;

            empLanguage.PopulateControl(emp.EmpKey);

            JobResponsibilityList = _empManager.GetAllJobResponsibility(emp.EmpKey);

            EmpFamDetList = _empManager.GetAllHRM_EmpFamDetByFamKey(emp.EmpKey);

            MedicalAllowanceSetList = _empManager.GetAllMedicalReinSetup(ddlYear_nc.SelectedValue, emp.EmpKey.ToString());
            if (MedicalAllowanceSetList.Count != 0)
            {
                PopulateMedicalInfo(MedicalAllowanceSetList[0]);
            }
            else
            {
                txtSelfLimit.Text = "Unlimited";
            }
        }