public DataTable GetJobChoiceEmployment(int JobID) { PIKCV.DAL.JobChoiceEmployment obj = new PIKCV.DAL.JobChoiceEmployment(); obj.Where.JobID.Value = JobID; obj.Query.Load(); return(obj.DefaultView.Table); }
public void SaveJobChoiceEmployment(int JobID, string PositionID, string Points) { PIKCV.DAL.JobChoiceEmployment obj = new PIKCV.DAL.JobChoiceEmployment(); obj.AddNew(); obj.JobID = JobID; obj.PositionID = int.Parse(PositionID); obj.Points = int.Parse(Points); obj.Save(); }
public bool DeleteJobChoices(int JobID) { try { PIKCV.DAL.JobChoiceEducations objEducation = new PIKCV.DAL.JobChoiceEducations(); objEducation.DeleteAllJobQualitySectors(JobID); PIKCV.DAL.JobChoiceEmployment objEmployment = new PIKCV.DAL.JobChoiceEmployment(); objEmployment.DeleteAllJobQualitySectors(JobID); PIKCV.DAL.JobChoiceForeignLanguage objForeignLanguages = new PIKCV.DAL.JobChoiceForeignLanguage(); objForeignLanguages.DeleteAllJobQualitySectors(JobID); return(true); } catch (Exception) { return(false); } }