public bool SetFullResumeInfoUpdate(string resumeTitle, Certificate certificate, JobSalaryLevel salary, LangSkill langSkill, Province location, JobIndustries category, JobPosition expectedPosition, ExperienceLevel jobExperienceLevel, WorkType worktype, string jobAchievement, string careerGoal, string experience, string literacy, string skill, string reference, User user, string contactMail, string resumeId, string attachFile) { ResumeId = resumeId; ResumeName = resumeTitle; Certificate = certificate; JobSalaryLevel = salary; LangSkill = langSkill; Province = location; JobIndustries = category; JobPosition = expectedPosition; ExperienceLevel = jobExperienceLevel; WorkType = worktype; Achievement = jobAchievement; CareerGoal = careerGoal; WorkExperience = experience; Literacy = literacy; Skill = skill; Reference = reference; User = user; ContactEmail = contactMail; Atachment = attachFile; return(SaveResumeInfoUpdate()); }
public bool SetFullInfo(string firtname, string lastname, DateTime birthDay, Sex sex, string phoneNumber, JobIndustries job, Address address, Races races, string maxim, string thumImg) { FirstName = firtname; LastName = lastname; DateBirthDay = birthDay; Sex = sex; PhoneNumber = phoneNumber; JobIndustries = job; Address = address; Races = races; MaximOfLife = maxim; ThumImg = thumImg; return(SaveInfo()); }
protected void btnUserInfoSubmit_OnClick(object sender, EventArgs e) { try { var name = txtName.Text.Split(' '); var lastname = name[0]; var firstname = name[1]; var birthDay = Convert.ToDateTime(txtDateOfBirth.Text); var sex = new Sex(ddlSex.SelectedValue, ddlSex.SelectedItem.Text); var phoneNumber = txtPhoneNumber.Text; var job = new JobIndustries(ddlJob.SelectedValue,ddlJob.SelectedItem.Text); var province = new Province(ddlProvine.SelectedValue,ddlProvine.SelectedItem.Text); var district = new District(ddlDistrict.SelectedValue,ddlDistrict.SelectedItem.Text, province); var address = new Address(province, district); var race = new Races(ddRaces.SelectedValue, ddRaces.SelectedItem.Text); var maximOfLife = txtMaxim.Text; var photoPath = ""; if (this.fuResume.HasFile) { string imgThumb = "E:\\DOCUMENTS\\School\\ASP.NETWorkSpaces\\WebFindingJobsMVCmodel\\Images\\" + this.fuResume.FileName; this.fuResume.SaveAs(imgThumb); photoPath = "/Images/" + this.fuResume.FileName; } User1 = (User)Session["User"]; var returnValue = User1.SetFullInfo(firstname, lastname, birthDay, sex, phoneNumber, job, address, race, maximOfLife,photoPath); SetExistInfo(); if (returnValue) { Session["User"] = User1; SetExistInfo(); JavaScriptAleart("Thực hiện thành công"); } else { JavaScriptAleart("Chỉnh sửa không thành công. Vui lòng load lại trang và thử lại"); } } catch (Exception exception) { Response.Write(exception.ToString()); JavaScriptAleart("Chỉnh sửa không thành công. Vui lòng load lại trang và thử lại"); } }
public int SetFullJobInfo(string jobTitle, Certificate certificate, JobSalaryLevel salary, Province location, JobIndustries category, string jobDatail, string jobDescription, DateTime expiredDate, JobPosition jobPosition, ExperienceLevel experience, WorkType type, Recruitor recruitor, string numsApplicant) { JobTitle = jobTitle; Certificate = certificate; JobSalaryLevel = salary; Province = location; JobIndustries = category; ContentDetail = jobDatail; Description = jobDescription; ExpiredDate = expiredDate; WorkType = type; JobPosition = jobPosition; ExperienceLevel = experience; Recruitor = recruitor; NumsApplicant = numsApplicant; return(SaveJobInfo()); }
public void SetFullInfo() { var dao = new DaoUser(); DataTable infoTable = dao.GetFullUserInforById(Convert.ToInt32(UserId)); FirstName = infoTable.Rows[0]["FirstName"].ToString(); LastName = infoTable.Rows[0]["LastName"].ToString(); DateBirthDay = Convert.ToDateTime(infoTable.Rows[0]["DateOfBirth"]); Sex = new Sex(infoTable.Rows[0]["SexID"].ToString(), infoTable.Rows[0]["SexName"].ToString()); PhoneNumber = infoTable.Rows[0]["PhoneNumber"].ToString(); Races = new Races(infoTable.Rows[0]["RaceID"].ToString(), infoTable.Rows[0]["RaceName"].ToString()); Province = new Province(infoTable.Rows[0]["ProvinceID"].ToString(), infoTable.Rows[0]["ProvinceName"].ToString()); District = new District(infoTable.Rows[0]["DistrictID"].ToString(), infoTable.Rows[0]["DistrictName"].ToString(), Province, Convert.ToInt32(infoTable.Rows[0]["Latitude"]), Convert.ToInt32(infoTable.Rows[0]["Longitude"])); Address = new Address(Province, District); JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(), infoTable.Rows[0]["JobIndustryName"].ToString()); MaximOfLife = infoTable.Rows[0]["MaximOfLife"].ToString(); ThumImg = infoTable.Rows[0]["PhotoPath"].ToString(); }
public bool SetFullJobInfo(string jobTitle, Certificate certificate, JobSalaryLevel salary, Province location, JobIndustries category, string jobDatail, string jobDescription, DateTime deadLine, JobPosition jobPostion, ExperienceLevel jobExperienceLevel, WorkType worktype, Recruitor recruitor, string numsApplicant, string jobid) { JobId = jobid; JobTitle = jobTitle; Certificate = certificate; JobSalaryLevel = salary; Province = location; JobIndustries = category; ContentDetail = jobDatail; Description = jobDescription; ExpiredDate = deadLine; WorkType = worktype; JobPosition = jobPostion; ExperienceLevel = jobExperienceLevel; Recruitor = recruitor; NumsApplicant = numsApplicant; return(SaveJobInfoUpdate()); }
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 void SetFullResumeInfo() { var dao = new DaoResume(); DataTable infoTable = dao.GetFullResumeInfoById(Convert.ToInt32(ResumeId)); Certificate = new Certificate(infoTable.Rows[0]["CertificateID"].ToString(), infoTable.Rows[0]["CertificateName"].ToString()); LangSkill = new LangSkill(infoTable.Rows[0]["SkillID"].ToString(), infoTable.Rows[0]["SkillName"].ToString()); JobSalaryLevel = new JobSalaryLevel(infoTable.Rows[0]["SalaryLevelID"].ToString(), infoTable.Rows[0]["SalaryLevel"].ToString()); Province = new Province(infoTable.Rows[0]["ProvinceID"].ToString(), infoTable.Rows[0]["ProvinceName"].ToString()); JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(), infoTable.Rows[0]["JobIndustryName"].ToString()); JobPosition = new JobPosition(infoTable.Rows[0]["JobPositionID"].ToString(), infoTable.Rows[0]["JobPositionName"].ToString()); User = new User(infoTable.Rows[0]["UserID"].ToString()); ExperienceLevel = new ExperienceLevel(infoTable.Rows[0]["ExperienceLevelID"].ToString(), infoTable.Rows[0]["ExperienceLevelName"].ToString()); WorkType = new WorkType(infoTable.Rows[0]["WorkTypeID"].ToString(), infoTable.Rows[0]["WorkTypeName"].ToString()); Achievement = infoTable.Rows[0]["ACHIEVEMENTS"].ToString(); CareerGoal = infoTable.Rows[0]["CAREER_GOALS"].ToString(); WorkExperience = infoTable.Rows[0]["WORK_EXPERIENCE"].ToString(); Literacy = infoTable.Rows[0]["LITERACY"].ToString(); Skill = infoTable.Rows[0]["SKILLS"].ToString(); Reference = infoTable.Rows[0]["REFERENCE"].ToString(); ContactEmail = infoTable.Rows[0]["ContactEmail"].ToString(); ResumeName = infoTable.Rows[0]["ResumeName"].ToString(); Atachment = infoTable.Rows[0]["ATTACHMENT"].ToString(); }
public void SetFullResumeInfo() { var dao = new DaoResume(); DataTable infoTable = dao.GetFullResumeInfoById(Convert.ToInt32(ResumeId)); Certificate = new Certificate(infoTable.Rows[0]["CertificateID"].ToString(), infoTable.Rows[0]["CertificateName"].ToString()); LangSkill = new LangSkill(infoTable.Rows[0]["SkillID"].ToString(), infoTable.Rows[0]["SkillName"].ToString()); JobSalaryLevel = new JobSalaryLevel(infoTable.Rows[0]["SalaryLevelID"].ToString(), infoTable.Rows[0]["SalaryLevel"].ToString()); Province = new Province(infoTable.Rows[0]["ProvinceID"].ToString(), infoTable.Rows[0]["ProvinceName"].ToString()); JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(), infoTable.Rows[0]["JobIndustryName"].ToString()); JobPosition = new JobPosition(infoTable.Rows[0]["JobPositionID"].ToString(), infoTable.Rows[0]["JobPositionName"].ToString()); User=new User(infoTable.Rows[0]["UserID"].ToString()); ExperienceLevel = new ExperienceLevel(infoTable.Rows[0]["ExperienceLevelID"].ToString(), infoTable.Rows[0]["ExperienceLevelName"].ToString()); WorkType = new WorkType(infoTable.Rows[0]["WorkTypeID"].ToString(), infoTable.Rows[0]["WorkTypeName"].ToString()); Achievement = infoTable.Rows[0]["ACHIEVEMENTS"].ToString(); CareerGoal = infoTable.Rows[0]["CAREER_GOALS"].ToString(); WorkExperience = infoTable.Rows[0]["WORK_EXPERIENCE"].ToString(); Literacy = infoTable.Rows[0]["LITERACY"].ToString(); Skill = infoTable.Rows[0]["SKILLS"].ToString(); Reference = infoTable.Rows[0]["REFERENCE"].ToString(); ContactEmail = infoTable.Rows[0]["ContactEmail"].ToString(); ResumeName = infoTable.Rows[0]["ResumeName"].ToString(); Atachment = infoTable.Rows[0]["ATTACHMENT"].ToString(); }
protected void btnSubmit_Click(object sender, EventArgs e) { try { DataTable data = GetAllMyResumes(Convert.ToInt32(User1.UserId)); if (data.Rows.Count >= 3) { JavaScriptAleart("Bạn đã tạo tối đa 3 hồ sơ. Vui lòng kiểm tra lại"); return; } var resumeTitle = txtResumeName.Text; var user = new User(User1.Email, User1.UserId); var certificate = new Certificate(ddlDegrees.SelectedValue, ddlDegrees.SelectedItem.Text); var salary = new JobSalaryLevel(ddlExpectedSalary.SelectedValue, ddlExpectedSalary.SelectedItem.Text); var langSkill = new LangSkill(ddlLangSkill.SelectedValue, ddlLangSkill.SelectedItem.Text, txtDescription.Text); var location = new Province(ddlRegions.SelectedValue, ddlRegions.SelectedItem.Text); var category = new JobIndustries(ddlCategories.SelectedValue, ddlCategories.SelectedItem.Text); //var curentPostion = new JobPosition(ddlCurrentPosition.SelectedValue, ddlCurrentPosition.SelectedItem.Text); var expectedPosition = new JobPosition(ddlExpectedPosition.SelectedValue, ddlExpectedPosition.SelectedItem.Text); var jobExperienceLevel = new ExperienceLevel(ddlExp.SelectedValue, ddlExp.SelectedItem.Text); var worktype = new WorkType(ddlworktype.SelectedValue, ddlworktype.SelectedItem.Text); var jobAchievement = ta1.Value; var careerGoal = ta2.Value; var experience = ta3.Value; var literacy = ta6.Value; var skill = ta5.Value; var reference = ta4.Value; var contactmail = txtContactMail.Text; var attachmentPath = ""; if (this.fuResume.HasFile) { string imgThumb = "E:\\DOCUMENTS\\School\\ASP.NETWorkSpaces\\WebFindingJobsMVCmodel\\FileSticky\\" + this.fuResume.FileName; this.fuResume.SaveAs(imgThumb); attachmentPath = "/FileSticky/" + this.fuResume.FileName; } Resume1 = new Resume(); var returnValue = false; var query = Request.QueryString["resumeId"]; if (query != null) { returnValue = Resume1.SetFullResumeInfoUpdate(resumeTitle, certificate, salary, langSkill, location, category, expectedPosition, jobExperienceLevel, worktype, jobAchievement, careerGoal, experience, literacy, skill, reference, user, contactmail, query, attachmentPath); } else { returnValue = Resume1.SetFullResumeInfo(resumeTitle, certificate, salary, langSkill, location, category, expectedPosition, jobExperienceLevel, worktype, jobAchievement, careerGoal, experience, literacy, skill, reference, user, contactmail, attachmentPath); } if (returnValue) { JavaScriptAleart("Thực hiện thành công"); } else { JavaScriptAleart("Thực hiện không thành công. Vui lòng load lại trang và thử lại"); } } catch (Exception exception) { JavaScriptAleart(exception.Message); } }
protected void btnSubmitRecuitmentInfo_OnClick(object sender, EventArgs e) { try { Recruitor1 = (Recruitor)Session["Recruitor"]; var jobTitle = txtJobTitle.Text; var numsApplicant = txtNumsApplicant.Text; var recruitor = new Recruitor(Recruitor1.Email, Recruitor1.RecruitorId); var certificate = new Certificate(ddlDegrees.SelectedValue, ddlDegrees.SelectedItem.Text); var salary = new JobSalaryLevel(ddlSalary.SelectedValue, ddlSalary.SelectedItem.Text); var location = new Province(ddlRegions.SelectedValue, ddlRegions.SelectedItem.Text); var category = new JobIndustries(ddlCategories.SelectedValue, ddlCategories.SelectedItem.Text); var jobPostion = new JobPosition(ddlJobPosition.SelectedValue, ddlJobPosition.SelectedItem.Text); var jobExperienceLevel = new ExperienceLevel(ddlJobExperienceLevel.SelectedValue, ddlJobExperienceLevel.SelectedItem.Text); var worktype = new WorkType(ddlWorkType.SelectedValue, ddlWorkType.SelectedItem.Text); var jobDatail = txtJobDetail.Value; var jobDescription = txtDescription.Value; var deadLine = Convert.ToDateTime(tbDeadline.Value); Jobs1 = new Jobs(); var jobid = Request.QueryString["jobid"]; if (jobid != null) { var returnValue = Jobs1.SetFullJobInfo(jobTitle, certificate, salary, location, category, jobDatail, jobDescription, deadLine, jobPostion, jobExperienceLevel, worktype, recruitor, numsApplicant, jobid); if (returnValue) { Session["Job"] = Jobs1; var emailContent = BuidRecommendResume(jobid); SendEmailMember(emailContent, Recruitor1.EmailToSendResume); JavaScriptAleart("Thực hiện thành công"); } else { JavaScriptAleart("Thực hiện không thành công. Vui lòng load lại trang và thử lại"); } } else { var returnValue1 = Jobs1.SetFullJobInfo(jobTitle, certificate, salary, location, category, jobDatail, jobDescription, deadLine, jobPostion, jobExperienceLevel, worktype, recruitor, numsApplicant); if (returnValue1>0) { Session["Job"] = Jobs1; var emailContent = BuidRecommendResume(returnValue1.ToString()); JavaScriptAleart(emailContent); SendEmailMember(emailContent, Recruitor1.EmailToSendResume); JavaScriptAleart("Thực hiện thành công"); } else { JavaScriptAleart("Thực hiện không thành công. Vui lòng load lại trang và thử lại"); } } } catch (Exception exception) { JavaScriptAleart(exception.Message); } }
public bool SetFullInfo(string firtname, string lastname, DateTime birthDay, Sex sex, string phoneNumber, JobIndustries job, Address address, Races races, string maxim,string thumImg) { FirstName=firtname; LastName = lastname; DateBirthDay = birthDay; Sex = sex; PhoneNumber = phoneNumber; JobIndustries = job; Address = address; Races = races; MaximOfLife = maxim; ThumImg = thumImg; return SaveInfo(); }
public void SetFullInfo() { var dao = new DaoUser(); DataTable infoTable = dao.GetFullUserInforById(Convert.ToInt32(UserId)); FirstName = infoTable.Rows[0]["FirstName"].ToString(); LastName = infoTable.Rows[0]["LastName"].ToString(); DateBirthDay = Convert.ToDateTime(infoTable.Rows[0]["DateOfBirth"]); Sex = new Sex(infoTable.Rows[0]["SexID"].ToString(), infoTable.Rows[0]["SexName"].ToString()); PhoneNumber = infoTable.Rows[0]["PhoneNumber"].ToString(); Races = new Races(infoTable.Rows[0]["RaceID"].ToString(), infoTable.Rows[0]["RaceName"].ToString()); Province = new Province( infoTable.Rows[0]["ProvinceID"].ToString(),infoTable.Rows[0]["ProvinceName"].ToString()); District = new District(infoTable.Rows[0]["DistrictID"].ToString(), infoTable.Rows[0]["DistrictName"].ToString(), Province, Convert.ToInt32(infoTable.Rows[0]["Latitude"]), Convert.ToInt32(infoTable.Rows[0]["Longitude"])); Address = new Address(Province, District); JobIndustries = new JobIndustries(infoTable.Rows[0]["JobIndustryID"].ToString(),infoTable.Rows[0]["JobIndustryName"].ToString()); MaximOfLife = infoTable.Rows[0]["MaximOfLife"].ToString(); ThumImg = infoTable.Rows[0]["PhotoPath"].ToString(); }
public bool SetFullJobInfo(string jobTitle, Certificate certificate, JobSalaryLevel salary, Province location, JobIndustries category, string jobDatail, string jobDescription, DateTime deadLine, JobPosition jobPostion, ExperienceLevel jobExperienceLevel, WorkType worktype, Recruitor recruitor, string numsApplicant, string jobid) { JobId = jobid; JobTitle = jobTitle; Certificate = certificate; JobSalaryLevel = salary; Province = location; JobIndustries = category; ContentDetail = jobDatail; Description = jobDescription; ExpiredDate = deadLine; WorkType = worktype; JobPosition = jobPostion; ExperienceLevel = jobExperienceLevel; Recruitor = recruitor; NumsApplicant = numsApplicant; return SaveJobInfoUpdate(); }
public int SetFullJobInfo(string jobTitle, Certificate certificate, JobSalaryLevel salary, Province location, JobIndustries category, string jobDatail, string jobDescription, DateTime expiredDate, JobPosition jobPosition, ExperienceLevel experience, WorkType type, Recruitor recruitor, string numsApplicant) { JobTitle = jobTitle; Certificate = certificate; JobSalaryLevel = salary; Province = location; JobIndustries = category; ContentDetail = jobDatail; Description = jobDescription; ExpiredDate = expiredDate; WorkType = type; JobPosition = jobPosition; ExperienceLevel = experience; Recruitor = recruitor; NumsApplicant = numsApplicant; return SaveJobInfo(); }
public bool SetFullResumeInfoUpdate(string resumeTitle, Certificate certificate, JobSalaryLevel salary, LangSkill langSkill, Province location, JobIndustries category, JobPosition expectedPosition, ExperienceLevel jobExperienceLevel, WorkType worktype, string jobAchievement, string careerGoal, string experience, string literacy, string skill, string reference, User user, string contactMail, string resumeId, string attachFile) { ResumeId = resumeId; ResumeName = resumeTitle; Certificate = certificate; JobSalaryLevel = salary; LangSkill = langSkill; Province = location; JobIndustries = category; JobPosition = expectedPosition; ExperienceLevel = jobExperienceLevel; WorkType = worktype; Achievement = jobAchievement; CareerGoal = careerGoal; WorkExperience = experience; Literacy = literacy; Skill = skill; Reference = reference; User = user; ContactEmail = contactMail; Atachment = attachFile; return SaveResumeInfoUpdate(); }