示例#1
0
    protected void ImgBtnSave_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        if (objUserCV.SaveUserEmployment(this.UserEmploymentID, this.smUserID, txtCompanyName.Text, txtCompanyPhone.Text, rdCanReferenceYES.Checked,
                                         int.Parse(ddlCities.SelectedValue), txtOtherCityName.Text, int.Parse(ddlCountries.SelectedValue), rdIsWorkingYES.Checked, UDateStart.Date, UDateEnd.Date,
                                         txtJobDefinition.Text, int.Parse(ddlLabouringTypes.SelectedValue), int.Parse(ddlPositions.SelectedValue),
                                         txtReasonOfResignation.Text, int.Parse(ddlSectors.SelectedValue)))
        {
            this.smCVFocus = PIKCV.COM.EnumDB.CVFocusCode.DriverLicense;
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.alert, PIKCV.COM.EnumDB.ErrorTypes.UpdateCV, true, true);
        }
        else
        {
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.alert, PIKCV.COM.EnumDB.ErrorTypes.NoUpdateCV);
        }
    }