In a customisation find a dataset

Hi, I’m new to Epicor.
What I try to do is customize a BAQ Report.
I want to retrieve the information of the Job for some validation. I try with a dataset but didn’t work. I add the reference. Also, I really don’t know if it’s the correct way to do so.

    JobEntry get_JobEntry = new JobEntry(oTrans);
JobEntryDataSet jobEntry_Dataset = new JobEntryDataSet();
jobEntry_Dataset = get_JobEntry.GetByID(jobNum);

@vbourbeau , Please use the below mentioned code

using (JobEntryAdapter jobEntryAdapter = new JobEntryAdapter(this.oTrans))
{
jobEntryAdapter.BOConnect();
JobEntryDataSet ds = jobEntryAdapter.JobEntryData;
if (jobEntryAdapter.GetByID(jobNumber))
{
DataRow dr = jobEntryAdapter.JobEntryData.JobHead.Rows[0];
string ProjectID = dr[“ProjectID”].ToString();
}
jobEntryAdapter.Dispose();
}