Пример #1
0
    protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
    {
        int MilitaryYear = 0;

        if (ddlMilitaryStates.SelectedValue == ((int)PIKCV.COM.EnumDB.MilitaryStates.Postponement).ToString())
        {
            MilitaryYear = int.Parse(ddlMilitaryYear.SelectedValue);
        }
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        if (objUserCV.SavePersonalInfo(this.smUserID, int.Parse(ddlNation.SelectedValue), UDate1.Date, int.Parse(ddlBirthPlace.SelectedValue), txtOtherBirthPlace.Text,
                                       (PIKCV.COM.EnumDB.SexCode) int.Parse(rdSexCode.SelectedValue), int.Parse(ddlMaritalStates.SelectedValue), int.Parse(ddlMilitaryStates.SelectedValue),
                                       MilitaryYear, chIsDisabled.Checked, chIsOldConvicted.Checked, chIsMartyrRelative.Checked, chIsTerrorWronged.Checked, txtChronicIllness.Text))
        {
            if (ImgBtnContinue.Visible == true)
            {
                this.smCVFocus = objUserCV.CVFocus(this.smUserID);
                this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.ContactInfo).ToString());
            }
            else
            {
                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);
        }
    }