protected void btnSubmitInfoCompany_OnClick(object sender, EventArgs e)
    {
        try
        {
            var companyName = txtFullNameCompany.Text;
            var companyShortName = txtShortNameCompany.Text;
            var companySize = new CompanySize(ddlQuyMoCongTy.SelectedValue, ddlQuyMoCongTy.SelectedItem.Text);
            var address = txtAddress.Text;
            Recruitor1 = (Recruitor)Session["Recruitor"];
            var returnValue = Recruitor1.SetFullCompanyInfo(companyName, companyShortName, companySize, address);
            SetExistRecruiterInfo();
            if (returnValue)
            {
                Session["Recruitor"] = Recruitor1;
                SetExistRecruiterInfo();
                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)
        {
            JavaScriptAleart("Chỉnh sửa không thành công. Vui lòng load lại trang và thử lại");

        }
    }
 public Recruitor(string companyName, string recruitorName, CompanySize companySize,
                  string address)
 {
     CompanyFullname = companyName;
     RecruitorName   = recruitorName;
     CompanySize     = companySize;
     Address         = address;
 }
 public Recruitor(string companyName, string recruitorName, CompanySize companySize,
    string address)
 {
     CompanyFullname = companyName;
     RecruitorName = recruitorName;
     CompanySize = companySize;
     Address = address;
 }
 public bool SetFullCompanyInfo(string fullname, string shortname, CompanySize size, string address)
 {
     CompanyFullname  = fullname;
     CompanyShortname = shortname;
     CompanySize      = size;
     Address          = address;
     return(SaveCompanyInfo());
 }
        public void SetFullRecruiterInfo()
        {
            var       dao       = new DaoRecruiter();
            DataTable infoTable = dao.GetFullRecruiterInfoById(Convert.ToInt32(RecruitorId));

            CompanyFullname   = infoTable.Rows[0]["CompanyFullName"].ToString();
            RecruitorName     = infoTable.Rows[0]["RecruitorName"].ToString();
            CompanyShortname  = infoTable.Rows[0]["CompanyShortName"].ToString();
            EmailToSendResume = infoTable.Rows[0]["EmailToSendResume"].ToString();
            Address           = infoTable.Rows[0]["Address"].ToString();
            CompanySize       = new CompanySize(infoTable.Rows[0]["CompanySizeID"].ToString(),
                                                infoTable.Rows[0]["CompanySize"].ToString());
            PhoneToCallForJob = infoTable.Rows[0]["PhoneToCallForJob"].ToString();
        }
Example #6
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 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 SetFullRecruiterInfo()
        {
            var dao = new DaoRecruiter();
            DataTable infoTable = dao.GetFullRecruiterInfoById(Convert.ToInt32(RecruitorId));

            CompanyFullname = infoTable.Rows[0]["CompanyFullName"].ToString();
            RecruitorName = infoTable.Rows[0]["RecruitorName"].ToString();
            CompanyShortname = infoTable.Rows[0]["CompanyShortName"].ToString();
            EmailToSendResume = infoTable.Rows[0]["EmailToSendResume"].ToString();
            Address = infoTable.Rows[0]["Address"].ToString();
            CompanySize = new CompanySize(infoTable.Rows[0]["CompanySizeID"].ToString(),
                infoTable.Rows[0]["CompanySize"].ToString());
            PhoneToCallForJob = infoTable.Rows[0]["PhoneToCallForJob"].ToString();
        }
 public bool SetFullCompanyInfo(string fullname, string shortname, CompanySize size, string address)
 {
     CompanyFullname = fullname;
     CompanyShortname = shortname;
     CompanySize = size;
     Address = address;
     return SaveCompanyInfo();
 }