Exemple #1
0
 public void SaveJobPositions(int JobID, int PositionID)
 {
     PIKCV.DAL.JobQualityPositions obj = new PIKCV.DAL.JobQualityPositions();
     obj.AddNew();
     obj.JobID      = JobID;
     obj.PositionID = PositionID;
     obj.Save();
 }
Exemple #2
0
        public bool SaveJobSeekingQualityAll(int JobID, ArrayList arrQualitySectors, ArrayList arrPerfection, ArrayList arrPositions, string Gender, string AgeRange, string LabouringType)
        {
            try
            {
                PIKCV.DAL.Jobs obj = new PIKCV.DAL.Jobs();
                obj.LoadByPrimaryKey(JobID);
                obj.PositionIDQuality = 0;
                obj.Gender            = int.Parse(Gender);
                obj.AgeRange          = int.Parse(AgeRange);
                obj.LabouringTypeID   = int.Parse(LabouringType);
                obj.ModifyDate        = DateTime.Now;
                obj.Save();
                PIKCV.DAL.JobQualitySectors objJobQualitySectors = new PIKCV.DAL.JobQualitySectors();
                objJobQualitySectors.DeleteAllJobQualitySectors(JobID);
                PIKCV.DAL.JobPerfection objJobPerfection = new PIKCV.DAL.JobPerfection();
                objJobPerfection.DeleteAllJobPerfection(JobID);

                PIKCV.DAL.JobQualityPositions objJobQualityPositions = new PIKCV.DAL.JobQualityPositions();
                objJobQualityPositions.Where.JobID.Value = JobID;
                objJobQualityPositions.Query.Load();
                objJobQualityPositions.DeleteAll();
                objJobQualityPositions.Save();

                for (int i = 0; i < arrQualitySectors.Count; i++)
                {
                    SaveJobQualitySector(JobID, Convert.ToInt32(arrQualitySectors[i]));
                }
                for (int i = 0; i < arrPerfection.Count; i++)
                {
                    SaveJobPerfection(JobID, Convert.ToInt32(arrPerfection[i]));
                }
                for (int i = 0; i < arrPositions.Count; i++)
                {
                    SaveJobPositions(JobID, Convert.ToInt32(arrPositions[i]));
                }
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Exemple #3
0
 public DataTable GetJobQualityPositionNames(int JobID)
 {
     PIKCV.DAL.JobQualityPositions obj = new PIKCV.DAL.JobQualityPositions();
     return(obj.GetJobQualityPositions(JobID));
 }