Beispiel #1
0
        private static Employer LoadEmpData(DataTable dt)
        {
            Employer emp = new Employer();

            foreach (DataRow row in dt.Rows)
            {
                string orgId = row["Organization_ID"].ToString() + ".0000";

                emp.EmploymentStatus = row["EMPL_STATUS_CD"].ToString().Replace(".0000", "");
                emp.Occupation       = row["EMPL_TITLE"].ToString();
                emp.EmployerName     = OrganizationDAL.GetOrganizationName(orgId);
                emp.WorkAddress      = AddressDAL.GetAddress_Org(orgId);
                emp.EmployerPhone    = PhoneDAL.GetWorkPhoneOrganization(orgId);
                emp.EmployeeID       = "";
            }
            return(emp);
        }
        private static Employer LoadEmpData(DataTable dt)
        {
            Employer emp = new Employer();

            foreach (DataRow row in dt.Rows)
            {
                string orgId   = row["Organization_ID"].ToString();
                string workpos = row["EMPL_OCCUPATION_TEXT"].ToString();
                if (workpos == "null")
                {
                    workpos = "";
                }
                emp.EmploymentStatus = row["EMPL_STATUS_CD"].ToString();
                emp.Occupation       = workpos;
                emp.EmployerName     = OrganizationDAL.GetOrganizationName(orgId);
                emp.WorkAddress      = AddressDAL.GetAddress_Org(orgId);
                emp.EmployerPhone    = PhoneDAL.GetWorkPhoneOrganization(orgId);
                emp.EmployeeID       = "";
            }
            return(emp);
        }