예제 #1
0
    protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        ArrayList arrSelectedValues = new ArrayList();

        if (Request.Form[lbSelectedComputerKnowledgeTypes.UniqueID] != null)
        {
            arrSelectedValues.AddRange(Request.Form[lbSelectedComputerKnowledgeTypes.UniqueID].Split(','));
        }

        if (arrSelectedValues.Count > 0)
        {
            if (objUserCV.SaveUserComputerKnowledge(this.smUserID, arrSelectedValues))
            {
                if (ImgBtnContinue.Visible == true)
                {
                    this.smCVFocus = objUserCV.CVFocus(this.smUserID);
                    this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.CourseAndCertificate).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);
            }
        }
        else
        {
            this.smCVFocus = objUserCV.CVFocus(this.smUserID);
            this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.CourseAndCertificate).ToString());
        }
    }
예제 #2
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);
        }
    }
예제 #3
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataBindHelper.BindDDL(ref ddlSectors, this.cmbSectors, "SectorName", "SectorID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");
            ddlSectors.Items.Add(new ListItem(PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.OtherText), "0"));
            DataBindHelper.BindDDL(ref ddlPositions, this.cmbPositions, "PositionName", "PositionID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
            DataBindHelper.BindDDL(ref ddlLabouringTypes, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
            DataBindHelper.BindDDL(ref ddlCountries, this.cmbCountries, "PlaceName", "PlaceID", "-1", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");
            DataBindHelper.BindDDL(ref ddlCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "-1", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");

            PIKCV.COM.Data.RemoveOtherItems(ref ddlCities, (int)PIKCV.COM.EnumDB.Places.OtherPlaceID);

            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["UserEmploymentID"]))
            {
                this.UserEmploymentID = int.Parse(Request.QueryString["UserEmploymentID"]);
                PIKCV.BUS.UserCVs objUserEmployment = new PIKCV.BUS.UserCVs();
                DataTable         dtUserEmployment  = objUserEmployment.GetUserEmploymentDetail(this.UserEmploymentID);
                if (dtUserEmployment.Rows.Count > 0)
                {
                    FillData(dtUserEmployment);
                }
            }
            ddlCities.Attributes.Add("onchange", "OpenCloseOther(" + ((int)PIKCV.COM.EnumDB.Places.OtherPlaceID).ToString() + ", '" + ddlCities.ClientID + "', 'dvOther')");
            //dvScript.InnerHtml = "<script>OtherDown('" + ddlCities.ClientID + "', " + ((int)PIKCV.COM.EnumDB.Places.OtherPlaceID).ToString() + ")</script>";
        }
    }
예제 #4
0
    bool IBaseControl.LoginControl(string Email, string Password)
    {
        PIKCV.BUS.User objUser = new PIKCV.BUS.User();

        if (objUser.LoginControl(Email, Password))
        {
            this.smUserID           = objUser.UserID;
            this.smIsLogin          = true;
            this.smEmployeeType     = objUser.EmployeeType;
            this.smFirstName        = objUser.FirstName;
            this.smIsEmailConfirmed = objUser.IsEmailConfirmed;
            this.smIsCvActive       = objUser.IsCVActive;
            this.smIsCvConfirmed    = objUser.IsCVConfirmed;
            this.smLastLoginDate    = objUser.LastLoginDate;
            this.smLastName         = objUser.LastName;
            this.smUserEmail        = objUser.Email;
            this.smMemberType       = PIKCV.COM.EnumDB.MemberTypes.Employee;

            PIKCV.BUS.UserCVs objUserCvs = new PIKCV.BUS.UserCVs();
            DataTable         dtUserCV   = objUserCvs.GetUserCV(this.smUserID);
            if (dtUserCV.Rows.Count < 1)
            {
                this.smCVFocus       = PIKCV.COM.EnumDB.CVFocusCode.PersonalInfo;
                this.smPhotoFileName = String.Empty;
            }
            else
            {
                this.smCVFocus       = (PIKCV.COM.EnumDB.CVFocusCode)(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]));
                this.smPhotoFileName = dtUserCV.Rows[0]["PhotoFileName"].ToString().Trim();
            }
            return(true);
        }
        return(false);
    }
예제 #5
0
 protected void rptUniversity0List_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
         objUserCV.RemoveUserEducation(Convert.ToInt32(e.CommandArgument));
     }
 }
예제 #6
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserEducation = new PIKCV.BUS.UserCVs();
        DataTable         dtUserEducation  = objUserEducation.GetUserEducations(this.smUserID, PIKCV.COM.EnumDB.EducationTypes.University0, PIKCV.COM.EnumDB.LanguageID.Turkish, false);

        pnlNoRecord.Visible           = (dtUserEducation.Rows.Count < 1);
        pnlUniversity0List.Visible    = !pnlNoRecord.Visible;
        rptUniversity0List.DataSource = dtUserEducation;
        rptUniversity0List.DataBind();
    }
예제 #7
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        if (dtUserCV.Rows.Count > 0)
        {
            FillData(dtUserCV);
        }
    }
예제 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hlAddSchool.NavigateUrl = hlAddSchool.NavigateUrl.Replace("||ST||", ((int)this.EducationType).ToString());
         UEducationNav1.SelectEducationTypes(this.EducationType);
         PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
         DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);
         ImgBtnContinue.Visible = !(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
     }
 }
예제 #9
0
 protected void ddlTotalWorkExperience_SelectedIndexChanged(object sender, EventArgs e)
 {
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveTotalWorkExperience(this.smUserID, int.Parse(ddlTotalWorkExperience.SelectedValue)))
     {
         this.smCVFocus = objUserCV.CVFocus(this.smUserID);
     }
     else
     {
         Response.Write("<script>alert('!Toplam Ýþ Deneyiminiz Kaydedilemedi.')</script>");
     }
 }
예제 #10
0
 protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
 {
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveEducationMiddleSchool(this.smUserID, txtMiddleSchoolName.Text, int.Parse(ddlEducationStates.SelectedValue), UDate1.Date))
     {
         Response.Write("<script>alert('Bilgileriniz Kaydedildi');window.close();window.opener.location.reload();</script>");
     }
     else
     {
         Response.Write("<script>alert('! Bilgileriniz kaydedilemedi.')</script>");
     }
 }
예제 #11
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     if (CARETTA.COM.Util.IsNumeric(Request.QueryString["UserReferenceID"]))
     {
         this.UserReferenceID = int.Parse(Request.QueryString["UserReferenceID"]);
         PIKCV.BUS.UserCVs objUserReferenceDetail = new PIKCV.BUS.UserCVs();
         DataTable         dtUserReferenceDetail  = objUserReferenceDetail.GetReferenceDetail(this.UserReferenceID);
         if (dtUserReferenceDetail.Rows.Count > 0)
         {
             FillData(dtUserReferenceDetail);
         }
     }
 }
예제 #12
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserComputerKnowledges = new PIKCV.BUS.UserCVs();
        DataTable         dtUserComputerKnowledges  = objUserComputerKnowledges.GetUserComputerKnowledges(this.smUserID, (int)this.smLanguageID);

        DataBindHelper.BindListbox(ref lbSelectedComputerKnowledgeTypes, dtUserComputerKnowledges, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID");

        DataTable dtComputerKnowledgeTypes   = this.cmbComputerKnowledgeTypes;
        DataTable dtComputerKnowledgeTypeNew = new DataTable();

        if (dtUserComputerKnowledges.Rows.Count > 0)
        {
            dtComputerKnowledgeTypeNew.Columns.Add("ComputerKnowledgeTypeID");
            dtComputerKnowledgeTypeNew.Columns.Add("ComputerKnowledgeTypeName");

            bool add = true;
            foreach (DataRow drCache in dtComputerKnowledgeTypes.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserComputerKnowledges.Rows)
                {
                    if (dr["ComputerKnowledgeTypeID"].ToString() == drCache["ComputerKnowledgeTypeID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtComputerKnowledgeTypeNew.NewRow();
                    drNew["ComputerKnowledgeTypeID"]   = drCache["ComputerKnowledgeTypeID"].ToString();
                    drNew["ComputerKnowledgeTypeName"] = drCache["ComputerKnowledgeTypeName"].ToString();
                    dtComputerKnowledgeTypeNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtComputerKnowledgeTypeNew = dtComputerKnowledgeTypes.Copy();
        }

        DataBindHelper.BindListbox(ref lbComputerKnowledgeTypes, dtComputerKnowledgeTypeNew, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID", "");
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        ImgBtnSave.Visible     = (Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
        ImgBtnContinue.Visible = !(ImgBtnSave.Visible);

        dvScript.InnerHtml = "<script>OtherDown('" + lbComputerKnowledgeTypes.ClientID + "', " + ((int)PIKCV.COM.EnumDB.OtherComputerKnowledgeID.Other).ToString() + ")</script>";
    }
예제 #13
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserProhibitedCompanies = new PIKCV.BUS.UserCVs();
        DataTable         dtUserProhibitedCompanies  = objUserProhibitedCompanies.GetUserProhibitedCompanies(this.smUserID);

        DataBindHelper.BindListbox(ref lbSelectedCompanies, dtUserProhibitedCompanies, "CompanyName", "CompanyID");


        DataTable dtAllCompanies = this.cmbCompanies;
        DataTable dtCompaniesNew = new DataTable();

        if (dtAllCompanies.Rows.Count > 0)
        {
            dtCompaniesNew.Columns.Add("CompanyID");
            dtCompaniesNew.Columns.Add("CompanyName");

            bool add = true;
            foreach (DataRow drCache in dtAllCompanies.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserProhibitedCompanies.Rows)
                {
                    if (dr["CompanyID"].ToString() == drCache["CompanyID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtCompaniesNew.NewRow();
                    drNew["CompanyID"]   = drCache["CompanyID"].ToString();
                    drNew["CompanyName"] = drCache["CompanyName"].ToString();
                    dtCompaniesNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtCompaniesNew = dtAllCompanies.Copy();
        }

        DataBindHelper.BindListbox(ref lbCompanies, dtCompaniesNew, "CompanyName", "CompanyID", "");

        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        ImgBtnSave.Visible     = (Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
        ImgBtnContinue.Visible = !(ImgBtnSave.Visible);
    }
예제 #14
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserReferences = new PIKCV.BUS.UserCVs();
        DataTable         dtUserReferences  = objUserReferences.GetUserReferences(this.smUserID);

        pnlNoRecord.Visible      = (dtUserReferences.Rows.Count < 1);
        pnlReferences.Visible    = !pnlNoRecord.Visible;
        rptReferences.DataSource = dtUserReferences;
        rptReferences.DataBind();
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        ImgBtnContinue.Visible = !(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
    }
예제 #15
0
 protected void ImgBtnSave_Click(object sender, ImageClickEventArgs e)
 {
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveUserLanguage(this.UserLanguageID, this.smUserID, int.Parse(ddlForeignLanguages.SelectedValue), int.Parse(ddlRead.SelectedValue),
                                    int.Parse(ddlWrite.SelectedValue), int.Parse(ddlSpeak.SelectedValue), txtPlaceLearned.Text, int.Parse(ddlForeignLanguageExams.SelectedValue), txtExamDegree.Text))
     {
         this.smCVFocus = PIKCV.COM.EnumDB.CVFocusCode.ComputerKnowledge;
         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, true, true);
     }
 }
예제 #16
0
    protected void ImgBtnSave_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        if (objUserCV.SaveUserReference(this.UserReferenceID, this.smUserID, txtReferenceName.Text, txtCompany.Text, txtPhone.Text, txtPosition.Text))
        {
            this.smCVFocus = PIKCV.COM.EnumDB.CVFocusCode.References;
            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);
        }
    }
예제 #17
0
 protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
 {
     PIKCV.COM.EnumDB.EducationTypes EducationType = (PIKCV.COM.EnumDB.EducationTypes)(int.Parse(ddlEducationTypes.SelectedValue));
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveEducationType(this.smUserID, EducationType))
     {
         this.smCVFocus = objUserCV.CVFocus(this.smUserID);
         this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.Employment).ToString());
     }
     else
     {
         Response.Write("<script>alert('!Bilgileriniz kaydedilemedi.')</script>");
     }
 }
예제 #18
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserLanguages = new PIKCV.BUS.UserCVs();
        DataTable         dtUserLanguages  = objUserLanguages.GetUserLanguages(this.smUserID, (int)this.smLanguageID);

        pnlNoRecord.Visible            = (dtUserLanguages.Rows.Count < 1);
        pnlForeignLanguages.Visible    = !pnlNoRecord.Visible;
        rptForeignLanguages.DataSource = dtUserLanguages;
        rptForeignLanguages.DataBind();
        UCharacteristicAndSocialLifeNav1.SelectNavigatorLink(PIKCV.COM.EnumDB.CVFocusCode.ForeignLanguages);
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        ImgBtnContinue.Visible = !(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
    }
예제 #19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     hlAddSchool.Visible       = true;
     hlAddMiddleSchool.Visible = true;
     if (!IsPostBack)
     {
         PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
         this.dtUserCV = objUserCV.GetUserCV(this.smUserID);
         if (dtUserCV.Rows.Count > 0)
         {
             FillData(this.dtUserCV);
             ddlEducationTypes.SelectedValue = this.dtUserCV.Rows[0]["EducationTypeCode"].ToString();
         }
     }
 }
예제 #20
0
파일: uClubs.ascx.cs 프로젝트: jiqsaw/pikcv
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
         DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);
         if (dtUserCV.Rows.Count > 0)
         {
             txtClubs.Text          = dtUserCV.Rows[0]["Clubs"].ToString();
             ImgBtnSave.Visible     = (Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
             ImgBtnContinue.Visible = !(ImgBtnSave.Visible);
         }
         UCharacteristicAndSocialLifeNav1.SelectNavigatorLink(PIKCV.COM.EnumDB.CVFocusCode.Clubs);
     }
 }
예제 #21
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        //PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        //DataTable dtUserCV = objUserCV.GetUserCV(this.smUserID);
        //if (dtUserCV.Rows.Count > 0)
        //{
        //    FillData(dtUserCV);
        //}
        PIKCV.BUS.UserCVs objUserDriverLicensees = new PIKCV.BUS.UserCVs();
        DataTable         dtDriverLicenses       = objUserDriverLicensees.GetUserDriverLicenses(this.smUserID, this.smLanguageID);

        if (dtDriverLicenses.Rows.Count > 0)
        {
            FillData(dtDriverLicenses);
        }
    }
예제 #22
0
    protected void ImgBtnSave_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        if (objUserCV.SaveEducation(this.UserEducationID, this.smUserID, (PIKCV.COM.EnumDB.EducationTypes)(int.Parse(ddlEducationLevels.SelectedValue)), int.Parse(ddlUniversityNames.SelectedValue),
                                    int.Parse(ddlEducationStates.SelectedValue), UDateStart.Date, UDateEnd.Date, txtUniversityNames.Text, int.Parse(ddlUniversityDepartments.SelectedValue),
                                    txtUniversityDepartments.Text, int.Parse(ddlCountries.SelectedValue), int.Parse(ddlCities.SelectedValue), txtOtherCity.Text, txtDegree.Text, false))
        {
            this.smCVFocus = PIKCV.COM.EnumDB.CVFocusCode.Employment;
            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);
        }
    }
예제 #23
0
파일: uClubs.ascx.cs 프로젝트: jiqsaw/pikcv
 protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
 {
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveClubs(this.smUserID, txtClubs.Text))
     {
         if (ImgBtnContinue.Visible == true)
         {
             this.smCVFocus = objUserCV.CVFocus(this.smUserID);
             this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.EmploymentChooices).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);
     }
 }
예제 #24
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);
        }
    }
예제 #25
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     if (CARETTA.COM.Util.IsNumeric(Request.QueryString["UserOREducationID"]))
     {
         ddlEducationLevels.SelectedValue = Request.QueryString["EducationType"].ToString();
     }
     if (CARETTA.COM.Util.IsNumeric(Request.QueryString["UserOREducationID"]))
     {
         this.UserEducationID = int.Parse(Request.QueryString["UserOREducationID"]);
         PIKCV.BUS.UserCVs objUserEducation = new PIKCV.BUS.UserCVs();
         DataTable         dtUserEducation  = objUserEducation.GetUserEducationDetail(this.UserEducationID);
         if (dtUserEducation.Rows.Count > 0)
         {
             FillData(dtUserEducation);
         }
     }
 }
예제 #26
0
    protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        ArrayList arrSelectedCities         = new ArrayList();
        ArrayList arrSelectedCountries      = new ArrayList();
        ArrayList arrSelectedLabouringTypes = new ArrayList();

        if (Request.Form[lbSelectedCities.UniqueID] != null)
        {
            arrSelectedCities.AddRange(Request.Form[lbSelectedCities.UniqueID].Split(','));
        }

        if (Request.Form[lbSelectedCountries.UniqueID] != null)
        {
            arrSelectedCountries.AddRange(Request.Form[lbSelectedCountries.UniqueID].Split(','));
        }

        foreach (ListItem li in chLabouringTypes.Items)
        {
            if (li.Selected)
            {
                arrSelectedLabouringTypes.Add(li.Value);
            }
        }

        bool HasTravelDifficulty = rdHasTravelDifficultyYes.Checked;

        if (objUserCV.SavePlacementPreferences(this.smUserID, arrSelectedCities, arrSelectedCountries, HasTravelDifficulty, arrSelectedLabouringTypes, rdIsSmokingYes.Checked))
        {
            if (ImgBtnContinue.Visible == true)
            {
                this.smCVFocus = objUserCV.CVFocus(this.smUserID);
                this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.ProhibitedCompanies).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);
        }
    }
예제 #27
0
    protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        ArrayList arrSelectedSectors   = new ArrayList();
        ArrayList arrSelectedPositions = new ArrayList();

        if (Request.Form[lbSelectedSectors.UniqueID] != null)
        {
            arrSelectedSectors.AddRange(Request.Form[lbSelectedSectors.UniqueID].Split(','));
        }

        if (Request.Form[lbSelectedPositions.UniqueID] != null)
        {
            arrSelectedPositions.AddRange(Request.Form[lbSelectedPositions.UniqueID].Split(','));
        }

        if (this.smEmployeeType == PIKCV.COM.EnumDB.EmployeeTypes.Unknown)
        {
            PIKCV.COM.EnumDB.EmployeeTypes EmployeeType = (PIKCV.COM.EnumDB.EmployeeTypes)(int.Parse(Util.Left(arrSelectedPositions[0].ToString(), 1)));
            for (int i = 0; i < arrSelectedPositions.Count; i++)
            {
                arrSelectedPositions[i] = arrSelectedPositions[i].ToString().Substring(arrSelectedPositions[i].ToString().IndexOf("_||") + 3);
            }
            this.smEmployeeType = EmployeeType;
        }

        if (objUserCV.SaveEmploymentChooices(this.smUserID, arrSelectedSectors, arrSelectedPositions, this.smEmployeeType))
        {
            if (ImgBtnContinue.Visible == true)
            {
                this.smCVFocus = objUserCV.CVFocus(this.smUserID);
                this.Redirect("Employee-Membership-CV&CVFocus=" + ((int)PIKCV.COM.EnumDB.CVFocusCode.PlacementPreferences).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);
        }
    }
예제 #28
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);
        }
    }
예제 #29
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserEmployment = new PIKCV.BUS.UserCVs();
        DataTable         dtUserEmployment  = objUserEmployment.GetUserEmployment(this.smUserID, (int)this.smLanguageID);

        pnlNoRecord.Visible      = (dtUserEmployment.Rows.Count < 1);
        pnlEmployment.Visible    = !pnlNoRecord.Visible;
        rptEmployment.DataSource = dtUserEmployment;
        rptEmployment.DataBind();

        DataBindHelper.LoadNumberDDL(ref ddlTotalWorkExperience, 60, 1, 0);
        ddlTotalWorkExperience.Items.Insert(0, new ListItem(PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1"));

        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        DataTable         dtUserCV  = objUserCV.GetUserCV(this.smUserID);

        ddlTotalWorkExperience.SelectedValue = dtUserCV.Rows[0]["TotalWorkExperience"].ToString();
        ImgBtnContinue.Visible = !(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
    }
예제 #30
0
 protected void ImgBtnContinue_Click(object sender, ImageClickEventArgs e)
 {
     PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
     if (objUserCV.SaveCVFocus(this.smUserID, PIKCV.COM.EnumDB.CVFocusCode.OtherChoices))
     {
         if (this.smPhotoFileName == String.Empty)
         {
             this.Redirect("Employee-Membership-CV-PersonalPhoto");
         }
         else if (PIKCV.BUS.Test.UserTestCtrl(this.smUserID))
         {
             this.Redirect("Employee-Membership-Tests");
         }
         else
         {
             this.Redirect("Employee-Membership-CV");
         }
     }
 }