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.
 
 
 
 
 
 

55 lines
1.5 KiB

namespace Win_in.Sfs.Wms.DataExchange.MesAgent.ReadFiles;
public class PathConfigInfo
{
/// <summary>
/// 接收目录
/// </summary>
public virtual string ReceivePath { get; protected set; }
/// <summary>
/// 工作目录
/// </summary>
public virtual string WorkPath { get; protected set; }
/// <summary>
/// 备份目录
/// </summary>
public virtual string BakPath { get; protected set; }
/// <summary>
/// 错误目录
/// </summary>
public virtual string ErrorPath { get; protected set; }
/// <summary>
/// 报文过滤关键字
/// </summary>
public virtual string FileFilterKeyword { get; protected set; }
/// <summary>
/// 等待目录,接收目录没有文件时取该目录
/// </summary>
public virtual string WaitPath { get; protected set; }
protected PathConfigInfo()
{
//此构造函数是提供给ORM用来从数据库中获取实体.
//无需初始化子集合
//因为它会被来自数据库的值覆盖.可能不适用于私有构造函数.
}
public PathConfigInfo(string receivePath, string workPath, string bakPath, string errorPath, string waitPath)
{
ReceivePath = receivePath;
WorkPath = workPath;
BakPath = bakPath;
ErrorPath = errorPath;
WaitPath = waitPath;
}
public virtual void SetFileFilterKeyword(string fileFilterKeyword)
{
this.FileFilterKeyword = fileFilterKeyword;
}
}