using System;
using System.Data;
namespace OTSIncAReportApp.DataOperation.Model
{
[Serializable]
public class RptConfigFile
{
private string path;
public RptConfigFile(string pathe)
{
path = pathe;
}
public void LoadDataFromFile()
{
DataSet ds = DataOperation.DataAccess.XMLoperate.GetXml(path);
this.FileFolderSize = ds.Tables[0].Rows[0]["FileFolderSize"].ToString();
this.FileFolderTrigTemp = ds.Tables[0].Rows[0]["FileFolderTrigTemp"].ToString();
this.Scale = ds.Tables[0].Rows[0]["Scale"].ToString();
this.PartSizeFile = ds.Tables[1].Rows[2]["Name"].ToString();
this.TriTempFile = ds.Tables[1].Rows[3]["Name"].ToString();
}
///
/// 粒级表目录
///
public string FileFolderSize
{
get;
set;
}
///
/// 三元相图目录
///
public string FileFolderTrigTemp
{
get;
set;
}
///
/// 比例因子
///
public string Scale
{
get;
set;
}
///
/// 默认使用的粒级文件
///
public string PartSizeFile
{
get;
set;
}
///
/// 默认使用的三元相图模板文件
///
public string TriTempFile
{
get;
set;
}
}
}