예제 #1
0
        public void SetFullJobInfo()
        {
            var dao = new DaoJobs();
            DataTable infoTable = dao.GetFullJobInforById(Convert.ToInt32(JobId));

            ContentDetail = infoTable.Rows[0]["ContentDetail"].ToString();
            Description = infoTable.Rows[0]["Description"].ToString();
            JobTitle = infoTable.Rows[0]["FullTitle"].ToString();
            NumsApplicant = infoTable.Rows[0]["NumsApplicant"].ToString();
            ExpiredDate = Convert.ToDateTime(infoTable.Rows[0]["ExpiredDate"]);
            JobSalaryLevel = new JobSalaryLevel(infoTable.Rows[0]["SalaryLevelID"].ToString(), infoTable.Rows[0]["SalaryLevel"].ToString());
            JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(), infoTable.Rows[0]["JobIndustryName"].ToString());
            Province = new Province(infoTable.Rows[0]["ProvinceID"].ToString(), infoTable.Rows[0]["ProvinceName"].ToString());
            JobPosition = new JobPosition(infoTable.Rows[0]["JobPositionID"].ToString(), infoTable.Rows[0]["JobPositionName"].ToString());
            JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(), infoTable.Rows[0]["JobIndustryName"].ToString());
            WorkType = new WorkType(infoTable.Rows[0]["WorkTypeID"].ToString(), infoTable.Rows[0]["WorkTypeName"].ToString());
            Certificate = new Certificate(infoTable.Rows[0]["CertificateID"].ToString(), infoTable.Rows[0]["CertificateName"].ToString());
            ExperienceLevel = new ExperienceLevel(infoTable.Rows[0]["ExperienceLevelID"].ToString(), infoTable.Rows[0]["ExperienceLevelName"].ToString());
            RewriteUrl = infoTable.Rows[0]["RewriteUrl"].ToString();
            var companySize = new CompanySize(infoTable.Rows[0]["CompanySizeID"].ToString(), infoTable.Rows[0]["CompanySize"].ToString());
            Recruitor = new Recruitor(infoTable.Rows[0]["CompanyFullName"].ToString(), infoTable.Rows[0]["RecruitorName"].ToString(), companySize, infoTable.Rows[0]["Address"].ToString());
        }
 public DataTable GetFullJobInforById(int jobid)
 {
     var dao = new DaoJobs();
     return dao.GetFullJobInforById(jobid);
 }