Exemplo n.º 1
0
 public void SaveJobSectors(int JobID, int SectorID)
 {
     PIKCV.DAL.JobSectors obj = new PIKCV.DAL.JobSectors();
     obj.AddNew();
     obj.JobID    = JobID;
     obj.SectorID = SectorID;
     obj.Save();
 }
Exemplo n.º 2
0
        public int SaveJobPositionDefinition(int JobID, int NumberOfWorkers, ArrayList arrSectors, int PositionID,
                                             ArrayList Countries, ArrayList Cities, string JobDescription)
        {
            try
            {
                PIKCV.DAL.Jobs obj = new PIKCV.DAL.Jobs();
                obj.LoadByPrimaryKey(JobID);
                obj.NumberOfWorkers = NumberOfWorkers;
                obj.PositionID      = PositionID;
                obj.JobDescription  = JobDescription;
                obj.ModifyDate      = DateTime.Now;
                obj.Save();
                PIKCV.DAL.JobSectors objJobSector = new PIKCV.DAL.JobSectors();
                objJobSector.DeleteAllJobSectors(JobID);
                PIKCV.DAL.JobPlaces objJobPlace = new PIKCV.DAL.JobPlaces();
                objJobPlace.DeleteAllJobPlaces(JobID);
                for (int i = 0; i < arrSectors.Count; i++)
                {
                    SaveJobSectors(obj.JobID, Convert.ToInt32(arrSectors[i]));
                }
                for (int i = 0; i < Countries.Count; i++)
                {
                    SaveJobCountries(obj.JobID, Convert.ToInt32(Countries[i]), PIKCV.COM.EnumDB.Places.CountriesParentID);
                }
                for (int i = 0; i < Cities.Count; i++)
                {
                    SaveJobCountries(obj.JobID, Convert.ToInt32(Cities[i]), PIKCV.COM.EnumDB.Places.TurkeyPlaceID);
                }

                return(obj.JobID);
            }
            catch (Exception)
            {
                return(0);
            }
        }
Exemplo n.º 3
0
 public DataTable GetJobSectorNames(int JobID)
 {
     PIKCV.DAL.JobSectors obj = new PIKCV.DAL.JobSectors();
     return(obj.GetJobSectors(JobID));
 }