Esempio n. 1
0
        private void populateTypes(String cfgString, BasketTypeEnum[] types)
        {
            Hashtable tempHash = new Hashtable();

            string[] words = cfgString.Split('|');

            intervals.Clear();

            foreach (string r in words)
            {
                if (r.Equals(""))
                {
                    continue;
                }

                string[] flds = r.Split(':');

                MMasterRef vi = new MMasterRef(new CTable(""));
                vi.Code        = flds[0];
                vi.Description = flds[1];
                vi.EnabledFlag = flds[2];

                tempHash.Add(vi.Code, vi);
            }

            foreach (BasketTypeEnum bt in types)
            {
                String key = bt.ToString();

                MMasterRef vi = null;
                if (tempHash.ContainsKey(key))
                {
                    vi = (MMasterRef)tempHash[key];
                    intervals.Add(vi);
                }
                else
                {
                    vi             = new MMasterRef(new CTable(""));
                    vi.Code        = key;
                    vi.Description = key;
                    vi.EnabledFlag = "N";

                    intervals.Add(vi);
                }
            }
        }
Esempio n. 2
0
 public void AddLanguage(MMasterRef m)
 {
     languages.Add(m);
 }