using System;
using edu.jhu.Cas.Util;

namespace edu.jhu.Cas.Util {
/**
 * Represents a JOB in casjobs. This relates to the Jobs table (a row) 
 * a job is the unit of tracking in Casjobs - output and queries are both jobs.
 * This is passed around in many places and one is often in the session represeting the 
 * curretnly displayed Job on the JobDetails screen.  This is an internal format.
 */
    public class Job {
        public const string VERSION = "$Revision: 111295 $";
        public long JobID, Rows, WebServicesID;
        public DateTime TimeSubmit, TimeStart, TimeEnd;
        public int SendEmail, Status, AutoComplete, Estimate;
        public string TaskName, OutputLoc, HostIP, Message,
        Query, ModifiedQuery, Target, OutputType, Params, Created_Table;
    }
    /* external format of above */
    public class CJJob {
        public long JobID, Rows, WebServicesID;
        public DateTime TimeSubmit, TimeStart, TimeEnd;
        public int Status, Queue;
        public string TaskName, OutputLoc, Error,
        Query, Context, Type;
    }
}