年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.3 KiB

using Kingo.ThreadManager;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace Kingo.DataAnalysis.Model
{
public class MultTaskParameter : TaskParameter
{
/// <summary>
/// 分析进度查询表示
/// </summary>
public string ProcessName { get; set; }
/// <summary>
/// 任务数据路径
/// </summary>
public string DataPath { get; set; }
public string RelTables { get; set; }
/// <summary>
/// 输出路径
/// </summary>
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;
}
}
}
}
}