示例#1
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>";
        }
    }
示例#2
0
    private void FillControls()
    {
        DataBindHelper.BindDDL(ref ddlNation, this.cmbCountries, "PlaceName", "PlaceID", "-1", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");
        DataBindHelper.BindDDL(ref ddlBirthPlace, this.cmbTurkeyCities, "PlaceName", "PlaceID", "-1", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");
        DataBindHelper.BindDDL(ref ddlMaritalStates, this.cmbMaritalStates, "MaritalStatusName", "MaritalStatusID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.BindDDL(ref ddlMilitaryStates, this.cmbMilitaryStates, "MilitaryStatusName", "MilitaryStatusID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
        DataBindHelper.LoadNumberDDL(ref ddlMilitaryYear, DateTime.Now.Year + 10, 1, DateTime.Now.Year + 1, false);
        ddlMilitaryYear.Items.Insert(0, "0");

        ddlMilitaryStates.Attributes.Add("onchange", "ShowHideMilitaryYear(this,'" + ((int)PIKCV.COM.EnumDB.MilitaryStates.Postponement).ToString() + "')");

        rdSexCode.Items[(int)PIKCV.COM.EnumDB.SexCode.Male].Attributes.Add("onclick", "ShowSexCode()");
        rdSexCode.Items[(int)PIKCV.COM.EnumDB.SexCode.Female].Attributes.Add("onclick", "HideSexCode()");

        ListItem liOther = new ListItem();

        foreach (ListItem li in ddlBirthPlace.Items)
        {
            if (li.Value == ((int)PIKCV.COM.EnumDB.Places.OtherPlaceID).ToString())
            {
                liOther = li;
                break;
            }
        }
        ddlBirthPlace.Items.Remove(liOther);
        ddlBirthPlace.Items.Add(liOther);
    }
示例#3
0
    private void FillCompanyInfo()
    {
        PIKCV.BUS.Company objCompany = new PIKCV.BUS.Company();
        DataTable         dt         = objCompany.GetCompanyInfo(this.smCompanyID);

        if (dt.Rows.Count > 0)
        {
            lblCompanyDescription.Text      = dt.Rows[0]["CompanyDescription"].ToString();
            lblCompanyName.Text             = dt.Rows[0]["CompanyName"].ToString();
            lblCompanyContactLastName.Text  = dt.Rows[0]["ContactLastName"].ToString();
            lblCompanyContactFirstName.Text = dt.Rows[0]["ContactName"].ToString();
            lblEmail.Text              = dt.Rows[0]["ContactEmail"].ToString();
            lblCompanyFaxNumber.Text   = dt.Rows[0]["Fax"].ToString();
            lblNumberOfWorkers.Text    = dt.Rows[0]["NumberOfWorkers"].ToString();
            lblCompanyPhoneNumber.Text = dt.Rows[0]["Phone"].ToString();

            //this.PhotoFileName = dt.Rows[0]["PhotoFileName"].ToString();
            imgCompanyDetailLogo.ImageUrl = "~/" + this.Config(PIKCV.COM.EnumUtil.Config.CompanyImagePath) + dt.Rows[0]["PhotoFileName"].ToString();

            PIKCV.BUS.Company objCompanies     = new PIKCV.BUS.Company();
            DataTable         dtCompanySectors = objCompanies.GetCompanySectorNames(this.smCompanyID);
            DataBindHelper.BindRepeater(ref rptSectors, dtCompanySectors);
        }
        else
        {
            this.GoToDefaultPage();
        }
    }
示例#4
0
    private void FillForm()
    {
        PIKCV.BUS.Company obj = new PIKCV.BUS.Company();
        if (CARETTA.COM.Util.IsNumeric(Request.QueryString["FolderID"]))
        {
            this.FolderID = Convert.ToInt32(Request.QueryString["FolderID"]);

            DataTable dtFolderNames = obj.GetCompanyFolders(this.smCompanyID, false);
            DataBindHelper.BindDDL(ref drpCompanyFolders, dtFolderNames, "FolderName", "FolderID", "", "Klasör seç...", "0");
            drpCompanyFolders.SelectedValue = this.FolderID.ToString();
            this.strFolderName    = drpCompanyFolders.SelectedItem.Text;
            ltlSubFolderName.Text = this.strFolderName;

            DataTable dt = obj.GetCompanyFolderDetail(this.FolderID);
            if (dt.Rows.Count > 0)
            {
                if (this.smCompanyID == Convert.ToInt32(dt.Rows[0]["CompanyID"]))
                {
                    FillFolderDetailRepeater();
                }
                else
                {
                    this.Redirect("Company-Folders-FoldersMain");
                }
            }
            else
            {
                this.Redirect("Company-Folders-FoldersMain");
            }
        }
    }
示例#5
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", "");
 }
示例#6
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;
    }
示例#7
0
    private void FillDetails()
    {
        PIKCV.BUS.Job obj       = new PIKCV.BUS.Job();
        DataTable     dtJobInfo = obj.GetJobInfo(this.smJobID);

        if (dtJobInfo.Rows.Count > 0)
        {
            PIKCV.COM.EnumDB.EmployeeTypes EmployeeType = PIKCV.COM.EnumDB.EmployeeTypes.Unknown;
            EmployeeType = (PIKCV.COM.EnumDB.EmployeeTypes)Convert.ToInt32(dtJobInfo.Rows[0]["UserTypeID"]);
            DataBindHelper.BindDDL(ref drpPositions, PIKCV.BUS.Position.GetPositions(EmployeeType, this.smLanguageID, false), "PositionName", "PositionID", "", "Lütfen Seçiniz...", "0");
            txtReferanceNumber.Text = dtJobInfo.Rows[0]["ReferenceNumber"].ToString();
            txtJobDescription.Text  = dtJobInfo.Rows[0]["JobDescription"].ToString();
            if (dtJobInfo.Rows[0]["NumberOfWorkers"].ToString() == "0")
            {
                txtNumberOfWorkers.Text = "";
            }
            else
            {
                txtNumberOfWorkers.Text = dtJobInfo.Rows[0]["NumberOfWorkers"].ToString();
            }

            //drpNumberOfWorkers.SelectedValue = dtJobInfo.Rows[0]["NumberOfWorkers"].ToString();

            drpPositions.SelectedValue = dtJobInfo.Rows[0]["PositionID"].ToString();
        }
    }
示例#8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.IsLogin();
        if (!IsPostBack)
        {
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["UserID"]) && CARETTA.COM.Util.IsNumeric(Request.QueryString["JobApplicantID"]))
            {
                this.smUserID = Convert.ToInt32(Request.QueryString["UserID"]);
                this.smEmployeeSearchResultUserIDs = new ArrayList();
                this.smEmployeeSearchResultUserIDs.Add(this.smUserID);
                Session.Remove(PIKCV.COM.EnumUtil.Sess.EmployeeSearchQueries.ToString());
                this.Redirect("Company-Membership-UserInfo&JobApplicantID=" + Request.QueryString["JobApplicantID"].ToString());
            }

            if (!(CARETTA.COM.Util.IsNumeric(Request.QueryString["[JobApplicationStatusName]"])))
            {
                this.smListFilterTypes = new ArrayList();
            }
            UList1.DataBind(PIKCV.COM.Enumerations.ListTypes.CompanyJobApplicants);
            DataTable dtJobs = PIKCV.BUS.Job.GetCompanyAllJobs(this.smCompanyID, PIKCV.COM.EnumDB.JobStatus.All, this.smLanguageID);
            if (dtJobs.Rows.Count > 0)
            {
                if (this.smCompanyID != Convert.ToInt32(dtJobs.Rows[0]["CompanyID"]))
                {
                    this.GoToDefaultPage();
                }
            }

            DataBindHelper.BindDDL(ref ddlCompanyJobs, dtJobs, "PositionName", "JobID", "", "Lütfen Seçiniz...", "0");
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                ddlCompanyJobs.SelectedValue = Request.QueryString["JobID"].ToString();
            }
        }
    }
示例#9
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
    }
示例#10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataBindHelper.BindCheckBoxList(ref chLabouringTypes, this.cmbLabouringTypes, "LabouringTypeName", "LabouringTypeID");

            ReplaceNavigateURL(ref hlEmploymentChooices, PIKCV.COM.EnumDB.CVFocusCode.EmploymentChooices);
            ReplaceNavigateURL(ref hlReferences, PIKCV.COM.EnumDB.CVFocusCode.References);
            ReplaceNavigateURL(ref hlProhibitedCompanies, PIKCV.COM.EnumDB.CVFocusCode.ProhibitedCompanies);

            imgAddToListCities.Style.Add("cursor", "pointer");
            imgAddToListCountries.Style.Add("cursor", "pointer");
            imgRemoveToListCities.Style.Add("cursor", "pointer");
            imgRemoveToListCountries.Style.Add("cursor", "pointer");

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

            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 + "', ' ')");

            ImgBtnContinue.Attributes.Add("onmousedown", PIKCV.COM.Util.SelectAllListboxScript(lbSelectedCountries.ClientID, lbSelectedCities.ClientID));
            ImgBtnSave.Attributes.Add("onmousedown", PIKCV.COM.Util.SelectAllListboxScript(lbSelectedCountries.ClientID, lbSelectedCities.ClientID));

            lbCities.Attributes.Add("onchange", "OpenCloseOther(" + ((int)PIKCV.COM.EnumDB.Places.OtherPlaceID).ToString() + ")");
        }
    }
示例#11
0
        private void ListBind()
        {
            int record = 0;
            List <SystemUserGroup> list =
                systemUserGroupServiceInstance.GetAll(this.Pager.StartRecordIndex - 1, this.Pager.PageSize, out record);

            DataBindHelper.BindListDataToGridView <SystemUserGroup>(this.GridView1, list);
            this.Pager.RecordCount = record;
        }
示例#12
0
    //protected void ddlLanguage1_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //if (ddlLanguage1.SelectedIndex > 0)
    //    //{
    //    //    ddlLanguage11.Visible = true;
    //    //    ddlLanguage11.SelectedIndex = 0;
    //    //    ddlLanguage111.Visible = true;
    //    //    ddlLanguage111.SelectedIndex = 0;
    //    //    ddlLanguage1111.Visible = true;
    //    //    ddlLanguage1111.SelectedIndex = 0;
    //    //}
    //    //else
    //    //{
    //    //    ddlLanguage11.Visible = false;
    //    //    ddlLanguage111.Visible = false;
    //    //    ddlLanguage1111.Visible = false;
    //    //}
    //}

    //protected void ddlLanguage2_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //if (ddlLanguage2.SelectedIndex > 0)
    //    //{
    //    //    ddlLanguage22.Visible = true;
    //    //    ddlLanguage22.SelectedIndex = 0;
    //    //    ddlLanguage222.Visible = true;
    //    //    ddlLanguage222.SelectedIndex = 0;
    //    //    ddlLanguage2222.Visible = true;
    //    //    ddlLanguage2222.SelectedIndex = 0;
    //    //}
    //    //else
    //    //{
    //    //    ddlLanguage22.Visible = false;
    //    //    ddlLanguage222.Visible = false;
    //    //    ddlLanguage2222.Visible = false;
    //    //}
    //}

    //protected void ddlLanguage3_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //if (ddlLanguage3.SelectedIndex > 0)
    //    //{
    //    //    ddlLanguage33.Visible = true;
    //    //    ddlLanguage33.SelectedIndex = 0;
    //    //    ddlLanguage333.Visible = true;
    //    //    ddlLanguage333.SelectedIndex = 0;
    //    //    ddlLanguage3333.Visible = true;
    //    //    ddlLanguage3333.SelectedIndex = 0;
    //    //}
    //    //else
    //    //{
    //    //    ddlLanguage33.Visible = false;
    //    //    ddlLanguage333.Visible = false;
    //    //    ddlLanguage3333.Visible = false;
    //    //}
    //}
    protected void lnkAllpages_Click(object sender, EventArgs e)
    {
        ddlCompanyJobs.Items.Clear();
        ddlCompanyJobs.DataSource = null;
        DataTable dtJobs = PIKCV.BUS.Job.GetCompanyAllJobs(this.smCompanyID, PIKCV.COM.EnumDB.JobStatus.All, this.smLanguageID);

        DataBindHelper.BindDDL(ref ddlCompanyJobs, dtJobs, "PositionName", "JobID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.JobsTitle), "0");
        lnkAllpages.Visible = false;
    }
示例#13
0
    private void FillDetails()
    {
        PIKCV.BUS.Company obj = new PIKCV.BUS.Company();
        DataTable         dt  = obj.GetCompanyFolders(this.smCompanyID, true, false);

        DataBindHelper.BindRepeater(ref rptDefaulFolders, dt);
        dt = obj.GetCompanyFolders(this.smCompanyID, false, false);
        DataBindHelper.BindRepeater(ref rptCreatedFolders, dt);
    }
示例#14
0
    private void FillData()
    {
        DataTable dtUserFilters = PIKCV.BUS.Filters.GetUserFilters(PIKCV.COM.EnumDB.FilterTypes.EmployeeSearch, this.smCompanyID, PIKCV.COM.EnumDB.MemberTypes.Company, false);

        if (dtUserFilters.Rows.Count > 0)
        {
            DataBindHelper.BindRepeater(ref rptFilters, dtUserFilters);
        }
    }
示例#15
0
 protected void rptTest_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
     {
         int GroupNO = int.Parse(((Literal)e.Item.FindControl("ltlGorupNO")).Text);
         ((Literal)e.Item.FindControl("ltlGroupName")).Text = PIKCV.BUS.Test.GetTestPerfectionName(GroupNO);
         Repeater rptStatement = ((Repeater)e.Item.FindControl("rptStatement"));
         DataBindHelper.BindRepeater(ref rptStatement, DataTableHelper.Filter(this.dtTest, "PerfectionID", GroupNO.ToString()));
     }
 }
示例#16
0
    // Baþvuru Arama'da, tepedeki 2 fazlalýktan Repeater'a veri bind eder
    private void FillApplicationData()
    {
        DataTable dtJobs = PIKCV.BUS.Job.GetCompanyAllJobs(this.smCompanyID, PIKCV.COM.EnumDB.JobStatus.Active, this.smLanguageID);

        if (dtJobs.Rows.Count < 1)
        {
            //this.GoToFeedback(PIKCV.COM.EnumDB.ErrorTypes.NoJobForApplicant);
        }
        //DataBindHelper.BindRepeater(ref rptAds, PIKCV.BUS.Job.GetCompanyAllJobs(this.smCompanyID ,PIKCV.COM.EnumDB.JobStatus.Deleted,this.smLanguageID ));
        DataBindHelper.BindDDL(ref ddlCompanyJobs, dtJobs, "PositionName", "JobID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.JobsTitle), "0");
    }
示例#17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataBindHelper.BindDDL(ref ddlForeignLanguages, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "-1", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "-1");
         DataBindHelper.BindDDL(ref ddlRead, this.cmbLevels, "LevelName", "LevelID", "");
         DataBindHelper.BindDDL(ref ddlSpeak, this.cmbLevels, "LevelName", "LevelID", "");
         DataBindHelper.BindDDL(ref ddlWrite, this.cmbLevels, "LevelName", "LevelID", "");
         DataBindHelper.BindDDL(ref ddlForeignLanguageExams, this.cmbForeignLanguageExams, "ForeignLanguageExamName", "ForeignLanguageExamID", "0", "Yok", "0");
     }
 }
示例#18
0
    private void FillData()
    {
        hdQuestions.Value = String.Empty;
        foreach (DataRow dr in this.dtTest.Rows)
        {
            hdQuestions.Value += dr["TestPerfectionID"].ToString() + ",";
        }

        hdQuestions.Value = Util.Left(hdQuestions.Value, hdQuestions.Value.Length - 1);
        DataBindHelper.BindRepeater(ref rptTest, this.dtTestGroups);
    }
示例#19
0
 private void FillData()
 {
     if (this.dtMessageDrafts.Rows.Count > 0)
     {
         DataBindHelper.BindRepeater(ref rptDrafts, this.dtMessageDrafts);
     }
     else
     {
         ltlNoRecord.Visible = true;
     }
 }
示例#20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!(this.smIsLogin))
         {
             this.GoToDefaultPage();
         }
         DataBindHelper.BindDDL(ref ddlProjects, PIKCV.BUS.Projects.GetCompanyProjects(this.smCompanyID, false), "ProjectName", "CustomProjectID", "");
         FillData();
     }
 }
示例#21
0
 protected void rptInterviews_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
     {
         DropDownList drpInterviewStatus = new DropDownList();
         drpInterviewStatus = (DropDownList)e.Item.FindControl("drpInterviewStatus");
         DataBindHelper.BindDDL(ref drpInterviewStatus, this.cmbInterviewStatus, "InterviewStatusName", "InterviewStatusID", "");
         ((DropDownList)e.Item.FindControl("drpInterviewStatus")).SelectedValue = ((HiddenField)e.Item.FindControl("hfInerviewStatusID")).Value;
         ((HyperLink)e.Item.FindControl("hplDelete")).Attributes.Add("onclick", "return confirm('Mülakatý silmek istediðinize emin misiniz');");
         ((HyperLink)e.Item.FindControl("hplDelete")).NavigateUrl = ((HyperLink)e.Item.FindControl("hplDelete")).NavigateUrl + "&InterviewType=" + Request.QueryString["InterviewType"].ToString();
     }
 }
示例#22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //DataBindHelper.LoadNumberDDL(ref ddlDriverLicenseYear, DateTime.Now.Year, 1, DateTime.Now.AddYears(-40).Year);
         //ddlDriverLicenseYear.Items.Insert(0, new ListItem(PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0"));
         //DataBindHelper.BindDDL(ref ddlDriverLicenseTypes, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID", "0", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.InitialText), "0");
         UCharacteristicAndSocialLifeNav1.SelectNavigatorLink(PIKCV.COM.EnumDB.CVFocusCode.DriverLicense);
         //ddlDriverLicenseTypes.Attributes.Add("onchange", "ShowHideLicenceYear('" + ddlDriverLicenseTypes.ClientID + "','" + (int)PIKCV.COM.EnumDB.LicenceTypes.NoneID + "', '" + ddlDriverLicenseYear.ClientID + "')");
         DataBindHelper.BindCheckBoxList(ref chDriverLicenses, this.cmbDriverLicenceTypes, "DriverLicenseTypeName", "DriverLicenseTypeID");
     }
 }
示例#23
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'; }");
    }
示例#24
0
    private void FillData()
    {
        DataTable dtUserFilters = PIKCV.BUS.Filters.GetUserFilters(PIKCV.COM.EnumDB.FilterTypes.JobSearch, this.smUserID, PIKCV.COM.EnumDB.MemberTypes.Employee, false);

        if (dtUserFilters.Rows.Count > 0)
        {
            DataBindHelper.BindRepeater(ref rptFilters, dtUserFilters);
        }
        else
        {
            ltlNoRecord.Visible = true; rptFilters.Visible = false;
        }
    }
示例#25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataBindHelper.LoadNumberDDL(ref ddlDays, 31, true);
            DataBindHelper.LoadNumberDDL(ref ddlMonths, 12, true);
            DataBindHelper.LoadNumberDDL(ref ddlYears, DateTime.Now.Year, 1, int.Parse(this.Config(PIKCV.COM.EnumUtil.Config.StartYear)));

            ddlDays.Items.Insert(0, new ListItem("Gün", "0"));
            ddlMonths.Items.Insert(0, new ListItem("Ay", "0"));
            ddlYears.Items.Insert(0, new ListItem("Yýl", "0"));
        }
    }
示例#26
0
    private void FillCreditPackages()
    {
        Credits   obj       = new Credits();
        DataTable dtCredits = obj.GetCreditPackages();

        if (dtCredits.Rows.Count > 0)
        {
            if (Convert.ToInt32(dtCredits.Rows[0]["CreditPackageID"]) == 0)
            {
                dtCredits.Rows[0].Delete();
            }
        }
        DataBindHelper.BindRepeater(ref rptCredits, dtCredits);
    }
示例#27
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);
    }
示例#28
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>";
    }
示例#29
0
    private void FillData()
    {
        if (ddlProjects.Items.Count > 0)
        {
            DataTable dt = PIKCV.BUS.Projects.GetCompanyProjectDetail(Convert.ToInt32(ddlProjects.SelectedValue), this.smLanguageID, false);

            if (dt.Rows.Count > 0)
            {
                dt.Columns.Add("Percentage");
                dt.Columns.Add("EmployeeType");
                int TotalWantedEmployeeCount = 0;
                int TotalFoundEmployeeCount  = 0;

                foreach (DataRow dr in dt.Rows)
                {
                    TotalWantedEmployeeCount = TotalWantedEmployeeCount + Convert.ToInt32(dr["WantedEmployeeCount"]);
                    TotalFoundEmployeeCount  = TotalFoundEmployeeCount + Convert.ToInt32(dr["FoundEmployeeCount"]);
                    if (((PIKCV.COM.EnumDB.EmployeeTypes)(Convert.ToInt32(dr["PositionTypeCode"]))) == PIKCV.COM.EnumDB.EmployeeTypes.Goodpik)
                    {
                        dr["EmployeeType"] = "Yönetici";
                    }
                    else
                    {
                        dr["EmployeeType"] = "Eleman / Uzman";
                    }
                }
                DataBindHelper.BindRepeater(ref rptProejects, dt);
                lbProjectDate.Text             = Convert.ToDateTime(dt.Rows[0]["CreateDate"]).ToShortDateString();
                lbProjectName.Text             = dt.Rows[0]["ProjectName"].ToString();
                lbProjectPrice.Text            = dt.Rows[0]["Price"].ToString();
                lbTotalFoundEmployeeCount.Text = TotalFoundEmployeeCount.ToString();
                int TotalPercentage = TotalFoundEmployeeCount * 100 / TotalWantedEmployeeCount;
                lbTotalPercentage.Text       = TotalPercentage.ToString();
                ChartBarTotal.Style["width"] = TotalPercentage.ToString() + "px";
                int TotalRemainingEmployeeCount = TotalWantedEmployeeCount - TotalFoundEmployeeCount;
                lbTotalRemainingEmployeeCount.Text = TotalRemainingEmployeeCount.ToString();
                lbTotalWantedEmployee.Text         = TotalWantedEmployeeCount.ToString();
                pnlProjects.Visible = true;
                lbMessage.Visible   = false;
                ddlProjects.Visible = true;
            }
        }
        else
        {
            pnlProjects.Visible = false;
            lbMessage.Visible   = true;
            ddlProjects.Visible = false;
        }
    }
示例#30
0
    public void FillData()
    {
        DataBindHelper.LoadNumberDDL(ref ddlDay, 31, true);
        DataBindHelper.LoadNumberDDL(ref ddlMonth, 12, true);
        DataBindHelper.LoadNumberDDL(ref ddlYear, -1 * MinDate, 1, -1 * MaxDate);

        foreach (ListItem li in ddlMonth.Items)
        {
            li.Text = LIB.Util.MonthName(int.Parse(li.Value));
        }

        ddlDay.Items.Insert(0, new ListItem("Gün", "0"));
        ddlMonth.Items.Insert(0, new ListItem("Ay", "0"));
        ddlYear.Items.Insert(0, new ListItem("Yıl", "0"));
    }