using Kingo.ThreadManager;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Kingo.DataAnalysis.Model
{
public class MultTaskParameter : TaskParameter
{
///
/// 分析进度查询表示
///
public string ProcessName { get; set; }
///
/// 任务数据路径
///
public string DataPath { get; set; }
public string RelTables { get; set; }
///
/// 输出路径
///
public override string OutPath
{
get
{
try
{
if (string.IsNullOrWhiteSpace(DataPath) || string.IsNullOrWhiteSpace(TaskName))
return "";
if (!File.Exists(DataPath))
return "";
FileInfo file = new FileInfo(DataPath);
return Path.Combine(file.DirectoryName, "Out", file.Name.Replace(file.Extension, ""), "Temp", TaskName + file.Extension);
}
catch (Exception ex)
{
return "获取输出路径失败:" + ex.Message;
}
}
}
}
}