// GET api/job/5 public Job Get(Int64 id) { this.oDB = new db(oConfig.ConnectionString); System.Data.DataRow oJobRow = oDB.getJob(id); return Job.getInstance(oJobRow["JSON"].ToString()); }
private void ThisWorkbook_Startup(object sender, System.EventArgs e) { oCfg = new ConfigurationHelpper(); oDb = new db(oCfg.ConnectionStringSQL.ToString()); //get the job data oJob = IMSClasses.Jobs.Job.getInstance(oDb.getJob(oCfg.JobID)["JSON"].ToString()); this.RemoveCustomization(); this.StatusMessage = ""; this.StatusCorrect = true; }