| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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();
- }
- /// <summary>
- /// 粒级表目录
- /// </summary>
- public string FileFolderSize
- {
- get;
- set;
- }
- /// <summary>
- /// 三元相图目录
- /// </summary>
- public string FileFolderTrigTemp
- {
- get;
- set;
- }
- /// <summary>
- /// 比例因子
- /// </summary>
- public string Scale
- {
- get;
- set;
- }
- /// <summary>
- /// 默认使用的粒级文件
- /// </summary>
- public string PartSizeFile
- {
- get;
- set;
- }
- /// <summary>
- /// 默认使用的三元相图模板文件
- /// </summary>
- public string TriTempFile
- {
- get;
- set;
- }
- }
- }
|