public void SaveJobCountries(int JobID, int PlaceID, PIKCV.COM.EnumDB.Places PlacesTypeCode) { PIKCV.DAL.JobPlaces obj = new PIKCV.DAL.JobPlaces(); obj.AddNew(); obj.JobID = JobID; obj.PlaceID = PlaceID; obj.PlaceTypeCode = (int)PlacesTypeCode; obj.Save(); }
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); } }
public DataTable GetJobPlaceNames(int JobID, PIKCV.COM.EnumDB.Places Place) { PIKCV.DAL.JobPlaces obj = new PIKCV.DAL.JobPlaces(); return(obj.GetJobPlaces(JobID, (int)Place, (int)PIKCV.COM.EnumDB.LanguageID.Turkish)); }