public ExecTaskInfo(Ts_Tasks tasks, Ts_TaskExec taskExec) : this(tasks) { if (taskExec != null) { this.LastExecTime = taskExec.LastExecTime ?? DateTime.MinValue; } }
public ModelTaskList(Ts_Tasks tasks, Ts_TaskExec taskExec) : this(tasks) { if (taskExec != null) { this.LastExecTime = taskExec.LastExecTime; this.LastExecResultCode = taskExec.LastExecResultCode ?? -1000; } }
public ModelTaskList(Ts_Tasks tasks, Ts_TaskExec taskExec, string CreateUserName) : this(tasks) { if (taskExec != null) { this.LastExecTime = taskExec.LastExecTime; this.LastExecResultCode = taskExec.LastExecResultCode ?? -1000; } this.CreateUserName = CreateUserName; }
public ModelTaskList(Ts_Tasks tasks) { if (tasks == null) { return; } this.Guid = tasks.Guid; this.ExecUrl = tasks.ExecUrl; this.Interval = tasks.Interval; this.Status = tasks.Status; this.Title = tasks.Title; this.TimeOut = tasks.TimeOut; this.Encoding = tasks.Encoding; this.IsResponseNorm = tasks.IsResponseNorm; this.IsLogResult = tasks.IsLogResult; this.ExecType = tasks.ExecType; this.ExecMethod = tasks.ExecMethod; this.ExecParams = tasks.ExecParams; this.CreateUser = tasks.CreateUser; this.RunServerId = tasks.RunServerId; }
public ExecTaskInfo(Ts_Tasks tasks) { if (tasks == null) { return; } this.Guid = tasks.Guid; this.ExecUrl = tasks.ExecUrl; this.Interval = tasks.Interval; this.IsExec = tasks.Status == 1; this.Title = tasks.Title; this.Timeout = tasks.TimeOut * 1000; if (string.IsNullOrEmpty(tasks.Encoding)) { this.Encoding = Encoding.UTF8; } else { try { this.Encoding = Encoding.GetEncoding(tasks.Encoding); } catch { this.Encoding = Encoding.UTF8; } } this.IsResponseNorm = tasks.IsResponseNorm; this.IsLogResult = tasks.IsLogResult; this.ExecType = tasks.ExecType; this.ExecMethod = tasks.ExecMethod; this.Params = tasks.ExecParams; this.IsErrorAlert = tasks.IsErrorAlert; this.ReceiveEmail = tasks.ReceiveEmail; }