private void loadjob(string jobnum) { try { _job = new JobStatus(this.Session.ConnectionPool); _jobDs = this._job.GetByID(this.Jobnumber); } catch { // MessageBox.Show("[Job.LoadJob()]" + e.Message + "\n" + e.InnerException.Message); throw; } }
/// <summary> /// Custom function to set JobHead.Number01 field to a numeric value corresponding with an oprseq. /// </summary> /// <returns>Returns error messages.</returns> public string Start_Operation() { JobStatus JobStat = new JobStatus(this.job.Session.ConnectionPool); JobStatusDataSet JobStatDS = new JobStatusDataSet(); try { JobStatDS = JobStat.GetByID(this.job.Jobnumber); JobStatDS.JobHead.Rows[0]["Number01"] = this.operation.ToString(); JobStat.Update(JobStatDS); return(null); } catch (Exception e) { Log.LogThis(e.Message, eloglevel.error); return(e.Message); } }