Beispiel #1
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);
    }
Beispiel #2
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"));
        }
    }
Beispiel #3
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"));
    }
Beispiel #4
0
    private void FillDetails()
    {
        DataBindHelper.LoadNumberDDL(ref drpEndHour, 23, 1, 0);
        DataBindHelper.LoadNumberDDL(ref drpStartHour, 23, 1, 0);
        DataBindHelper.LoadNumberDDL(ref drpEndMinute, 55, 5, 0);
        DataBindHelper.LoadNumberDDL(ref drpStartMinute, 55, 5, 0);
        PIKCV.BUS.Company obj = new PIKCV.BUS.Company();
        DataBindHelper.BindDDL(ref drpAdvisor, obj.GetCompanyAdvisor(this.smCompanyID), "FirstName", "CompanyAdvisorID", "", "Lütfen Seçiniz...", "0");
        DataBindHelper.BindDDL(ref drpPosition, this.cmbPositions, "PositionName", "PositionID", "", "Lütfen Seçiniz...", "0");

        if ((Session[PIKCV.COM.EnumUtil.Sess.EmployeeSearchQueries.ToString()] != null) && (this.smEmployeeSearchQueries.JobID > 0))
        {
            drpPosition.SelectedValue = PIKCV.BUS.Job.GetJobDetail(this.smEmployeeSearchQueries.JobID).Rows[0]["PositionID"].ToString();
        }
    }
    private void FillDropDowns()
    {
        DataBindHelper.BindDDL(ref drpEducationLevel1, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpEducationLevel2, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpEducationLevel3, this.cmbEducationLevels, "EducationLevelName", "EducationLevelID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpPositions1, this.cmbPositions, "PositionName", "PositionID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpPositions2, this.cmbPositions, "PositionName", "PositionID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpPositions3, this.cmbPositions, "PositionName", "PositionID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpForeignLanguage1, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpForeignLanguage2, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", "Lütfen Seçiniz", "0");
        DataBindHelper.BindDDL(ref drpForeignLanguage3, this.cmbForeignLanguages, "ForeignLanguageName", "ForeignLanguageID", "", "Lütfen Seçiniz", "0");

        DataBindHelper.BindDDL(ref drpReadLevel1, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpReadLevel2, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpReadLevel3, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpWriteLevel1, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpWriteLevel2, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpWriteLevel3, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpTalkLevel1, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpTalkLevel2, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");
        DataBindHelper.BindDDL(ref drpTalkLevel3, this.cmbLevels, "LevelName", "LevelID", "", "Lütfen Seçiniz", "-1");

        DataBindHelper.LoadNumberDDL(ref drpEducationLevel1ChoiceLevel1, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpEducationLevel1ChoiceLevel2, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpEducationLevel1ChoiceLevel3, -1, 1, -3);

        DataBindHelper.LoadNumberDDL(ref drpWorkExperianceChoiceLevel1, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpWorkExperianceChoiceLevel2, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpWorkExperianceChoiceLevel3, -1, 1, -3);

        DataBindHelper.LoadNumberDDL(ref drpForeignLanguageChoiceLevel1, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpForeignLanguageChoiceLevel2, -1, 1, -3);
        DataBindHelper.LoadNumberDDL(ref drpForeignLanguageChoiceLevel3, -1, 1, -3);

        drpEducationLevel1ChoiceLevel1.Items.Insert(0, new ListItem("...", "0"));
        drpEducationLevel1ChoiceLevel2.Items.Insert(0, new ListItem("...", "0"));
        drpEducationLevel1ChoiceLevel3.Items.Insert(0, new ListItem("...", "0"));

        drpWorkExperianceChoiceLevel1.Items.Insert(0, new ListItem("...", "0"));
        drpWorkExperianceChoiceLevel2.Items.Insert(0, new ListItem("...", "0"));
        drpWorkExperianceChoiceLevel3.Items.Insert(0, new ListItem("...", "0"));

        drpForeignLanguageChoiceLevel1.Items.Insert(0, new ListItem("...", "0"));
        drpForeignLanguageChoiceLevel2.Items.Insert(0, new ListItem("...", "0"));
        drpForeignLanguageChoiceLevel3.Items.Insert(0, new ListItem("...", "0"));
    }
Beispiel #6
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.UserCVs objUserEmployment = new PIKCV.BUS.UserCVs();
        DataTable         dtUserEmployment  = objUserEmployment.GetUserEmployment(this.smUserID, (int)this.smLanguageID);

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

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

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

        ddlTotalWorkExperience.SelectedValue = dtUserCV.Rows[0]["TotalWorkExperience"].ToString();
        ImgBtnContinue.Visible = !(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]) > (int)PIKCV.COM.EnumDB.CVFocusCode.References);
    }
Beispiel #7
0
    public void DataBind(DataTable dtInfo, DataTable dtData, string LinkList)
    {
        if (dtData.Rows.Count > 0)
        {
            int ColumnCount = dtInfo.Rows.Count;
            int RowCount    = dtData.Rows.Count;

            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["rstrt__"]))
            {
                this.m_RowStart = int.Parse(Request.QueryString["rstrt__"]);
            }

            string Sort = " ";

            if (Util.IsString(Request.QueryString["SortColumn"]))
            {
                try
                {
                    Sort = Request.QueryString["SortColumn"].ToString().Trim();
                    dtData.DefaultView.Sort = Sort;
                    dtData = dtData.DefaultView.ToTable();
                }
                catch (Exception) { }
            }

            StringBuilder sb = new StringBuilder();
            sb.Append("<table width='100%' class='dataGrid'>");

            sb.Append("<tr>");
            for (int i = 0; i < ColumnCount; i++)
            {
                sb.Append("<th class='Order' style='cursor: pointer; border-bottom: 0px none; padding-bottom: 0px;' onclick=\"window.location='Pikcv.aspx?Pik=" + LinkList + "&SortColumn=" + dtInfo.Rows[i]["ColumnName"].ToString().Replace(Sort, Sort + " DESC") + "'\"><strong>");
                sb.Append(dtInfo.Rows[i]["Title"].ToString());
                sb.Append("</strong></th>");
            }
            sb.Append("</tr>");

            sb.Append("<tr>");
            for (int i = 0; i < ColumnCount; i++)
            {
                sb.Append("<th style='padding-top: 0; border-top: 0px none;'>");
                if (Convert.ToBoolean(dtInfo.Rows[i]["IsFilter"]))
                {
                    sb.Append(GenerateDDL(dtInfo.Rows[i]["ColumnName"].ToString(), (DataTable)(this.smListFilterTypes[Convert.ToInt32(dtInfo.Rows[i]["FilterIndex"])])));
                }
                sb.Append("</th>");
            }
            sb.Append("</tr>");

            for (int i = this.m_RowStart; i < this.m_RowStart + this.m_PageSize; i++)
            {
                if (i >= RowCount)
                {
                    break;
                }
                sb.Append("<tr class='odd'>");

                for (int j = 0; j < ColumnCount; j++)
                {
                    sb.Append("<td>");
                    if (Convert.ToBoolean(dtInfo.Rows[j]["IsLink"]))
                    {
                        sb.Append("<a href=#" + dtInfo.Rows[j]["Link"].ToString() + "&" + dtInfo.Rows[j]["LinkQueryColumn"].ToString() + "=" + dtData.Rows[i][dtInfo.Rows[j]["LinkQueryColumn"].ToString()].ToString() + "><strong>");
                    }

                    sb.Append(dtData.Rows[i][dtInfo.Rows[j]["ColumnName"].ToString()].ToString());

                    if (Convert.ToBoolean(dtInfo.Rows[j]["IsLink"]))
                    {
                        sb.Append("</strong></a>");
                    }

                    sb.Append("</td>");
                }
                sb.Append("</tr>");
            }

            sb.Append("</table>");

            dvList.InnerHtml = sb.ToString();

            int ForRowCount = RowCount / m_PageSize;
            if (ForRowCount * m_PageSize != RowCount)
            {
                ForRowCount++;
            }

            lblRecordCount.Text = RowCount.ToString();

            DataBindHelper.LoadNumberDDL(ref ddlPageNumber, ForRowCount);

            foreach (ListItem li in ddlPageNumber.Items)
            {
                li.Value = ((int.Parse(li.Value) * m_PageSize) - m_PageSize).ToString();
            }

            ddlPageNumber.SelectedValue = this.m_RowStart.ToString();
            ddlPageNumber.Attributes.Add("onchange", UrlReplace("rstrt__") + "' + this.options[this.selectedIndex].value");
        }
        else
        {
            pnlList.Visible     = false;
            pnlNoRecord.Visible = true;
        }
    }
Beispiel #8
0
 public void YearDataBind(int RemoveStartYear, int RemoveEndYear)
 {
     ddlYears.Items.Clear();
     DataBindHelper.LoadNumberDDL(ref ddlYears, RemoveEndYear, 1, RemoveStartYear);
     ddlYears.Items.Insert(0, new ListItem("Yýl", "0"));
 }