예제 #1
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();
        }
    }
예제 #2
0
    protected void btnSubmit_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.Job obj       = new PIKCV.BUS.Job();
        int           NewCredit = -1;

        if (obj.SaveApproval(this.smCompanyID, this.smJobID, int.Parse(rblJobBroadcastType.SelectedValue), chkisCompanySecret.Checked, ref NewCredit) > 0)
        {
            if (NewCredit != -1)
            {
                this.smPikCredi = NewCredit.ToString();
            }
            if (rblJobBroadcastType.SelectedValue == ((int)PIKCV.COM.EnumDB.JobStatus.Draft).ToString())
            {
                this.GoToFeedback(PIKCV.COM.EnumDB.ErrorTypes.SaveDraft);
            }
            else
            {
                this.GoToFeedback(PIKCV.COM.EnumDB.ErrorTypes.SaveJob);
            }
            //Response.Write("<script language='javascript'> { alert ('Ýlanýnýz Baþarýyla Kaydedilmiþtir');}</script>");
        }
        else
        {
            Response.Write("<script language='javascript'> { alert ('Ýlaný kaydederken bir hata oluþtu');}</script>");
        }
    }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         PIKCV.BUS.Job obj = new PIKCV.BUS.Job();
         DataTable     dt  = obj.GetAllJobs(PIKCV.COM.EnumDB.JobStatus.Active, PIKCV.COM.EnumDB.LanguageID.Turkish);
         CARETTA.COM.DataBindHelper.BindRepeater(ref rptJobs, dt);
     }
 }
예제 #4
0
    private void FillDetails()
    {
        PIKCV.BUS.Job obj       = new PIKCV.BUS.Job();
        DataTable     dtJobInfo = obj.GetJobInfo(this.smJobID);

        if (dtJobInfo.Rows.Count > 0)
        {
            //drpPositions.SelectedValue = dtJobInfo.Rows[0]["PositionIDQuality"].ToString();
            rblGender.SelectedValue         = dtJobInfo.Rows[0]["Gender"].ToString();
            rdAgeRange.SelectedValue        = dtJobInfo.Rows[0]["AgeRange"].ToString();
            rblLabouringTypes.SelectedValue = dtJobInfo.Rows[0]["LabouringTypeID"].ToString();
        }
    }
예제 #5
0
    protected void imgContinue_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        objJob.DeleteJobChoices(this.smJobID);
        if (drpEducationLevel1.SelectedValue != "0" && drpEducationLevel1ChoiceLevel1.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEducationLevel(this.smJobID, drpEducationLevel1.SelectedValue, drpEducationLevel1ChoiceLevel1.SelectedValue);
        }
        if (drpEducationLevel2.SelectedValue != "0" && drpEducationLevel1ChoiceLevel2.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEducationLevel(this.smJobID, drpEducationLevel2.SelectedValue, drpEducationLevel1ChoiceLevel2.SelectedValue);
        }
        if (drpEducationLevel3.SelectedValue != "0" && drpEducationLevel1ChoiceLevel3.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEducationLevel(this.smJobID, drpEducationLevel3.SelectedValue, drpEducationLevel1ChoiceLevel3.SelectedValue);
        }
        if (drpForeignLanguage1.SelectedValue != "0" && drpWorkExperianceChoiceLevel1.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEmployment(this.smJobID, drpPositions1.SelectedValue, drpWorkExperianceChoiceLevel1.SelectedValue);
        }
        if (drpForeignLanguage2.SelectedValue != "0" && drpWorkExperianceChoiceLevel2.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEmployment(this.smJobID, drpPositions2.SelectedValue, drpWorkExperianceChoiceLevel2.SelectedValue);
        }
        if (drpForeignLanguage3.SelectedValue != "0" && drpWorkExperianceChoiceLevel3.SelectedValue != "0")
        {
            objJob.SaveJobChoiceEmployment(this.smJobID, drpPositions3.SelectedValue, drpWorkExperianceChoiceLevel3.SelectedValue);
        }
        if (drpForeignLanguage1.SelectedValue != "0" && drpWriteLevel1.SelectedValue != "-1" && drpReadLevel1.SelectedValue != "-1" && drpTalkLevel1.SelectedValue != "-1" && drpForeignLanguageChoiceLevel1.SelectedValue != "0")
        {
            objJob.SaveJobChoiceForeignLanguages(this.smJobID, drpForeignLanguage1.SelectedValue, drpReadLevel1.SelectedValue, drpWriteLevel1.SelectedValue, drpTalkLevel1.SelectedValue, drpForeignLanguageChoiceLevel1.SelectedValue);
        }
        if (drpForeignLanguage2.SelectedValue != "0" && drpWriteLevel2.SelectedValue != "-1" && drpReadLevel2.SelectedValue != "-1" && drpTalkLevel2.SelectedValue != "-1" && drpForeignLanguageChoiceLevel2.SelectedValue != "0")
        {
            objJob.SaveJobChoiceForeignLanguages(this.smJobID, drpForeignLanguage2.SelectedValue, drpReadLevel2.SelectedValue, drpWriteLevel2.SelectedValue, drpTalkLevel2.SelectedValue, drpForeignLanguageChoiceLevel2.SelectedValue);
        }
        if (drpForeignLanguage3.SelectedValue != "0" && drpWriteLevel3.SelectedValue != "-1" && drpReadLevel3.SelectedValue != "-1" && drpTalkLevel3.SelectedValue != "-1" && drpForeignLanguageChoiceLevel3.SelectedValue != "0")
        {
            objJob.SaveJobChoiceForeignLanguages(this.smJobID, drpForeignLanguage3.SelectedValue, drpReadLevel3.SelectedValue, drpWriteLevel3.SelectedValue, drpTalkLevel3.SelectedValue, drpForeignLanguageChoiceLevel3.SelectedValue);
        }

        if (this.smJobSaveType == PIKCV.COM.Enumerations.JobSaveType.NewJobEntry)
        {
            this.smJobFocus = PIKCV.COM.EnumDB.JobsFocusCode.Approval;
            this.Redirect("Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.Approval).ToString());
        }
        else
        {
            Response.Write("<script>alert('Yapmýþ olduðunuz deðiþiklikler kaydedilmiþtir');window.location.href('pikcv.aspx?pik=Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.PreferencePriority).ToString() + "');</script>");
        }
    }
예제 #6
0
    protected void imgContinue_Click(object sender, ImageClickEventArgs e)
    {
        int       SavedJobID           = 0;
        ArrayList arrSelectedSectors   = new ArrayList();
        ArrayList arrSelectedCountries = new ArrayList();
        ArrayList arrSelectedCities    = new ArrayList();

        if (Request.Form[lbSelectedSectors.UniqueID] != null)
        {
            arrSelectedSectors.AddRange(Request.Form[lbSelectedSectors.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedCountry.UniqueID] != null)
        {
            arrSelectedCountries.AddRange(Request.Form[lbSelectedCountry.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedCity.UniqueID] != null)
        {
            arrSelectedCities.AddRange(Request.Form[lbSelectedCity.UniqueID].Split(','));
        }
        PIKCV.BUS.Job objJob          = new PIKCV.BUS.Job();
        int           NumberOfWorkers = 0;

        if (txtNumberOfWorkers.Text != "")
        {
            NumberOfWorkers = Convert.ToInt32(txtNumberOfWorkers.Text);
        }
        //NumberOfWorkers = int.Parse(drpNumberOfWorkers.SelectedValue);
        SavedJobID = objJob.SaveJobPositionDefinition(this.smJobID, NumberOfWorkers,
                                                      arrSelectedSectors, Convert.ToInt32(drpPositions.SelectedValue), arrSelectedCountries, arrSelectedCities, txtJobDescription.Text);
        if (SavedJobID != 0)
        {
            pnlError.Visible = false;
            if (this.smJobSaveType == PIKCV.COM.Enumerations.JobSaveType.NewJobEntry)
            {
                this.smJobFocus = PIKCV.COM.EnumDB.JobsFocusCode.EducationLevel;
                this.Redirect("Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.EducationLevel).ToString());
            }
            else
            {
                Response.Write("<script>alert('Yapmýþ olduðunuz deðiþiklikler kaydedilmiþtir');window.location.href('pikcv.aspx?pik=Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.PositionDefinition).ToString() + "');</script>");
            }
        }
        else
        {
            pnlError.Visible = true;
            ltlError.Text    = "Kayýt sýrasýnda bir hata oluþtu lütfen tekrar deneyin";
        }
    }
예제 #7
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", "");
    }
예제 #8
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", "");
    }
예제 #9
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", "");
    }
예제 #10
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", "");
    }
예제 #11
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", "");
    }
예제 #12
0
    protected void imgContinue_Click(object sender, ImageClickEventArgs e)
    {
        ArrayList arrSelectedEducationLevels    = new ArrayList();
        ArrayList arrSelectedForeignLanguages   = new ArrayList();
        ArrayList arrSelectedComputerKnowledges = new ArrayList();

        if (Request.Form[lbSelectedEducationLevel.UniqueID] != null)
        {
            arrSelectedEducationLevels.AddRange(Request.Form[lbSelectedEducationLevel.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedForeignLanguages.UniqueID] != null)
        {
            arrSelectedForeignLanguages.AddRange(Request.Form[lbSelectedForeignLanguages.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedComputerKnowledge.UniqueID] != null)
        {
            arrSelectedComputerKnowledges.AddRange(Request.Form[lbSelectedComputerKnowledge.UniqueID].Split(','));
        }
        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        if (objJob.SaveJobEducationLevelsAll(this.smJobID, arrSelectedEducationLevels, arrSelectedForeignLanguages, arrSelectedComputerKnowledges) == true)
        {
            pnlError.Visible = false;

            if (this.smJobSaveType == PIKCV.COM.Enumerations.JobSaveType.NewJobEntry)
            {
                this.smJobFocus = PIKCV.COM.EnumDB.JobsFocusCode.SeekingQuality;
                this.Redirect("Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.SeekingQuality).ToString());
            }
            else
            {
                Response.Write("<script>alert('Yapmýþ olduðunuz deðiþiklikler kaydedilmiþtir');window.location.href('pikcv.aspx?pik=Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.EducationLevel).ToString() + "');</script>");
            }
        }
        else
        {
            pnlError.Visible = true;
            ltlError.Text    = "Kayýt sýrasýnda bir hata oluþtu lütfen tekrar deneyin";
        }
    }
예제 #13
0
    protected void imgContinue_Click(object sender, ImageClickEventArgs e)
    {
        ArrayList arrSelectedSectors    = new ArrayList();
        ArrayList arrSelectedPerfection = new ArrayList();
        ArrayList arrSelectedPositions  = new ArrayList();

        if (Request.Form[lbSelectedSectors.UniqueID] != null)
        {
            arrSelectedSectors.AddRange(Request.Form[lbSelectedSectors.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedPerfection.UniqueID] != null)
        {
            arrSelectedPerfection.AddRange(Request.Form[lbSelectedPerfection.UniqueID].Split(','));
        }
        if (Request.Form[lbSelectedPositions.UniqueID] != null)
        {
            arrSelectedPositions.AddRange(Request.Form[lbSelectedPositions.UniqueID].Split(','));
        }
        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        if (objJob.SaveJobSeekingQualityAll(this.smJobID, arrSelectedSectors, arrSelectedPerfection, arrSelectedPositions, rblGender.SelectedValue, rdAgeRange.SelectedValue, rblLabouringTypes.SelectedValue))
        {
            pnlError.Visible = false;
            if (this.smJobSaveType == PIKCV.COM.Enumerations.JobSaveType.NewJobEntry)
            {
                this.smJobFocus = PIKCV.COM.EnumDB.JobsFocusCode.PreferencePriority;
                this.Redirect("Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.PreferencePriority).ToString());
            }
            else
            {
                Response.Write("<script>alert('Yapmýþ olduðunuz deðiþiklikler kaydedilmiþtir');window.location.href('pikcv.aspx?pik=Company-Jobs-Jobs&JobFocus=" + ((int)PIKCV.COM.EnumDB.JobsFocusCode.SeekingQuality).ToString() + "');</script>");
            }
        }
        else
        {
            pnlError.Visible = true;
            ltlError.Text    = "Kayýt sýrasýnda bir hata oluþtu lütfen tekrar deneyin";
        }
    }
예제 #14
0
    public void DataBind(PIKCV.COM.Enumerations.ListTypes ListType)
    {
        DataTable dt = new DataTable();
        DataTable dtInfo;

        switch (ListType)
        {
        case PIKCV.COM.Enumerations.ListTypes.Message:
            string JobID = "%";
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                JobID = Request.QueryString["JobID"].ToString();
            }

            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "", "ReadResult", false, -1);
            AddDataInfo(ref dtInfo, "Konu", "MessageTitle", false, -1, true, "Employee-Messages-MessageDetail", "MessageID");
            AddDataInfo(ref dtInfo, "Gönderen", "CompanyName", true, 0);
            AddDataInfo(ref dtInfo, "Tarih", "CreateDate", false, -1);
            AddDataInfo(ref dtInfo, "", "Delete", false, -1);


            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.Messages.GetAllMessages(this.smUserID, false, PIKCV.COM.EnumDB.MemberTypes.Employee, this.HtQuery["CompanyName"].ToString(), JobID);


            dt.Columns.Add("ReadResult");
            dt.Columns.Add("Delete");

            foreach (DataRow dr in dt.Rows)
            {
                dr["Delete"] = "<a href=\"" + this.OpenConfirm(PIKCV.COM.EnumDB.ErrorTypes.cDeleteMessage, Convert.ToInt32(dr["MessageID"])) + "\">Sil<a>";
                if (Convert.ToBoolean(dr["IsRead"]))
                {
                    dr["ReadResult"] = "<img src='images/misc/read.jpg' />";
                }
                else
                {
                    dr["ReadResult"] = "<img src='images/misc/unread.jpg' />";
                }
            }

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "CompanyID", "CompanyName");

            DataBind(dtInfo, dt, "Employee-Messages-Messages");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoMessage);

            break;

        case PIKCV.COM.Enumerations.ListTypes.UserJobApplicants:
            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "Baþvuru Tarihi", "ApplicationDate", false, -1);
            AddDataInfo(ref dtInfo, "Firma", "CompanyName", true, 0);
            AddDataInfo(ref dtInfo, "Pozisyon", "PositionName", true, 1, true, "Employee-Jobs-JobDetail", "JobID");
            AddDataInfo(ref dtInfo, "Durum", "JobApplicationStatusName", true, 2);
            AddDataInfo(ref dtInfo, "Mesaj", "MessageCount", false, -1, true, "Employee-Messages-Messages", "JobID");
            AddDataInfo(ref dtInfo, "Baþvuru Ýptal", "CancelApplicant", false, -1);

            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.JobApplicants.GetUserJobApplicants(this.smUserID, this.smLanguageID, this.HtQuery["CompanyName"].ToString(), this.HtQuery["PositionName"].ToString(), this.HtQuery["JobApplicationStatusName"].ToString());

            dt.Columns.Add("CancelApplicant");

            foreach (DataRow dr in dt.Rows)
            {
                if ((PIKCV.COM.EnumDB.JobApplicationStates)dr["ApplicationStatusID"] == PIKCV.COM.EnumDB.JobApplicationStates.RecievedBack)
                {
                    dr["CancelApplicant"] = "";
                }
                else
                {
                    dr["CancelApplicant"] = "<a href=\"" + this.OpenConfirm(PIKCV.COM.EnumDB.ErrorTypes.cCancelApplicant, Convert.ToInt32(dr["JobApplicantID"]), "") + "\">Baþvuru Ýptal<a>";
                }
            }

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "CompanyID", "CompanyName");
            AddListFilterTypes(dt, "PositionID", "PositionName");
            AddListFilterTypes(dt, "ApplicationStatusID", "JobApplicationStatusName");

            DataBind(dtInfo, dt, "Employee-JobApplicants-JobApplicants");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoApplicant);

            break;

        case PIKCV.COM.Enumerations.ListTypes.CompanyMessages:

            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "Konu", "MessageTitle", false, -1, true, "Company-Messages-MessageDetail", "MessageID");
            AddDataInfo(ref dtInfo, "Tarih", "CreateDate", false, -1);

            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.Messages.GetCompanyMessages(this.smCompanyID, false, PIKCV.COM.EnumDB.MemberTypes.Company);

            FilterCount(dtInfo);

            DataBind(dtInfo, dt, "Company-Messages-Messages");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoMessage);

            break;

        case PIKCV.COM.Enumerations.ListTypes.CompanySentMessages:

            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "", "ReadResult", false, -1);
            AddDataInfo(ref dtInfo, "Konu", "MessageTitle", false, -1, true, "Company-Messages-SendMessageDetail", "MessageID");
            AddDataInfo(ref dtInfo, "Gönderilen", "FullName", true, 0, true, "Company-Messages-SentMessages", "UserID");
            AddDataInfo(ref dtInfo, "Tarih", "CreateDate", false, -1);

            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.Messages.GetCompanySentMessages(this.smCompanyID, false, this.HtQuery["FullName"].ToString());

            dt.Columns.Add("ReadResult");

            foreach (DataRow dr in dt.Rows)
            {
                if (Convert.ToBoolean(dr["IsRead"]))
                {
                    dr["ReadResult"] = "";
                }
                else
                {
                    dr["ReadResult"] = "<img src='images/misc/unread.jpg' />";
                }
            }

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "UserID", "FullName");

            DataBind(dtInfo, dt, "Company-Messages-SentMessages");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoMessage);

            break;

        case PIKCV.COM.Enumerations.ListTypes.EnteredJobs:

            int m_Status = 1;
            PIKCV.COM.EnumDB.JobStatus JobStatus = PIKCV.COM.EnumDB.JobStatus.Active;
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobStatus"]))
            {
                m_Status  = Convert.ToInt32(Request.QueryString["JobStatus"]);
                JobStatus = (PIKCV.COM.EnumDB.JobStatus)m_Status;
            }

            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "Referans Numarasý", "ReferenceNumber", false, -1);
            AddDataInfo(ref dtInfo, "Pozisyon", "PositionName", true, 0);
            AddDataInfo(ref dtInfo, "Baþvuru", "ApplicantCount", false, -1, true, "Company-Jobs-JobApplicants", "JobID");
            AddDataInfo(ref dtInfo, "Bitiþ Tarihi", "EndDate", false, -1);
            AddDataInfo(ref dtInfo, "Ýstatistik", "Statistics", false, -1);

            switch (JobStatus)
            {
            case PIKCV.COM.EnumDB.JobStatus.Active:
                AddDataInfo(ref dtInfo, "Durum", "Update", false, -1, true, "Company-Jobs-Jobs&JobFocus=2&JobSaveType=" + ((int)PIKCV.COM.Enumerations.JobSaveType.Update).ToString(), "JobID");
                AddDataInfo(ref dtInfo, "", "Archive", false, -1, true, "Company-Jobs-PublicJobs&JobStatus=4", "JobID");
                break;

            case PIKCV.COM.EnumDB.JobStatus.Draft:
                AddDataInfo(ref dtInfo, "Durum", "Update", false, -1, true, "Company-Jobs-Jobs&JobFocus=2&JobSaveType=" + ((int)PIKCV.COM.Enumerations.JobSaveType.ArchiveOrDraft).ToString(), "JobID");
                AddDataInfo(ref dtInfo, "", "Archive", false, -1, true, "Company-Jobs-PublicJobs&JobStatus=1", "JobID");
                break;

            case PIKCV.COM.EnumDB.JobStatus.Archive:
                AddDataInfo(ref dtInfo, "Durum", "Update", false, -1, true, "Company-Jobs-Jobs&JobFocus=2&JobSaveType=" + ((int)PIKCV.COM.Enumerations.JobSaveType.ArchiveOrDraft).ToString(), "JobID");
                AddDataInfo(ref dtInfo, "", "Archive", false, -1, true, "Company-Jobs-PublicJobs&JobStatus=1", "JobID");
                break;
            }

            AddDataInfo(ref dtInfo, "", "Delete", false, -1);


            //AddDataInfo(ref dtInfo, "", "Delete", false, -1, true, "Company-Jobs-PublicJobs&JobStatus=" + ((int)PIKCV.COM.EnumDB.JobStatus.Draft).ToString(), "JobID");

            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.Job.GetCompanyJobsAll(this.smCompanyID, JobStatus, this.smLanguageID, this.HtQuery["PositionName"].ToString());

            dt.Columns.Add("Update");
            dt.Columns.Add("Archive");
            dt.Columns.Add("Delete");
            dt.Columns.Add("Statistics");

            foreach (DataRow dr in dt.Rows)
            {
                switch (JobStatus)
                {
                case PIKCV.COM.EnumDB.JobStatus.Active:
                    dr["Update"]  = "Güncelle";
                    dr["Archive"] = "Arþivle";
                    dr["Delete"]  = "";
                    break;

                case PIKCV.COM.EnumDB.JobStatus.Draft:
                    dr["Update"]  = "Güncelle";
                    dr["Archive"] = "Yayýnla";

                    //"<span onclick='DraftDeleteCtrl(3, 3)'>Delete</span>";


                    string Delete = "<u><b><span onclick='DraftDeleteCtrl(" +
                                    ((int)PIKCV.COM.EnumDB.JobStatus.Draft).ToString() +
                                    ", " + dr["JobID"].ToString() +
                                    ")'>Sil</span><b></u>";
                    dr["Delete"] = Delete;
                    break;

                case PIKCV.COM.EnumDB.JobStatus.Archive:
                    dr["Update"]  = "";
                    dr["Delete"]  = "";
                    dr["Archive"] = "Yayýnla";
                    break;
                }

                string StatisticImage = "<img onclick='OpenJobStatistics(";
                StatisticImage = StatisticImage + dr["JobID"].ToString() + ")'";
                StatisticImage = StatisticImage + "style='cursor: pointer;' src='images/misc/statistic.png' width='16' height='14' />";

                dr["Statistics"] = StatisticImage;

                string PositionName = "<strong><a href='javascript:;' onclick='OpenJobPreview(" + dr["JobID"].ToString() + ")'>" + dr["PositionName"].ToString() + "</a></strong>";
                dr["PositionName"] = PositionName;
            }

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "PositionID", "PositionName");

            DataBind(dtInfo, dt, "Company-Jobs-PublicJobs");

            string NoRecordMsg = String.Empty;
            switch (JobStatus)
            {
            case PIKCV.COM.EnumDB.JobStatus.Active:
                lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoJob);
                break;

            case PIKCV.COM.EnumDB.JobStatus.Draft:
                lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoDraftJob);
                break;

            case PIKCV.COM.EnumDB.JobStatus.Archive:
                lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoArchiveJob);
                break;
            }

            break;

        case PIKCV.COM.Enumerations.ListTypes.JobSearchResults:
            JobSearchQuery JobSearchQueries = this.smJobSearchQueries;

            dtInfo = new DataTable();
            AddDataInfo(ref dtInfo, "Pozisyon", "PositionName_JobTitle", true, 0, true, "Employee-Jobs-JobDetail", "JobID");
            AddDataInfo(ref dtInfo, "Ref NO", "ReferenceNumber", false, -1);
            AddDataInfo(ref dtInfo, "Firma", "CompanyName", true, 1);
            AddDataInfo(ref dtInfo, "Son Baþvuru", "EndDate", false, -1);
            AddDataInfo(ref dtInfo, "Tarih", "ModifyDate", false, -1);
            AddDataInfo(ref dtInfo, "Baþvuru", "IsApply", true, 2);

            string Keyword                     = JobSearchQueries.Keyword;
            string Positions                   = XMLHelper.BuildXmlString("Positions", "PositionID", JobSearchQueries.Positions);
            string Sectors                     = (JobSearchQueries.Sectors.Count > 0) ? XMLHelper.BuildXmlString("Sectors", "SectorID", JobSearchQueries.Sectors) : String.Empty;
            string Cities                      = (JobSearchQueries.Cities.Count > 0) ? XMLHelper.BuildXmlString("Cities", "PlaceID", JobSearchQueries.Cities) : String.Empty;
            string Companies                   = (JobSearchQueries.Companies.Count > 0) ? XMLHelper.BuildXmlString("Copmanies", "CompanyID", JobSearchQueries.Companies) : String.Empty;
            string EducationLevels             = (JobSearchQueries.EducationLevels.Count > 0) ? XMLHelper.BuildXmlString("EducationLevels", "EducationLevelID", JobSearchQueries.EducationLevels) : String.Empty;
            PIKCV.COM.EnumDB.AgeRange AgeRange = JobSearchQueries.AgeRange;
            string   LabouringTypes            = (JobSearchQueries.LabouringTypes.Count > 0) ? XMLHelper.BuildXmlString("LabouringTypes", "LabouringTypeID", JobSearchQueries.LabouringTypes) : String.Empty;
            DateTime JobDate                   = (JobSearchQueries.JobDate != -1) ?  DateTime.Now.AddDays(JobSearchQueries.JobDate) : DateTime.MinValue;
            bool     CustomJobs                = JobSearchQueries.CustomJobs;

            InitializeHtQuery(dtInfo);

            int PositionID = (this.HtQuery["PositionName_JobTitle"].ToString() == "%") ? -1 : Convert.ToInt32(this.HtQuery["PositionName_JobTitle"]);
            int CompanyID  = (this.HtQuery["CompanyName"].ToString() == "%") ? -1 : Convert.ToInt32(this.HtQuery["CompanyName"]);
            int Status     = (this.HtQuery["IsApply"].ToString() == "%") ? -1 : Convert.ToInt32(this.HtQuery["IsApply"]);

            PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
            dt = objJob.GetJobs(this.smUserID, Keyword, Sectors, Cities, Positions, PIKCV.COM.EnumDB.JobStatus.Active, Companies, EducationLevels,
                                LabouringTypes, AgeRange, JobDate, CustomJobs, PositionID, CompanyID, Status);

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "PositionID", "PositionName_JobTitle");
            AddListFilterTypes(dt, "CompanyID", "CompanyName");
            AddListFilterTypes(dt, "Status", "IsApply");

            DataBind(dtInfo, dt, "Employee-Jobs-Jobs");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoJobSearch);

            break;

        case PIKCV.COM.Enumerations.ListTypes.CompanyJobApplicants:
            int ApplicantJobID = 0;
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                ApplicantJobID = Convert.ToInt32(Request.QueryString["JobID"]);
            }

            dtInfo = new DataTable();
            //AddDataInfo(ref dtInfo, "Kiþi", "FullName", false, -1, true, "Company-Jobs-JobApplicants", "UserID");
            AddDataInfo(ref dtInfo, "Kiþi", "FullName", false, -1);
            AddDataInfo(ref dtInfo, "Baþvuru Tarihi", "ApplicationDate", false, -1);
            AddDataInfo(ref dtInfo, "Puan", "Rate", false, -1);
            AddDataInfo(ref dtInfo, "Durum", "JobApplicationStatusName", true, 0);
            AddDataInfo(ref dtInfo, "", "Unsuitability", false, -1);


            InitializeHtQuery(dtInfo);
            dt = PIKCV.BUS.JobApplicants.GetCompanyJobApplicants(ApplicantJobID, this.smLanguageID, this.HtQuery["JobApplicationStatusName"].ToString());
            dt.Columns.Add("Unsuitability");

            foreach (DataRow dr in dt.Rows)
            {
                dr["FullName"] = "<a href='Pikcv.aspx?Pik=Company-Jobs-JobApplicants&UserID=" + dr["UserID"].ToString() + "&JobApplicantID=" + dr["JobApplicantID"].ToString() + "'>" + dr["FullName"].ToString() + "</a>";
                if (!(Convert.ToInt32(dr["JobApplicationStatusID"]) == (int)PIKCV.COM.EnumDB.JobApplicationStates.Unsuitability))
                {
                    dr["Unsuitability"] = dr["Unsuitability"] = "<a href=\"" + this.OpenConfirm(PIKCV.COM.EnumDB.ErrorTypes.cJobApplicantUnsuitabilitySet, Convert.ToInt32(dr["JobApplicantID"])) + "\">Reddet<a>";
                }
            }

            FilterCount(dtInfo);

            AddListFilterTypes(dt, "JobApplicationStatusID", "JobApplicationStatusName");

            DataBind(dtInfo, dt, "Company-Jobs-JobApplicants");

            lblNoRecord.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoApplicant);

            break;
        }
    }
예제 #15
0
    private void FillData()
    {
        this.dtJob = PIKCV.BUS.Job.GetJobDetail(this.JobID);
        if (dtJob.Rows.Count < 1)
        {
            this.GoToDefaultPage();
        }

        PIKCV.BUS.Company objCompany = new PIKCV.BUS.Company();
        DataTable         dtCompany  = objCompany.GetCompanyInfo(Convert.ToInt32(this.dtJob.Rows[0]["CompanyID"]));

        ltlCompanyName.Text = dtCompany.Rows[0]["CompanyName"].ToString();

        string PositionName = dtJob.Rows[0]["PositionName"].ToString();

        this.PositonType = (PIKCV.COM.EnumDB.EmployeeTypes)Convert.ToInt32(DataTableHelper.Filter(this.cmbPositions, "PositionID", dtJob.Rows[0]["PositionID"].ToString()).Rows[0]["PositionTypeCode"]);

        ltlPositionName.Text = PositionName;
        ltlRefNo.Text        = dtJob.Rows[0]["ReferenceNumber"].ToString();

        if (dtJob.Rows[0]["PhotoFileName"].ToString().Trim() == String.Empty)
        {
            imgLogo.Visible = false;
        }
        else
        {
            imgLogo.ImageUrl = "~/" + this.Config(PIKCV.COM.EnumUtil.Config.CompanyImagePath) + dtJob.Rows[0]["PhotoFileName"].ToString();
        }

        ltlJobTitle.Text = dtJob.Rows[0]["JobTitle"].ToString();

        ltlNumberOfWorkers.Text = dtJob.Rows[0]["NumberOfWorkers"].ToString();
        ltlStartDate.Text       = Convert.ToDateTime(dtJob.Rows[0]["StartDate"]).ToShortDateString();
        ltlEndDate.Text         = Convert.ToDateTime(dtJob.Rows[0]["EndDate"]).ToShortDateString();

        PIKCV.BUS.Job objJob = new PIKCV.BUS.Job();
        DataBindHelper.BindRepeater(ref rptJobSectors, objJob.GetJobSectorNames(this.JobID));

        DataBindHelper.BindRepeater(ref rptJobPlaces, objJob.GetJobPlaceNames(this.JobID, PIKCV.COM.EnumDB.Places.TurkeyPlaceID));
        DataBindHelper.BindRepeater(ref rptJobCountries, objJob.GetJobPlaceNames(this.JobID, PIKCV.COM.EnumDB.Places.CountriesParentID));

        ltlJobDescription.Text = Util.Nl2Br(dtJob.Rows[0]["JobDescription"].ToString());
        DataBindHelper.BindRepeater(ref rptEducationLevels, objJob.GetJobEducationLevels(this.JobID, PIKCV.COM.EnumDB.LanguageID.Turkish));
        DataBindHelper.BindRepeater(ref rptJobQualitySectors, objJob.GetJobQualitySectorNames(this.JobID));

        DataBindHelper.BindRepeater(ref rptJobQualityPositions, objJob.GetJobQualityPositionNames(this.JobID));

        DataBindHelper.BindRepeater(ref rptPerfections, objJob.GetJobPerfection(this.JobID));
        ltlJobLabouringTypeName.Text = DataTableHelper.Filter(this.cmbLabouringTypes, "LabouringTypeID", dtJob.Rows[0]["LabouringTypeID"].ToString()).Rows[0]["LabouringTypeName"].ToString();

        ltlDisabled.Visible       = Convert.ToBoolean(dtJob.Rows[0]["IsDisabled"]);
        ltlOldConvicted.Visible   = Convert.ToBoolean(dtJob.Rows[0]["IsOldConvicted"]);
        ltlMartyrRelative.Visible = Convert.ToBoolean(dtJob.Rows[0]["IsMartyrRelative"]);
        ltlTerrorWronged.Visible  = Convert.ToBoolean(dtJob.Rows[0]["IsTerrorWronged"]);

        dvJobProperties.Visible = ((ltlMartyrRelative.Visible) || (ltlDisabled.Visible) || (ltlOldConvicted.Visible) || (ltlTerrorWronged.Visible));

        PIKCV.COM.EnumDB.SexCode JobSexCode = (PIKCV.COM.EnumDB.SexCode)Convert.ToInt32(dtJob.Rows[0]["Gender"]);
        switch (JobSexCode)
        {
        case PIKCV.COM.EnumDB.SexCode.Male:
            ltlSex.Text = "Erkek";
            break;

        case PIKCV.COM.EnumDB.SexCode.Female:
            ltlSex.Text = "Kadýn";
            break;

        case PIKCV.COM.EnumDB.SexCode.Both:
            ltlSex.Text = "Erkek - Kadýn";
            break;
        }

        PIKCV.COM.EnumDB.AgeRange Age = (PIKCV.COM.EnumDB.AgeRange)Convert.ToInt32(dtJob.Rows[0]["AgeRange"]);
        switch (Age)
        {
        case PIKCV.COM.EnumDB.AgeRange.age_18_24:
            ltlAgeRange.Text = "18-24";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_25_29:
            ltlAgeRange.Text = "25-29";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_30_34:
            ltlAgeRange.Text = "30-34";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_35_39:
            ltlAgeRange.Text = "35-39";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_40_44:
            ltlAgeRange.Text = "40-44";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_45_55:
            ltlAgeRange.Text = "45-55";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_56over:
            ltlAgeRange.Text = "56+";
            break;

        case PIKCV.COM.EnumDB.AgeRange.age_All:
            ltlAgeRange.Text = "Farketmez";
            break;
        }

        DataBindHelper.BindRepeater(ref rptForeignLanguages, objJob.GetJobForeignLanguages(this.JobID, PIKCV.COM.EnumDB.LanguageID.Turkish));
        DataBindHelper.BindRepeater(ref rptComputerKnowledges, objJob.GetJobComputerKnowledge(this.JobID, PIKCV.COM.EnumDB.LanguageID.Turkish));

        if (PIKCV.BUS.JobApplicants.ApplicantCtrl(this.smUserID, this.JobID))
        {
            ImgBtnApply.Visible        = false;
            ltlNoButtonMessage.Visible = true;
            ltlNoButtonMessage.Text    = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.ApplicantCtrl);
        }

        if (!this.smIsLogin)
        {
            ImgBtnApply.Visible           = false;
            pnlApplicantCtrlLogin.Visible = true;
            //ltlNoButtonMessage.Text = PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.ApplicantCtrLogin);
        }

        if (ImgBtnApply.Visible)
        {
            //if (!this.smIsLogin) { ImgBtnApply.Visible = false; ImgBtnApply.OnClientClick = "alert('Ýlanlara baþvurmak için üye olmanýz gereklidir.'); window.location.href='Pikcv.aspx?Pik=Employee-Membership-UserInfo';window.location.href('" + this.PageReferer + "');"; }
            //else if (!this.smIsCvActive) ImgBtnApply.OnClientClick = "alert('Ýlana baþvurabilmek için özgeçminizin aktif olmasý gerekmektedir'); return false;";
            if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company)
            {
                ImgBtnApply.Visible = false;
            }
            else if (this.PositonType != this.smEmployeeType)
            {
                ImgBtnApply.Visible = false;
            }
            else if (!this.smIsCvConfirmed)
            {
                ImgBtnApply.Visible = false; ImgBtnApply.OnClientClick = "alert('Üyeliðiniz onay için beklemektedir, onay sonrasýnda ilanlara baþvuru yapabileceksiniz, üyelik onayýnýz e-posta adresinize iletilecektir'); return false;";
            }
            else
            {
                ImgBtnApply.CommandArgument = this.JobID.ToString();
            }
        }

        if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company)
        {
            liSendFriend.Visible = false;
        }
        else
        {
            hlSendFriend.NavigateUrl = "javascript:SendFriend(" + ((int)PIKCV.COM.EnumDB.SendFriendType.Job).ToString() + ", " + this.JobID.ToString() + ")";
        }
    }
예제 #16
0
    private void FillDetails()
    {
        PIKCV.BUS.Job obj = new PIKCV.BUS.Job();
        DataTable     dt  = obj.GetJobChoiceEducationLevel(this.smJobID);

        if (dt.Rows.Count > 0)
        {
            drpEducationLevel1.SelectedValue             = dt.Rows[0]["EducationLevelID"].ToString();
            drpEducationLevel1ChoiceLevel1.SelectedValue = dt.Rows[0]["Points"].ToString();
            if (dt.Rows.Count > 1)
            {
                drpEducationLevel2.SelectedValue             = dt.Rows[1]["EducationLevelID"].ToString();
                drpEducationLevel1ChoiceLevel2.SelectedValue = dt.Rows[1]["Points"].ToString();
                if (dt.Rows.Count > 2)
                {
                    drpEducationLevel3.SelectedValue             = dt.Rows[2]["EducationLevelID"].ToString();
                    drpEducationLevel1ChoiceLevel3.SelectedValue = dt.Rows[2]["Points"].ToString();
                }
            }
        }
        dt = obj.GetJobChoiceEmployment(this.smJobID);
        if (dt.Rows.Count > 0)
        {
            drpPositions1.SelectedValue = dt.Rows[0]["PositionID"].ToString();
            drpWorkExperianceChoiceLevel1.SelectedValue = dt.Rows[0]["Points"].ToString();
            if (dt.Rows.Count > 1)
            {
                drpPositions2.SelectedValue = dt.Rows[1]["PositionID"].ToString();
                drpWorkExperianceChoiceLevel2.SelectedValue = dt.Rows[1]["Points"].ToString();
                if (dt.Rows.Count > 2)
                {
                    drpPositions3.SelectedValue = dt.Rows[2]["PositionID"].ToString();
                    drpWorkExperianceChoiceLevel3.SelectedValue = dt.Rows[2]["Points"].ToString();
                }
            }
        }
        dt = obj.GetJobChoiceForeignLanguages(this.smJobID);
        if (dt.Rows.Count > 0)
        {
            drpForeignLanguage1.SelectedValue            = dt.Rows[0]["ForeignLanguageID"].ToString();
            drpReadLevel1.SelectedValue                  = dt.Rows[0]["ReadLevel"].ToString();
            drpWriteLevel1.SelectedValue                 = dt.Rows[0]["WriteLevel"].ToString();
            drpTalkLevel1.SelectedValue                  = dt.Rows[0]["SpeakLevel"].ToString();
            drpForeignLanguageChoiceLevel1.SelectedValue = dt.Rows[0]["Points"].ToString();
            if (dt.Rows.Count > 1)
            {
                drpForeignLanguage2.SelectedValue            = dt.Rows[1]["ForeignLanguageID"].ToString();
                drpReadLevel2.SelectedValue                  = dt.Rows[1]["ReadLevel"].ToString();
                drpWriteLevel2.SelectedValue                 = dt.Rows[1]["WriteLevel"].ToString();
                drpTalkLevel2.SelectedValue                  = dt.Rows[1]["SpeakLevel"].ToString();
                drpForeignLanguageChoiceLevel2.SelectedValue = dt.Rows[1]["Points"].ToString();
                if (dt.Rows.Count > 2)
                {
                    drpForeignLanguage3.SelectedValue            = dt.Rows[2]["ForeignLanguageID"].ToString();
                    drpReadLevel3.SelectedValue                  = dt.Rows[2]["ReadLevel"].ToString();
                    drpWriteLevel3.SelectedValue                 = dt.Rows[2]["WriteLevel"].ToString();
                    drpTalkLevel3.SelectedValue                  = dt.Rows[2]["SpeakLevel"].ToString();
                    drpForeignLanguageChoiceLevel3.SelectedValue = dt.Rows[2]["Points"].ToString();
                }
            }
        }
    }
예제 #17
0
파일: uJobs.ascx.cs 프로젝트: jiqsaw/pikcv
    protected void Page_Load(object sender, EventArgs e)
    {
        this.IsLogin();
        if (!IsPostBack)
        {
            hlJobType.NavigateUrl            = hlJobType.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.JobType).ToString());
            hlPositionDefinition.NavigateUrl = hlPositionDefinition.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.PositionDefinition).ToString());
            hlEducationLevel.NavigateUrl     = hlEducationLevel.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.EducationLevel).ToString());
            hlSeekingQuality.NavigateUrl     = hlSeekingQuality.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.SeekingQuality).ToString());
            hlPreferencePriority.NavigateUrl = hlPreferencePriority.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.PreferencePriority).ToString());
            hlApproval.NavigateUrl           = hlApproval.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.JobsFocusCode.Approval).ToString());

            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                int JobID = Convert.ToInt32(Request.QueryString["JobID"]);
                if (JobID == 0)
                {
                    this.smJobID       = 0;
                    this.smJobFocus    = PIKCV.COM.EnumDB.JobsFocusCode.JobType;
                    this.smJobSaveType = PIKCV.COM.Enumerations.JobSaveType.NewJobEntry;
                }
                else
                {
                    PIKCV.BUS.Job obj = new PIKCV.BUS.Job();
                    DataTable     dt  = obj.GetJobInfo(JobID);
                    if (dt.Rows.Count > 0)
                    {
                        if (Convert.ToInt32(dt.Rows[0]["CompanyID"]) == this.smCompanyID)
                        {
                            this.smJobID    = JobID;
                            this.smJobFocus = PIKCV.COM.EnumDB.JobsFocusCode.Approval;
                            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobSaveType"]))
                            {
                                int JobSaveType = Convert.ToInt32(Request.QueryString["JobSaveType"]);
                                try
                                {
                                    this.smJobSaveType = (PIKCV.COM.Enumerations.JobSaveType)JobSaveType;
                                }
                                catch (Exception)
                                {
                                    this.GoToDefaultPage();
                                }
                            }
                            else
                            {
                                this.GoToDefaultPage();
                            }
                        }
                        else
                        {
                            this.GoToDefaultPage();
                        }
                    }
                }
            }
        }
        CtrlStep();

        ltlTitleNewJob.Visible  = (this.smJobSaveType == PIKCV.COM.Enumerations.JobSaveType.NewJobEntry);
        ltlTitleEditJob.Visible = !ltlTitleNewJob.Visible;

        UJobsTabs1.TabActive(PIKCV.COM.Enumerations.JobsTabs.NewJobEntry);
    }
예제 #18
0
    private void UpdateJobStatus(PIKCV.COM.Enumerations.JobsTabs JobStatus)
    {
        switch (JobStatus)
        {
        case PIKCV.COM.Enumerations.JobsTabs.PublicJobs:
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                int           JobID = Convert.ToInt32(Request.QueryString["JobID"]);
                PIKCV.BUS.Job obj   = new PIKCV.BUS.Job();
                DataTable     dt    = obj.GetJobInfo(JobID);
                if (dt.Rows.Count > 0)
                {
                    if (Convert.ToInt32(dt.Rows[0]["CompanyID"]) == this.smCompanyID)
                    {
                        int     Credits     = 0;
                        DataRow drOrderType = PIKCV.BUS.Orders.GetOrderTypesDetails(Convert.ToInt32(dt.Rows[0]["JobListType"]));
                        if (drOrderType != null)
                        {
                            PIKCV.COM.EnumDB.EmployeeTypes EmployeeType = (PIKCV.COM.EnumDB.EmployeeTypes)(Convert.ToInt32(dt.Rows[0]["UserTypeID"]));
                            switch (EmployeeType)
                            {
                            case PIKCV.COM.EnumDB.EmployeeTypes.Pikpool:
                                CompanyCreditControl(Convert.ToInt32(drOrderType["PikPoolCredit"]));
                                Credits = Convert.ToInt32(drOrderType["PikPoolCredit"]);
                                break;

                            case PIKCV.COM.EnumDB.EmployeeTypes.Goodpik:
                                CompanyCreditControl(Convert.ToInt32(drOrderType["GoodPikCredit"]));
                                Credits = Convert.ToInt32(drOrderType["PikPoolCredit"]);
                                break;
                            }
                        }
                        DateTime JobEndDate = Convert.ToDateTime(dt.Rows[0]["EndDate"]);
                        PIKCV.COM.EnumDB.JobStatus CurrentJobStatus = (PIKCV.COM.EnumDB.JobStatus)(Convert.ToInt32(dt.Rows[0]["JobStatus"]));
                        if (obj.ChangeJobStatus(this.smCompanyID, JobID, PIKCV.COM.EnumDB.JobStatus.Active, Credits, Convert.ToInt32(dt.Rows[0]["JobListType"]), JobEndDate, CurrentJobStatus) > 0)
                        {
                            if ((CurrentJobStatus == PIKCV.COM.EnumDB.JobStatus.Draft) || (JobEndDate < DateTime.Now))
                            {
                                Credits         = int.Parse(this.smPikCredi) - Credits;
                                this.smPikCredi = Credits.ToString();
                            }
                            dvScript.InnerHtml = "<script>alert('Ýlanýnýz  þu andan itibaren yayýndadýr, yayýndaki ilanlar bölümünden takip edebilirsiniz')</script>";
                        }
                        else
                        {
                            dvScript.InnerHtml = "<script>alert('Ýlanýnýz yayýna konulurken bir hata oluþtu')</script>";
                        }
                    }
                }
            }
            break;

        case PIKCV.COM.Enumerations.JobsTabs.JobArchive:
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                int           JobID = Convert.ToInt32(Request.QueryString["JobID"]);
                PIKCV.BUS.Job obj   = new PIKCV.BUS.Job();
                DataTable     dt    = obj.GetJobInfo(JobID);
                if (dt.Rows.Count > 0)
                {
                    if (Convert.ToInt32(dt.Rows[0]["CompanyID"]) == this.smCompanyID)
                    {
                        obj.ChangeJobStatus(JobID, PIKCV.COM.EnumDB.JobStatus.Archive);
                    }
                }
            }
            break;

        case PIKCV.COM.Enumerations.JobsTabs.Draft:
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["JobID"]))
            {
                int           JobID = Convert.ToInt32(Request.QueryString["JobID"]);
                PIKCV.BUS.Job obj   = new PIKCV.BUS.Job();
                DataTable     dt    = obj.GetJobInfo(JobID);
                if (dt.Rows.Count > 0)
                {
                    if (Convert.ToInt32(dt.Rows[0]["CompanyID"]) == this.smCompanyID)
                    {
                        if (obj.ChangeJobStatus(JobID, PIKCV.COM.EnumDB.JobStatus.Deleted) > 0)
                        {
                            dvScript.InnerHtml = "<script>alert('Ýlanýnýz  silinmiþtir.')</script>";
                        }
                        else
                        {
                            dvScript.InnerHtml = "<script>alert('Ýlanýnýz  silinirken bir hata oluþtu!')</script>";
                        }
                    }
                }
            }
            break;
        }
    }