ReportTransferData.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Data;
5 
6 namespace sage.ew.reports
7 {
11  public static class ReportTransferData
12  {
16  public static DataTable _Data;
20  private static Dictionary<string, string> _loAttributes = null;
21 
26  public static Dictionary<string, string> _Attributes
27  {
28  get
29  {
30  if (_loAttributes == null)
31  {
32  _loAttributes = new Dictionary<string, string>();
33  }
34  return _loAttributes;
35  }
36  }
37 
43  public static String _GetAttribute(String tcAttributeName)
44  {
45  String lcValue = String.Empty;
46 
47  if (_Attributes.ContainsKey(tcAttributeName))
48  {
49  _Attributes.TryGetValue(tcAttributeName, out lcValue);
50  }
51  return lcValue;
52  }
53 
59  public static void _SetAttribute(String tcAttributeName, String tcValue)
60  {
61  if (_Attributes.ContainsKey(tcAttributeName))
62  {
63  _Attributes.Remove(tcAttributeName);
64  }
65  _Attributes.Add(tcAttributeName, tcValue);
66  }
67 
68  }
69 }