Beispiel #1
0
        public void getDatas(EDatabaseType dType, ref List<Object> list, out int iRest)
        {
            List<DatabaseObj> _objList = new List<DatabaseObj>();
            m_DatabaseAccesor.getDatas(dType, ref _objList, out iRest);

            if (0 == _objList.Count)
                return;

            if (EDatabaseType.EUserAccount == dType)
            {
                foreach(DatabaseObj _obj in _objList)
                {
                    Object _ua = new SUserAccount();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            else if (EDatabaseType.ESearchFactor == dType)
            {
                foreach (DatabaseObj _obj in _objList)
                {
                    Object _ua = new SSearchFactor();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            else if (EDatabaseType.EForbiddenCorp == dType)
            {
                foreach (DatabaseObj _obj in _objList)
                {
                    Object _ua = new SForbiddenCorp();

                    _obj.put(ref _ua);
                    list.Add(_ua);
                }
            }
            return;
        }
 public SearchFactorAdapter(SSearchFactor s)
 {
     m_AttrValues.Add(c_AttrCatalog, s.eSearchCata.ToString());
     m_AttrValues.Add(c_AttrKeytext, s.szSearchText);
 }
Beispiel #3
0
 public void setSearchFactor(SSearchFactor sf)
 {
     m_SearchFactor = sf;
 }