Ejemplo n.º 1
0
    protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
    {
        //PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        //if (objUserCV.SaveDriverLicence(this.smUserID, int.Parse(ddlDriverLicenseTypes.SelectedValue), int.Parse(ddlDriverLicenseYear.SelectedValue)))
        //{
        //    if (ImgBtnContinue.Visible == true)
        //    {
        //        this.smCVFocus = objUserCV.CVFocus(this.smUserID);
        //        this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.ForeignLanguages).ToString());
        //    }
        //    else { Response.Write("<script>alert('Özgeçmiþinizde yaptýðýnýz güncellemeler kaydedilmiþtir');</script>"); }
        //}
        //else
        //{
        //    Response.Write("<script>alert('! Bilgileriniz kaydedilemedi.')</script>");
        //}


        PIKCV.BUS.UserCVs objUserCV         = new PIKCV.BUS.UserCVs();
        ArrayList         arrDriverLicenses = new ArrayList();

        for (int i = 0; i < chDriverLicenses.Items.Count; i++)
        {
            if (chDriverLicenses.Items[i].Selected)
            {
                arrDriverLicenses.Add(Convert.ToInt32(chDriverLicenses.Items[i].Value));
            }
        }

        if (objUserCV.SaveUserDriverLicenses(this.smUserID, arrDriverLicenses))
        {
            if (ImgBtnContinue.Visible == true)
            {
                this.smCVFocus = objUserCV.CVFocus(this.smUserID);
                this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.ForeignLanguages).ToString());
            }
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.alert, PIKCV.COM.EnumDB.ErrorTypes.UpdateCV);
        }
        else
        {
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.alert, PIKCV.COM.EnumDB.ErrorTypes.NoUpdateCV);
        }
    }