Beispiel #1
0
 private void FillDetails()
 {
     DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", "");
     DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
     DataBindHelper.BindListbox(ref lbPositions, this.cmbPositions, "PositionName", "PositionID", "");
     DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");
 }
Beispiel #2
0
    private void FillData()
    {
        DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbPositions, this.cmbPositions, "PositionName", "PositionID", "");
        DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");

        imgAddToListCountries.Attributes.Add("onclick", "SwapItem('" + lbCountries.ClientID + "','" + lbSelectedCountries.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxCountry) + "')");
        imgRemoveToListCountries.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountries.ClientID + "','" + lbCountries.ClientID + "', ' ')");

        imgAddToListCities.Attributes.Add("onclick", "SwapItem('" + lbCities.ClientID + "','" + lbSelectedCities.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxCity) + "')");
        imgRemoveToListCities.Attributes.Add("onclick", "SwapItem('" + lbSelectedCities.ClientID + "','" + lbCities.ClientID + "', ' ')");

        imgAddToListPositions.Attributes.Add("onclick", "SwapItem('" + lbPositions.ClientID + "','" + lbSelectedPositions.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxPosition) + "')");
        imgRemoveToListPositions.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositions.ClientID + "','" + lbPositions.ClientID + "', ' ')");

        imgAddToListSector.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxSector) + "')");
        imgRemoveToListSector.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')");

        BtnSearch.Attributes.Add("onmousedown", "SelectAllListBox('" + lbSelectedCities.ClientID + "," + lbSelectedPositions.ClientID + "," + lbSelectedSectors.ClientID + "," + lbSelectedCountries.ClientID + "')");

        imgAddToListCountries.Style.Add("cursor", "pointer");
        imgRemoveToListCountries.Style.Add("cursor", "pointer");
        imgAddToListCities.Style.Add("cursor", "pointer");
        imgRemoveToListCities.Style.Add("cursor", "pointer");
        imgAddToListPositions.Style.Add("cursor", "pointer");
        imgRemoveToListPositions.Style.Add("cursor", "pointer");
        imgAddToListSector.Style.Add("cursor", "pointer");
        imgRemoveToListSector.Style.Add("cursor", "pointer");

        trCustomJobs.Visible = this.smIsLogin;
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.IsLogin();
        if (!Page.IsPostBack)
        {
            chIsFilterSave.Attributes.Add("onclick", "if(this.checked) { dvFilterSave.style.display='block'; } else { dvFilterSave.style.display='none'; }");

            btn_search.Attributes.Add("onmousedown", "SelectAllListBox('" + lbSelectedCountries.ClientID + "," + lbSelectedCities.ClientID + "," + lbSelectedSectors.ClientID + "," + lbSelectedPositions.ClientID + "," + lbSelectedComputerSkill.ClientID + "," + lbSelectedSectorDesired.ClientID + "," + lbSelectedPositionDesired.ClientID + "," + lbSelectedCountriesDesired.ClientID + "," + lbSelectedCitiesDesired.ClientID + "')");
            FillDetails();
            FillApplicationData();
        }
        #region Tab Select

        try
        {
            if ((CARETTA.COM.Util.IsNumeric(Request.Params["Type"]) || Request.Params["Type"] == null) && (CARETTA.COM.Util.IsNumeric(Request.Params["IsApp"])) || Request.Params["IsApp"] == null)
            {
                DataTable dtSourcePositions = new DataTable();
                // Baþvuru arama
                if (Request.Params["IsApp"] == "1")
                {
                    tab3.Attributes.Add("class", "TabActive");
                    pnl1.Visible = true;
                    if (rdEmployeeTypePikpool.Checked)
                    {
                        dtSourcePositions = PIKCV.COM.Data.GetPositions(this.cmbPositions, PIKCV.COM.EnumDB.EmployeeTypes.Pikpool);
                    }
                    if (rdEmployeeTypeGoodPik.Checked)
                    {
                        dtSourcePositions = PIKCV.COM.Data.GetPositions(this.cmbPositions, PIKCV.COM.EnumDB.EmployeeTypes.Goodpik);
                    }
                    if (rdEmployeeTypeAll.Checked)
                    {
                        dtSourcePositions = this.cmbPositions;
                    }
                }
                else
                {
                    pnl1.Visible = false;
                    if (Request.Params["Type"] == ((int)PIKCV.COM.EnumDB.EmployeeTypes.Goodpik).ToString())
                    {
                        tab1.Attributes.Add("class", "TabActive");
                        dtSourcePositions = PIKCV.COM.Data.GetPositions(this.cmbPositions, PIKCV.COM.EnumDB.EmployeeTypes.Goodpik);
                    }
                    else
                    {
                        tab2.Attributes.Add("class", "TabActive");
                        dtSourcePositions = PIKCV.COM.Data.GetPositions(this.cmbPositions, PIKCV.COM.EnumDB.EmployeeTypes.Pikpool);
                    }
                }
                DataBindHelper.BindListbox(ref lbPositions, dtSourcePositions, "PositionName", "PositionID", "");
                DataBindHelper.BindListbox(ref lbPositionDesired, dtSourcePositions, "PositionName", "PositionID", "");
            }
        }
        catch (Exception)
        {
        }

        #endregion
    }
Beispiel #4
0
    private void FillData()
    {
        DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbPositions, this.cmbPositions, "PositionName", "PositionID", "");
        DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");
        DataBindHelper.BindCheckBoxList(ref chListLabouringTypes, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");
        DataBindHelper.BindCheckBoxList(ref chEducationLevels, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID");
        DataBindHelper.BindListbox(ref lbCompanies, this.cmbCompanies, "CompanyName", "CompanyID");

        rdAgeRange.Items[0].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_18_24).ToString();
        rdAgeRange.Items[1].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_25_29).ToString();
        rdAgeRange.Items[2].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_30_34).ToString();
        rdAgeRange.Items[3].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_35_39).ToString();
        rdAgeRange.Items[4].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_40_44).ToString();
        rdAgeRange.Items[5].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_45_55).ToString();
        rdAgeRange.Items[6].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_56over).ToString();
        rdAgeRange.Items[7].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_All).ToString();


        imgAddToListCountries.Attributes.Add("onclick", "SwapItem('" + lbCountries.ClientID + "','" + lbSelectedCountries.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxCountry) + "')");
        imgRemoveToListCountries.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountries.ClientID + "','" + lbCountries.ClientID + "', ' ')");

        imgAddToListCities.Attributes.Add("onclick", "SwapItem('" + lbCities.ClientID + "','" + lbSelectedCities.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxCity) + "')");
        imgRemoveToListCities.Attributes.Add("onclick", "SwapItem('" + lbSelectedCities.ClientID + "','" + lbCities.ClientID + "', ' ')");

        imgAddToListPositions.Attributes.Add("onclick", "SwapItem('" + lbPositions.ClientID + "','" + lbSelectedPositions.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxPosition) + "')");
        imgRemoveToListPositions.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositions.ClientID + "','" + lbPositions.ClientID + "', ' ')");

        imgAddToListSector.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxSector) + "')");
        imgRemoveToListSector.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')");

        imgAddToListCompanies.Attributes.Add("onclick", "SwapItem('" + lbCompanies.ClientID + "','" + lbSelectedCompanies.ClientID + "', ' ', '" + this.Config(PIKCV.COM.EnumUtil.Config.MaxProhibitedCompanies) + "')");
        imgRemoveToListCompanies.Attributes.Add("onclick", "SwapItem('" + lbSelectedCompanies.ClientID + "','" + lbCompanies.ClientID + "', ' ')");

        BtnSearch.Attributes.Add("onmousedown", "SelectAllListBox('" + lbSelectedCities.ClientID + "," + lbSelectedPositions.ClientID + "," + lbSelectedSectors.ClientID + "," + lbSelectedCompanies.ClientID + "," + lbSelectedCountries.ClientID + "')");

        imgAddToListCountries.Style.Add("cursor", "pointer");
        imgRemoveToListCountries.Style.Add("cursor", "pointer");
        imgAddToListCities.Style.Add("cursor", "pointer");
        imgRemoveToListCities.Style.Add("cursor", "pointer");
        imgAddToListPositions.Style.Add("cursor", "pointer");
        imgRemoveToListPositions.Style.Add("cursor", "pointer");
        imgAddToListSector.Style.Add("cursor", "pointer");
        imgRemoveToListSector.Style.Add("cursor", "pointer");
        imgAddToListCompanies.Style.Add("cursor", "pointer");
        imgRemoveToListCompanies.Style.Add("cursor", "pointer");

        trCustomJobs.Visible = this.smIsLogin;

        chIsFilterSave.Attributes.Add("onclick", "if(this.checked) { dvFilterSave.style.display='block'; } else { dvFilterSave.style.display='none'; }");
    }
    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>";
    }
Beispiel #6
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);
    }
Beispiel #7
0
    private void FillListBoxEducationLevel()
    {
        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        DataTable     dtJobEducationLevels = objJob.GetJobEducationLevels(this.smJobID, this.smLanguageID);

        DataBindHelper.BindListbox(ref lbSelectedEducationLevel, dtJobEducationLevels, "EducationLevelName", "EducationLevelID");

        DataTable dtEducationLevels    = this.cmbEducationLevels;
        DataTable dtEducationLevelsNew = new DataTable();

        if (dtJobEducationLevels.Rows.Count > 0)
        {
            dtEducationLevelsNew.Columns.Add("EducationLevelID");
            dtEducationLevelsNew.Columns.Add("EducationLevelName");

            bool add = true;
            foreach (DataRow drCache in dtEducationLevels.Rows)
            {
                add = true;
                foreach (DataRow dr in dtJobEducationLevels.Rows)
                {
                    if (dr["EducationLevelID"].ToString() == drCache["EducationLevelID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtEducationLevelsNew.NewRow();
                    drNew["EducationLevelID"]   = drCache["EducationLevelID"].ToString();
                    drNew["EducationLevelName"] = drCache["EducationLevelName"].ToString();
                    dtEducationLevelsNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtEducationLevelsNew = dtEducationLevels.Copy();
        }

        DataBindHelper.BindListbox(ref lbEducationLevel, dtEducationLevelsNew, "EducationLevelName", "EducationLevelID", "");
    }
Beispiel #8
0
    private void FillListBoxComputerKnowledge()
    {
        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        DataTable     dtJobComputerKnowledge = objJob.GetJobComputerKnowledge(this.smJobID, this.smLanguageID);

        DataBindHelper.BindListbox(ref lbSelectedComputerKnowledge, dtJobComputerKnowledge, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID");

        DataTable dtComputerKnowledge    = this.cmbComputerKnowledgeTypes;
        DataTable dtComputerKnowledgeNew = new DataTable();

        if (dtJobComputerKnowledge.Rows.Count > 0)
        {
            dtComputerKnowledgeNew.Columns.Add("ComputerKnowledgeTypeID");
            dtComputerKnowledgeNew.Columns.Add("ComputerKnowledgeTypeName");

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

        DataBindHelper.BindListbox(ref lbComputerKnowledge, dtComputerKnowledgeNew, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID", "");
    }
Beispiel #9
0
    private void FillListBoxPosition()
    {
        PIKCV.BUS.Job objJob        = new PIKCV.BUS.Job();
        DataTable     dtJobPosition = objJob.GetJobQualityPositionNames(this.smJobID);

        DataBindHelper.BindListbox(ref lbSelectedPositions, dtJobPosition, "PositionName", "PositionID");

        DataTable dtPosition    = this.cmbPositions;
        DataTable dtPositionNew = new DataTable();

        if (dtJobPosition.Rows.Count > 0)
        {
            dtPositionNew.Columns.Add("PositionID");
            dtPositionNew.Columns.Add("PositionName");

            bool add = true;
            foreach (DataRow drCache in dtPosition.Rows)
            {
                add = true;
                foreach (DataRow dr in dtJobPosition.Rows)
                {
                    if (dr["PositionID"].ToString() == drCache["PositionID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtPositionNew.NewRow();
                    drNew["PositionID"]   = drCache["PositionID"].ToString();
                    drNew["PositionName"] = drCache["PositionName"].ToString();
                    dtPositionNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtPositionNew = dtPosition.Copy();
        }

        DataBindHelper.BindListbox(ref lbPositions, dtPositionNew, "PositionName", "PositionID", "");
    }
Beispiel #10
0
    private void FillListBoxSector()
    {
        PIKCV.BUS.Job objJob       = new PIKCV.BUS.Job();
        DataTable     dtJobSectors = objJob.GetJobSectorNames(this.smJobID);

        DataBindHelper.BindListbox(ref lbSelectedSectors, dtJobSectors, "SectorName", "SectorID");

        DataTable dtSectors    = this.cmbSectors;
        DataTable dtSectorsNew = new DataTable();

        if (dtJobSectors.Rows.Count > 0)
        {
            dtSectorsNew.Columns.Add("SectorID");
            dtSectorsNew.Columns.Add("SectorName");

            bool add = true;
            foreach (DataRow drCache in dtSectors.Rows)
            {
                add = true;
                foreach (DataRow dr in dtJobSectors.Rows)
                {
                    if (dr["SectorID"].ToString() == drCache["SectorID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtSectorsNew.NewRow();
                    drNew["SectorID"]   = drCache["SectorID"].ToString();
                    drNew["SectorName"] = drCache["SectorName"].ToString();
                    dtSectorsNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtSectorsNew = dtSectors.Copy();
        }

        DataBindHelper.BindListbox(ref lbSectors, dtSectorsNew, "SectorName", "SectorID", "");
    }
Beispiel #11
0
    private void FillListBoxCity()
    {
        PIKCV.BUS.Job objJob      = new PIKCV.BUS.Job();
        DataTable     dtJobCities = objJob.GetJobPlaceNames(this.smJobID, PIKCV.COM.EnumDB.Places.TurkeyPlaceID);

        DataBindHelper.BindListbox(ref lbSelectedCity, dtJobCities, "PlaceName", "PlaceID");

        DataTable dtCities    = this.cmbTurkeyCities;
        DataTable dtCitiesNew = new DataTable();

        if (dtJobCities.Rows.Count > 0)
        {
            dtCitiesNew.Columns.Add("PlaceID");
            dtCitiesNew.Columns.Add("PlaceName");

            bool add = true;
            foreach (DataRow drCache in dtCities.Rows)
            {
                add = true;
                foreach (DataRow dr in dtJobCities.Rows)
                {
                    if (dr["PlaceID"].ToString() == drCache["PlaceID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtCitiesNew.NewRow();
                    drNew["PlaceID"]   = drCache["PlaceID"].ToString();
                    drNew["PlaceName"] = drCache["PlaceName"].ToString();
                    dtCitiesNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtCitiesNew = dtCities.Copy();
        }

        DataBindHelper.BindListbox(ref lbCity, dtCitiesNew, "PlaceName", "PlaceID", "");
    }
Beispiel #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UImageUpload1.ImageUploaded += new UserControls_Common_uImageUpload.ImageUploadedDelegate(UImageUpload1_ImageUploaded);
     UImageUpload1.RaiseEvents    = true;
     if (!IsPostBack)
     {
         ((ImageButton)UImageUpload1.FindControl("btnSubmit")).Visible = false;
         UImageUpload1.ImageSaveType = PIKCV.COM.Enumerations.ImageSaveType.Company;
         imgCompanyDetailLogo.Attributes.Add("onerror", "this.src='" + this.Config(PIKCV.COM.EnumUtil.Config.CompanyImagePath) + "0.png';");
         DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");
         imgAddToListSector.Style.Add("cursor", "pointer");
         imgRemoveToListSector.Style.Add("cursor", "pointer");
         imgAddToListSector.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ')");
         imgRemoveToListSector.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')");
         imgContinue.Attributes.Add("onmousedown", "return SelectAllListBox('" + lbSelectedSectors.ClientID + "')");
         if (this.smIsLogin == true)
         {
             FillCompanyInfo();
             ltlEditUser.Visible           = true;
             ltlDescriptionEdit.Visible    = true;
             ltlDescription.Visible        = false;
             ltlNewUser.Visible            = false;
             pnlCompanyDetails.Visible     = true;
             pnlCompanyInformation.Visible = false;
         }
         else
         {
             ltlEditUser.Visible           = false;
             ltlNewUser.Visible            = true;
             ltlDescriptionEdit.Visible    = false;
             ltlDescription.Visible        = true;
             pnlCompanyDetails.Visible     = false;
             pnlCompanyInformation.Visible = true;
         }
     }
 }
Beispiel #13
0
    private void FillDetails()
    {
        //DataBindHelper.BindRepeater(ref rptAds, PIKCV.BUS.JobApplicants.GetUserJobApplicants(smUserID, this.smLanguageID, smCompanyID.ToString(), "1", ""));
        DataBindHelper.BindRepeater(ref rptAds, PIKCV.BUS.JobApplicants.GetUserJobApplicants(2, this.smLanguageID, smCompanyID.ToString(), "1", ""));


        chkAgeRange.Items[0].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_All).ToString();
        chkAgeRange.Items[1].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_18_24).ToString();
        chkAgeRange.Items[2].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_25_29).ToString();
        chkAgeRange.Items[3].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_30_34).ToString();
        chkAgeRange.Items[4].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_35_39).ToString();
        chkAgeRange.Items[5].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_40_44).ToString();
        chkAgeRange.Items[6].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_45_55).ToString();
        chkAgeRange.Items[7].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_56over).ToString();

        chkGenders.Items[0].Value = ((int)PIKCV.COM.EnumDB.SexCode.Female).ToString();
        chkGenders.Items[1].Value = ((int)PIKCV.COM.EnumDB.SexCode.Male).ToString();
        chkGenders.Items[2].Value = ((int)PIKCV.COM.EnumDB.SexCode.Both).ToString();

        chkExperience.Items[0].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_0_1).ToString();
        chkExperience.Items[1].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_2_5).ToString();
        chkExperience.Items[2].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_6_10).ToString();
        chkExperience.Items[3].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_10_over).ToString();

        DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCountriesDesired, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCitiesDesired, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbPositions, this.cmbPositions, "PositionName", "PositionID", "");
        DataBindHelper.BindListbox(ref lbPositionDesired, this.cmbPositions, "PositionName", "PositionID", "");
        DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");
        DataBindHelper.BindListbox(ref lbSectorDesired, this.cmbSectors, "SectorName", "SectorID", "");
        DataBindHelper.BindListbox(ref lbComputerSkill, this.cmbComputerKnowledgeTypes, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID", "");

        DataBindHelper.BindCheckBoxList(ref chkMaritalStatus, this.cmbMaritalStates, "MaritalStatusName", "MaritalStatusID");
        DataBindHelper.BindCheckBoxList(ref chkMilitaryStates, this.cmbMilitaryStates, "MilitaryStatusName", "MilitaryStatusID");
        DataBindHelper.BindCheckBoxList(ref chkLabouringTypes1, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");
        DataBindHelper.BindCheckBoxList(ref chkLabouringTypes2, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");
        DataBindHelper.BindCheckBoxList(ref chkEducationLevels, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID");
        DataBindHelper.BindCheckBoxList(ref chkEducationStates1, this.cmbEducationStates, "EducationStatusName", "EducationStatusID");
        DataBindHelper.BindCheckBoxList(ref chkEducationStates2, this.cmbEducationStates, "EducationStatusName", "EducationStatusID");

        DataBindHelper.BindDDL(ref ddlDrvLicense1, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID", "");
        DataBindHelper.BindDDL(ref ddlLanguage1, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "");
        DataBindHelper.BindDDL(ref ddlLanguage2, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "");
        DataBindHelper.BindDDL(ref ddlLanguage3, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "");
        DataBindHelper.BindDDL(ref ddlLanguage11, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage111, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage1111, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage22, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage222, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage2222, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage33, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage333, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlLanguage3333, this.cmbLevels, "LevelName", "LevelID", "");
        DataBindHelper.BindDDL(ref ddlSchools1, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.HighSchoolTypes), "SchoolName", "SchoolID", "");
        DataBindHelper.BindDDL(ref ddlSchools2, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.UniversityNames), "SchoolName", "SchoolID", "");
        DataBindHelper.BindDDL(ref ddlSchools3, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.DepartmentNames), "SchoolName", "SchoolID", "");

        add_to_list1.Attributes.Add("onclick", "SwapItem('" + lbCountries.ClientID + "','" + lbSelectedCountries.ClientID + "', ' ')");
        remove_from_list1.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountries.ClientID + "','" + lbCountries.ClientID + "', ' ')");
        add_to_list2.Attributes.Add("onclick", "SwapItem('" + lbCities.ClientID + "','" + lbSelectedCities.ClientID + "', ' ')");
        remove_from_list2.Attributes.Add("onclick", "SwapItem('" + lbSelectedCities.ClientID + "','" + lbCities.ClientID + "', ' ')");
        add_to_list3.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ')");
        remove_from_list3.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')");
        add_to_list4.Attributes.Add("onclick", "SwapItem('" + lbPositions.ClientID + "','" + lbSelectedPositions.ClientID + "', ' ')");
        remove_from_list4.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositions.ClientID + "','" + lbPositions.ClientID + "', ' ')");
        add_to_list5.Attributes.Add("onclick", "SwapItem('" + lbComputerSkill.ClientID + "','" + lbSelectedComputerSkill.ClientID + "', ' ')");
        remove_from_list5.Attributes.Add("onclick", "SwapItem('" + lbSelectedComputerSkill.ClientID + "','" + lbComputerSkill.ClientID + "', ' ')");
        add_to_list6.Attributes.Add("onclick", "SwapItem('" + lbSectorDesired.ClientID + "','" + lbSelectedSectorDesired.ClientID + "', ' ')");
        remove_from_list6.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectorDesired.ClientID + "','" + lbSectorDesired.ClientID + "', ' ')");
        add_to_list7.Attributes.Add("onclick", "SwapItem('" + lbPositionDesired.ClientID + "','" + lbSelectedPositionDesired.ClientID + "', ' ')");
        remove_from_list7.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositionDesired.ClientID + "','" + lbPositionDesired.ClientID + "', ' ')");
        add_to_list8.Attributes.Add("onclick", "SwapItem('" + lbCountriesDesired.ClientID + "','" + lbSelectedCountriesDesired.ClientID + "', ' ')");
        remove_from_list8.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountriesDesired.ClientID + "','" + lbCountriesDesired.ClientID + "', ' ')");
        add_to_list9.Attributes.Add("onclick", "SwapItem('" + lbCitiesDesired.ClientID + "','" + lbSelectedCitiesDesired.ClientID + "', ' ')");
        remove_from_list9.Attributes.Add("onclick", "SwapItem('" + lbSelectedCitiesDesired.ClientID + "','" + lbCitiesDesired.ClientID + "', ' ')");

        // Ýlanlarý Bind Et
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserEmploymentChooices = new PIKCV.BUS.UserCVs();

        DataTable dtUserSectors   = objUserEmploymentChooices.GetUserSectors(this.smUserID, (int)this.smLanguageID);
        DataTable dtUserPositions = objUserEmploymentChooices.GetUserPositions(this.smUserID, (int)this.smLanguageID);

        DataBindHelper.BindListbox(ref lbSelectedSectors, dtUserSectors, "SectorName", "SectorID");
        DataBindHelper.BindListbox(ref lbSelectedPositions, dtUserPositions, "PositionName", "PositionID");

        DataTable dtSectors    = this.cmbSectors;
        DataTable dtSectorsNew = new DataTable();

        if (dtUserSectors.Rows.Count > 0)
        {
            dtSectorsNew.Columns.Add("SectorID");
            dtSectorsNew.Columns.Add("SectorName");

            bool add = true;
            foreach (DataRow drCache in dtSectors.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserSectors.Rows)
                {
                    if (dr["SectorID"].ToString() == drCache["SectorID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtSectorsNew.NewRow();
                    drNew["SectorID"]   = drCache["SectorID"].ToString();
                    drNew["SectorName"] = drCache["SectorName"].ToString();
                    dtSectorsNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtSectorsNew = dtSectors.Copy();
        }


        DataTable dtPositions    = this.cmbPositions;
        DataTable dtPositionsNew = new DataTable();

        if (dtPositions.Rows.Count > 0)
        {
            dtPositionsNew.Columns.Add("PositionID");
            dtPositionsNew.Columns.Add("PositionName");

            bool add = true;
            foreach (DataRow drCache in dtPositions.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserPositions.Rows)
                {
                    if (dr["PositionID"].ToString() == drCache["PositionID"].ToString())
                    {
                        add = false;
                        break;
                    }
                    if ((this.smEmployeeType != PIKCV.COM.EnumDB.EmployeeTypes.Unknown) && ((PIKCV.COM.EnumDB.EmployeeTypes)(Convert.ToInt32(drCache["PositionTypeCode"])) != this.smEmployeeType))
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew;
                    if (this.smEmployeeType != PIKCV.COM.EnumDB.EmployeeTypes.Unknown)
                    {
                        if (this.smEmployeeType == (PIKCV.COM.EnumDB.EmployeeTypes)(Convert.ToInt16(drCache["PositionTypeCode"])))
                        {
                            drNew = dtPositionsNew.NewRow();
                            drNew["PositionID"]   = drCache["PositionID"].ToString();
                            drNew["PositionName"] = drCache["PositionName"].ToString();
                            dtPositionsNew.Rows.Add(drNew);
                        }
                    }
                    else
                    {
                        drNew = dtPositionsNew.NewRow();
                        drNew["PositionID"]   = drCache["PositionTypeCode"] + "_||" + drCache["PositionID"].ToString();
                        drNew["PositionName"] = drCache["PositionName"].ToString();
                        dtPositionsNew.Rows.Add(drNew);
                    }
                }
            }
        }
        else
        {
            dtPositionsNew = dtPositions.Copy();
        }

        DataBindHelper.BindListbox(ref lbSectors, dtSectorsNew, "SectorName", "SectorID", "0");
        DataBindHelper.BindListbox(ref lbPositions, dtPositionsNew, "PositionName", "PositionID", "0");
        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);
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserPlaces   = new PIKCV.BUS.UserCVs();
        DataTable         dtUserPlacesAll = objUserPlaces.GetUserPlaces(this.smUserID, (int)this.smLanguageID);

        PIKCV.BUS.UserCVs objUserLabouringTypes = new PIKCV.BUS.UserCVs();
        DataTable         dtUserLabouringTypes  = objUserLabouringTypes.GetUserLabouringTypes(this.smUserID, (int)this.smLanguageID);


        foreach (DataRow dr in dtUserLabouringTypes.Rows)
        {
            foreach (ListItem li in chLabouringTypes.Items)
            {
                if (li.Value == dr["LabouringTypeID"].ToString())
                {
                    li.Selected = true;
                    break;
                }
            }
        }

        DataTable dtUserPlaceCountries = new DataTable();

        dtUserPlaceCountries.Columns.Add("PlaceID");
        dtUserPlaceCountries.Columns.Add("PlaceName");

        DataTable dtUserPlaceCities = dtUserPlaceCountries.Clone();

        foreach (DataRow dr in dtUserPlacesAll.Rows)
        {
            if (dr["PlaceTypeCode"].ToString() == ((int)PIKCV.COM.EnumDB.PlaceTypes.Country).ToString())
            {
                DataRow drNew = dtUserPlaceCountries.NewRow();
                drNew["PlaceID"]   = dr["PlaceID"].ToString();
                drNew["PlaceName"] = dr["PlaceName"].ToString();
                dtUserPlaceCountries.Rows.Add(drNew);
            }
            else
            {
                DataRow drNew = dtUserPlaceCities.NewRow();
                drNew["PlaceID"]   = dr["PlaceID"].ToString();
                drNew["PlaceName"] = dr["PlaceName"].ToString();
                dtUserPlaceCities.Rows.Add(drNew);
            }
        }

        DataBindHelper.BindListbox(ref lbSelectedCountries, dtUserPlaceCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbSelectedCities, dtUserPlaceCities, "PlaceName", "PlaceID", "");


        DataTable dtCountries    = this.cmbCountries;
        DataTable dtCountriesNew = new DataTable();

        if (dtUserPlaceCountries.Rows.Count > 0)
        {
            dtCountriesNew.Columns.Add("PlaceID");
            dtCountriesNew.Columns.Add("PlaceName");

            bool add = true;
            foreach (DataRow drCache in dtCountries.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserPlaceCountries.Rows)
                {
                    if (dr["PlaceID"].ToString() == drCache["PlaceID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtCountriesNew.NewRow();
                    drNew["PlaceID"]   = drCache["PlaceID"].ToString();
                    drNew["PlaceName"] = drCache["PlaceName"].ToString();
                    dtCountriesNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtCountriesNew = dtCountries.Copy();
        }

        DataTable dtTurkeyCities = this.cmbTurkeyCities;
        DataTable dtCitiesNew    = new DataTable();

        if (dtUserPlaceCities.Rows.Count > 0)
        {
            dtCitiesNew.Columns.Add("PlaceID");
            dtCitiesNew.Columns.Add("PlaceName");

            bool add = true;
            foreach (DataRow drCache in dtTurkeyCities.Rows)
            {
                add = true;
                foreach (DataRow dr in dtUserPlaceCities.Rows)
                {
                    if (dr["PlaceID"].ToString() == drCache["PlaceID"].ToString())
                    {
                        add = false;
                        break;
                    }
                }
                if (add)
                {
                    DataRow drNew = dtCitiesNew.NewRow();
                    drNew["PlaceID"]   = drCache["PlaceID"].ToString();
                    drNew["PlaceName"] = drCache["PlaceName"].ToString();
                    dtCitiesNew.Rows.Add(drNew);
                }
            }
        }
        else
        {
            dtCitiesNew = dtTurkeyCities.Copy();
        }

        DataBindHelper.BindListbox(ref lbCountries, dtCountriesNew, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCities, dtCitiesNew, "PlaceName", "PlaceID", "");

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

        DataTable dtUserCV = objUserCV.GetUserCV(this.smUserID);

        bool HasTravelDifficulty = Convert.ToBoolean(dtUserCV.Rows[0]["HasTravelDifficulty"]);

        rdHasTravelDifficultyYes.Checked = HasTravelDifficulty;
        rdHasTravelDifficultyNo.Checked  = !HasTravelDifficulty;

        bool IsSmoking = Convert.ToBoolean(dtUserCV.Rows[0]["IsSmoking"]);

        rdIsSmokingYes.Checked = IsSmoking;
        rdIsSmokingNo.Checked  = !IsSmoking;

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

        dvScript.InnerHtml = "<script>OtherDown('" + lbCities.ClientID + "', " + ((int)PIKCV.COM.EnumDB.Places.OtherPlaceID).ToString() + ")</script>";
    }
Beispiel #16
0
    private void FillDetails()
    {
        #region Details

        // Baþvuru Statüleri
        DataBindHelper.BindCheckBoxList(ref chkEvaluation, PIKCV.BUS.JobApplicants.GetJobApplicationStates(PIKCV.COM.EnumDB.LanguageID.Turkish, false), "JobApplicationStatusName", "JobApplicationStatusID");
        chkEvaluation.Items.Insert(0, new ListItem("Tümü", "0"));

        // Yaþ aralýðý
        chkAgeRange.Items[0].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_All).ToString();
        chkAgeRange.Items[1].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_18_24).ToString();
        chkAgeRange.Items[2].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_25_29).ToString();
        chkAgeRange.Items[3].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_30_34).ToString();
        chkAgeRange.Items[4].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_35_39).ToString();
        chkAgeRange.Items[5].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_40_44).ToString();
        chkAgeRange.Items[6].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_45_55).ToString();
        chkAgeRange.Items[7].Value = ((int)PIKCV.COM.EnumDB.AgeRange.age_56over).ToString();

        // Cinsiyet
        rblGenders.Items[0].Value = ((int)PIKCV.COM.EnumDB.SexCode.Female).ToString();
        rblGenders.Items[1].Value = ((int)PIKCV.COM.EnumDB.SexCode.Male).ToString();
        rblGenders.Items[2].Value = ((int)PIKCV.COM.EnumDB.SexCode.Both).ToString();

        chkExperience.Items[0].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_0_1).ToString();
        chkExperience.Items[1].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_2_5).ToString();
        chkExperience.Items[2].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_6_10).ToString();
        chkExperience.Items[3].Value = ((int)PIKCV.COM.EnumDB.Experience.experience_10_over).ToString();

        DataBindHelper.BindListbox(ref lbCountries, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCountriesDesired, this.cmbCountries, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCities, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbCitiesDesired, this.cmbTurkeyCities, "PlaceName", "PlaceID", "");
        DataBindHelper.BindListbox(ref lbSectors, this.cmbSectors, "SectorName", "SectorID", "");
        DataBindHelper.BindListbox(ref lbSectorDesired, this.cmbSectors, "SectorName", "SectorID", "");
        DataBindHelper.BindListbox(ref lbComputerSkill, this.cmbComputerKnowledgeTypes, "ComputerKnowledgeTypeName", "ComputerKnowledgeTypeID", "");

        // Eðitim durumu
        DataBindHelper.BindCheckBoxList(ref chkEducationLevels, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID");

        rdlMaritalStatus.Items[0].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.Single).ToString();
        rdlMaritalStatus.Items[1].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.Married).ToString();
        rdlMaritalStatus.Items[2].Value = ((int)PIKCV.COM.EnumDB.MaritalStates.None).ToString();

        DataBindHelper.BindCheckBoxList(ref chkMilitaryStates, this.cmbMilitaryStates, "MilitaryStatusName", "MilitaryStatusID");
        DataBindHelper.BindCheckBoxList(ref chkLabouringTypes1, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");
        DataBindHelper.BindCheckBoxList(ref chkLabouringTypes2, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");
        DataBindHelper.BindCheckBoxList(ref chkEducationStates1, this.cmbEducationStates, "EducationStatusName", "EducationStatusID");
        DataBindHelper.BindCheckBoxList(ref chkEducationStates2, this.cmbEducationStates, "EducationStatusName", "EducationStatusID");

        DataBindHelper.BindDDL(ref ddlLanguage1, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage2, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage3, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage11, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage111, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage1111, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage22, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage222, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage2222, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage33, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage333, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlLanguage3333, this.cmbLevels, "LevelName", "LevelID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlSchools1, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.HighSchoolTypes), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlSchools2, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.UniversityNames), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlSchools3, PIKCV.COM.Data.GetSchools(this.cmbSchools, PIKCV.COM.EnumDB.SchoolTypes.DepartmentNames), "SchoolName", "SchoolID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");

        DataBindHelper.BindRadioButtonList(ref rblDrvLicense, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID", "");
        rblDrvLicense.Items.Add(new ListItem("Tümü", ((int)PIKCV.COM.EnumDB.LicenceTypes.All).ToString()));
        rblDrvLicense.SelectedValue = ((int)PIKCV.COM.EnumDB.LicenceTypes.All).ToString();

        DataBindHelper.BindCheckBoxList(ref chDrvLicense, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID");

        add_to_list1.Attributes.Add("onclick", "SwapItem('" + lbCountries.ClientID + "','" + lbSelectedCountries.ClientID + "', ' ')");
        remove_from_list1.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountries.ClientID + "','" + lbCountries.ClientID + "', ' ')");
        add_to_list2.Attributes.Add("onclick", "SwapItem('" + lbCities.ClientID + "','" + lbSelectedCities.ClientID + "', ' ')");
        remove_from_list2.Attributes.Add("onclick", "SwapItem('" + lbSelectedCities.ClientID + "','" + lbCities.ClientID + "', ' ')");
        add_to_list3.Attributes.Add("onclick", "SwapItem('" + lbSectors.ClientID + "','" + lbSelectedSectors.ClientID + "', ' ')");
        remove_from_list3.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectors.ClientID + "','" + lbSectors.ClientID + "', ' ')");
        add_to_list4.Attributes.Add("onclick", "SwapItem('" + lbPositions.ClientID + "','" + lbSelectedPositions.ClientID + "', ' ')");
        remove_from_list4.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositions.ClientID + "','" + lbPositions.ClientID + "', ' ')");
        add_to_list5.Attributes.Add("onclick", "SwapItem('" + lbComputerSkill.ClientID + "','" + lbSelectedComputerSkill.ClientID + "', ' ')");
        remove_from_list5.Attributes.Add("onclick", "SwapItem('" + lbSelectedComputerSkill.ClientID + "','" + lbComputerSkill.ClientID + "', ' ')");
        add_to_list6.Attributes.Add("onclick", "SwapItem('" + lbSectorDesired.ClientID + "','" + lbSelectedSectorDesired.ClientID + "', ' ')");
        remove_from_list6.Attributes.Add("onclick", "SwapItem('" + lbSelectedSectorDesired.ClientID + "','" + lbSectorDesired.ClientID + "', ' ')");
        add_to_list7.Attributes.Add("onclick", "SwapItem('" + lbPositionDesired.ClientID + "','" + lbSelectedPositionDesired.ClientID + "', ' ')");
        remove_from_list7.Attributes.Add("onclick", "SwapItem('" + lbSelectedPositionDesired.ClientID + "','" + lbPositionDesired.ClientID + "', ' ')");
        add_to_list8.Attributes.Add("onclick", "SwapItem('" + lbCountriesDesired.ClientID + "','" + lbSelectedCountriesDesired.ClientID + "', ' ')");
        remove_from_list8.Attributes.Add("onclick", "SwapItem('" + lbSelectedCountriesDesired.ClientID + "','" + lbCountriesDesired.ClientID + "', ' ')");
        add_to_list9.Attributes.Add("onclick", "SwapItem('" + lbCitiesDesired.ClientID + "','" + lbSelectedCitiesDesired.ClientID + "', ' ')");
        remove_from_list9.Attributes.Add("onclick", "SwapItem('" + lbSelectedCitiesDesired.ClientID + "','" + lbCitiesDesired.ClientID + "', ' ')");

        #endregion
    }