Exemple #1
0
 public Task(XmlElement ModelPayload)
 {
     this.strName      = Utility.GetText(ModelPayload, "Name");
     this.taskType     = null;
     this.usrSubmitter = null;
     this.usrHandler   = null;
     this.datStartTime = Convert.ToDateTime(Utility.GetText(ModelPayload, "StartTime"));
     this.datDeadLine  = Convert.ToDateTime(Utility.GetText(ModelPayload, "DeadLine"));
     this.eQlevel      = null;
     this.taskStatus   = TaskStatus.ToEnum(Utility.GetText(ModelPayload, "Status"));
     this.dubPriority  = 0.0;
 }
Exemple #2
0
 public Task(string sName, DateTime dStart, DateTime dDead)
 {
     this.strName      = sName;
     this.taskType     = null;
     this.usrSubmitter = null;
     this.usrHandler   = null;
     this.datStartTime = dStart;
     this.datDeadLine  = dDead;
     this.eQlevel      = null;
     this.taskStatus   = TaskStatus.EnumTaskStatus.Process;
     this.dubPriority  = 0.0;
 }