protected void Page_Load(object sender, EventArgs e)
    {
        GetCookie();
        if (!IsPostBack)
        {
            for (int year = DateTime.Now.Year; year > (DateTime.Now.Year - 58); year--)
            {
                ListItem item = new ListItem(year.ToString(), year.ToString());
                DropDownYears.Items.Add(item);
            }

            Educationid          = Convert.ToInt64(Request.QueryString["EducationId"]);
            ProviderEducationdto = new ProviderEducationDTO();
            ProviderEducationBl  = new ProviderEducationBL();

            ProviderEducationdto = ProviderEducationBl.GetProviderEducationByEducationId(ProviderId, Educationid);

            TxtDegreeTitle.Text     = ProviderEducationdto.DegreeTitle;
            TxtInstitutionName.Text = ProviderEducationdto.InstitutionName;
            if (ProviderEducationdto.YearCompleted != "")
            {
                DropDownYears.Items.FindByValue(ProviderEducationdto.YearCompleted).Selected = true;
            }
            else
            {
                DropDownYears.Items.FindByValue("0").Selected = true;
            }
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ProviderId = Convert.ToInt64(Request.QueryString["Providerid"]);

        providerbl = new ProviderBL();
        if (providerbl.GetProviderImage(ProviderId) != null)
        {
            Image1.ImageUrl = "~/ShowImage.ashx?ProviderId=" + ProviderId.ToString();
        }
        else
        {
            Image1.ImageUrl = "~/Images/nopicture.gif";
        }

        if (!IsPostBack)
        {
            ProvideremploymentBL    = new ProviderEmploymentBL();
            ProviderEducationBl     = new ProviderEducationBL();
            ProviderCertificationBl = new ProviderCertificationBL();
            providerbl      = new ProviderBL();
            ProviderSkillbl = new ProviderSkillBL();

            GridViewJobExperience.DataSource = ProvideremploymentBL.GetEmploymentByProviderId(ProviderId);
            GridViewJobExperience.DataBind();

            GridViewEducation.DataSource = ProviderEducationBl.GetProviderEducationByProviderId(ProviderId);
            GridViewEducation.DataBind();

            GridViewCertification.DataSource = ProviderCertificationBl.GetProviderCertification(ProviderId);
            GridViewCertification.DataBind();

            provider           = providerbl.GetProviderIntroductionById(ProviderId);
            LblFirstName.Text  = provider.FirstName.ToString();
            LblLastName.Text   = provider.LastName.ToString();
            LblMiddleName.Text = provider.MiddleName.ToString();
            LblHave.Text       = provider.Haves;
            Lblwants.Text      = provider.Wants;
            LblOverView.Text   = provider.OverView;

            SetMetaTags(provider);
            //description.Content = provider.OverView.Substring(0, 100);

            provider         = providerbl.GetProviderContactById(ProviderId);
            LblAddress1.Text = "Hidden"; //provider.Address1;
            LblPhone.Text    = "Hidden"; //provider.Phone;
            LblEmail.Text    = "Hidden"; // provider.Email;

            keyword.Content = ProviderSkillbl.FunGetProviderSkills(ProviderId).ToString();

            DataListSkills.DataSource = ProviderSkillbl.GetProviderSkills(ProviderId);
            DataListSkills.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GetCookie();

        if (!IsPostBack)
        {
            EducationId         = Convert.ToInt64(Request.QueryString["EducationId"]);
            ProviderEducationbl = new ProviderEducationBL();
            ProviderEducationbl.DeleteProviderEducation(ProviderId, EducationId);
            Response.Redirect("~/Provider/ProfilePage.aspx");
        }
    }
Ejemplo n.º 4
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        ProviderEducationdto = new ProviderEducationDTO();
        ProviderEducationBl  = new ProviderEducationBL();

        ProviderEducationdto.ProviderId      = ProviderId;
        ProviderEducationdto.InstitutionName = TxtInstitutionName.Text.ToString();
        ProviderEducationdto.DegreeTitle     = TxtDegreeTitle.Text.ToString();
        if (Convert.ToInt32(DropDownYears.SelectedItem.Value) != 0)
        {
            ProviderEducationdto.YearCompleted = DropDownYears.SelectedItem.Value;
        }
        ProviderEducationBl.AddProviderEducation(ProviderEducationdto);

        Response.Redirect("~/Provider/ProfilePage.aspx");
    }
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        Educationid          = Convert.ToInt64(Request.QueryString["EducationId"]);
        ProviderEducationdto = new ProviderEducationDTO();
        ProviderEducationBl  = new ProviderEducationBL();

        ProviderEducationdto.ProviderId      = ProviderId;
        ProviderEducationdto.EducationId     = Educationid;
        ProviderEducationdto.InstitutionName = TxtInstitutionName.Text.ToString();
        ProviderEducationdto.DegreeTitle     = TxtDegreeTitle.Text.ToString();
        if (DropDownYears.SelectedItem.Value != 0.ToString())
        {
            ProviderEducationdto.YearCompleted = DropDownYears.SelectedItem.Value;
        }
        ProviderEducationBl.UpdateProviderEducation(ProviderEducationdto);

        Response.Redirect("~/Provider/ProfilePage.aspx");
    }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GetCookie();

        if (!IsPostBack)
        {
            ProvideremploymentBL    = new ProviderEmploymentBL();
            ProviderEducationBl     = new ProviderEducationBL();
            ProviderCertificationBl = new ProviderCertificationBL();
            providerbl      = new ProviderBL();
            ProviderSkillbl = new ProviderSkillBL();
        }

        Image1.ImageUrl = "~/ShowImage.ashx?ProviderId=" + ProviderId.ToString();

        GridViewJobExperience.DataSource = ProvideremploymentBL.GetEmploymentByProviderId(ProviderId);
        GridViewJobExperience.DataBind();

        GridViewEducation.DataSource = ProviderEducationBl.GetProviderEducationByProviderId(ProviderId);
        GridViewEducation.DataBind();

        GridViewCertification.DataSource = ProviderCertificationBl.GetProviderCertification(ProviderId);
        GridViewCertification.DataBind();

        provider           = providerbl.GetProviderIntroductionById(ProviderId);
        LblFirstName.Text  = provider.FirstName.ToString();
        LblLastName.Text   = provider.LastName.ToString();
        LblMiddleName.Text = provider.MiddleName.ToString();
        LblHave.Text       = provider.Haves;
        Lblwants.Text      = provider.Wants;
        LblOverView.Text   = provider.OverView;

        provider         = providerbl.GetProviderContactById(ProviderId);
        LblAddress1.Text = provider.Address1;
        LblPhone.Text    = provider.Phone;
        LblEmail.Text    = provider.Email;


        DataListSkills.DataSource = ProviderSkillbl.GetProviderSkills(ProviderId);
        DataListSkills.DataBind();
    }