1
yhj
2024-07-24 5e5d945e91568b973faa27d8ab0bcef99fc4a6c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace CSFrameworkV5.Core.DataSetLib
{
    /// <summary>
    /// 帐套数据列表,自定义帐套数据
    /// </summary>
    public class DataSetList : IDataSetData
    {
        private List<DataSetConfigItem> _list = null;
 
        public DataSetList()
        {
            _list = new List<DataSetConfigItem>();
        }
 
        public void Add(DataSetConfigItem item)
        {
            _list.Add(item);
        }
 
        public DataSetConfigItem GetConfig(string datasetID)
        {
            foreach (var p in _list)
                if (p.DataSetID == datasetID)
                    return p;
            return null;
        }
 
        public List<DataSetConfigItem> DataSets => _list;
    }
}